@import url("typography.css");

:root {
  --bg: #f4f7f3;
  --bg-soft: #eef4ef;
  --surface: rgba(255,255,255,.9);
  --surface-solid: #fff;
  --surface-2: #f7faf8;
  --text: #17212b;
  --muted: #647386;
  --line: #d7e1dd;
  --line-strong: #becdc7;
  --accent: #158679;
  --accent-dark: #0f6d64;
  --accent-soft: #dcf3ef;
  --mint: #58ccc1;
  --blue: #5f9ef5;
  --green: #38b56a;
  --red: #ee6c72;
  --amber: #e79a27;
  --danger: #c83d43;
  --shadow: 0 22px 60px rgba(22,42,35,.12);
  --shadow-soft: 0 12px 30px rgba(22,42,35,.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}
html[data-theme="dark"] {
  --bg: #091216;
  --bg-soft: #0d191e;
  --surface: rgba(19,33,40,.9);
  --surface-solid: #132128;
  --surface-2: #17272f;
  --text: #eef6f4;
  --muted: #9eafb7;
  --line: #2b4148;
  --line-strong: #3c555d;
  --accent: #58ccc1;
  --accent-dark: #7bded5;
  --accent-soft: #143d3a;
  --mint: #58ccc1;
  --blue: #78aff7;
  --green: #55c87b;
  --red: #f08085;
  --amber: #efae48;
  --danger: #f08085;
  --shadow: 0 24px 70px rgba(0,0,0,.34);
  --shadow-soft: 0 12px 30px rgba(0,0,0,.24);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% -5%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 31rem),
    radial-gradient(circle at 96% 8%, color-mix(in srgb, var(--blue) 8%, transparent), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent-soft); color: var(--text); }
.site-container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 14px; border-radius: 10px; background: var(--text); color: var(--bg); text-decoration: none; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }

.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-size: 1.15rem; font-weight: var(--weight-bold); letter-spacing: var(--tracking-subheading); }
.brand-mark { width: 31px; height: 31px; position: relative; display: inline-flex; align-items: flex-end; justify-content: center; gap: 2px; border-radius: 10px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); overflow: hidden; }
.brand-mark i { width: 4px; border-radius: 6px 6px 0 0; background: var(--accent); transform: rotate(-20deg); transform-origin: bottom; }
.brand-mark i:nth-child(1) { height: 11px; }
.brand-mark i:nth-child(2) { height: 18px; }
.brand-mark i:nth-child(3) { height: 24px; }
.site-nav { display: flex; align-items: center; gap: 5px; }
.site-nav > a:not(.button), .theme-cycle { color: var(--muted); text-decoration: none; border: 0; background: transparent; border-radius: 11px; padding: 9px 11px; font-weight: 600; cursor: pointer; }
.site-nav > a:hover, .site-nav > a.active, .theme-cycle:hover { color: var(--text); background: var(--surface); }
.site-nav .nav-login { margin-left: 5px; color: var(--text); }
.theme-cycle { width: 41px; display: grid; place-items: center; font-size: 1.1rem; }
.theme-label { display: none; font-size: .9rem; margin-left: 8px; }
.mobile-menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 11px; cursor: pointer; }
.mobile-menu-button > span:not(.sr-only) { display: block; height: 2px; background: var(--text); margin: 4px 0; border-radius: 3px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border-radius: 13px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; line-height: 1.2; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; border-color: var(--accent); background: linear-gradient(135deg, var(--accent), var(--accent-dark)); box-shadow: 0 12px 25px color-mix(in srgb, var(--accent) 25%, transparent); }
html[data-theme="dark"] .button.primary { color: #06211f; }
.button.secondary { background: var(--surface); color: var(--text); }
.button.large { min-height: 54px; padding: 14px 23px; border-radius: 15px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); text-transform: uppercase; letter-spacing: var(--tracking-label); font-size: .78rem; font-weight: var(--weight-bold); }
h1, h2, h3 { margin: 0; line-height: 1.08; }
h1 { font-size: clamp(2.75rem, 6vw, 5.5rem); letter-spacing: var(--tracking-display); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: var(--tracking-heading); }
h3 { font-size: 1.2rem; letter-spacing: var(--tracking-subheading); }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.7; }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-heading p:last-child { color: var(--muted); font-size: 1.08rem; }

