  :root{
    --bg: #0a0d12;
    --bg-2: #0c1116;
    --cyan: #22d3ee;
    --cyan-soft: #7fe9f7;
    --text: #f3f6f8;
    --muted: #8b98a5;
    --line: rgba(255,255,255,0.08);
    --font-display: 'Segoe UI', Arial, sans-serif;
    --font-mono: 'Consolas', 'Courier New', monospace;
  }

  body.day-mode {
    --text: #1a202c;
    --muted: #4a5568;
    --cyan: #0284c7;
    --cyan-soft: #0369a1;
    --line: rgba(0,0,0,0.15);
  }

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

  html,body{
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-display);
    overflow-x:hidden;
    height:100%;
  }

  /* ================= GATE SCREEN ================= */
  #gate{
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 45%, #0d1620 0%, #090c10 70%);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index: 100;
    transition: opacity .8s ease, visibility .8s ease;
  }
  #gate.hidden{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
  }

  .dots span{
    position:absolute;
    width:3px;
    height:3px;
    background: var(--cyan);
    border-radius:50%;
    opacity:.5;
    animation: twinkle 4s ease-in-out infinite;
  }
  @keyframes twinkle{
    0%,100%{ opacity:.15; }
    50%{ opacity:.8; }
  }

  .gate-ring{
    position:relative;
    width: 640px;
    max-width: 92vw;
    aspect-ratio: 1;
    border: 1px solid rgba(34,211,238,0.15);
    border-radius: 50%;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding: 40px;
  }

  .eyebrow{
    font-family: var(--font-mono);
    letter-spacing: .35em;
    font-size: 13px;
    color: var(--cyan);
    margin-bottom: 22px;
    animation: fadeUp .8s ease both;
  }

  .gate-title{
    font-size: clamp(42px, 7vw, 68px);
    font-weight: 800;
    line-height: 1.05;
    animation: fadeUp .8s ease .1s both;
  }
  .gate-title .accent{
    color: var(--cyan);
    text-shadow: 0 0 30px rgba(34,211,238,.55);
  }

  .gate-sub{
    margin-top: 20px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
    animation: fadeUp .8s ease .2s both;
  }
  .gate-sub b{ color: var(--text); }

  .gate-line{
    width: 220px;
    height: 2px;
    margin: 34px auto 0;
    background: linear-gradient(90deg, var(--cyan), transparent);
    animation: fadeUp .8s ease .3s both;
  }

  @keyframes fadeUp{
    from{ opacity:0; transform: translateY(14px); }
    to{ opacity:1; transform: translateY(0); }
  }

  /* premium hero entrance animations */
  @keyframes revealBlur{
    0%{ opacity:0; transform: translateY(26px) scale(0.98); filter: blur(10px); }
    100%{ opacity:1; transform: translateY(0) scale(1); filter: blur(0); }
  }
  @keyframes expandLetters{
    0%{ opacity:0; letter-spacing: .9em; transform: translateY(6px); }
    100%{ opacity:1; letter-spacing: .35em; transform: translateY(0); }
  }
  @keyframes popIn{
    0%{ opacity:0; transform: translateY(18px) scale(.88); }
    70%{ opacity:1; transform: translateY(-2px) scale(1.02); }
    100%{ opacity:1; transform: translateY(0) scale(1); }
  }

  /* ================= HERO / MAIN SITE ================= */
  #main{
    min-height: 100vh;
    position: relative;
  }

  header{
    position: fixed;
    top:0; left:0; right:0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 20px 48px;
    background: transparent;
    border-bottom: none;
    z-index: 20;
  }

  .logo{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:800;
    font-size:20px;
    letter-spacing: .5px;
  }
  .logo img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    clip-path: circle(50%);
    object-fit: cover;
    transform: scale(1.3);
    transition: transform .3s ease;
    display: block;
  }
  .logo:hover img {
    transform: scale(1.4);
  }
  .logo-mark{
    width: 34px; height:34px;
    border-radius:8px;
    background: linear-gradient(135deg, var(--cyan), #2b6fe0);
    display:flex; align-items:center; justify-content:center;
    font-family: var(--font-mono);
    font-weight:900;
    color:#04141a;
    font-size:14px;
  }

  .socials{ display:flex; gap:22px; }
  .socials a{
    color: var(--muted);
    text-decoration:none;
    font-size: 15px;
    transition: color .25s ease, transform .25s ease;
  }
  .socials a:hover{ color: var(--cyan); transform: translateY(-2px); }

  .menu-toggle{
    display:none;
    background:none;
    border: 1px solid rgba(34,211,238,0.3);
    border-radius:8px;
    width: 42px; height:38px;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    color: var(--text);
  }
  .menu-toggle span{ font-size:20px; line-height:1; }

  .mobile-menu{
    display:flex;
    position: fixed;
    top: 68px;
    right: 16px;
    background: rgba(10,14,18,0.97);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 18px;
    flex-direction: column;
    gap: 14px;
    z-index: 25;
    opacity:0;
    transform: translateY(-8px);
    pointer-events:none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .mobile-menu.open{
    opacity:1;
    transform: translateY(0);
    pointer-events:auto;
  }
  .mobile-menu a{
    color: var(--muted);
    text-decoration:none;
    font-size:15px;
  }
  .mobile-menu a:hover{ color: var(--cyan); }

  .badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--cyan-soft);
    border: 1px solid rgba(34,211,238,0.3);
    background: rgba(34,211,238,0.06);
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 22px;
    animation: popIn .7s cubic-bezier(.2,.8,.2,1) .1s both;
  }
  .badge .live-dot{
    width:7px; height:7px;
    border-radius:50%;
    background: #35d07f;
    box-shadow: 0 0 8px #35d07f;
  }

  .hero{
    min-height: 100vh;
    padding: 140px 48px 60px;
    display:flex;
    align-items:center;
    position: relative;
    background: linear-gradient(165deg, #0c0a16 0%, #0a0d18 35%, #070810 70%, #05060a 100%);
    overflow:hidden;
  }

  /* ---- galaxy swirl (slow ambient rotation, not a hard shape) ---- */
  .galaxy-swirl{
    position:absolute;
    top: 50%;
    left: 50%;
    width: 1400px;
    height: 1400px;
    margin-left: -700px;
    margin-top: -700px;
    z-index: 0;
    pointer-events:none;
    opacity: .5;
    filter: blur(60px);
    background: conic-gradient(from 0deg,
      rgba(139,92,246,0.16),
      rgba(34,211,238,0.10) 20%,
      rgba(236,72,153,0.14) 40%,
      transparent 55%,
      rgba(99,102,241,0.14) 75%,
      rgba(139,92,246,0.16) 100%);
    animation: swirlSpin 120s linear infinite;
  }
  @keyframes swirlSpin{ to{ transform: rotate(360deg); } }

  /* ---- nebula clouds ---- */
  .nebula{
    position:absolute;
    border-radius:50%;
    z-index: 0;
    pointer-events:none;
    filter: blur(90px);
  }
  .nebula.n1{
    width: 480px;
    height: 380px;
    top: -8%;
    left: 8%;
    background: radial-gradient(ellipse, rgba(168,85,247,0.28), transparent 70%);
    animation: nebulaDrift1 20s ease-in-out infinite;
  }
  .nebula.n2{
    width: 420px;
    height: 420px;
    bottom: -10%;
    right: 4%;
    background: radial-gradient(ellipse, rgba(236,72,153,0.20), transparent 70%);
    animation: nebulaDrift2 24s ease-in-out infinite;
  }
  .nebula.n3{
    width: 360px;
    height: 300px;
    top: 30%;
    left: 40%;
    background: radial-gradient(ellipse, rgba(59,130,246,0.18), transparent 70%);
    animation: nebulaDrift1 18s ease-in-out infinite reverse;
  }
  @keyframes nebulaDrift1{
    0%, 100%{ transform: translate(0,0) scale(1); }
    50%{ transform: translate(4%, -3%) scale(1.08); }
  }
  @keyframes nebulaDrift2{
    0%, 100%{ transform: translate(0,0) scale(1); }
    50%{ transform: translate(-5%, 4%) scale(1.05); }
  }

  /* ---- starfield ---- */
  .starfield{
    position:absolute;
    inset: 0;
    z-index: 0;
    pointer-events:none;
  }
  .starfield span{
    position:absolute;
    width:2px;
    height:2px;
    background: #eaf6f8;
    border-radius:50%;
    opacity:.4;
    animation: starTwinkle 5s ease-in-out infinite;
  }
  .starfield span.tint-cyan{ background: var(--cyan-soft); }
  .starfield span.tint-violet{ background: #c9b6fb; }
  .starfield span.bright{
    box-shadow: 0 0 6px 1px rgba(255,255,255,0.7);
  }
  @keyframes starTwinkle{
    0%, 100%{ opacity:.15; transform: scale(1); }
    50%{ opacity:.95; transform: scale(1.6); }
  }

  /* ---- shooting stars ---- */
  .shooting-star{
    position:absolute;
    width: 3px;
    height: 3px;
    background: var(--cyan-soft);
    border-radius:50%;
    z-index: 0;
    pointer-events:none;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
    opacity:0;
  }
  .shooting-star::before{
    content:'';
    position:absolute;
    top:50%;
    right:0;
    width: 90px;
    height: 1px;
    background: linear-gradient(90deg, rgba(127,233,247,0.9), transparent);
    transform: translateY(-50%);
  }
  .shooting-star.s1{
    top: 18%;
    left: 12%;
    animation: shoot1 7s linear infinite;
    animation-delay: 1.5s;
  }
  .shooting-star.s2{
    top: 55%;
    left: 55%;
    animation: shoot2 9s linear infinite;
    animation-delay: 4.5s;
  }
  @keyframes shoot1{
    0%{ opacity:0; transform: translate(0,0) rotate(-30deg); }
    2%{ opacity:1; }
    16%{ opacity:0; transform: translate(260px, 150px) rotate(-30deg); }
    100%{ opacity:0; transform: translate(260px, 150px) rotate(-30deg); }
  }
  @keyframes shoot2{
    0%{ opacity:0; transform: translate(0,0) rotate(-24deg); }
    2%{ opacity:1; }
    14%{ opacity:0; transform: translate(220px, 100px) rotate(-24deg); }
    100%{ opacity:0; transform: translate(220px, 100px) rotate(-24deg); }
  }

  /* ---- moon / sun toggle ---- */
  .moon{
    position:absolute;
    top: 12%;
    right: 10%;
    width: 92px;
    height: 92px;
    z-index: 2;
    pointer-events:auto;
    cursor: pointer;
    filter: drop-shadow(0 0 24px rgba(230,246,250,0.35)) drop-shadow(0 0 55px rgba(127,233,247,0.18));
    animation: moonFloat 8s ease-in-out infinite;
    transition: filter 1s ease;
  }
  .moon svg{ width:100%; height:100%; display:block; overflow: visible; }
  @keyframes moonFloat{
    0%, 100%{ transform: translateY(0); }
    50%{ transform: translateY(-14px); }
  }

  .moon .body-moon, .moon .body-sun, .moon .crater, .moon .sun-corona, .moon .sun-plasma{
    transition: opacity .9s ease;
  }
  .moon .sun-rays{
    transform-origin: 60px 60px;
    transition: opacity 1s ease;
    animation: rayRotate 40s linear infinite;
    filter: blur(2.5px);
  }
  @keyframes rayRotate{ to{ transform: rotate(360deg); } }

  .moon.is-day{
    filter: drop-shadow(0 0 18px rgba(255,170,70,0.5)) drop-shadow(0 0 46px rgba(255,120,40,0.28));
  }
  .moon.is-day .body-moon{ opacity: 0; }
  .moon.is-day .crater{ opacity: 0; }
  .moon.is-day .body-sun{ opacity: 1; animation: sunPulse 4.5s ease-in-out infinite; transform-origin: 60px 60px; }
  .moon.is-day .sun-plasma{ opacity: .3; mix-blend-mode: overlay; }
  .moon.is-day .sun-rays{ opacity: .8; }
  .moon.is-day .sun-corona.c1{ opacity: .9; animation: coronaPulse1 4.5s ease-in-out infinite; transform-origin: 60px 60px; }
  .moon.is-day .sun-corona.c2{ opacity: .8; animation: coronaPulse2 5.5s ease-in-out infinite; transform-origin: 60px 60px; }
  .moon.is-day .sun-corona.c3{ opacity: .6; animation: coronaPulse3 6.5s ease-in-out infinite; transform-origin: 60px 60px; }

  @keyframes sunPulse{
    0%, 100%{ transform: scale(1); }
    50%{ transform: scale(1.025); }
  }
  @keyframes coronaPulse1{
    0%, 100%{ transform: scale(1); opacity: .8; }
    50%{ transform: scale(1.08); opacity: .95; }
  }
  @keyframes coronaPulse2{
    0%, 100%{ transform: scale(1); opacity: .65; }
    50%{ transform: scale(1.15); opacity: .85; }
  }
  @keyframes coronaPulse3{
    0%, 100%{ transform: scale(1); opacity: .45; }
    50%{ transform: scale(1.22); opacity: .65; }
  }

  /* ---- day mode: whole scene flips to daytime ---- */
  .hero.day-mode{
    background: linear-gradient(165deg, #ffd9a0 0%, #ff9d6b 30%, #6f8fc9 70%, #33507f 100%);
    transition: background 1.4s ease;
  }
  .hero:not(.day-mode){ transition: background 1.4s ease; }

  .hero.day-mode .starfield,
  .hero.day-mode .shooting-star,
  .hero.day-mode .galaxy-swirl,
  .hero.day-mode .nebula{
    opacity: 0;
  }
  .starfield, .shooting-star, .galaxy-swirl, .nebula{
    transition: opacity 1.2s ease;
  }

  .hero.day-mode .hero-blob.b1{
    background: radial-gradient(circle, rgba(255,214,140,0.45), transparent 70%);
  }
  .hero.day-mode .hero-blob.b2{
    background: radial-gradient(circle, rgba(255,140,110,0.35), transparent 70%);
  }
  .hero-blob{ transition: background 1.2s ease; }

  .hero.day-mode .hero-glow{
    background:
      radial-gradient(circle at 78% 30%, rgba(255,214,140,0.22), transparent 42%),
      radial-gradient(circle at 22% 75%, rgba(255,150,110,0.18), transparent 40%);
  }
  .hero-glow{ transition: background 1.2s ease; }

  .hero-glow{
    position:absolute;
    inset: -10%;
    z-index: 0;
    pointer-events:none;
    background:
      radial-gradient(circle at 78% 30%, rgba(34,211,238,0.14), transparent 42%),
      radial-gradient(circle at 22% 75%, rgba(43,111,224,0.12), transparent 40%);
    animation: glowDrift 14s ease-in-out infinite;
  }
  @keyframes glowDrift{
    0%, 100%{ transform: translate(0,0) scale(1); }
    33%{ transform: translate(-2%, 3%) scale(1.06); }
    66%{ transform: translate(2%, -2%) scale(0.98); }
  }

  .hero-blob{
    position:absolute;
    border-radius:50%;
    filter: blur(70px);
    z-index: 0;
    pointer-events:none;
    opacity: .55;
  }
  .hero-blob.b1{
    width: 380px; height: 380px;
    top: 8%;
    right: 8%;
    background: radial-gradient(circle, rgba(34,211,238,0.35), transparent 70%);
    animation: blobFloat1 12s ease-in-out infinite;
  }
  .hero-blob.b2{
    width: 320px; height: 320px;
    bottom: 4%;
    left: 6%;
    background: radial-gradient(circle, rgba(43,111,224,0.3), transparent 70%);
    animation: blobFloat2 16s ease-in-out infinite;
  }
  @keyframes blobFloat1{
    0%, 100%{ transform: translate(0,0); }
    50%{ transform: translate(-30px, 40px); }
  }
  @keyframes blobFloat2{
    0%, 100%{ transform: translate(0,0); }
    50%{ transform: translate(35px, -30px); }
  }

  .hero-rings{
    position:absolute;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    width: 780px;
    height: 780px;
    border-radius: 50%;
    border: 1px solid rgba(34,211,238,0.08);
    z-index: 0;
  }
  .hero-rings::before,
  .hero-rings::after{
    content:'';
    position:absolute;
    inset: 60px;
    border-radius:50%;
    border: 1px solid rgba(34,211,238,0.06);
  }
  .hero-rings::after{ inset: 130px; }

  .hero-grid{
    display:flex;
    justify-content:center;
    max-width: 1300px;
    margin: 0 auto;
    width:100%;
    position:relative;
    z-index:2;
  }

  .hero-copy{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    max-width: 780px;
  }

  .kicker{
    font-family: var(--font-mono);
    color: var(--cyan);
    letter-spacing: .35em;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    animation: expandLetters .9s ease .2s both;
  }

  .hero-copy h1{
    font-size: clamp(48px, 6vw, 92px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -1px;
    margin-bottom: 18px;
    animation: revealBlur .9s cubic-bezier(.16,1,.3,1) .32s both;
  }

  .role-line{
    font-family: var(--font-mono);
    color: var(--muted);
    font-size: 20px;
    margin-bottom: 22px;
    animation: fadeUp .7s ease .5s both;
  }
  .role-line .type{
    color: var(--cyan-soft);
    border-right: 2px solid var(--cyan);
    padding-right: 4px;
  }

  .tagline{
    color: var(--muted);
    font-size: 19px;
    max-width: 520px;
    margin-bottom: 40px;
    animation: fadeUp .7s ease .6s both;
  }

  .cta-row{ display:flex; gap:18px; flex-wrap:wrap; align-items:center; justify-content:center; animation: popIn .7s cubic-bezier(.2,.8,.2,1) .7s both; }

  .btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding: 15px 26px;
    border-radius: 30px;
    font-weight:700;
    font-size:15px;
    text-decoration:none;
    cursor:pointer;
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  }
  .btn:hover{ transform: translateY(-3px); }

  .btn-primary{
    background: var(--cyan);
    color: #041318;
    box-shadow: 0 8px 30px rgba(34,211,238,.35);
  }
  .btn-primary:hover{ box-shadow: 0 12px 36px rgba(34,211,238,.5); }

  .btn-ghost{
    background: transparent;
    border-color: rgba(34,211,238,0.4);
    color: var(--cyan-soft);
  }
  .btn-ghost:hover{ background: rgba(34,211,238,0.08); }

  @media (max-width: 900px){
    .socials{ display:none; }
    .menu-toggle{ display:flex; }

    .hero-grid{
      display:flex;
      flex-direction:column;
      align-items:center;
      text-align:center;
    }
    .hero-copy{
      display:flex;
      flex-direction:column;
      align-items:center;
      order:1;
      width:100%;
    }
    .hero-copy .tagline, .cta-row{ margin-left:auto; margin-right:auto; }
    .cta-row{
      justify-content:center;
      flex-direction:column;
      width:100%;
      max-width: 340px;
    }
    .cta-row .btn{ width:100%; justify-content:center; }

    header{ padding: 16px 20px; }
    .hero{ padding: 110px 20px 50px; }
    .hero-rings{ display:none; }
    .hero-blob{ opacity:.35; filter: blur(50px); }
    .moon{ width: 60px; height: 60px; top: 8%; right: 8%; }
    .shooting-star::before{ width: 60px; }
    .galaxy-swirl{ width: 900px; height: 900px; margin-left: -450px; margin-top: -450px; opacity: .35; }
    .nebula{ filter: blur(60px); opacity: .8; }
    .nebula.n1{ width: 280px; height: 220px; }
    .nebula.n2{ width: 260px; height: 260px; }
    .nebula.n3{ width: 220px; height: 180px; }
  }

  @media (prefers-reduced-motion: reduce){
    *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  }
