/* ═══════════════════════════════════════════════
   ID MEDIA SOLUTIONS — MIDNIGHT LUXE DESIGN SYSTEM
   ═══════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
    --obsidian:    #0D0D12;
    --slate:       #2A2A35;
    --slate-light: #363645;
    --champagner:  #C9A84C;
    --champagner-dim: rgba(201, 168, 76, 0.15);
    --elfenbein:   #FAF8F5;
    --elfenbein-dim: rgba(250, 248, 245, 0.55);
    --elfenbein-faint: rgba(250, 248, 245, 0.08);

    --font-head:  'Inter', sans-serif;
    --font-drama: 'Playfair Display', serif;
    --font-mono:  'JetBrains Mono', monospace;

    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-mag:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out3:   cubic-bezier(0.16, 1, 0.3, 1);

    --r-card: 2rem;
    --r-pill: 50px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 15px; }

body {
    background: var(--obsidian);
    color: var(--elfenbein);
    font-family: var(--font-head);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── CUSTOM CURSOR ── */
@media (pointer: fine) {
  body, a, button, .btn-primary, .btn-ghost, .btn-dark {
    cursor: none;
  }

  .cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 6px; height: 6px;
    background-color: var(--champagner);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
  }

  .cursor-outline {
    position: fixed;
    top: 0; left: 0;
    width: 36px; height: 36px;
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, border-color 0.2s;
  }

  .cursor-dot.hover {
    width: 12px; height: 12px;
    background-color: #ff6b6b;
  }

  .cursor-outline.hover {
    width: 60px; height: 60px;
    border-color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.05);
  }
}


/* ── NOISE OVERLAY ── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* ── TYPE ── */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--elfenbein);
}

em {
    font-family: var(--font-drama);
    font-style: italic;
    font-weight: 400;
    color: var(--champagner);
}

a { text-decoration: none; color: inherit; }

/* ── LAYOUT ── */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* ── BUTTONS ── */
.btn-primary, .btn-ghost, .btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.2rem;
    border-radius: var(--r-pill);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-mag), box-shadow 0.4s var(--ease-mag);
    letter-spacing: 0.01em;
}

/* ── HERO CTA — Enlarged & Glowing ── */
.btn-hero-cta {
    padding: 1.15rem 3rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 30px rgba(201, 168, 76, 0.35), 0 0 60px rgba(201, 168, 76, 0.1);
    animation: ctaPulseGlow 3s ease-in-out infinite;
}
.btn-hero-cta:hover {
    transform: scale(1.06) !important;
    box-shadow: 0 10px 50px rgba(201, 168, 76, 0.55), 0 0 80px rgba(201, 168, 76, 0.2) !important;
}

.btn-glow {
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(201,168,76,0.4), rgba(201,168,76,0), rgba(201,168,76,0.4));
    background-size: 200% 200%;
    animation: glowShift 3s ease-in-out infinite;
    z-index: 0;
    filter: blur(8px);
    opacity: 0.6;
}

@keyframes ctaPulseGlow {
    0%, 100% { box-shadow: 0 6px 30px rgba(201, 168, 76, 0.35), 0 0 60px rgba(201, 168, 76, 0.1); }
    50% { box-shadow: 0 8px 40px rgba(201, 168, 76, 0.5), 0 0 90px rgba(201, 168, 76, 0.2); }
}

@keyframes glowShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-hero-secondary {
    padding: 1rem 2.4rem;
    font-size: 1.05rem;
    border-color: rgba(250,248,245,0.15);
    backdrop-filter: blur(8px);
}

.btn-primary {
    background: var(--champagner);
    color: var(--obsidian);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
}

.btn-primary .btn-bg {
    position: absolute;
    inset: 0;
    background: #e0bf6a;
    transform: translateX(-101%);
    transition: transform 0.5s var(--ease-out3);
    border-radius: inherit;
    z-index: 0;
}
.btn-primary .btn-label { position: relative; z-index: 1; }
.btn-primary:hover .btn-bg { transform: translateX(0); }
.btn-primary:hover { transform: scale(1.03); box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4); }

