:root {
  --midnight: #101728;
  --indigo: #273257;
  --cream: #f4ead8;
  --paper: #fbf8f2;
  --cyan: #91d9e8;
  --coral: #ff8e86;
  --ink: #131724;
  --display: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --body: "Zen Maru Gothic", "Yu Gothic", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 32px 80px rgba(3, 10, 22, .32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding-bottom: 84px; background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.8; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; height: 88px; padding: 0 clamp(22px, 4vw, 64px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; font-weight: 700; letter-spacing: -.02em; }
.brand-orbit { width: 34px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.62); border-radius: 50%; background: linear-gradient(145deg, #bcecf5, #63c4d9); box-shadow: 0 0 0 4px rgba(145,217,232,.1), 0 7px 18px rgba(39,160,188,.22); }
.brand-face { font-family: var(--body); font-size: 14px; font-weight: 800; line-height: 1; color: #fff; }
.site-header nav { display: flex; gap: 32px; font-size: 13px; }
.site-header nav a { opacity: .78; transition: opacity .2s ease; }
.site-header nav a:hover, .site-header nav a:focus-visible { opacity: 1; }

.hero { position: relative; min-height: 780px; height: min(900px, 100svh); overflow: hidden; color: #fff; background: var(--midnight); }
.hero-backdrop, .hero-shade { position: absolute; inset: 0; }
.hero-backdrop { background: url("assets/hero-night-desk.png") center/cover no-repeat; transform: scale(1.02); animation: heroBackdrop 1.4s var(--ease-out) both; }
.hero-shade { background: linear-gradient(90deg, rgba(4,12,25,.92) 0%, rgba(5,14,29,.67) 46%, rgba(6,15,29,.22) 78%, rgba(5,13,25,.48) 100%), linear-gradient(0deg, rgba(6,13,25,.7), transparent 42%); }
.hero-inner { position: relative; z-index: 2; max-width: 1380px; height: 100%; margin: 0 auto; padding: 125px clamp(24px, 4vw, 62px) 70px; display: grid; grid-template-columns: minmax(500px, .96fr) minmax(520px, 1.04fr); align-items: center; gap: clamp(34px, 4vw, 62px); }
.hero-copy { align-self: center; max-width: 620px; animation: heroCopy .8s var(--ease-out) .08s both; }
.eyebrow, .section-kicker { margin: 0 0 24px; font-size: 11px; font-weight: 700; letter-spacing: .19em; }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(54px, 4.55vw, 72px); font-weight: 600; line-height: 1.34; letter-spacing: -.04em; }
.hero h1 span { display: block; white-space: nowrap; }
.hero-lead { max-width: 520px; margin: 26px 0 0; color: rgba(255,255,255,.82); font-size: 17px; line-height: 2; }
.hero-wordmark { margin: 20px 0 12px; color: var(--cyan); font-family: var(--display); font-size: 24px; }
.hero-downloads { display: flex; flex-wrap: wrap; gap: 12px; }
.download-btn { min-width: 232px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 13px 20px; border-radius: 14px; border: 1px solid transparent; font-weight: 700; line-height: 1.35; transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s ease; }
.download-btn:hover { transform: translateY(-2px); }
.download-btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.download-btn small { display: block; margin-bottom: 2px; font-family: var(--mono); font-size: 9px; font-style: italic; font-weight: 400; letter-spacing: .12em; }
.download-btn--light { color: var(--midnight); background: var(--cream); box-shadow: 0 12px 28px rgba(0,0,0,.22); }
.download-btn--ghost { border-color: rgba(255,255,255,.45); background: rgba(13,23,43,.5); backdrop-filter: blur(12px); }
.os-mark { width: 28px; height: 28px; display: grid; place-items: center; font-size: 18px; }
.os-mark--windows { font-size: 25px; }
.os-mark svg, .download-dock-icon svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.hero-time { display: flex; align-items: center; gap: 18px; margin: 0; color: rgba(255,255,255,.58); font-size: 11px; }
.hero-time em, .scene-time em, .image-caption em { color: var(--coral); font-family: var(--mono); font-style: italic; }

.app-shell { position: relative; align-self: center; max-width: 720px; width: 100%; border-radius: 10px; color: #1d2631; background: rgba(249,251,252,.98); box-shadow: var(--shadow); overflow: hidden; animation: appEnter .92s var(--ease-out) .22s both; }
.app-titlebar { height: 42px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; color: #171b22; background: linear-gradient(#f7f8fa, #e8ebef); font-size: 13px; }
.app-content { position: relative; aspect-ratio: 1.24; overflow: hidden; background: #fff; }
.app-content > img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.app-bubble { position: absolute; z-index: 3; top: 12%; right: 4%; max-width: 39%; padding: 14px 20px; border-radius: 20px 20px 4px 20px; background: rgba(218,241,247,.93); box-shadow: 0 10px 22px rgba(29,79,94,.1); font-size: clamp(13px, 1.25vw, 17px); transition: opacity .24s ease, transform .24s var(--ease-out); }
.app-bubble.is-changing { opacity: 0; transform: translateY(7px); }
.chat-form { position: absolute; z-index: 4; left: 3%; right: 3%; bottom: 3.4%; min-height: 68px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 8px 9px 8px 18px; border: 2px solid #8ed6e8; border-radius: 19px; background: rgba(255,255,255,.98); box-shadow: 0 10px 28px rgba(23,64,84,.12); }
.chat-form input { min-width: 0; border: 0; outline: 0; color: #334251; background: transparent; font-size: 14px; }
.voice-bars { height: 32px; display: flex; align-items: center; gap: 3px; padding: 0 7px; }
.voice-bars i { width: 2px; height: 8px; border-radius: 4px; background: #5fc1d9; animation: voice 1s ease-in-out infinite; }
.voice-bars i:nth-child(2), .voice-bars i:nth-child(4) { animation-delay: .12s; }
.voice-bars i:nth-child(3) { animation-delay: .22s; }
.chat-form button { width: 45px; height: 45px; border: 0; border-radius: 12px; color: #fff; background: #77c9dc; cursor: pointer; transition: transform .18s var(--ease-out), background .18s ease; }
.chat-form button:hover { transform: translateY(-2px); background: #55bad2; }
.scenario-switch { position: absolute; z-index: 6; right: 12px; bottom: 12px; display: flex; gap: 5px; padding: 4px; border-radius: 999px; background: rgba(7,16,31,.74); backdrop-filter: blur(10px); transform: translateY(58px); }
.scenario-switch button { min-width: 46px; padding: 6px 10px; border: 0; border-radius: 999px; color: rgba(255,255,255,.7); background: transparent; font-size: 11px; cursor: pointer; }
.scenario-switch button.is-active { color: var(--midnight); background: var(--cream); }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 24px; display: grid; justify-items: center; gap: 8px; color: rgba(255,255,255,.54); font-family: var(--mono); font-size: 8px; letter-spacing: .18em; transform: translateX(-50%); }
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(#fff, transparent); }

.section-cream { background: var(--paper); }
.scenes { padding: 118px clamp(22px, 4vw, 64px) 130px; }
.section-heading { max-width: 860px; margin: 0 auto 62px; text-align: center; }
.section-heading h2, .faq h2, .download h2 { margin: 0; font-family: var(--display); font-size: clamp(38px, 4.2vw, 64px); font-weight: 600; line-height: 1.35; letter-spacing: -.03em; }
.section-heading > p:last-child { max-width: 640px; margin: 17px auto 0; color: #5d5f65; }
.section-kicker { color: #74808d; }
.section-kicker--coral { color: #c2635f; }
.scene-grid { max-width: 1380px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.scene-card { min-width: 0; }
.scene-card figure { position: relative; margin: 0; aspect-ratio: .82; overflow: hidden; border-radius: 4px; background: #151b27; box-shadow: 0 24px 50px rgba(24,30,45,.14); }
.scene-card img { height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.scene-card:hover img { transform: scale(1.035); }
.scene-copy { padding: 22px 4px 0; }
.scene-time { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 7px; color: #8a8b8d; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.scene-copy h3 { margin: 0 0 12px; font-family: var(--display); font-size: 20px; }
.scene-copy blockquote { margin: 0; padding-left: 13px; border-left: 1px solid var(--coral); color: #555861; font-size: 13px; line-height: 1.8; }

.how { padding: 140px clamp(22px, 6vw, 92px); background: #f6f2ea; }
.how-inner { max-width: 1260px; margin: 0 auto; display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(54px, 8vw, 120px); align-items: center; }
.how-image { position: relative; }
.how-image img { height: min(640px, 66vw); max-height: 640px; object-fit: cover; border-radius: 3px; box-shadow: 0 35px 70px rgba(25,27,35,.17); }
.image-caption { position: absolute; right: -28px; bottom: 32px; width: min(330px, 70%); padding: 20px 24px; display: flex; justify-content: space-between; gap: 20px; color: var(--midnight); background: rgba(244,234,216,.94); box-shadow: 0 18px 40px rgba(20,24,34,.18); backdrop-filter: blur(10px); }
.how-copy h2, .boundaries h2 { margin: 0; font-family: var(--display); font-size: clamp(42px, 3.8vw, 58px); font-weight: 600; line-height: 1.38; letter-spacing: -.035em; }
.how-copy h2 span, .boundaries h2 span { display: block; }
.boundaries h2 span { white-space: nowrap; }
.how-copy > p:not(.section-kicker) { margin: 30px 0 42px; color: #53565d; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid #cdc5b8; }
.steps li { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid #d8d0c3; }
.steps li > span { color: var(--coral); font-family: var(--mono); font-style: italic; }
.steps strong, .steps small { display: block; }
.steps small { margin-top: 3px; color: #77746f; }

.boundaries { position: relative; min-height: 780px; overflow: hidden; color: #fff; background: var(--midnight); }
.boundaries-bg, .boundaries-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.boundaries-bg { object-fit: cover; }
.boundaries-overlay { background: linear-gradient(90deg, rgba(7,15,29,.95), rgba(7,15,29,.72) 54%, rgba(7,15,29,.48)), linear-gradient(0deg, rgba(5,13,25,.82), transparent 60%); }
.boundaries-inner { position: relative; z-index: 2; max-width: 1280px; min-height: 780px; margin: 0 auto; padding: 120px clamp(24px, 5vw, 76px); display: grid; grid-template-columns: 1fr .9fr; align-items: end; gap: 100px; }
.boundaries-copy > p:last-child { max-width: 560px; margin: 28px 0 0; color: rgba(255,255,255,.73); font-size: 16px; }
.boundary-list { border-top: 1px solid rgba(255,255,255,.28); }
.boundary-list > div { display: grid; grid-template-columns: 42px 1fr; column-gap: 16px; padding: 23px 0; border-bottom: 1px solid rgba(255,255,255,.23); }
.boundary-list span { grid-row: 1 / span 2; color: var(--coral); font-family: var(--mono); font-style: italic; }
.boundary-list strong { font-family: var(--display); font-size: 18px; font-weight: 600; }
.boundary-list small { color: rgba(255,255,255,.62); }

.download { min-height: 680px; display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); }
.download-art { min-height: 620px; overflow: hidden; }
.download-art img { height: 100%; object-fit: cover; }
.download-copy { padding: 100px clamp(34px, 7vw, 110px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.download-copy > p:not(.section-kicker) { margin: 22px 0 34px; color: #606169; }
.download-actions { display: grid; gap: 11px; width: 100%; max-width: 410px; }
.download-btn--cyan { color: #10202f; background: var(--cyan); box-shadow: 0 15px 32px rgba(77,164,186,.2); }
.download-btn--outline { color: var(--midnight); border-color: #7baebb; background: transparent; }

.faq { padding: 120px clamp(24px, 7vw, 108px); display: grid; grid-template-columns: .72fr 1.28fr; gap: 90px; }
.faq-heading > p:last-child { color: #666970; }
.faq-list details { border-top: 1px solid #c9c1b5; }
.faq-list details:last-child { border-bottom: 1px solid #c9c1b5; }
.faq-list summary { padding: 22px 44px 22px 0; cursor: pointer; font-weight: 700; list-style: none; position: relative; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 20px; color: var(--coral); font-family: var(--mono); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -4px 0 22px; color: #666970; }

footer { padding: 42px clamp(24px, 5vw, 72px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; color: rgba(255,255,255,.68); background: #0a1120; font-size: 11px; }
footer .brand { color: #fff; }
footer p { margin: 0; }
footer nav { justify-self: end; display: flex; flex-wrap: wrap; gap: 18px; }

.download-dock { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; padding: 10px 18px; border-top: 1px solid rgba(255,255,255,.16); background: rgba(7,15,29,.9); box-shadow: 0 -18px 42px rgba(4,10,22,.24); backdrop-filter: blur(18px); }
.download-dock-inner { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.download-dock-btn { min-height: 62px; padding: 8px 18px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid rgba(255,255,255,.45); border-radius: 13px; color: #fff; background: rgba(255,255,255,.06); transition: transform .2s var(--ease-out), background .2s ease; }
.download-dock-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); }
.download-dock-btn--mac { border-color: transparent; color: var(--midnight); background: var(--cream); }
.download-dock-btn--mac:hover { background: #fffaf0; }
.download-dock-btn small, .download-dock-btn strong { display: block; line-height: 1.25; }
.download-dock-btn small { margin-bottom: 3px; font-family: var(--mono); font-size: 8px; font-style: italic; font-weight: 400; letter-spacing: .1em; }
.download-dock-btn strong { font-size: 13px; }
.download-dock-icon { width: 24px; text-align: center; font-size: 15px; }
.download-dock-icon--windows { font-size: 22px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .72s var(--ease-out), transform .72s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.scene-card:nth-child(2) { transition-delay: .08s; }
.scene-card:nth-child(3) { transition-delay: .16s; }
.scene-card:nth-child(4) { transition-delay: .24s; }

@keyframes heroBackdrop { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1.02); } }
@keyframes heroCopy { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes appEnter { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes voice { 0%, 100% { height: 7px; opacity: .55; } 50% { height: 24px; opacity: 1; } }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { height: auto; min-height: 1040px; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 132px; }
  .hero-copy { max-width: 680px; }
  .hero h1 span { white-space: normal; }
  .app-shell { max-width: 760px; justify-self: center; }
  .scene-grid { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .scene-card figure { aspect-ratio: 1.25; }
  .how-inner, .boundaries-inner { grid-template-columns: 1fr; }
  .how-image img { height: 560px; }
  .boundaries-inner { gap: 50px; align-content: end; }
  .faq { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  body { padding-bottom: 108px; }
  .site-header { height: 72px; padding-inline: 18px; }
  .hero { height: auto; min-height: 0; }
  .hero-backdrop { background-position: 58% center; }
  .hero-inner { height: auto; padding: 82px 14px 28px; align-content: start; gap: 14px; }
  .hero-copy { width: 100%; max-width: 520px; margin: 0 auto; }
  .eyebrow { margin-bottom: 8px; font-size: 8px; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 44px); line-height: 1.18; }
  .hero-lead { margin-top: 10px; font-size: 13px; line-height: 1.65; }
  .hero-wordmark, .hero-time { display: none; }
  .hero-downloads { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .download-btn { width: 100%; min-width: 0; gap: 5px; padding: 8px 5px; border-radius: 10px; font-size: 10px; }
  .download-btn small { font-size: 7px; }
  .os-mark { width: 18px; height: 18px; font-size: 13px; }
  .os-mark--windows { font-size: 17px; }
  .app-shell { width: min(100%, 370px); margin: 0 auto; border-radius: 8px; }
  .app-titlebar { height: 32px; font-size: 10px; }
  .app-bubble { top: 10%; padding: 9px 12px; font-size: 10px; }
  .chat-form { min-height: 52px; grid-template-columns: 1fr auto; border-radius: 14px; padding-left: 12px; }
  .voice-bars { display: none; }
  .chat-form button { width: 36px; height: 36px; }
  .scenario-switch { display: none; }
  .scroll-cue { display: none; }
  .scenes, .how, .faq { padding: 86px 20px; }
  .scene-grid { grid-template-columns: 1fr; }
  .scene-card figure { aspect-ratio: 1.22; }
  .how-inner { gap: 50px; }
  .how-image img { height: 430px; }
  .image-caption { right: 12px; bottom: 12px; }
  .boundaries-inner { min-height: 760px; padding: 86px 22px; }
  .how-copy h2 { font-size: 43px; }
  .boundaries h2 { font-size: 34px; letter-spacing: -.055em; }
  .boundaries h2 span { white-space: nowrap; }
  .download { grid-template-columns: 1fr; }
  .download-art { min-height: 380px; }
  .download-copy { padding: 76px 22px 88px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer .brand, footer nav { justify-self: center; }
  .download-dock { padding: 6px 8px; }
  .download-dock-inner { grid-template-columns: 1fr 1fr; gap: 5px 6px; }
  .download-dock-btn { min-height: 52px; gap: 5px; padding: 5px 4px; border-radius: 10px; }
  .download-dock-btn small { margin-bottom: 2px; font-size: 6px; }
  .download-dock-btn strong { font-size: 10px; }
  .download-dock-icon { width: 16px; font-size: 10px; }
  .download-dock-icon--windows { font-size: 16px; }
}

@media (max-width: 720px) and (max-height: 700px) {
  .hero-inner { padding-top: 76px; gap: 8px; }
  .hero .eyebrow { display: none; }
  .hero h1 { font-size: 32px; line-height: 1.12; }
  .hero-lead { margin-top: 6px; font-size: 11px; line-height: 1.45; }
  .hero-downloads { margin-top: 8px; }
  .hero-downloads .download-btn { padding-block: 6px; }
  .app-shell { width: min(88%, 330px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
