:root {
  color-scheme: dark;
  --primary: #0061ff;
  --secondary: #60efff;
  --soft: #f8fcff;
  --ink: #172b35;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: #fff; font-family: "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; transform: translateY(-160%); padding: 12px 18px; border-radius: 8px; background: var(--soft); color: var(--ink); }
.skip-link:focus { transform: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--secondary); outline-offset: 5px; }
.hero { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { z-index: -2; object-fit: cover; object-position: 50% 35%; }
.hero-content { width: min(calc(100% - 48px), 1080px); padding: calc(clamp(96px, 19svh, 190px) - 24px) 0 120px; text-align: center; }
.hero h1 { margin: 0 0 40px; font-size: clamp(56px, 5.7vw, 84px); font-weight: 400; line-height: 1.16; letter-spacing: -.045em; text-shadow: 0 2px 24px rgba(0, 0, 0, .12); }
.hero-title-line { display: block; width: max-content; margin-inline: auto; white-space: nowrap; }
.hero-title-line:first-child {
  font-weight: 800;
  text-shadow: 0 0 1.5px rgba(255, 255, 255, .32), 0 2px 12px rgba(7, 35, 61, .16);
}
.hero-title-line:last-child { font-size: .64em; font-weight: 400; letter-spacing: -.045em; }
.hero-title-line.handwriting-line { width: 5.4em; max-width: 100%; margin-top: .08em; font-size: 1em; line-height: 1; }
.hero-handwriting { display: block; width: 100%; height: auto; overflow: visible; }
.account-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-width: 152px; min-height: 50px; padding: 13px 24px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.button:disabled { opacity: 1; cursor: not-allowed; }
.button-primary { background: var(--soft); color: var(--ink); border-color: var(--soft); box-shadow: 0 3px 20px rgba(0, 0, 0, .06); }
.button-secondary { background: rgba(10, 23, 31, .12); border-color: rgba(255, 255, 255, .65); color: #fff; backdrop-filter: blur(4px); }
.coming-soon-dialog { width: min(calc(100% - 40px), 320px); margin: auto; padding: 36px 28px 28px; border: 0; border-radius: 16px; background: var(--soft); color: var(--ink); text-align: center; box-shadow: 0 16px 60px rgba(10, 23, 31, .25); }
.coming-soon-dialog::backdrop { background: transparent; }
.coming-soon-dialog h2 { margin: 0 0 24px; font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.dialog-close { background: var(--ink); color: var(--soft); }
.dialog-close:focus-visible { outline-color: var(--primary); }
.motion-toggle { position: absolute; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .32); border-radius: 50%; background: rgba(10, 23, 31, .2); color: #fff; backdrop-filter: blur(6px); cursor: pointer; }
.motion-toggle:hover { background: rgba(10, 23, 31, .4); }
.motion-toggle svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.motion-toggle .pause-icon { display: none; }
.motion-toggle[data-playing="true"] .pause-icon { display: block; }
.motion-toggle[data-playing="true"] .play-icon { display: none; }
@media (max-width: 640px) {
  .hero-video { object-position: 51% 35%; }
  .hero-content { width: calc(100% - 40px); padding-top: 136px; padding-bottom: 120px; }
  .hero h1 { font-size: clamp(28px, 14vw, 56px); margin-bottom: 34px; }
  .account-actions { gap: 10px; }
  .button { min-width: 134px; padding: 13px 18px; }
  .motion-toggle { right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); }
}
@media (max-height: 520px) and (min-width: 641px) {
  .hero-content { padding-block: 60px 84px; }
  .hero h1 { font-size: 46px; margin-bottom: 30px; }
}
