  :root {
    --ink: #08080b;
    --ink-2: #0e0e13;
    --ink-3: #15151c;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --paper: #f2f1ec;
    --muted: rgba(242, 241, 236, 0.55);
    --acid: #c6ff3f;
    --acid-dim: rgba(198, 255, 63, 0.14);
    --coral: #ff6a5c;
    --display: "Unbounded", sans-serif;
    --body: "Bricolage Grotesque", sans-serif;
    --mono: "Space Mono", monospace;
  }

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

  body {
    background: var(--ink);
    color: var(--paper);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  ::selection { background: var(--acid); color: var(--ink); }

  /* ---------- grain overlay ---------- */
  body::after {
    content: "";
    position: fixed;
    inset: -100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 8s steps(10) infinite;
  }
  @keyframes grain {
    0%, 100% { transform: translate(0,0); }
    20% { transform: translate(-2%, 3%); }
    40% { transform: translate(3%, -2%); }
    60% { transform: translate(-3%, -3%); }
    80% { transform: translate(2%, 2%); }
  }

  /* ---------- backdrop: grid + orb ---------- */
  .grid-bg {
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 0%, transparent 70%);
    opacity: 0.6;
    pointer-events: none;
  }
  .orb {
    position: fixed;
    top: -220px;
    right: -180px;
    width: 640px;
    height: 640px;
    pointer-events: none;
    filter: blur(90px);
    background:
      radial-gradient(circle at 40% 60%, rgba(198, 255, 63, 0.22), transparent 60%),
      radial-gradient(circle at 65% 35%, rgba(255, 106, 92, 0.12), transparent 55%);
    animation: orbDrift 14s ease-in-out infinite alternate;
  }
  @keyframes orbDrift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-60px, 50px) scale(1.12); }
  }

  /* ---------- giant backdrop word ---------- */
  .back-word {
    position: fixed;
    left: 50%;
    bottom: -2vw;
    transform: translateX(-50%);
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(120px, 22vw, 360px);
    line-height: 0.8;
    letter-spacing: -0.03em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(242, 241, 236, 0.07);
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
  }

  .wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 32px; position: relative; }

  /* ---------- top bar ---------- */
  .top {
    padding: 28px 0;
  }
  .logo {
    font-family: var(--display);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
    color: var(--paper);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .logo em { font-style: normal; color: var(--acid); }
  .logo-mark { width: 34px; height: 34px; }
  .logo-mark .packet { animation: packetPulse 2.4s ease-in-out infinite; transform-origin: 91px 84px; }
  @keyframes packetPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.78); opacity: 0.7; }
  }

  /* ---------- main ---------- */
  main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 48px 0 64px;
  }

  .tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--acid);
    border: 1px solid rgba(198, 255, 63, 0.3);
    background: var(--acid-dim);
    border-radius: 100px;
    padding: 8px 18px;
    opacity: 0;
    animation: riseIn 0.9s 0.1s cubic-bezier(.2,.9,.3,1) forwards;
  }
  .tag i {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--acid);
    animation: blinkDot 1.6s ease-in-out infinite;
  }
  @keyframes blinkDot {
    0%, 100% { opacity: 1; box-shadow: 0 0 12px rgba(198,255,63,0.8); }
    50% { opacity: 0.3; box-shadow: none; }
  }

  h1 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(44px, 7.5vw, 88px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin: 28px 0 22px;
  }
  h1 .line { display: block; opacity: 0; animation: riseIn 0.9s cubic-bezier(.2,.9,.3,1) forwards; }
  h1 .line:nth-child(1) { animation-delay: 0.2s; }
  h1 .line:nth-child(2) { animation-delay: 0.34s; }
  .hollow {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--paper);
  }
  @keyframes riseIn {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .sub {
    max-width: 540px;
    color: var(--muted);
    font-size: 18px;
    opacity: 0;
    animation: riseIn 0.9s 0.5s cubic-bezier(.2,.9,.3,1) forwards;
  }
  .sub strong { color: var(--paper); font-weight: 600; }

  /* ---------- terminal ---------- */
  .term {
    margin-top: 44px;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    animation: riseIn 0.9s 0.65s cubic-bezier(.2,.9,.3,1) forwards;
  }
  .term-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--muted);
  }
  .term-head b {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--ink-3);
    border: 1px solid var(--line-strong);
  }
  .term-head b:first-child { background: var(--coral); border-color: transparent; }
  .term-head span { margin-left: auto; }
  .term-body {
    padding: 20px 22px 22px;
    font-family: var(--mono);
    font-size: 13.5px;
    line-height: 2.1;
  }
  .term-body .ln { display: flex; gap: 14px; opacity: 0; animation: lineIn 0.4s forwards; white-space: nowrap; }
  .term-body .ln:nth-child(1) { animation-delay: 1.0s; }
  .term-body .ln:nth-child(2) { animation-delay: 1.7s; }
  .term-body .ln:nth-child(3) { animation-delay: 2.4s; }
  .term-body .ln:nth-child(4) { animation-delay: 3.1s; }
  .term-body .ln:nth-child(5) { animation-delay: 3.8s; }
  .term-body .ln:nth-child(6) { animation-delay: 4.5s; }
  @keyframes lineIn { from { opacity: 0; } to { opacity: 1; } }
  .ok   { color: var(--acid); }
  .wip  { color: var(--coral); }
  .dim  { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
  .zero { color: var(--acid); font-weight: 700; }
  .dots::after {
    content: "";
    animation: workDots 1.4s steps(4) infinite;
  }
  @keyframes workDots {
    0%   { content: ""; }
    25%  { content: "."; }
    50%  { content: ".."; }
    75%  { content: "..."; }
    100% { content: ""; }
  }
  .cursor {
    display: inline-block;
    width: 9px; height: 18px;
    background: var(--acid);
    vertical-align: text-bottom;
    animation: blinkCur 1s steps(1) infinite;
  }
  @keyframes blinkCur { 50% { opacity: 0; } }

  /* ---------- progress ---------- */
  .progress {
    margin-top: 30px;
    opacity: 0;
    animation: riseIn 0.9s 0.8s cubic-bezier(.2,.9,.3,1) forwards;
  }
  .progress-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
  }
  .progress-label b { color: var(--acid); font-weight: 700; }
  .bar {
    height: 10px;
    border-radius: 100px;
    background: var(--ink-3);
    border: 1px solid var(--line);
    overflow: hidden;
  }
  .bar i {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 100px;
    background:
      repeating-linear-gradient(-45deg,
        rgba(8, 8, 11, 0.25) 0 8px,
        transparent 8px 16px),
      var(--acid);
    transition: width 2.6s cubic-bezier(.2,.9,.3,1);
    animation: barSlide 1.2s linear infinite;
  }
  @keyframes barSlide {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 22.6px 0, 0 0; }
  }

  /* ---------- signup ---------- */
  .signup {
    margin-top: 38px;
    max-width: 560px;
    opacity: 0;
    animation: riseIn 0.9s 0.95s cubic-bezier(.2,.9,.3,1) forwards;
  }
  .signup-row {
    display: flex;
    gap: 6px;
    padding: 6px;
    background: var(--ink-2);
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    transition: border-color 0.25s, box-shadow 0.25s;
  }
  .signup-row:focus-within {
    border-color: var(--acid);
    box-shadow: 0 0 0 4px var(--acid-dim);
  }
  .signup-row input[type="email"] {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: none;
    padding: 0 20px;
    color: var(--paper);
    font-family: var(--mono);
    font-size: 14px;
  }
  .signup-row input::placeholder { color: var(--muted); }
  .gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
  .signup-note {
    margin-top: 12px;
    padding-left: 22px;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    color: var(--muted);
  }
  .signup-note.ok { color: var(--acid); }
  .signup-note.err { color: var(--coral); }
  .signup-done {
    display: none;
    font-family: var(--mono);
    font-size: 14px;
    line-height: 2;
    padding: 18px 24px;
    border: 1px solid rgba(198, 255, 63, 0.3);
    background: var(--acid-dim);
    border-radius: 16px;
  }
  .signup-done b { color: var(--acid); margin-right: 12px; font-weight: 700; }
  .signup.is-done .signup-row,
  .signup.is-done .signup-note { display: none; }
  .signup.is-done .signup-done { display: block; }
  @media (max-width: 560px) {
    .signup-row { flex-direction: column; border-radius: 24px; }
    .signup-row input[type="email"] { padding: 14px 20px; }
    .signup-row .btn-acid { justify-content: center; }
  }
  .btn-acid {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    padding: 15px 30px;
    border: 0;
    border-radius: 100px;
    background: var(--acid);
    color: var(--ink);
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(.2,.9,.3,1.4), box-shadow 0.25s;
  }
  .btn-acid:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 40px rgba(198, 255, 63, 0.35);
  }
  .btn-acid .arrow { transition: transform 0.25s; }
  .btn-acid:hover .arrow { transform: translateX(4px); }
  .btn-acid:disabled { opacity: 0.6; cursor: wait; transform: none; }

  /* ---------- footer ---------- */
  footer {
    border-top: 1px solid var(--line);
    padding: 22px 0;
    position: relative;
    background: rgba(8, 8, 11, 0.6);
    backdrop-filter: blur(8px);
  }
  .foot-base {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--muted);
  }
  .foot-base .status { display: inline-flex; align-items: center; gap: 8px; color: var(--acid); }
  .foot-base .status i {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--acid);
    animation: blinkDot 1.6s ease-in-out infinite;
  }

  @media (max-width: 720px) {
    .term-body { font-size: 11.5px; padding: 16px; }
    .term-body .ln { gap: 10px; }
    .sub { font-size: 16px; }
    .foot-base { justify-content: center; text-align: center; }
  }
