/* Hanodo public website — design tokens from the `premium` skill (.claude/skills/premium).
   Deviations are recorded in .claude/rules/website.md. */
:root {
  /* Colour: the skill's semantic tokens */
  --surface: #FFFFFF;
  --text: #111827;
  --primary: #3B82F6;
  --secondary: #8B5CF6;
  --success: #16A34A;
  --warning: #D97706;
  --danger: #DC2626;
  /* Derived */
  --primary-strong: #2563EB;   /* text, links, filled buttons (5.2:1 on white) */
  --surface-2: #F9FAFB;        /* alternate band */
  --line: #E5E7EB;
  --muted: #4B5563;            /* secondary text (7.6:1) */
  --dim: #6B7280;              /* captions (4.8:1) */
  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --fs-12: 12px; --fs-14: 14px; --fs-16: 16px; --fs-18: 18px; --fs-24: 24px; --fs-30: 30px; --fs-36: 36px;
  /* Space: the skill's 4/8/12/16/24/32, then multiples of 8 for sections */
  --s4: 4px; --s8: 8px; --s12: 12px; --s16: 16px; --s24: 24px; --s32: 32px; --s64: 64px; --s96: 96px; --s128: 128px;
  --r-sm: 8px; --r-md: 14px; --r-lg: 24px;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--surface); color: var(--text); font: 400 var(--fs-16)/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.5); outline-offset: 2px; border-radius: var(--r-sm); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--s24); }
.eyebrow { font-size: var(--fs-14); font-weight: 600; color: var(--primary-strong); margin-bottom: var(--s12); }
.fine { font-size: var(--fs-14); color: var(--dim); }