.btn-ghost {
    background: transparent;
    color: var(--elfenbein);
    border: 1px solid var(--elfenbein-faint);
}
.btn-ghost .btn-bg {
    position: absolute;
    inset: 0;
    background: var(--elfenbein-faint);
    transform: translateX(-101%);
    transition: transform 0.5s var(--ease-out3);
    border-radius: inherit;
    z-index: 0;
}
.btn-ghost .btn-label { position: relative; z-index: 1; }
.btn-ghost:hover .btn-bg { transform: translateX(0); }
.btn-ghost:hover { transform: scale(1.03); border-color: rgba(250,248,245,0.2); }

.btn-dark {
    background: var(--obsidian);
    color: var(--champagner);
    border: none;
}
.btn-dark .btn-label { position: relative; z-index: 1; }
.btn-dark:hover { transform: scale(1.03); }

.full-width { width: 100%; }

/* ── SECTION HEADER ── */
.section-header {
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--champagner);
    margin-bottom: 1.2rem;
    opacity: 0.85;
}

.section-header h2 {
    font-size: clamp(2rem, 4.5vw, 4.5rem);
    line-height: 1.1;
}

/* ══════════════════════════════════════
   A. NAVBAR
   ══════════════════════════════════════ */
#navbar {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: fit-content;
    max-width: 95vw;
    padding: 1rem 2rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--champagner-dim);
    background: rgba(13, 13, 18, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
    transition: background 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(13, 13, 18, 0.78);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-color: var(--champagner-dim);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
}
.nav-logo-img {
    height: 64px;
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--elfenbein-dim);
    transition: color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--elfenbein); transform: translateY(-1px); }

.nav-cta {
    white-space: nowrap;
    background: var(--champagner) !important;
    color: var(--obsidian) !important;
    padding: 0.85rem 2.2rem;
    border-radius: var(--r-pill);
    font-weight: 800 !important;
    font-size: 1.15rem !important;
    transition: transform 0.4s var(--ease-mag), box-shadow 0.4s var(--ease-mag) !important;
    display: inline-block;
}
.nav-cta:hover {
    transform: scale(1.05) translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}

.hamburger {
    display: none;
    flex-direction: row;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.hamburger span {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--elfenbein);
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease, background-color 0.4s ease;
}
.hamburger.active span:nth-child(1) { transform: scale(1.5) translateX(7px); opacity: 0; }
.hamburger.active span:nth-child(2) { background: var(--champagner); transform: scale(1.4); }
.hamburger.active span:nth-child(3) { transform: scale(1.5) translateX(-7px); opacity: 0; }

/* ══════════════════════════════════════
   B. HERO
   ══════════════════════════════════════ */
.hero {
    position: relative;
    height: 100dvh;
    min-height: 700px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;

}

.hero-bg {
    position: absolute;
    inset: 0;
    background-color: #000005;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        #000005 0%,
        rgba(0,0,5,0.65) 40%,
        rgba(0,0,5,0.1) 100%
    );
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5; /* Dim 3D canvas slightly behind UI */
}


#hero-particles {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 5rem 4rem;
    width: 100%;
    max-width: 1200px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--champagner);
    border: 1px solid var(--champagner-dim);
    padding: 0.5rem 1.2rem;
    border-radius: var(--r-pill);
    margin-bottom: 1.8rem;
    opacity: 0;
    backdrop-filter: blur(6px);
    background: rgba(201, 168, 76, 0.06);
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--champagner);
    animation: badgePulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.5); opacity: 1; }
    50% { box-shadow: 0 0 0 6px rgba(201,168,76,0); opacity: 0.6; }
}

.hero-line1 {
    display: block;
    font-size: clamp(2.5rem, 5.5vw, 5.5rem);
    font-weight: 800;
    color: var(--elfenbein);
    letter-spacing: -0.04em;
    line-height: 1.0;
    opacity: 0;
}

.hero-line2 {
    display: block;
    font-family: var(--font-drama);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(3rem, 6.5vw, 6.5rem);
    color: var(--champagner);
    letter-spacing: -0.02em;
    line-height: 1.0;
    margin-bottom: 1.8rem;
    opacity: 0;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--elfenbein-dim);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 1.8rem;
    font-weight: 400;
    opacity: 0;
}

.hero-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.2rem;
    opacity: 0;
}

