:root {
  --bg: #f1ede4;
  --bg-deep: #e6dccb;
  --surface: rgba(255, 251, 245, 0.74);
  --surface-strong: rgba(255, 248, 239, 0.94);
  --ink: #161c19;
  --ink-soft: #29332d;
  --muted: #4d5a52;
  --line: rgba(22, 28, 25, 0.12);
  --line-strong: rgba(22, 28, 25, 0.22);
  --forest: #1f3f2c;
  --moss: #466a4d;
  --gold: #d6a34f;
  --clay: #bf6c45;
  --rose: #b1565d;
  --steel: #3a5566;
  --shadow: 0 28px 80px rgba(48, 44, 30, 0.13);
  --shadow-soft: 0 12px 36px rgba(40, 36, 24, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(214, 163, 79, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(58, 85, 102, 0.18), transparent 26%),
    linear-gradient(180deg, #f7f1e6 0%, var(--bg) 45%, #ece3d3 100%);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.page-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.aurora {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.7;
  pointer-events: none;
}

.aurora-left {
  top: 6rem;
  left: -10rem;
  width: 22rem;
  height: 22rem;
  background: rgba(71, 107, 79, 0.32);
}

.aurora-right {
  top: 20rem;
  right: -12rem;
  width: 24rem;
  height: 24rem;
  background: rgba(58, 85, 102, 0.28);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(22, 28, 25, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22, 28, 25, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 60% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 60% 30%, black 0%, transparent 70%);
}

.site-header,
.hero,
.feature-strip,
.story-grid,
.insight-section,
.cta-section,
.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  position: relative;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.95rem;
  background:
    linear-gradient(135deg, var(--forest) 0%, var(--steel) 60%, var(--gold) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 6px 16px rgba(22, 28, 25, 0.16);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark-inner {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow:
    -0.45rem 0 0 -0.05rem rgba(255, 250, 240, 0.55),
    0.45rem 0 0 -0.05rem rgba(255, 250, 240, 0.55);
}

.brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.site-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 0 4rem;
}

.eyebrow,
.panel-kicker,
.stack-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--moss);
}

.hero h1,
.story-grid h2,
.insight-section h2,
.cta-section h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  margin-top: 1.2rem;
}

.hero-text,
.story-grid p,
.insight-copy p,
.cta-section p,
.stack-item p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 36rem;
  margin: 1.3rem 0 0;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.97rem;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  color: #fbf6ec;
  background: linear-gradient(135deg, var(--forest), #2d5a40 60%, var(--steel));
  box-shadow: 0 16px 36px rgba(31, 63, 44, 0.3);
}

.button-primary:hover {
  box-shadow: 0 20px 44px rgba(31, 63, 44, 0.36);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 252, 247, 0.78);
  color: var(--ink);
}

.button-secondary:hover {
  background: rgba(255, 252, 247, 0.95);
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.dot-forest {
  background: var(--forest);
}

.dot-gold {
  background: var(--gold);
}

.dot-clay {
  background: var(--clay);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.terminal-frame {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(22, 28, 25, 0.18);
  background: linear-gradient(180deg, #1c2622 0%, #131915 100%);
  color: #d6e4d8;
  box-shadow:
    0 18px 40px rgba(22, 28, 25, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transform: rotate(0.5deg);
}

.terminal-topbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}

.terminal-topbar span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(214, 228, 216, 0.18);
}

.terminal-topbar span:nth-child(1) {
  background: #e36b6b;
}

.terminal-topbar span:nth-child(2) {
  background: #f2b95f;
}

.terminal-topbar span:nth-child(3) {
  background: #6ec07a;
}

.terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: rgba(214, 228, 216, 0.6);
  letter-spacing: 0.04em;
}

.terminal-body {
  margin: 0;
  padding: 1.25rem 1.35rem 1.45rem;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.7;
  color: #d6e4d8;
  white-space: pre-wrap;
  word-break: break-word;
}

.t-muted {
  color: rgba(214, 228, 216, 0.5);
}

.t-fg {
  color: #f2b95f;
}

.t-arg {
  color: #88b8c8;
}

.t-ok {
  color: #8fd49a;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.stat-card {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.stat-card p {
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--ink);
}