.hero { padding: 88px 0 70px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
  align-items: center;
  gap: clamp(54px, 6vw, 82px);
}
.hero-copy h1 {
  max-width: 650px;
  font-size: clamp(3rem, 4.9vw, 5.05rem);
  line-height: 1;
}
.hero-copy h1 em { color: var(--accent); font-style: normal; }
.hero-copy .lead { max-width: 650px; margin: 26px 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: .92rem; display: flex; gap: 8px; align-items: center; }
.hero-note::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--green); box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 14%, transparent); }
.hero-visual {
  position: relative;
  min-height: 600px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(48px);
  z-index: -2;
  pointer-events: none;
}
.hero-visual::before {
  width: 260px;
  height: 260px;
  right: 4%;
  top: 8%;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.hero-visual::after {
  width: 220px;
  height: 220px;
  left: 4%;
  bottom: 6%;
  background: color-mix(in srgb, var(--blue) 15%, transparent);
}
.hero-window {
  position: relative;
  width: min(100%, 500px);
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 30px;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--accent) 18%, var(--surface-solid)),
    color-mix(in srgb, var(--blue) 10%, var(--surface-solid))
  );
  box-shadow: 0 30px 80px rgba(0,0,0,.28), var(--shadow-soft);
}
.hero-window::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, #fff 9%, transparent);
  pointer-events: none;
}
.hero-window-bar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 7px 10px;
}
.hero-window-label,
.hero-window-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
}
.hero-window-label { color: var(--text); }
.hero-window-label i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 13%, transparent);
}
.hero-window-chip {
  color: var(--muted);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 76%, transparent);
  border-radius: 999px;
  padding: 5px 10px;
}
.hero-shot {
  position: relative;
  height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #294047;
  background:
    radial-gradient(circle at 56% 48%, rgba(88,204,193,.10), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(67,129,171,.10), transparent 26%),
    linear-gradient(180deg, #112126 0%, #0c171b 100%);
}
.hero-diagram::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 18px;
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.12));
  opacity: .45;
  pointer-events: none;
}
.hero-map {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
}
.hero-map-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-map-line.base {
  stroke: rgba(130, 168, 175, .30);
  stroke-width: 2.2;
}
.hero-map-line.trace {
  stroke: #68d5cb;
  stroke-width: 3;
  stroke-dasharray: 12 220;
  stroke-dashoffset: 230;
  opacity: 0;
  animation: heroMapTrace 6.4s ease-in-out infinite;
  filter: drop-shadow(0 0 5px rgba(104,213,203,.55));
}
.hero-map-line.trace-two { animation-delay: .75s; }
.hero-map-line.trace-three { animation-delay: 1.5s; }
.hero-map-card {
  opacity: 0;
  animation: heroMapCardIn .65s ease forwards;
  animation-delay: var(--delay, 0s);
}
.hero-map-card rect {
  fill: rgba(17, 31, 36, .94);
  stroke: rgba(121, 157, 165, .34);
  stroke-width: 1.5;
}
.hero-map-root {
  opacity: 1;
}
.hero-map-root rect {
  fill: rgba(19, 38, 43, .98);
  stroke: rgba(104,213,203,.52);
}
.hero-map-root circle {
  fill: #68d5cb;
  filter: url(#heroMapGlow);
}
.hero-map-kicker {
  fill: rgba(190, 207, 211, .65);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.25px;
}
.hero-map-title,
.hero-map-branch-title {
  fill: #ecf5f4;
  font-weight: 700;
  letter-spacing: -.2px;
}
.hero-map-title { font-size: 12px; }
.hero-map-branch-title { font-size: 12.5px; }
.hero-map-branch circle {
  fill: rgba(149, 180, 186, .75);
}
.hero-map-branch.is-focus rect {
  fill: rgba(20, 45, 47, .98);
  stroke: rgba(104,213,203,.66);
  filter: drop-shadow(0 0 9px rgba(104,213,203,.11));
}
.hero-map-branch.is-focus circle {
  fill: #68d5cb;
  filter: url(#heroMapGlow);
}
.hero-map-branch.is-proof rect {
  fill: rgba(18, 39, 34, .98);
  stroke: rgba(84, 190, 126, .62);
}
.hero-map-branch.is-proof circle {
  fill: #63c987;
  filter: url(#heroMapGlow);
}
.hero-map-hub-ring {
  fill: rgba(104,213,203,.06);
  stroke: rgba(104,213,203,.19);
  stroke-width: 1.5;
  animation: heroMapPulse 3.2s ease-out infinite;
}
.hero-map-hub-core {
  fill: #123038;
  stroke: rgba(104,213,203,.52);
  stroke-width: 1.5;
}
.hero-map-hub path {
  fill: none;
  stroke: #68d5cb;
  stroke-width: 2;
  stroke-linecap: round;
}
@keyframes heroMapTrace {
  0%, 12% { stroke-dashoffset: 230; opacity: 0; }
  20%, 64% { stroke-dashoffset: 0; opacity: 1; }
  84%, 100% { stroke-dashoffset: -190; opacity: 0; }
}
@keyframes heroMapCardIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes heroMapPulse {
  0% { transform: scale(.72); transform-origin: 260px 260px; opacity: .75; }
  72% { transform: scale(1.25); transform-origin: 260px 260px; opacity: 0; }
  100% { transform: scale(1.25); transform-origin: 260px 260px; opacity: 0; }
}
.logo-strip { padding: 5px 0 50px; }
.logo-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.logo-strip-inner span { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 14px; padding: 14px; text-align: center; font-size: .9rem; font-weight: 600; }

.problem-section, .method-section, .views-section, .concepts-section, .starting-section, .usecases-section, .faq-preview, .cta-section { padding: 92px 0; }
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.problem-card, .concept-card, .usecase-card { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); padding: 24px; box-shadow: var(--shadow-soft); }
.problem-card span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent); font-weight: 700; margin-bottom: 22px; }
.problem-card p, .concept-card p, .usecase-card p { color: var(--muted); margin-bottom: 0; }