.hero-service-tag {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    color: var(--champagner);
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: var(--r-pill);
    padding: 0.45rem 1.1rem;
    background: rgba(201, 168, 76, 0.07);
    white-space: nowrap;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
}

.hero-scroll-hint {
    position: absolute;
    right: 4rem;
    bottom: 5.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    z-index: 10;
    opacity: 0;
}
.hero-scroll-hint span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--elfenbein-dim);
    writing-mode: vertical-lr;
}
.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--champagner), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ══════════════════════════════════════
   B2. HERO KI AGENT ORB BACKGROUND
   ══════════════════════════════════════ */
.agent-orb-bg-layer {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}
@media (max-width: 992px) {
    .agent-orb-bg-layer {
        left: 50%;
        transform: translate(-50%, -50%) scale(0.65);
        opacity: 0.8;
    }
}

.agent-orb-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.4) 0%, rgba(255, 107, 107, 0.2) 40%, transparent 70%);
    filter: blur(40px);
    border-radius: 50%;
    animation: pulseAmbient 5s infinite alternate ease-in-out;
}

.agent-orb-bg-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, var(--champagner) 40%, #ff6b6b 100%);
    border-radius: 50%;
    box-shadow: 0 0 70px rgba(201, 168, 76, 0.7), inset 20px 20px 40px rgba(255,255,255,0.6), inset -20px -20px 40px rgba(255, 107, 107, 0.6);
    animation: moveAgentCore 6s infinite cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-orb-bg-core::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255,255,255,0.8), transparent 60%);
  border-radius: 50%;
  filter: blur(6px);
  animation: pulseInner 3s infinite alternate;
}

.agent-orb-bg-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.15);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 15px rgba(201, 168, 76, 0.05);
}

.ring-bg-1 { width: 280px; height: 280px; border-width: 2px; border-top-color: var(--champagner); animation: spinBg 14s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite; }
.ring-bg-2 { width: 400px; height: 400px; border-right-color: #ff6b6b; border-bottom-color: rgba(201, 168, 76, 0.4); animation: spinReverseBg 18s linear infinite; }
.ring-bg-3 { width: 540px; height: 540px; border: 1px dashed rgba(201, 168, 76, 0.2); border-bottom: 2px solid var(--champagner); animation: spinBg 30s linear infinite; box-shadow: 0 0 15px rgba(201, 168, 76, 0.1); }

.agent-node {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(13, 13, 18, 0.85);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.node-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--champagner);
    box-shadow: 0 0 8px var(--champagner);
}
.node-label {
    font-family: var(--font-mono); font-size: 0.7rem; color: var(--elfenbein); text-transform: uppercase;
}

.node-1 { top: 15%; left: 10%; animation: floatBg 4s infinite alternate; }
.node-2 { top: 75%; left: 5%; animation: floatBg 5s infinite alternate-reverse; }
.node-3 { top: 25%; right: -5%; animation: floatBg 4.5s infinite alternate 1s; }
.node-4 { bottom: 15%; right: 10%; animation: floatBg 6s infinite alternate-reverse 0.5s; }

@keyframes spinBg { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spinReverseBg { 100% { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes pulseAmbient { 0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.9); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } }
@keyframes pulseInner { 0% { transform: scale(0.8); opacity: 0.5; } 100% { transform: scale(1.2); opacity: 1; } }
@keyframes moveAgentCore { 0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); } 25% { transform: translate(-55%, -52%) scale(1.05) rotate(5deg); } 50% { transform: translate(-45%, -48%) scale(1.02) rotate(-2deg); } 75% { transform: translate(-52%, -45%) scale(1.08) rotate(3deg); } }
@keyframes floatBg { 0% { transform: translateY(0px); } 100% { transform: translateY(-15px); } }

/* ══════════════════════════════════════
   C. FEATURES
   ══════════════════════════════════════ */
.features {
    padding: 5rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--obsidian);
    position: relative;

}

.features-dark-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 18, 0.6);
    z-index: 0;
    pointer-events: none;
}

