*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

  :root {
    --bg: #050506;
    --green: #00E87B;
    --green-dim: rgba(0, 232, 123, 0.3);
    --gold: #c9a227;
    --gold-dim: rgba(201, 162, 39, 0.25);
    --white: #f5f5f5;
    --gray: rgba(255,255,255,0.5);
  }

  html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--white);
    -webkit-font-smoothing: antialiased;
  }

  /* ── Full-viewport container ── */
  .viewport {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  /* ── Ambient glow layers (matching iOS prototype) ── */
  .glow-layer {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
  }

  /* Top glow — covers upper third, drifts center-left */
  .glow-a {
    width: 75vw;
    height: 55vh;
    top: -5%;
    left: 45%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(0, 180, 80, 0.45) 0%, rgba(0, 120, 50, 0.15) 40%, transparent 70%);
    animation: glowA 6s ease-in-out infinite;
  }

  /* Mid-left glow — sits around center, offset left */
  .glow-b {
    width: 60vw;
    height: 50vh;
    top: 25%;
    left: 25%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(0, 200, 100, 0.35) 0%, rgba(0, 140, 60, 0.1) 45%, transparent 70%);
    animation: glowB 7s ease-in-out infinite;
  }

  /* Mid-right glow — offset right, slightly lower */
  .glow-c {
    width: 55vw;
    height: 50vh;
    top: 30%;
    left: 75%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(0, 160, 90, 0.3) 0%, rgba(0, 100, 50, 0.08) 50%, transparent 70%);
    animation: glowC 8s ease-in-out infinite;
  }

  /* Gold accent — center */
  .glow-gold {
    width: 45vw;
    height: 40vh;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(201, 162, 39, 0.12) 0%, transparent 60%);
    animation: glowA 9s ease-in-out infinite;
  }

  /* Bottom glow — fills the lower third so the whole viewport breathes */
  .glow-bottom {
    width: 70vw;
    height: 50vh;
    bottom: -10%;
    left: 55%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(0, 180, 80, 0.3) 0%, rgba(0, 120, 50, 0.1) 40%, transparent 70%);
    animation: glowB 8s ease-in-out infinite;
  }

  @keyframes glowA {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
  }
  @keyframes glowB {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
  }
  @keyframes glowC {
    0%, 100% { opacity: 0.5; }
    30% { opacity: 1; }
    70% { opacity: 0.2; }
  }

  /* ── Nav ── */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    background: transparent;
    animation: slideDown 0.8s ease-out both;
  }

  .nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
  }

  .nav-logo {
    height: 32px;
    width: auto;
  }

  /* Hide nav links — hamburger only on all sizes */
  .nav-links {
    display: none;
  }

  /* Hamburger — always visible, electric green glow */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    filter: drop-shadow(0 0 6px rgba(0, 232, 123, 0.5)) drop-shadow(0 0 20px rgba(0, 232, 123, 0.2));
    transition: filter 0.3s;
  }

  .hamburger:hover {
    filter: drop-shadow(0 0 10px rgba(0, 232, 123, 0.7)) drop-shadow(0 0 30px rgba(0, 232, 123, 0.35));
  }

  @keyframes hamburgerPulse {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(0, 232, 123, 0.3)) drop-shadow(0 0 12px rgba(0, 232, 123, 0.1)); }
    50% { filter: drop-shadow(0 0 8px rgba(0, 232, 123, 0.6)) drop-shadow(0 0 25px rgba(0, 232, 123, 0.25)); }
  }

  .hamburger {
    animation: hamburgerPulse 3s ease-in-out infinite;
  }

  .hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
  }

  /* "call" link inside agent text — subtle, clickable gateway */
  .call-link {
    color: inherit;
    -webkit-text-fill-color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color 1.2s ease-out, filter 1.2s ease-out, -webkit-text-fill-color 1.2s ease-out;
  }

  /* Override the transparent fill from gradient text parent */
  .agent-line.accent.visible .call-link {
    -webkit-text-fill-color: #fff;
    color: #fff;
    position: relative;
    filter: brightness(1.1) drop-shadow(0 0 18px rgba(0,232,123,0.5));
    animation: callPulse 2.5s ease-in-out infinite 2s;
  }

  /* Fade-in underline glow */
  .agent-line.accent.visible .call-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00E87B, transparent);
    border-radius: 1px;
    opacity: 0;
    animation: underlineFadeIn 1.5s ease 1.5s forwards;
    box-shadow: 0 0 8px rgba(0,232,123,0.4);
  }

  .call-link:hover {
    filter: brightness(1.4) drop-shadow(0 0 20px rgba(0, 232, 123, 0.7)) !important;
  }

  @keyframes callPulse {
    0%, 100% { filter: brightness(1.1) drop-shadow(0 0 12px rgba(0,232,123,0.4)); }
    50% { filter: brightness(1.4) drop-shadow(0 0 25px rgba(0,232,123,0.6)); }
  }

  @keyframes underlineFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }

  /* ── Agent speak — conversational text triggered by mouse ── */
  .agent-speak {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    padding: 0 24px;
  }

  .agent-line {
    font-size: 68px;
    font-weight: 600;
    color: rgba(0, 80, 30, 0);
    letter-spacing: -0.5px;
    line-height: 1.3;
    text-shadow: 0 0 40px rgba(0, 232, 123, 0);
    opacity: 0;
    transition: opacity 1.2s ease-out, color 1.2s ease-out, transform 1.2s ease-out, text-shadow 1.2s ease-out;
    transform: translateY(16px);
  }

  /* Phase 1: text emerges from the green — same color as the glow, like it's part of the bg */
  .agent-line.emerging {
    opacity: 0.5;
    color: rgba(0, 140, 60, 0.6);
    text-shadow: 0 0 60px rgba(0, 232, 123, 0.3), 0 0 120px rgba(0, 180, 80, 0.15);
    transform: translateY(6px);
  }

  /* Phase 2: text sharpens and brightens — gradient fill */
  .agent-line.visible {
    opacity: 1;
    background: linear-gradient(135deg, #00E87B 0%, #00b865 40%, #7DFFB5 70%, #00E87B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    transform: translateY(0);
  }

  .agent-line.accent {
    color: rgba(0, 80, 30, 0);
  }

  .agent-line.accent.emerging {
    color: rgba(0, 140, 60, 0.5);
  }

  .agent-line.accent.visible {
    opacity: 1;
    background: linear-gradient(135deg, #ffffff 0%, #d0ffe6 40%, #00E87B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
  }

  .agent-line.dim {
    font-size: 36px;
    font-weight: 400;
  }

  .agent-line.dim.emerging {
    color: rgba(0, 120, 50, 0.3);
  }

  .agent-line.dim.visible {
    opacity: 1;
    background: linear-gradient(135deg, rgba(0, 232, 123, 0.6) 0%, rgba(0, 180, 80, 0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
  }

  /* Typing cursor that blinks on the last visible line */
  /* Cursor removed — no blinking line after text */
  .agent-line .cursor {
    display: none;
  }

  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ── Mobile menu overlay ── */
  .mobile-menu {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(5, 5, 6, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .mobile-menu.open {
    opacity: 1;
    pointer-events: all;
  }

  .mobile-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 22px;
    font-weight: 500;
  }

  .mobile-menu .nav-cta {
    background: var(--green);
    color: var(--bg);
    padding: 12px 36px;
    border-radius: 12px;
    font-weight: 600;
  }

  /* ── Responsive ── */
  @media (max-width: 640px) {
    nav { padding: 16px 20px; }

    .mobile-menu { display: flex; }

    .agent-line { font-size: 42px; }
    .agent-line.dim { font-size: 24px; }

    .glow-a { width: 95vw; height: 50vh; }
    .glow-b { width: 80vw; height: 45vh; }
    .glow-c { width: 85vw; height: 40vh; }
    .glow-gold { width: 60vw; height: 30vh; }
    .glow-bottom { width: 90vw; height: 45vh; }
  }

  /* ═══════════════════════════════════════════════════════
     LOGO REVEAL ANIMATION
     7-step cinematic brand moment (~5s total)
     ═══════════════════════════════════════════════════════ */

  .logo-anim {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5,5,6,0);
    pointer-events: none;
    opacity: 0;
    transition: background 0.3s ease;
  }
  .logo-anim.active {
    opacity: 1;
    pointer-events: all;
  }
  .logo-anim.dimmed {
    background: rgba(5,5,6,0.88);
  }
  .logo-anim.whiteout {
    background: rgba(5,5,6,1);
    transition: background 0.5s ease;
  }
  .logo-anim.hidden {
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
  }

  .logo-anim-svg {
    position: relative;
    z-index: 1;
    width: min(82vw, 720px);
    height: auto;
    overflow: visible;
  }

  /* Bloom glow behind logo */
  .logo-bloom {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle,
      rgba(0,232,123,0.55) 0%,
      rgba(0,232,123,0.2) 35%,
      rgba(0,180,80,0.08) 55%,
      transparent 70%
    );
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 1s cubic-bezier(0.16,1,0.3,1), opacity 0.6s ease;
  }
  .logo-anim.bloom .logo-bloom {
    transform: scale(6);
    opacity: 1;
  }

  /* ── Group entrance transforms ── */
  .anim-calen-group {
    transform: translateX(-1100px);
    filter: saturate(1) brightness(1);
  }
  .anim-call-group {
    transform: translateX(1100px);
    filter: saturate(1) brightness(1);
  }
  .anim-calendar-group {
    transform: translateY(-500px);
  }
  .anim-phone-group {
    transform: translateX(600px);
    transform-box: fill-box;
    transform-origin: center center;
    filter: saturate(1) brightness(1);
  }

  /* Calendar sub-elements get individual dim filters (for cascade control) */
  .calendar-structure {
    filter: saturate(1) brightness(1);
  }
  .day-cell {
    filter: saturate(1) brightness(0.4);
  }

  /* ── Entered state (in final position) ── */
        
  /* ── Lit states ── */


  /* ── Calendar close (compresses vertically from top) ── */
  .anim-calendar-group.closed {
    transform: translateY(0) scaleY(0.86);
    transform-origin: 524px 12px;
    transition: transform 0.4s ease-in-out, filter 0.6s ease;
  }

  /* ── Shake keyframes ── */
  @keyframes calendarShake {
    0%, 100% { transform: translateY(0) scaleY(0.86) translateX(0) rotate(0deg); }
    10% { transform: translateY(0) scaleY(0.86) translateX(-5px) rotate(-1.5deg); }
    20% { transform: translateY(0) scaleY(0.86) translateX(5px) rotate(1.5deg); }
    30% { transform: translateY(0) scaleY(0.86) translateX(-4px) rotate(-1deg); }
    40% { transform: translateY(0) scaleY(0.86) translateX(4px) rotate(1deg); }
    50% { transform: translateY(0) scaleY(0.86) translateX(-2px) rotate(-0.5deg); }
    60% { transform: translateY(0) scaleY(0.86) translateX(2px) rotate(0.5deg); }
    70% { transform: translateY(0) scaleY(0.86) translateX(-1px) rotate(0deg); }
    80% { transform: translateY(0) scaleY(0.86) translateX(1px) rotate(0deg); }
    90% { transform: translateY(0) scaleY(0.86) translateX(0) rotate(0deg); }
  }
  .anim-calendar-group.shaking {
    animation: calendarShake 0.5s ease-out forwards;
  }

  /* ── Phone ring keyframes ── */
  @keyframes phoneRing {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    8% { transform: translateX(0) rotate(16deg); }
    16% { transform: translateX(0) rotate(-16deg); }
    24% { transform: translateX(0) rotate(13deg); }
    32% { transform: translateX(0) rotate(-13deg); }
    40% { transform: translateX(0) rotate(9deg); }
    48% { transform: translateX(0) rotate(-9deg); }
    56% { transform: translateX(0) rotate(5deg); }
    64% { transform: translateX(0) rotate(-5deg); }
    72% { transform: translateX(0) rotate(2deg); }
    80% { transform: translateX(0) rotate(-2deg); }
    90% { transform: translateX(0) rotate(0deg); }
  }
  .anim-phone-group.ringing {
    animation: phoneRing 0.65s ease-out forwards;
  }

  /* ── Logo glow bloom keyframes ── */
  @keyframes logoBoom {
    0% { filter: drop-shadow(0 0 0px rgba(0,232,123,0)); }
    40% { filter: drop-shadow(0 0 30px rgba(0,232,123,0.7)) drop-shadow(0 0 80px rgba(0,232,123,0.3)); }
    100% { filter: drop-shadow(0 0 18px rgba(0,232,123,0.4)) drop-shadow(0 0 50px rgba(0,232,123,0.15)); }
  }
  .logo-anim-svg.booming {
    animation: logoBoom 0.8s ease-out forwards;
  }

  /* ── Animation responsive ── */
  @media (max-width: 640px) {
    .logo-anim-svg { width: 95vw; }
    .logo-bloom { width: 150px; height: 150px; }
  }

  /* ── Reduced motion: skip to final state instantly ── */
  @media (prefers-reduced-motion: reduce) {
    .anim-calen-group,
    .anim-call-group,
    .anim-calendar-group,
    .anim-phone-group,
    .calendar-structure,
    .day-cell { transition: none !important; animation: none !important; }

    .logo-anim { transition: opacity 0.2s ease !important; }
    .logo-bloom { transition: none !important; }
    .logo-anim-svg { animation: none !important; }

    .glow-layer { animation: none !important; opacity: 0.6 !important; }
    .agent-line { transition-duration: 0.2s !important; }
  }

  /* ── Skip animation button ── */
  .anim-skip {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 210;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.5);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, color 0.2s, border-color 0.2s;
  }
  .anim-skip.visible {
    opacity: 1;
    pointer-events: all;
  }
  .anim-skip:hover {
    color: rgba(255,255,255,0.8);
    border-color: rgba(255,255,255,0.5);
  }