.method-section { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent-soft) 45%, transparent), transparent); }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: steps; }
.method-step { counter-increment: steps; position: relative; padding: 28px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); min-height: 205px; }
.method-step::before { content: counter(steps, decimal-leading-zero); display: inline-flex; color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .12em; margin-bottom: 34px; }
.method-step p { color: var(--muted); }

.views-showcase {
  position: relative;
  max-width: 1180px;
  margin-inline: auto;
}
.view-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.view-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.view-switch-card {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 142px;
  padding: 22px 24px 22px 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.view-switch-card::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 27px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--surface-solid);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 0%, transparent);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.view-switch-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}
.view-switch-kicker {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.view-switch-card strong {
  color: var(--text);
  font-size: 1.16rem;
  line-height: 1.25;
  letter-spacing: var(--tracking-heading);
}
.view-switch-card small {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}
#view-preview-work:focus-visible ~ .view-switcher label[for="view-preview-work"],
#view-preview-plan:focus-visible ~ .view-switcher label[for="view-preview-plan"] {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 3px;
}
#view-preview-work:checked ~ .view-switcher label[for="view-preview-work"],
#view-preview-plan:checked ~ .view-switcher label[for="view-preview-plan"] {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 72%, var(--surface)), var(--surface));
  box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 11%, transparent), var(--shadow-soft);
}
#view-preview-work:checked ~ .view-switcher label[for="view-preview-work"]::before,
#view-preview-plan:checked ~ .view-switcher label[for="view-preview-plan"]::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 13%, transparent);
}
.view-stage {
  position: relative;
  overflow: hidden;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 28px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 11%, var(--surface-solid)), color-mix(in srgb, var(--blue) 7%, var(--surface-solid)));
  box-shadow: 0 30px 70px rgba(0,0,0,.2), var(--shadow-soft);
}
.view-stage::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 180px;
  left: 50%;
  top: -120px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  filter: blur(42px);
  pointer-events: none;
}
.view-panel {
  position: relative;
  z-index: 1;
  display: none;
  margin: 0;
  overflow: hidden;
  border: 1px solid #294047;
  border-radius: 20px;
  background: #0b1418;
  animation: viewPreviewIn .28s ease both;
}
.view-panel img {
  display: block;
  width: 100%;
  height: auto;
  background: #0b1418;
}
#view-preview-work:checked ~ .view-stage .view-panel-work,
#view-preview-plan:checked ~ .view-stage .view-panel-plan {
  display: block;
}
@keyframes viewPreviewIn {
  from { opacity: .45; }
  to { opacity: 1; }
}

