:root {
  color-scheme: light dark;
  --page: #f2f4f3;
  --surface: #fafbfa;
  --surface-soft: #e6ebe8;
  --surface-strong: #dce5e1;
  --text: #17201e;
  --muted: #596561;
  --line: #cbd4d0;
  --accent: #167c68;
  --accent-hover: #106553;
  --accent-soft: #d5e9e2;
  --accent-ink: #0d5547;
  --radius: 16px;
  --shadow: 0 24px 70px rgba(37, 57, 50, 0.12);
  font-family: "Avenir Next", Avenir, "Segoe UI", "PingFang SC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--page); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { text-wrap: pretty; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(18px);
}

.nav-shell,
.section-shell,
.footer-shell {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.nav-shell {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-symbol {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
}

nav { display: flex; align-items: center; gap: 28px; }
nav a,
.footer-meta a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color 150ms ease;
}
nav a:hover,
.footer-meta a:hover { color: var(--text); }

.nav-action {
  justify-self: end;
  color: var(--accent);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.hero {
  width: min(1440px, calc(100% - 32px));
  min-height: calc(100dvh - 88px);
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(540px, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 5vw, 76px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

h1 {
  max-width: 670px;
  margin: 0;
  font-size: clamp(46px, 4.7vw, 64px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.99;
}

.hero-lead {
  max-width: 510px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.65;
}

.hero-actions { display: flex; gap: 12px; margin-top: 36px; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 140ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:active { transform: translateY(1px); }
.button-primary { color: #f5faf8; background: var(--accent); }
.button-primary:hover { background: var(--accent-hover); }
.button-secondary { color: var(--text); border-color: var(--line); background: var(--surface); }
.button-secondary:hover { border-color: var(--accent); }

.hero-visual { min-width: 0; margin: 0; background: var(--surface-soft); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% center; }

h2 {
  margin: 0;
  font-size: clamp(38px, 4.8vw, 66px);
  font-weight: 640;
  letter-spacing: -0.06em;
  line-height: 1.01;
}

.manifesto {
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(112px, 14vw, 190px) 8vw;
}

.manifesto h2 { max-width: 970px; font-size: clamp(58px, 8.5vw, 118px); }
.manifesto > p:last-child {
  max-width: 650px;
  margin: 38px 0 0 36%;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.75;
}

.workflow { padding-bottom: clamp(112px, 14vw, 180px); }
.workflow-heading { max-width: 860px; }
.workflow-heading > p,
.difference-heading > p:last-child,
.model-copy > p,
.closing > div > p:last-child {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 56px;
}

.workflow-grid article {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.workflow-grid article:nth-child(2) { background: var(--surface-soft); }
.workflow-grid article:nth-child(3) { background: var(--accent-soft); }

.workflow-grid h3 {
  margin: auto 0 0;
  font-size: 24px;
  font-weight: 680;
  letter-spacing: -0.035em;
}
.workflow-grid p { margin: 15px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.workflow-image {
  height: clamp(420px, 48vw, 650px);
  margin: 18px 0 0;
  overflow: hidden;
  border-radius: var(--radius);
}
.workflow-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }

.difference {
  padding: clamp(92px, 11vw, 145px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.difference-heading { max-width: 760px; }

.insight-example {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  margin-top: 58px;
}

.source-card,
.insight-board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.source-card { min-height: 470px; display: flex; flex-direction: column; justify-content: flex-end; padding: 36px; }
.source-card > span,
.insight-primary > span,
.space > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.04em;
}
.source-card h3 { margin: 18px 0 0; font-size: clamp(27px, 3vw, 40px); font-weight: 640; letter-spacing: -0.045em; line-height: 1.13; }
.source-card p { margin: 18px 0 0; color: var(--muted); font-size: 14px; }

.insight-board { padding: clamp(32px, 4.8vw, 60px); }
.insight-primary { padding-bottom: 32px; }
.insight-primary strong { display: block; max-width: 620px; margin-top: 14px; font-size: clamp(28px, 3.5vw, 46px); font-weight: 640; letter-spacing: -0.04em; line-height: 1.1; }
.insight-board dl { margin: 0; }
.insight-board dl > div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.insight-board dt { color: var(--muted); font-size: 13px; }
.insight-board dd { margin: 0; font-size: 14px; font-weight: 650; line-height: 1.5; }

.knowledge-model {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
  align-items: center;
  gap: clamp(54px, 8vw, 112px);
  padding-block: clamp(120px, 14vw, 190px);
}
.model-image { min-width: 0; margin: 0; overflow: hidden; border-radius: var(--radius); }
.model-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.model-copy > p { font-size: 16px; }

.layer-stack { display: grid; gap: 9px; margin-top: 38px; }
.layer-stack > div {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 20px;
  align-items: center;
  padding: 17px 18px;
  border-radius: 11px;
  background: var(--surface-soft);
}
.layer-stack > div:nth-child(3) { background: var(--accent-soft); }
.layer-stack strong { font-size: 13px; }
.layer-stack span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.relation-line { color: var(--accent) !important; font-size: 13px !important; font-weight: 730; letter-spacing: 0.06em; }

.spaces { padding-bottom: clamp(120px, 14vw, 190px); }
.spaces-heading { max-width: 780px; }
.spaces-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-areas:
    "inbox knowledge"
    "inbox topics"
    "ask me";
  gap: 16px;
  margin-top: 54px;
}

.space {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.space h3 { margin: 22px 0 0; font-size: clamp(25px, 2.9vw, 39px); font-weight: 650; letter-spacing: -0.045em; line-height: 1.08; }
.space p { max-width: 500px; margin: 15px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.space-inbox { grid-area: inbox; min-height: 516px; background: var(--surface-strong); }
.space-knowledge { grid-area: knowledge; background: var(--accent-soft); }
.space-topics { grid-area: topics; background: var(--surface-soft); }
.space-ask { grid-area: ask; min-height: 310px; }
.space-me { grid-area: me; min-height: 310px; }

.closing {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding: clamp(58px, 7vw, 92px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.closing > div { max-width: 860px; }
.closing h2 { font-size: clamp(38px, 5.2vw, 68px); }
.closing > div > p:last-child { font-size: 15px; }

.site-footer { padding: 80px 0 46px; }
.footer-shell { display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; }
.footer-brand { margin-bottom: 16px; }
.footer-shell p { margin: 0; color: var(--muted); font-size: 14px; }
.footer-meta { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 28px; justify-items: end; color: var(--muted); font-size: 13px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 560ms cubic-bezier(0.16, 1, 0.3, 1), transform 560ms cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-color-scheme: dark) {
  :root {
    --page: #111816;
    --surface: #18211f;
    --surface-soft: #222e2a;
    --surface-strong: #2a3934;
    --text: #eef4f1;
    --muted: #a9b8b3;
    --line: #33413d;
    --accent: #49ae93;
    --accent-hover: #60bea5;
    --accent-soft: #24483e;
    --accent-ink: #a5ddce;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  }
  .brand-symbol { filter: invert(1); }
  .button-primary { color: #07120f; }
}

@media (max-width: 1080px) {
  .nav-shell,
  .section-shell,
  .footer-shell { width: min(100% - 40px, 820px); }
  .nav-shell { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { width: calc(100% - 24px); min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { min-height: 62dvh; padding: 68px clamp(30px, 8vw, 72px); }
  .hero-visual { height: 52dvh; min-height: 420px; }
  .manifesto > p:last-child { margin-left: 18%; }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .knowledge-model { grid-template-columns: 1fr; }
  .model-copy { order: -1; }
}

@media (max-width: 760px) {
  .nav-shell,
  .section-shell,
  .footer-shell { width: calc(100% - 32px); }
  .nav-shell { min-height: 64px; gap: 14px; }
  .nav-action { font-size: 13px; }
  .hero-copy { min-height: auto; padding: 62px 24px; }
  h1 { font-size: clamp(41px, 12.5vw, 56px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-visual { min-height: 360px; height: 44dvh; }
  .manifesto { min-height: auto; padding: 100px 0; }
  .manifesto h2 { font-size: clamp(54px, 16vw, 76px); }
  .manifesto > p:last-child { margin: 30px 0 0; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-grid article { min-height: 270px; }
  .workflow-image { height: 420px; }
  .difference { width: calc(100% - 24px); padding: 68px 24px; }
  .insight-example { grid-template-columns: 1fr; }
  .source-card { min-height: 360px; }
  .insight-board dl > div { grid-template-columns: 1fr; gap: 7px; }
  .knowledge-model { gap: 40px; padding-block: 100px; }
  .layer-stack > div { grid-template-columns: 1fr; gap: 8px; }
  .relation-line { letter-spacing: 0.02em; }
  .spaces-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "inbox" "knowledge" "topics" "ask" "me";
  }
  .space,
  .space-inbox,
  .space-ask,
  .space-me { min-height: 280px; }
  .closing { align-items: flex-start; flex-direction: column; gap: 34px; }
  .footer-shell { flex-direction: column; }
  .footer-meta { grid-template-columns: 1fr; justify-items: start; }
}

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