.stat-warm {
  background: linear-gradient(180deg, rgba(255, 235, 201, 0.72), rgba(255, 245, 226, 0.82));
}

.stat-cool {
  background: linear-gradient(180deg, rgba(217, 230, 233, 0.78), rgba(231, 240, 240, 0.86));
}

.stat-rose {
  background: linear-gradient(180deg, rgba(241, 220, 220, 0.82), rgba(247, 232, 232, 0.9));
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature-strip article {
  padding: 1.6rem 1.5rem;
  color: var(--muted);
  line-height: 1.65;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.feature-strip span {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  margin: 1rem auto;
}

.panel {
  padding: 2.2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.panel-large {
  min-height: 28rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.44), rgba(255, 248, 238, 0.84)),
    radial-gradient(circle at top left, rgba(214, 163, 79, 0.28), transparent 32%),
    radial-gradient(circle at bottom right, rgba(58, 85, 102, 0.22), transparent 40%);
}

.panel-large h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.8rem);
  margin-top: 0.4rem;
  max-width: 16ch;
}

.panel-stack {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 249, 241, 0.72), rgba(255, 247, 236, 0.82));
}

.stack-item {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.stack-item h3 {
  margin: 0.4rem 0 0.35rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.stack-item p {
  margin: 0;
  font-size: 0.96rem;
}

.insight-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 1.25rem;
  align-items: center;
  margin: 2.5rem auto;
}

.insight-copy {
  padding: 0.5rem 0.5rem 0.5rem 0;
}

.insight-copy h2 {
  margin-top: 0.4rem;
  font-size: clamp(2.2rem, 3.6vw, 3.6rem);
  max-width: 14ch;
}

.insight-copy p {
  margin-top: 1.1rem;
  max-width: 32rem;
}

.product-card {
  display: block;
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.6), rgba(255, 248, 238, 0.9)),
    radial-gradient(circle at top right, rgba(214, 163, 79, 0.28), transparent 40%);
  box-shadow: var(--shadow);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
  color: var(--ink);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 90px rgba(48, 44, 30, 0.18);
}

.product-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.product-mark {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  display: block;
}

.product-name {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.product-domain {
  margin: 0.1rem 0 0;
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--muted);
}

.product-tagline {
  margin: 0 0 1.2rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1.4rem;
  list-style: none;
}

.product-tags li {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(33, 70, 49, 0.08);
  color: var(--moss);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.product-cta {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--forest);
  font-weight: 700;
  font-size: 0.95rem;
  transition: gap 200ms ease;
}

.product-card:hover .product-cta {
  gap: 0.85rem;
}

.cta-section {
  margin: 2rem auto 2.5rem;
  padding: 3rem 2.5rem;
  text-align: center;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.66), rgba(255, 248, 238, 0.9)),
    radial-gradient(circle at top center, rgba(71, 107, 79, 0.22), transparent 32%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.cta-section h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.8rem);
  margin-top: 0.4rem;
}

.cta-text {
  max-width: 38rem;
  margin: 1.1rem auto 0;
}

.download-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.download-links .button-primary {
  font-family: var(--mono);
  letter-spacing: -0.01em;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .story-grid,
  .insight-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
    gap: 2rem;
  }

  .hero-visual {
    order: -1;
  }

  .terminal-frame {
    transform: none;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .panel-large {
    min-height: auto;
    padding-top: 2.5rem;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.6rem;
    overflow-x: auto;
    padding: 0.7rem 0.85rem;
  }

  .hero-points,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .panel,
  .cta-section {
    padding: 1.75rem 1.4rem;
  }

  .terminal-body {
    font-size: 0.78rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