.concepts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.concept-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; margin-bottom: 24px; background: var(--accent-soft); color: var(--accent); font-size: 1.15rem; font-weight: 700; }
.concept-card:nth-child(2) .concept-icon { color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, var(--surface)); }
.concept-card:nth-child(3) .concept-icon { color: var(--red); background: color-mix(in srgb, var(--red) 14%, var(--surface)); }
.concept-card:nth-child(4) .concept-icon { color: var(--green); background: color-mix(in srgb, var(--green) 14%, var(--surface)); }
.status-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.status-pill { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: flex; align-items: flex-start; gap: 12px; }
.status-pill i { width: 9px; height: 9px; border-radius: 50%; margin-top: 8px; flex: 0 0 auto; }
.status-pill.todo i { background: var(--red); }
.status-pill.learning i { background: var(--blue); }
.status-pill.proven i { background: var(--green); }
.status-pill span { color: var(--muted); font-size: .9rem; }

.starting-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.start-card { position: relative; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); padding: 30px; overflow: hidden; }
.start-card::after { content: ""; position: absolute; right: -28px; bottom: -28px; width: 95px; height: 95px; border-radius: 50%; background: var(--accent-soft); }
.start-card strong { display: block; font-size: 1.18rem; margin-bottom: 8px; }
.start-card p { color: var(--muted); margin-bottom: 0; }
.start-card .start-icon { font-size: 1.5rem; margin-bottom: 30px; color: var(--accent); }

.usecases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.usecase-card { min-height: 175px; }
.usecase-card h3 { margin-bottom: 10px; }

