:root {
  --bg: #faf6f1;
  --bg-soft: #f2ebe4;
  --panel: rgba(255, 252, 248, 0.72);
  --panel-strong: #fffcf8;
  --text: #171614;
  --muted: #59524a;
  --line: rgba(23, 22, 20, 0.11);
  --line-strong: rgba(23, 22, 20, 0.2);
  --accent: #9d6531;
  --accent-soft: rgba(157, 101, 49, 0.12);
  --shadow: 0 22px 70px rgba(34, 28, 23, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --container: min(1280px, calc(100vw - 48px));
  --serif: "Noto Serif SC", serif;
  --sans: "Manrope", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(157, 101, 49, 0.1), transparent 28%),
    linear-gradient(180deg, #fdfaf6 0%, var(--bg) 32%, #f7f1ea 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-shell {
  width: var(--container);
  margin: 0 auto;
  padding-bottom: 64px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  margin: 20px 0 32px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(252, 248, 243, 0.75);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(31, 23, 17, 0.06);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 18, 15, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name,
.footer-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.84rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  min-width: 0;
}

.site-nav a,
.lang-button {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 180ms ease;
}

.site-nav a:hover,
.lang-button:hover,
.lang-button.is-active {
  color: var(--text);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}

.lang-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.lang-button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(180deg, #25221f 0%, #171614 100%);
  box-shadow: 0 16px 30px rgba(23, 22, 20, 0.16);
}

.button-primary:hover {
  background: linear-gradient(180deg, #3a2e23 0%, #221b15 100%);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.42);
}

main {
  display: grid;
  gap: 148px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr);
  gap: 56px;
  align-items: end;
  min-height: calc(100vh - 160px);
  padding: 40px 0 12px;
}

.eyebrow,
.section-kicker,
.point-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1,
.statement h2,
.section-head h2,
.developer-intro h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero-copy {
  display: grid;
  gap: 22px;
  align-content: end;
}

.hero-lead,
.section-head p,
.statement-copy p,
.workflow-copy p,
.split-copy p,
.scenario-card p,
.developer-intro p,
.point-row p,
.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.86;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 8px;
}

.hero-meta {
  display: grid;
  gap: 10px;
  padding: 18px 0 0;
  margin: 0;
  list-style: none;
}

.hero-meta li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
}

.frame img {
  width: 100%;
  height: auto;
}

.frame-hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.75);
}

.hero-visual figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-visual figcaption span:first-child {
  color: var(--text);
  font-weight: 600;
}

.statement {
  position: relative;
}

.statement-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  padding: 44px 0 0;
  border-top: 1px solid var(--line);
}

.statement-copy {
  display: grid;
  gap: 18px;
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 3.6rem);
}

.workflow-grid,
.history-grid,
.developer-grid {
  display: grid;
  gap: 28px;
}

.workflow-card,
.split-panel,
.scenario-card,
.terminal-card,
.developer-points {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4));
  box-shadow: 0 18px 48px rgba(33, 26, 20, 0.05);
}

.workflow-card,
.split-panel {
  overflow: hidden;
}

.workflow-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.workflow-copy,
.split-copy,
.scenario-card,
.developer-points {
  padding: 28px;
}

.workflow-index {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.workflow-copy {
  display: grid;
  align-content: start;
  gap: 14px;
  border-right: 1px solid var(--line);
}

.workflow-copy h3,
.split-copy h3,
.scenario-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.workflow-note {
  max-width: 860px;
  padding-top: 24px;
}

.workflow-note p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.history-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-panel {
  display: grid;
  gap: 0;
}

.split-copy {
  display: grid;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.scenario-card {
  display: grid;
  gap: 12px;
  min-height: 220px;
}

.developer-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.terminal-card {
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(157, 101, 49, 0.13), transparent 26%),
    linear-gradient(180deg, #181614 0%, #11100f 100%);
  color: #f3ece4;
}

.terminal-header {
  display: flex;
  gap: 8px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.terminal-card pre {
  margin: 0;
  padding: 28px;
  overflow: auto;
}

.terminal-card code {
  font-family: var(--mono);
  font-size: 0.94rem;
  line-height: 1.9;
}

.developer-points {
  display: grid;
  gap: 0;
}

.point-row {
  display: grid;
  gap: 10px;
  padding: 28px;
}

.point-row + .point-row {
  border-top: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 96px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 900ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 90ms;
}

.reveal-delay-2 {
  transition-delay: 180ms;
}

.reveal-delay-3 {
  transition-delay: 270ms;
}

.reveal-delay-4 {
  transition-delay: 360ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .button,
  .site-nav a,
  .lang-button {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: start;
    border-radius: 28px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero,
  .statement-grid,
  .workflow-card,
  .developer-grid,
  .history-grid,
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .workflow-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100vw - 28px, 100%);
    --radius-lg: 22px;
  }

  main {
    gap: 100px;
  }

  .site-shell {
    padding-bottom: 40px;
  }

  .site-header {
    top: 10px;
    gap: 18px;
    padding: 16px;
  }

  .site-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: auto;
    padding-top: 12px;
    gap: 28px;
  }

  .hero-visual figcaption,
  .site-footer {
    flex-direction: column;
  }

  .workflow-copy,
  .split-copy,
  .scenario-card,
  .point-row,
  .terminal-card pre {
    padding: 22px;
  }
}