.features .section-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: rgba(8, 8, 12, 0.98);
    border: 1px solid var(--elfenbein-faint);
    border-radius: var(--r-card);
    padding: 2.2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    transition: border-color 0.4s ease, transform 0.4s var(--ease-mag);
    opacity: 0;
    transform: translateY(40px);
    backdrop-filter: blur(12px);
}
.feature-card:hover {
    border-color: var(--champagner-dim);
    transform: translateY(-4px) !important;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.3rem;
}
.card-num {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--champagner);
    opacity: 0.7;
}
.card-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--elfenbein-dim);
    border: 1px solid var(--elfenbein-faint);
    padding: 0.2rem 0.7rem;
    border-radius: 30px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--elfenbein);
}

.feature-card > p {
    font-size: 0.9rem;
    color: var(--elfenbein-dim);
    line-height: 1.6;
    flex-shrink: 0;
}

/* — Shuffler — */
.shuffler-wrap {
    position: relative;
    height: 120px;
    margin-top: 0.5rem;
}

.shuffle-card {
    position: absolute;
    inset: 0;
    background: rgba(13,13,18,0.7);
    border: 1px solid var(--champagner-dim);
    border-radius: 1.2rem;
    padding: 1.1rem 1.3rem;
    transition: transform 0.6s var(--ease-spring), opacity 0.4s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.metric-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--champagner);
    opacity: 0.8;
    margin-bottom: 0.3rem;
}
.metric-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--elfenbein);
    line-height: 1;
    letter-spacing: -0.04em;
}
.metric-denom {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.5;
}
.metric-sub {
    font-size: 0.75rem;
    color: var(--elfenbein-dim);
    margin-top: 0.3rem;
}

/* — Typewriter — */
.typewriter-wrap {
    background: rgba(13,13,18,0.7);
    border: 1px solid var(--elfenbein-faint);
    border-radius: 1.2rem;
    padding: 1rem 1.1rem;
    margin-top: 0.5rem;
    min-height: 115px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tw-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--elfenbein-faint);
}

.tw-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e63b2e;
    animation: twPulse 1.4s ease-in-out infinite;
}
@keyframes twPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.tw-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    color: var(--elfenbein-dim);
    text-transform: uppercase;
    flex: 1;
}

.tw-time {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--elfenbein-dim);
    opacity: 0.5;
}

.tw-output {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--elfenbein);
    line-height: 1.5;
    min-height: 2.2rem;
}

.tw-cursor {
    display: inline-block;
    color: var(--champagner);
    animation: blink 1s step-start infinite;
    font-weight: 400;
}
@keyframes blink { 50% { opacity: 0; } }

.tw-line {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--elfenbein-dim);
    opacity: 0.5;
    min-height: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* — Scheduler — */
.scheduler-wrap {
    position: relative;
    background: rgba(13,13,18,0.7);
    border: 1px solid var(--elfenbein-faint);
    border-radius: 1.2rem;
    padding: 0.9rem 1rem;
    margin-top: 0.5rem;
    min-height: 115px;
    overflow: hidden;
}

.sched-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.7rem;
}

.mono-sm {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--elfenbein-dim);
    opacity: 0.6;
}

.sched-status {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.sched-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4ade80;
    animation: schedPulse 2s ease-in-out infinite;
}
@keyframes schedPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.4); }
    50% { box-shadow: 0 0 0 4px rgba(74,222,128,0); }
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.day-head {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    text-align: center;
    color: var(--elfenbein-dim);
    opacity: 0.4;
    padding-bottom: 2px;
    letter-spacing: 0.05em;
}

.day-cell {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-align: center;
    padding: 0.35rem 0.15rem;
    border-radius: 6px;
    cursor: default;
    color: var(--elfenbein-dim);
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.day-cell.active {
    background: var(--champagner-dim);
    border-color: var(--champagner);
    color: var(--champagner);
}

.day-cell.pressing {
    transform: scale(0.88);
    background: rgba(201, 168, 76, 0.3);
}

.sched-cursor {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    transition: left 0.45s var(--ease-mag), top 0.45s var(--ease-mag), transform 0.2s ease;
    will-change: left, top;
}

/* ══════════════════════════════════════
   D. PHILOSOPHY
   ══════════════════════════════════════ */
.philosophy {
    position: relative;
    padding: 6rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;

}

.philosophy-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.06;
    background-attachment: fixed;
}

