  :root {
    --bg: #120E1F; --surface: #1C1730; --border: #3A3254;
    --text: #F3F0FA; --text-2: #ADA6C4; --violet: #6C3CE9; --violet-text: #B9A3FF;
    --cyan: #2EC5F0; --blue: #3D5AFE; --pink: #F2459C; --amber: #FFB547;
    --display: 'Manrope', system-ui, sans-serif;
    --pad: clamp(20px, 5vw, 56px);
  }
  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html, body { margin: 0; min-height: 100%; }
  body {
    background: var(--bg); color: var(--text);
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    display: flex; flex-direction: column; min-height: 100vh;
  }
  a { color: var(--violet-text); }
  a:hover { color: #FFFFFF; }

  .wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

  header { padding-top: 28px; padding-bottom: 28px; display: flex; align-items: center; gap: 12px; }
  .wordmark { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }

  main {
    flex: 1; padding-top: clamp(32px, 6vh, 80px); padding-bottom: clamp(32px, 6vh, 80px);
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center;
  }
  h1 {
    margin: 0; font-family: var(--display); font-weight: 800;
    font-size: clamp(42px, 6.6vw, 80px); line-height: 1.02; letter-spacing: -0.03em;
  }
  h1 .accent { color: var(--violet-text); }
  .lede { margin: 20px 0 0; max-width: 38ch; font-size: clamp(15px, 1.25vw, 17px); line-height: 1.6; color: var(--text-2); }

  .features { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
  .features li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; line-height: 1.4; }
  .features .bar { width: 24px; height: 6px; border-radius: 3px; flex: none; }

  .notify { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }

  /* button: squarer corners; on hover deep wedge tones fade in and drift (opacity + position only, so it stays smooth) */
  .button {
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 54px; padding: 0 22px 0 24px; border-radius: 14px;
    background: var(--violet); color: #FFFFFF; text-decoration: none;
    font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: 0.005em; border: 0; cursor: pointer;
    box-shadow: 0 12px 32px rgba(108, 60, 233, 0.4);
    transform: translateZ(0); will-change: transform;
    transition: transform .4s cubic-bezier(.22, 1, .36, 1);
  }
  .button::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg, #3D5AFE, #6C3CE9, #C2337E, #6C3CE9, #3D5AFE);
    background-size: 250% 100%; background-position: 0% 50%;
    opacity: 0;
    transition: opacity .45s cubic-bezier(.22, 1, .36, 1), background-position 1.4s cubic-bezier(.22, 1, .36, 1);
  }
  .button .arrow { transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
  .button:hover { color: #FFFFFF; transform: translateY(-2px); }
  .button:hover::before { opacity: 1; background-position: 60% 50%; }
  .button:hover .arrow { transform: translateX(4px); }
  .button:active { transform: translateY(0) scale(.98); transition-duration: .12s; }
  .button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
  .note { font-size: 13px; color: var(--text-2); }

  /* sign-up dialog */
  dialog.notify-dialog {
    width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border); border-radius: 22px;
    background: var(--surface); color: var(--text); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  }
  dialog.notify-dialog::backdrop { background: rgba(8, 6, 14, 0.66); backdrop-filter: blur(4px); }
  dialog.notify-dialog[open] { animation: pop .35s cubic-bezier(.22, 1, .36, 1); }
  dialog.notify-dialog[open]::backdrop { animation: fade .35s ease; }
  @keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .dlg { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
  .dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
  .dlg h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
  .dlg p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
  .close {
    width: 40px; height: 40px; flex: none; margin: -8px -10px 0 0; border: 0; border-radius: 12px; background: transparent;
    color: var(--text-2); display: flex; align-items: center; justify-content: center; cursor: pointer;
  }
  .close:hover { background: rgba(255,255,255,0.06); color: var(--text); }
  .close:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
  .field { display: flex; flex-direction: column; gap: 7px; }
  .field label { font-size: 13px; font-weight: 600; color: var(--text); }
  .field input {
    height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg);
    color: var(--text); font: 500 15px var(--display);
    transition: border-color .2s ease, box-shadow .2s ease;
  }
  .field input::placeholder { color: #756D8C; }
  .field input:focus { outline: none; border-color: var(--violet-text); box-shadow: 0 0 0 4px rgba(108, 60, 233, 0.28); }
  .field input[aria-invalid="true"] { border-color: #FF6B73; }
  .dlg .error { min-height: 18px; margin: -4px 0 0; font-size: 13px; color: #FF6B73; }
  .dlg .button { width: 100%; }
  .fine { margin: 0; font-size: 12px; color: #9890AE; text-align: center; }
  .done { text-align: center; align-items: center; padding: 40px 28px 32px; }
  .done .check { width: 56px; height: 56px; border-radius: 16px; background: #1F1240; display: flex; align-items: center; justify-content: center; }

  /* the mark */
  .stage { display: flex; justify-content: flex-end; }
  .icon {
    width: min(100%, 360px); aspect-ratio: 1; border-radius: 23%;
    background: #1F1240; box-shadow: 0 40px 90px rgba(108, 60, 233, 0.35), inset 0 0 0 1px rgba(255,255,255,0.06);
    animation: float 6s ease-in-out 1.4s infinite;
  }
  .icon svg { width: 100%; height: 100%; display: block; }
  .icon path { stroke-width: 7; stroke-linecap: round; stroke-dasharray: 44; stroke-dashoffset: 44; animation: draw .7s cubic-bezier(.2,.8,.2,1) forwards; }
  .icon path:nth-child(1) { animation-delay: .15s; }
  .icon path:nth-child(2) { animation-delay: .25s; }
  .icon path:nth-child(3) { animation-delay: .35s; }
  .icon path:nth-child(4) { animation-delay: .45s; }
  .icon path:nth-child(5) { animation-delay: .55s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

  /* staggered entrance */
  .reveal { opacity: 0; transform: translateY(12px); animation: rise .6s cubic-bezier(.2,.8,.2,1) forwards; }
  .d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; } .d4 { animation-delay: .35s; }
  @keyframes rise { to { opacity: 1; transform: none; } }

  @media (prefers-reduced-motion: reduce) {
    .icon, .icon path, .reveal { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
    .button, .button::before, .button .arrow { transition: none; }
    dialog.notify-dialog[open], dialog.notify-dialog[open]::backdrop { animation: none; }
  }

  footer .wrap { padding-top: 24px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-2); }

  /* short laptop screens: scale down so the block stays centered and clear of the footer */
  @media (min-width: 861px) and (max-height: 820px) {
    header { padding-top: 22px; padding-bottom: 22px; }
    h1 { font-size: clamp(40px, 8.4vh, 68px); }
    .lede { margin-top: 16px; }
    .features { margin-top: 22px; gap: 10px; }
    .notify { margin-top: 28px; }
    .icon { width: min(100%, 44vh); }
  }

  /* tablet: one column, icon beside nothing, kept modest */
  @media (max-width: 860px) {
    main { grid-template-columns: 1fr; gap: 28px; padding-top: 12px; align-content: start; }
    .stage { order: -1; justify-content: flex-start; }
    .icon { width: 120px; box-shadow: 0 20px 50px rgba(108, 60, 233, 0.35), inset 0 0 0 1px rgba(255,255,255,0.06); }
    .lede { max-width: 46ch; }
  }
  /* phone */
  @media (max-width: 560px) {
    header { padding-top: 20px; padding-bottom: 12px; }
    .wordmark { font-size: 22px; }
    main { gap: 22px; padding-bottom: 48px; }
    .icon { width: 88px; }
    h1 { font-size: clamp(40px, 12vw, 52px); }
    .lede { margin-top: 14px; font-size: 15px; }
    .features { margin-top: 24px; gap: 12px; }
    .features li { font-size: 14px; align-items: flex-start; }
    .features .bar { margin-top: 7px; }
    .notify { margin-top: 32px; flex-direction: column; align-items: stretch; }
    .button { width: 100%; }
    .note { text-align: center; }
    footer .wrap { flex-direction: column; align-items: center; text-align: center; }
    /* phone: everything centered */
    header { justify-content: center; }
    main { text-align: center; justify-items: center; }
    .stage { justify-content: center; }
    .lede { margin-left: auto; margin-right: auto; }
    .features { justify-content: center; text-align: left; }
  }

  .bar-cyan { background: var(--cyan); }
  .bar-violet { background: var(--violet); }
  .bar-pink { background: var(--pink); }
  .footer-links { display: inline-flex; gap: 20px; }
  #done-close { margin-top: 8px; }
  .honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
  .brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
  .document { display: block; max-width: 680px; text-align: left; }
  .document h1 { font-size: clamp(36px, 5vw, 48px); line-height: 1.15; }
  .document h2 { margin: 28px 0 8px; font-size: 20px; }
  .document p { margin: 12px 0; color: var(--text-2); line-height: 1.7; }
  .document .button { margin-top: 20px; }