/* Buttons: 44px+ targets, explicit states */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--s24); background: var(--primary-strong); color: #fff; font-weight: 600; font-size: var(--fs-16); text-decoration: none; border-radius: 999px; border: 1px solid var(--primary-strong); transition: background .15s, box-shadow .15s; }
.btn:hover { background: #1D4ED8; box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25); }
.btn:active { background: #1E40AF; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn-sm { min-height: 40px; padding: 0 var(--s16); font-size: var(--fs-14); }
.btn-lg { min-height: 52px; padding: 0 var(--s32); font-size: var(--fs-18); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.8); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: var(--s24); height: 64px; }
.brand { display: flex; align-items: center; gap: var(--s8); min-height: 44px; min-width: 44px; font-weight: 700; font-size: var(--fs-18); text-decoration: none; letter-spacing: -0.01em; }
.brand img { border-radius: var(--r-sm); }
.brand-sm { font-size: var(--fs-16); }
.links { display: flex; gap: var(--s24); margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-size: var(--fs-14); font-weight: 500; padding: var(--s8) 0; }
.links a:hover { color: var(--text); }

/* Hero: centred type, then the landscape */
.hero { padding: var(--s96) 0; text-align: center; background: linear-gradient(180deg, #FFFFFF 0%, #F5F8FF 100%); overflow: hidden; }
.hero h1 { font-size: 60px; line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; max-width: 900px; margin: 0 auto; }
.hero h1 .grad { background: linear-gradient(90deg, var(--primary-strong), var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 21px; line-height: 1.5; color: var(--muted); margin: var(--s24) auto var(--s32); max-width: 680px; }
.cta-row { display: flex; gap: var(--s12); flex-wrap: wrap; justify-content: center; }

.scene { position: relative; max-width: 1120px; margin: var(--s64) auto 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 24px 64px rgba(79, 70, 229, 0.18); }
.scene svg { width: 100%; height: auto; }
.tag { position: absolute; transform: translate(-50%, -100%); display: inline-flex; align-items: center; gap: var(--s8); padding: var(--s8) var(--s16); background: rgba(255, 255, 255, 0.92); border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 999px; box-shadow: var(--shadow); font-size: var(--fs-14); font-weight: 600; white-space: nowrap; }
.tag i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tag-built i { background: var(--primary); }
.tag-alive i { background: var(--warning); }
.tag-own i { background: var(--secondary); }
.goal-card { position: absolute; transform: translate(0, -50%); text-align: left; padding: var(--s12) var(--s16); background: #fff; border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(17, 24, 39, 0.12); border-top: 3px solid var(--success); min-width: 220px; }
.goal-card .gk { font-size: var(--fs-12); font-weight: 600; color: var(--success); text-transform: uppercase; letter-spacing: .06em; }
.goal-card .gt { font-size: var(--fs-16); font-weight: 600; margin-top: 2px; }
.goal-card .gs { font-size: var(--fs-14); color: var(--dim); }
.scene-note { position: absolute; right: var(--s16); bottom: var(--s12); font-size: var(--fs-12); color: rgba(255, 255, 255, 0.85); }

/* Sections */
.band { padding: var(--s128) 0; }
.band-alt { background: var(--surface-2); }
.band h2 { font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; max-width: 820px; }
.section-lede { font-size: var(--fs-18); line-height: 1.6; color: var(--muted); margin-top: var(--s16); max-width: 680px; }
.center { text-align: center; }
.center h2, .center .section-lede { margin-left: auto; margin-right: auto; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s24); margin-top: var(--s64); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s32); box-shadow: var(--shadow); }
.band-alt .card { border-color: transparent; }
.card h3 { font-size: var(--fs-24); line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; margin: var(--s12) 0 var(--s8); }
.card p { color: var(--muted); }
.card-k { font-size: var(--fs-12); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.card-accent .card-k { color: var(--primary-strong); }

/* Steps G1–G4: one colour per kind */
.steps { list-style: none; padding: 0; margin: var(--s64) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s24); }
.step { background: var(--surface); border-radius: var(--r-lg); padding: var(--s32) var(--s24); box-shadow: var(--shadow); }
.step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 600 var(--fs-14) var(--mono); }
.step h3 { font-size: var(--fs-18); line-height: 1.3; font-weight: 600; margin: var(--s16) 0 var(--s8); }
.step p { color: var(--muted); font-size: var(--fs-16); }
.steps .step:nth-child(1) .step-n { color: var(--success); background: #DCFCE7; }
.steps .step:nth-child(2) .step-n { color: var(--primary-strong); background: #DBEAFE; }
.steps .step:nth-child(3) .step-n { color: #B45309; background: #FEF3C7; }
.steps .step:nth-child(4) .step-n { color: #6D28D9; background: #EDE9FE; }
.loop { margin: var(--s32) auto 0; max-width: 760px; text-align: center; color: var(--muted); font-size: var(--fs-18); }
.loop b { color: var(--success); font-weight: 600; }

/* Proof */
.proof { text-align: center; }
.stat-n { font-size: 120px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; margin-top: var(--s32); background: linear-gradient(180deg, var(--text), #4B5563); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-t { font-size: var(--fs-24); font-weight: 600; margin-top: var(--s16); letter-spacing: -0.01em; }
.proof .fine { margin-top: var(--s8); }

/* Context underneath (secondary): the touchpoint diagram, light */
.ctx-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s64); align-items: center; }
.flow { margin: 0; display: grid; grid-template-columns: 1fr 24px auto 24px 1fr; align-items: center; gap: var(--s8); padding: var(--s24); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.flow-col { display: flex; flex-direction: column; gap: var(--s8); min-width: 0; }
.flow-k { font-size: var(--fs-12); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); margin-bottom: var(--s4); }
.chip { font-size: var(--fs-14); padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-out { color: var(--primary-strong); background: #EFF6FF; border-color: #DBEAFE; }
.chip-agent { color: #6D28D9; background: #F5F3FF; border-color: #EDE9FE; }
.chip-gate { color: #B45309; background: #FFFBEB; border-color: #FEF3C7; }
.flow-arrow { height: 2px; border-radius: 1px; background: linear-gradient(90deg, var(--line), var(--primary)); }
.flow-core { text-align: center; background: linear-gradient(180deg, #EFF6FF, #F5F3FF); border-radius: var(--r-md); padding: var(--s16); }
.flow-core img { margin: 0 auto var(--s8); border-radius: var(--r-sm); }
.core-t { font-weight: 700; }
.core-s { font-size: var(--fs-14); color: var(--muted); }
.core-tag { font-size: var(--fs-12); font-weight: 600; color: var(--primary-strong); margin-top: var(--s8); }

/* Start: S1–S4 */
.timeline { list-style: none; padding: 0; margin: var(--s64) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s32); }
.timeline li { border-top: 2px solid var(--primary); padding-top: var(--s16); }
.tl-k { font-size: var(--fs-12); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-strong); }
.timeline h3 { font-size: var(--fs-18); font-weight: 600; margin: var(--s8) 0; }
.timeline p:not(.tl-k) { color: var(--muted); }
.bring { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s24); margin-top: var(--s64); }
.bring-card { background: var(--surface); border-radius: var(--r-lg); padding: var(--s32); box-shadow: var(--shadow); }
.bring-card h3 { font-size: var(--fs-24); font-weight: 600; letter-spacing: -0.015em; margin: var(--s8) 0; }
.bring-card p:not(.card-k) { color: var(--muted); }

/* Status: works today = success, being built = warning, next = neutral */
.status ul { margin: var(--s16) 0 0; padding-left: 18px; color: var(--muted); display: grid; gap: var(--s8); }
.st-ship .card-k { color: var(--success); }
.st-build .card-k { color: #B45309; }

/* CTA + footer */
.cta-band { text-align: center; background: radial-gradient(800px 360px at 50% 100%, rgba(139, 92, 246, 0.10), transparent 70%), radial-gradient(800px 360px at 50% 0%, rgba(59, 130, 246, 0.10), transparent 70%), var(--surface); }
.cta-in h2, .cta-in .section-lede { margin-left: auto; margin-right: auto; }
.cta-in .btn { margin-top: var(--s32); }
.foot { border-top: 1px solid var(--line); padding: var(--s32) 0; }
.foot-in { display: flex; align-items: center; gap: var(--s24); flex-wrap: wrap; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Tablet */
@media (max-width: 960px) {
  .grid3, .ctx-in { grid-template-columns: 1fr; }
  .steps, .timeline { grid-template-columns: 1fr 1fr; }
  .links { display: none; }
  .nav-in .btn-sm { margin-left: auto; }
  .hero h1 { font-size: 48px; }
  .band h2 { font-size: 36px; }
}
/* Phone */
@media (max-width: 640px) {
  .wrap { padding: 0 var(--s16); }
  .hero { padding-top: var(--s64); }
  .hero h1 { font-size: 34px; }
  .lede { font-size: var(--fs-18); }
  .band { padding: var(--s96) 0; }
  .band h2 { font-size: var(--fs-30); }
  .steps, .timeline, .bring { grid-template-columns: 1fr; }
  .stat-n { font-size: 88px; }
  .flow { grid-template-columns: 1fr; }
  .flow-col { flex-direction: row; flex-wrap: wrap; }
  .flow-k { width: 100%; }
  .flow-arrow { width: 2px; height: var(--s24); margin: 0 auto; background: linear-gradient(180deg, var(--line), var(--primary)); }
  .brand span { display: none; }
  /* The landscape keeps its picture; its labels move under it */
  .scene { margin: var(--s32) var(--s16) 0; border-radius: var(--r-md); }
  .tag, .goal-card { position: static; transform: none; }
  .scene-labels { display: flex; flex-wrap: wrap; gap: var(--s8); justify-content: center; padding: var(--s16); background: #F5F8FF; }
  .goal-card { width: 100%; }
  .scene-note { display: none; }
}