.philosophy-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.phil-neutral {
    font-size: clamp(1.1rem, 1.6vw, 1.6rem);
    color: var(--elfenbein-dim);
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}
.phil-neutral em {
    font-family: var(--font-head);
    font-style: normal;
    color: var(--elfenbein-dim);
}

.phil-statement {
    font-family: var(--font-drama);
    font-style: italic;
    font-size: clamp(1.8rem, 4.5vw, 5rem);
    line-height: 1.2;
    color: var(--champagner);
    font-weight: 400;
}

/* Word reveal spans */
.word-span {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    margin-right: 0.22em;
}

/* ══════════════════════════════════════
   E. PROTOCOL — STICKY STACKING
   ══════════════════════════════════════ */
.protocol-section {
    position: relative;

}

.protocol-wrapper {
    position: relative;
    height: auto;
}
/* Last wrapper */
#wrapper-3 { height: auto; }

.protocol-card {
    height: auto;
    min-height: 100vh;
    padding-top: 6rem;
    padding-bottom: 6rem;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(7, 7, 14, 0.8) 0%, rgba(16, 16, 30, 0.6) 50%, rgba(8, 8, 18, 0.8) 100%);
    backdrop-filter: blur(12px);
    overflow: hidden;
    will-change: transform, filter, opacity;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    border-bottom: 1px solid rgba(201, 168, 76, 0.05);
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.5s ease, transform 0.5s ease;
}
.protocol-card.anim-active {
    box-shadow: inset 0 0 50px rgba(201, 168, 76, 0.05), 0 20px 50px rgba(0,0,0,0.6);
}

/* Giant watermark number */
#protocol-1::before { content: '01'; }
#protocol-2::before { content: '02'; }
#protocol-3::before { content: '03'; }

.protocol-card::before {
    position: absolute;
    font-family: var(--font-head);
    font-weight: 900;
    font-size: clamp(240px, 40vw, 560px);
    color: rgba(201, 168, 76, 0.04);
    right: -2%;
    bottom: -10%;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* Gold left accent bar */
.protocol-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 12%;
    height: 76%;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--champagner), transparent);
    opacity: 0.5;
    z-index: 1;
}

#protocol-1 { z-index: 1; }
#protocol-2 { z-index: 2; }
#protocol-3 { z-index: 3; }

.protocol-content {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 5rem 4rem 5rem 8rem;
    max-width: 720px;
}

.protocol-step {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--champagner);
    margin-bottom: 2.2rem;
}

.protocol-step::before {
    content: '';
    display: block;
    width: 2.5rem;
    height: 1.5px;
    background: var(--champagner);
    opacity: 0.9;
    flex-shrink: 0;
}

.protocol-content h2 {
    font-size: clamp(2.5rem, 5vw, 5.5rem);
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin-bottom: 2.2rem;
}

.protocol-content p {
    font-size: 1.35rem;
    color: var(--elfenbein-dim);
    line-height: 1.8;
    margin-bottom: 2.8rem;
    max-width: 500px;
}

.protocol-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.protocol-list li {
    font-size: 1.15rem;
    color: rgba(250, 248, 245, 0.55);
    padding-left: 2.2rem;
    position: relative;
    letter-spacing: 0.01em;
}
.protocol-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--champagner);
    font-weight: 400;
    background: none;
    width: auto;
    height: auto;
    border-radius: 0;
    opacity: 0.9;
}

.protocol-visual {
    position: relative;
    z-index: 1;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

/* Subtle glow behind canvas */
.protocol-visual::before {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.protocol-visual canvas {
    width: 100%;
    height: 100%;
    max-height: 400px;
    display: block;
}

#ekg-svg {
    width: 90%;
    max-width: 400px;
}

/* ══════════════════════════════════════
   F. PRICING
   ══════════════════════════════════════ */
.pricing {
    padding: 5rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--obsidian);

}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--slate);
    border: 1px solid var(--elfenbein-faint);
    border-radius: var(--r-card);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    opacity: 0;
    transform: translateY(30px);
    transition: border-color 0.4s ease;
    position: relative;
}
.pricing-card:hover { border-color: var(--champagner-dim); }