.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 0 20px; }
.faq-list summary { cursor: pointer; list-style: none; padding: 19px 34px 19px 0; font-weight: 700; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 15px; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { color: var(--muted); margin: 0; padding: 0 34px 20px 0; }
.faq-actions { display: flex; justify-content: center; margin-top: 28px; }

.cta-card { position: relative; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: 32px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 75%, var(--surface)), var(--surface)); padding: clamp(34px, 6vw, 72px); text-align: center; }
.cta-card::before, .cta-card::after { content: ""; position: absolute; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.cta-card::before { width: 220px; height: 220px; left: -80px; top: -100px; }
.cta-card::after { width: 280px; height: 280px; right: -130px; bottom: -150px; }
.cta-card h2, .cta-card p, .cta-card .hero-actions { position: relative; z-index: 1; }
.cta-card p { color: var(--muted); max-width: 620px; margin: 18px auto 26px; }
.cta-card .hero-actions { justify-content: center; }

.page-hero { padding: 78px 0 52px; }
.page-hero .site-container { max-width: 880px; text-align: center; }
.page-hero h1 { font-size: clamp(2.55rem, 6vw, 4.6rem); }
.page-hero .lead { margin: 22px auto 0; }
.content-section { padding: 38px 0 90px; }
.content-narrow { max-width: 860px; }
.content-card { border: 1px solid var(--line); background: var(--surface); border-radius: 24px; padding: clamp(24px, 4vw, 42px); box-shadow: var(--shadow-soft); }
.content-card + .content-card { margin-top: 20px; }
.content-card h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); margin-bottom: 16px; }
.content-card h3 { margin: 28px 0 8px; letter-spacing: var(--tracking-subheading); }
.content-card p, .content-card li { color: var(--muted); }
.content-card a { color: var(--accent); font-weight: 600; }
.content-card ul, .content-card ol { padding-left: 1.3rem; }
.content-card li + li { margin-top: 8px; }
.method-long { counter-reset: longstep; display: grid; gap: 18px; }
.method-long article { counter-increment: longstep; display: grid; grid-template-columns: 62px 1fr; gap: 18px; border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 24px; }
.method-long article::before { content: counter(longstep); width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.method-long p { color: var(--muted); margin: 8px 0 0; }
.definition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.definition-card { border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 24px; }
.definition-card .concept-icon { margin-bottom: 18px; }
.definition-card p { color: var(--muted); }
.inline-callout { border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 14px 14px 0; padding: 18px 20px; color: var(--text); }

.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: start; }
.contact-info { position: sticky; top: 110px; }
.contact-info ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.contact-info li { display: flex; gap: 12px; color: var(--muted); }
.contact-info li span { color: var(--accent); }
.form-card { border: 1px solid var(--line); background: var(--surface); border-radius: 24px; padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1/-1; }
.form-field label { font-size: .9rem; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { width: 100%; color: var(--text); background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: 13px; padding: 12px 14px; outline: none; }
.form-field textarea { min-height: 165px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.form-actions { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 4px; }
.form-actions small { color: var(--muted); }
.notice { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; }
.notice.success { background: color-mix(in srgb, var(--green) 12%, var(--surface)); border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.notice.error { background: color-mix(in srgb, var(--red) 10%, var(--surface)); border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
.honeypot { position: absolute!important; left: -9999px!important; width: 1px!important; height: 1px!important; overflow: hidden!important; }

.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.legal-meta span { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 7px 12px; color: var(--muted); font-size: .87rem; }
.legal-toc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; margin: 20px 0 0; }
.legal-toc a { color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--accent); }

.not-found { min-height: calc(100vh - 78px); display: grid; place-items: center; padding: 60px 0; text-align: center; }
.not-found-code { font-size: clamp(6rem, 20vw, 13rem); line-height: .8; font-weight: 700; letter-spacing: -0.05em; color: var(--accent-soft); text-shadow: 1px 1px 0 var(--accent); }
.not-found h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-top: -10px; }
.not-found p { color: var(--muted); max-width: 560px; margin: 18px auto 25px; }

.site-footer { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 45%, transparent); padding: 58px 0 22px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr repeat(3, 1fr); gap: 36px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-grid p { color: var(--muted); max-width: 330px; }
.footer-grid strong { margin-bottom: 7px; font-size: .87rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid a:not(.brand) { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 38px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .85rem; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 45px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .hero-visual {
    width: min(100%, 640px);
    min-height: 620px;
    margin-inline: auto;
  }
  .hero-window { transform: none; }
  .problem-grid, .concepts-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid, .usecases-grid, .starting-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { position: static; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
}
@media (max-width: 780px) {
  .site-container { width: min(calc(100% - 28px), var(--container)); }
  .mobile-menu-button { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 14px; right: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-solid); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.button), .theme-cycle { width: 100%; text-align: left; padding: 12px; }
  .theme-cycle { display: flex; justify-content: flex-start; }
  .theme-label { display: inline; }
  .site-nav .nav-login { margin-left: 0; }
  .hero { padding-top: 60px; }
  h1 { font-size: clamp(2.6rem, 14vw, 4rem); }
  .logo-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .starting-grid, .definition-grid { grid-template-columns: 1fr; }
  .view-switcher { grid-template-columns: 1fr; }
  .view-switch-card { min-height: 0; }
  .hero-visual { min-height: auto; }
  .hero-window { width: min(100%, 500px); }
  .hero-shot { height: min(118vw, 560px); }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full, .form-actions { grid-column: auto; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1/-1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 560px) {
  .hero-window {
    padding: 8px;
    border-radius: 24px;
  }
  .hero-window-bar { min-height: 42px; }
  .hero-window-chip { display: none; }
  .hero-shot {
    height: min(128vw, 500px);
    border-radius: 18px;
  }
  .view-switch-card {
    padding: 18px 18px 18px 48px;
  }
  .view-switch-card::before {
    left: 20px;
    top: 23px;
  }
  .view-stage {
    padding: 6px;
    border-radius: 20px;
  }
  .view-panel {
    border-radius: 15px;
  }
  .problem-grid, .concepts-grid, .method-grid, .usecases-grid, .status-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .method-long article { grid-template-columns: 1fr; }
  .legal-toc { grid-template-columns: 1fr; }
  .logo-strip-inner { grid-template-columns: 1fr; }
  .page-hero { padding-top: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto!important; transition: none!important; animation: none!important; }
}
