:root {
  color-scheme: dark;
  --bg: #0b0c0e;
  --surface: #15171b;
  --surface-2: #1d2025;
  --line: #2a2e36;
  --text: #edeff2;
  --muted: #9298a4;
  --faint: #626975;
  --green: #3fd98b;
  --green-deep: #113428;
  --amber: #e4ad3d;
  --blue: #65b9ee;
  --violet: #ae8afa;
  --coral: #ed7e87;
  --rose: #e691bd;
  --max: 1180px;
  --serif: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --jp: "Yuji Syuku", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(63, 217, 139, 0.07), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--green);
  color: #07130c;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max));
  height: 92px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 25px; letter-spacing: .09em; }
.brand img, .footer-brand img { border-radius: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.site-header nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 14px; font-weight: 650; }
.site-header nav a { transition: color .2s ease; }
.site-header nav a:hover { color: var(--text); }
.site-header .nav-support { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); }

.section-shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.hero { min-height: 760px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 58px; padding-block: 72px 90px; }
.eyebrow, .section-kicker { margin: 0 0 18px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { display: inline-block; margin-right: 10px; color: var(--green); font-family: var(--jp); font-size: 20px; letter-spacing: .05em; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { margin: 0; max-width: 730px; font-family: var(--serif); font-size: clamp(58px, 7.1vw, 104px); font-weight: 500; line-height: .95; letter-spacing: -.045em; }
h1 em { color: var(--green); font-weight: inherit; }
.hero-lead { max-width: 620px; margin: 32px 0 0; color: #b6bbc4; font-size: clamp(17px, 2vw, 21px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 22px; border-radius: 13px; font-size: 14px; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); color: #07140d; }
.button-primary:hover { background: #54e39a; }
.button-secondary { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.platform-note { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 26px; color: var(--faint); font-size: 12px; font-weight: 700; }
.platform-note i { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }

.hero-visual { position: relative; min-height: 680px; display: grid; place-items: center; }
.phone { position: relative; width: min(100%, 300px); overflow: hidden; border: 7px solid #262a31; border-radius: 43px; background: #08090a; box-shadow: 0 35px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.12); }
.phone img { width: 100%; height: auto; }
.phone-speaker { position: absolute; z-index: 2; top: 11px; left: 50%; width: 34%; height: 22px; border-radius: 999px; background: #08090a; transform: translateX(-50%); }
.phone-hero { z-index: 3; width: min(78%, 330px); transform: rotate(2deg); }
.sun-disc { position: absolute; width: 470px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 30%, #23483a, #101e19 60%, transparent 61%); opacity: .8; }
.brush-word { position: absolute; top: 60px; right: -28px; color: rgba(255,255,255,.035); font-family: var(--jp); font-size: 260px; line-height: 1; }
.floating-note { position: absolute; z-index: 5; display: grid; gap: 2px; min-width: 170px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.11); border-radius: 13px; background: rgba(21,23,27,.88); box-shadow: 0 14px 50px rgba(0,0,0,.35); backdrop-filter: blur(12px); }
.floating-note strong { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.floating-note span { color: var(--muted); font-size: 11px; }
.note-one { left: -10px; bottom: 120px; }
.note-two { right: -12px; top: 140px; }

.manifesto { padding-block: 120px; border-top: 1px solid var(--line); }
.manifesto-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 90px; align-items: start; }
.manifesto h2, .feature-heading h2, .method h2, .gallery-header h2, .closing h2 { margin: 0; font-family: var(--serif); font-size: clamp(40px, 5vw, 68px); font-weight: 500; line-height: 1.07; letter-spacing: -.035em; }
.manifesto-grid p { margin: 0 0 20px; color: #b2b7c0; font-size: 17px; }

.feature-band { padding-block: 112px; background: #101216; border-block: 1px solid var(--line); }
.feature-heading { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: end; margin-bottom: 54px; }
.feature-heading > p { margin: 0; color: var(--muted); }
.drill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.drill-card { position: relative; min-height: 250px; overflow: hidden; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.drill-card::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 170px; aspect-ratio: 1; border-radius: 50%; background: currentColor; opacity: .06; }
.drill-card .glyph { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 30px; border-radius: 15px; background: color-mix(in srgb, currentColor 16%, transparent); font-family: var(--jp); font-size: 30px; line-height: .8; }
.drill-card .split { font-size: 19px; }
.drill-card h3 { margin: 0 0 7px; color: var(--text); font-size: 20px; }
.drill-card p { margin: 0; color: var(--muted); font-size: 14px; }
.drill-card.blue { color: var(--blue); }
.drill-card.violet { color: var(--violet); }
.drill-card.coral { color: var(--coral); }
.drill-card.amber { color: #ffbd6c; }
.drill-card.rose { color: var(--rose); }
.drill-card.mint { color: #63d7c0; }

.method { display: grid; grid-template-columns: 1fr .72fr; gap: 80px; align-items: center; padding-block: 130px; }
.method-copy > p:not(.section-kicker) { max-width: 610px; color: var(--muted); font-size: 17px; }
.method-list { display: grid; gap: 0; margin: 38px 0 0; padding: 0; list-style: none; }
.method-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.method-list li:last-child { border-bottom: 1px solid var(--line); }
.method-list li > span { color: var(--green); font-family: ui-monospace, SFMono-Regular, monospace; font-size: 12px; }
.method-list div { display: grid; gap: 3px; }
.method-list strong { font-size: 16px; }
.method-list small { color: var(--muted); font-size: 13px; }
.method-phone { display: grid; place-items: center; }
.method-phone .phone { width: min(100%, 330px); transform: rotate(-1.5deg); }

.gallery-section { padding-block: 110px 120px; overflow: hidden; background: #101216; border-block: 1px solid var(--line); }
.gallery-header { display: flex; align-items: end; justify-content: space-between; margin-bottom: 46px; }
.gallery-controls { display: flex; gap: 8px; }
.gallery-controls button { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer; font-size: 20px; transition: border-color .2s ease, color .2s ease; }
.gallery-controls button:hover { border-color: var(--green); color: var(--green); }
.screenshot-rail { display: flex; align-items: flex-start; gap: 22px; width: 100%; overflow-x: auto; padding: 0 max(20px, calc((100vw - var(--max)) / 2)) 36px; scroll-snap-type: x mandatory; scrollbar-color: var(--green) var(--surface-2); scrollbar-width: thin; }
.screenshot-rail figure { flex: 0 0 min(320px, 78vw); margin: 0; scroll-snap-align: start; }
.screenshot-rail img { width: 100%; height: auto; aspect-ratio: 1242 / 2688; object-fit: contain; border: 1px solid #30343b; border-radius: 32px; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.screenshot-rail figcaption { display: flex; gap: 12px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.screenshot-rail figcaption span { color: var(--green); font-family: ui-monospace, monospace; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-block: 100px; }
.principle-card { padding: 30px; border-top: 1px solid var(--line); }
.principle-card > span { color: var(--green); font-family: ui-monospace, monospace; font-size: 11px; }
.principle-card h3 { min-height: 56px; margin: 26px 0 14px; font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.15; }
.principle-card p { margin: 0; color: var(--muted); font-size: 14px; }

.closing { position: relative; display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; min-height: 520px; padding-block: 100px; border-top: 1px solid var(--line); }
.closing-mark { color: var(--green); font-family: var(--jp); font-size: clamp(150px, 25vw, 310px); line-height: 1; opacity: .12; }
.closing > div:last-child { max-width: 690px; }
.closing p:not(.section-kicker) { max-width: 580px; margin: 24px 0 28px; color: var(--muted); }

footer { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px; width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 42px 0 36px; border-top: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand div { display: grid; }
.footer-brand strong { font-family: var(--serif); font-size: 20px; letter-spacing: .08em; }
.footer-brand span, footer > p { color: var(--faint); font-size: 12px; }
.footer-links { display: flex; gap: 24px; color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--green); }
footer > p { grid-column: 1 / -1; margin: 10px 0 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Legal pages */
.legal-page { background: var(--bg); }
.legal-header { height: 78px; }
.legal-main { width: min(calc(100% - 40px), 820px); margin: 0 auto; padding: 80px 0 120px; }
.legal-main .legal-label { color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.legal-main h1 { margin: 14px 0 10px; font-size: clamp(50px, 8vw, 76px); }
.legal-updated { margin: 0 0 56px; color: var(--faint); font-size: 13px; }
.legal-intro { margin-bottom: 48px; padding: 24px 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: #c7cbd2; font-size: 16px; }
.legal-main section { margin-top: 42px; }
.legal-main h2 { margin: 0 0 12px; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.legal-main h3 { margin: 24px 0 8px; font-size: 16px; }
.legal-main p, .legal-main li { color: #aeb3bc; font-size: 15px; }
.legal-main ul { padding-left: 22px; }
.legal-main li + li { margin-top: 8px; }
.legal-main a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.legal-contact { margin-top: 54px; padding-top: 30px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .site-header nav a:not(.nav-support) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 58px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .platform-note { justify-content: center; }
  .hero-visual { min-height: 650px; }
  .manifesto-grid, .feature-heading, .method { grid-template-columns: 1fr; }
  .manifesto-grid { gap: 34px; }
  .feature-heading { gap: 24px; }
  .feature-heading > p { max-width: 640px; }
  .drill-grid { grid-template-columns: repeat(2, 1fr); }
  .method-phone { grid-row: 1; }
  .principles { grid-template-columns: 1fr; }
  .principle-card h3 { min-height: 0; }
}

@media (max-width: 600px) {
  .site-header { width: min(calc(100% - 28px), var(--max)); height: 74px; }
  .brand { gap: 8px; font-size: 20px; }
  .brand img { width: 36px; height: 36px; }
  .site-header .nav-support { padding: 7px 12px; font-size: 12px; }
  .section-shell { width: min(calc(100% - 28px), var(--max)); }
  .hero { min-height: auto; gap: 32px; padding-block: 56px 70px; }
  h1 { font-size: clamp(51px, 16vw, 72px); }
  .hero-lead { font-size: 16px; }
  .button { width: 100%; }
  .hero-visual { min-height: 575px; }
  .phone-hero { width: 76%; }
  .sun-disc { width: 115vw; }
  .floating-note { min-width: 145px; padding: 10px 12px; }
  .note-one { left: -6px; bottom: 74px; }
  .note-two { right: -6px; top: 88px; }
  .manifesto, .feature-band, .method, .gallery-section, .principles { padding-block: 76px; }
  .manifesto h2, .feature-heading h2, .method h2, .gallery-header h2, .closing h2 { font-size: 40px; }
  .drill-grid { grid-template-columns: 1fr; }
  .drill-card { min-height: 220px; }
  .gallery-header { align-items: center; }
  .gallery-controls { display: none; }
  .screenshot-rail { gap: 14px; padding-left: 14px; padding-right: 14px; }
  .screenshot-rail figure { flex-basis: 78vw; }
  .closing { grid-template-columns: 1fr; min-height: auto; }
  .closing-mark { position: absolute; right: -20px; top: 54px; }
  .closing > div:last-child { position: relative; z-index: 2; }
  footer { grid-template-columns: 1fr; align-items: start; width: min(calc(100% - 28px), var(--max)); }
  .footer-links { flex-wrap: wrap; gap: 14px 20px; }
  .legal-main { width: min(calc(100% - 32px), 820px); padding-top: 58px; }
}

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