.pricing-card.featured {
    background: linear-gradient(180deg, rgba(201, 168, 76, 0.1) 0%, var(--slate) 100%);
    border-color: var(--champagner);
    transform: scale(1.04);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 0 0 1px var(--champagner);
}
.pricing-card.featured * { color: var(--elfenbein) !important; }
.pricing-card.featured .pricing-tier { color: var(--champagner) !important; }
.pricing-card.featured .pricing-list li::before { background: var(--champagner) !important; }
.pricing-card.featured .pricing-list li { color: var(--elfenbein-dim) !important; }
.pricing-card.featured .pricing-cta {
    background: var(--champagner) !important;
    color: var(--obsidian) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3) !important;
}
.pricing-card.featured .pricing-cta .btn-label {
    color: var(--obsidian) !important;
}
.pricing-card.featured .pricing-cta:hover {
    box-shadow: 0 4px 25px rgba(201, 168, 76, 0.6) !important;
    transform: scale(1.03) !important;
}



.pricing-badge {
    position: absolute;
    top: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--obsidian);
    color: var(--champagner);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--champagner-dim);
    white-space: nowrap;
}

.pricing-tier {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--elfenbein-dim);
    margin-top: 0.5rem;
}

.pricing-price {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--elfenbein);
    line-height: 1;
}
.pricing-per {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.5;
    letter-spacing: 0;
}

.pricing-desc {
    font-size: 0.88rem;
    color: var(--elfenbein-dim);
    line-height: 1.55;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--elfenbein-faint);
}

.pricing-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}
.pricing-list li {
    font-size: 0.88rem;
    color: var(--elfenbein-dim);
    padding-left: 1.2rem;
    position: relative;
}
.pricing-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--champagner);
    opacity: 0.6;
}

.pricing-cta { margin-top: 0.5rem; }

/* ══════════════════════════════════════
   CONTACT
   ══════════════════════════════════════ */
.contact .section-header { margin-bottom: 1.2rem; }

.contact-footer-wrap {
    /* Background for the footer area */
    background: var(--obsidian);
}

.contact {
    padding: 2.5rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--slate);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--elfenbein-faint);
}
.info-item:last-of-type { border-bottom: none; }

.info-icon { font-size: 1.1rem; }

.info-text strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--elfenbein-dim);
    margin-bottom: 0.2rem;
}
.info-text p, .info-text a {
    font-size: 0.92rem;
    color: var(--elfenbein);
    transition: color 0.3s ease;
}
.info-text a:hover { color: var(--champagner); }

.calendly-box {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--elfenbein-faint);
    border-radius: var(--r-card);
    border: 1px solid var(--champagner-dim);
}
.calendly-box h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.calendly-box p { font-size: 0.85rem; color: var(--elfenbein-dim); margin-bottom: 1.2rem; }

.contact-form-wrap {
    background: var(--obsidian);
    border-radius: var(--r-card);
    padding: 1.5rem;
    border: 1px solid var(--elfenbein-faint);
}
.contact-form-wrap h3 { font-size: 1.3rem; margin-bottom: 1rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--elfenbein-dim);
}

input, textarea, select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--slate);
    border: 1px solid var(--elfenbein-faint);
    border-radius: 0.75rem;
    color: var(--elfenbein);
    font-family: var(--font-head);
    font-size: 0.92rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

input::placeholder, textarea::placeholder { color: var(--elfenbein-dim); opacity: 0.4; }
input:focus, textarea:focus, select:focus {
    border-color: var(--champagner);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

select option { background: var(--slate); color: var(--elfenbein); }

/* Custom select dropdown */
.custom-select-wrap {
    position: relative;
}

.custom-select-trigger {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--slate);
    border: 1px solid var(--elfenbein-faint);
    border-radius: 0.75rem;
    color: var(--elfenbein);
    font-family: var(--font-head);
    font-size: 0.92rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    user-select: none;
}

.custom-select-trigger:focus,
.custom-select-wrap.open .custom-select-trigger {
    border-color: var(--champagner);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.select-arrow {
    flex-shrink: 0;
    color: var(--elfenbein-dim);
    transition: transform 0.25s ease;
}

.custom-select-wrap.open .select-arrow {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--slate);
    border: 1px solid var(--elfenbein-faint);
    border-radius: 0.75rem;
    overflow: hidden;
    z-index: 200;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-select-wrap.open .custom-select-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.custom-select-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: var(--elfenbein);
    font-family: var(--font-head);
    font-size: 0.92rem;
    transition: background 0.15s;
}

.custom-select-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.custom-select-option.selected {
    color: var(--champagner);
}

textarea { resize: vertical; min-height: 130px; }

/* ══════════════════════════════════════
   G. FOOTER
   ══════════════════════════════════════ */
footer {
    background: var(--obsidian);
    border-radius: 4rem 4rem 0 0;
    padding: 5rem 2rem 2rem;
    border-top: 1px solid var(--elfenbein-faint);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}
.footer-logo span { color: var(--champagner); }

.footer-col > p {
    font-size: 0.9rem;
    color: var(--elfenbein-dim);
    line-height: 1.65;
    max-width: 280px;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--elfenbein-faint);
    color: var(--elfenbein-dim);
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-mag);
}
.social-links a:hover {
    border-color: var(--champagner);
    color: var(--champagner);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--elfenbein-dim);
    margin-bottom: 1.4rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul a {
    font-size: 0.9rem;
    color: var(--elfenbein-dim);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}
.footer-col ul a:hover { color: var(--elfenbein); transform: translateX(3px); }

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2rem;
    padding: 0.6rem 0.9rem;
    background: rgba(74,222,128,0.07);
    border: 1px solid rgba(74,222,128,0.15);
    border-radius: var(--r-pill);
    width: fit-content;
}
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
    50% { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}
.status-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4ade80;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--elfenbein-faint);
    font-size: 0.82rem;
    color: var(--elfenbein-dim);
    opacity: 0.5;
}

/* ══════════════════════════════════════
   LEGAL PAGES
   ══════════════════════════════════════ */
.legal-page {
    padding-top: 10rem;
    padding-bottom: 6rem;
    min-height: 80vh;
}
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--slate);
    padding: 3rem;
    border-radius: var(--r-card);
    border: 1px solid var(--elfenbein-faint);
}
.legal-content h1 { font-size: 2.5rem; margin-bottom: 2rem; }
.legal-content h2 { font-size: 1.4rem; margin-top: 2.5rem; margin-bottom: 0.8rem; }
.legal-content p { margin-bottom: 1.2rem; color: var(--elfenbein-dim); font-size: 0.95rem; line-height: 1.7; }
.legal-content a { color: var(--champagner); }
.legal-content a:hover { text-decoration: underline; }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .protocol-content { padding: 4rem 3rem; max-width: 100%; }
    .protocol-card { flex-direction: column; }
    .protocol-visual { flex: none; height: 220px; width: 100%; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .pricing-card.featured { transform: none !important; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .brand-col { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        background: rgba(13,13,18,0.97);
        backdrop-filter: blur(20px);
        z-index: 999;
    }
    .nav-links.active a { font-size: 1.4rem; color: var(--elfenbein); }
    .nav-links.active .nav-cta {
        font-size: 1.1rem !important;
        padding: 0.75rem 2rem !important;
    }
    .hamburger { display: flex; z-index: 1001; position: relative; }
    #navbar { width: 92vw; top: 1rem; padding: 0.8rem 1.4rem; z-index: 1002; }
    .nav-inner { justify-content: space-between; gap: 1.5rem; }

    .nav-logo-img { height: 48px; } /* Scale down slightly on mobile */

    .hero-content { padding: 0 1.5rem 4rem; }
    .hero-scroll-hint { display: none; }

    .hero-line1 { font-size: clamp(2.4rem, 10vw, 3.5rem); }
    .hero-line2 { font-size: clamp(2.8rem, 12vw, 4rem); }

    .features { padding: 4rem 1.5rem; }
    .philosophy { padding: 5rem 1.5rem; }
    .protocol-content { padding: 3rem 1.5rem; }
    .pricing { padding: 4rem 1.5rem; }
    .contact { padding: 4rem 1.5rem; }
    .section-container { padding: 0 2rem; }

    .form-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    footer { border-radius: 2.5rem 2.5rem 0 0; padding: 4rem 1.5rem 2rem; }

    .hero-ctas { flex-direction: column; align-items: flex-start; }
}
