:root {
  --bg: #f4efe5;
  --surface: rgba(255, 252, 245, 0.82);
  --surface-strong: #fffdf8;
  --ink: #1d241f;
  --muted: #5e675f;
  --line: rgba(28, 45, 34, 0.12);
  --brand: #123524;
  --brand-soft: #1b5740;
  --accent: #d17a2a;
  --accent-soft: #f0d8bd;
  --tint: #ebe3d4;
  --dark: #132019;
  --shadow: 0 24px 80px rgba(27, 33, 24, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

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

html,
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(circle at top left, rgba(209, 122, 42, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 10%, rgba(18, 53, 36, 0.13), transparent 24rem),
    linear-gradient(180deg, #f7f1e7 0%, #f4efe5 42%, #efe7d7 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Iowan Old Style", "Palatino Linotype", "URW Palladio L", Georgia, serif;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

p {
  margin: 0;
}

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

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

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  transform: translateY(-160%);
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  z-index: 100;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(760px, 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0;
  backdrop-filter: blur(18px);
  background: rgba(244, 239, 229, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(247, 241, 231, 0.92);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-mark {
  height: 2.4rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-menu a[aria-current="page"] {
  color: var(--brand);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  margin: 0.18rem auto;
  background: var(--brand);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button-solid {
  background: var(--brand);
  color: #fff;
}

.button-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--brand);
}

.button-light {
  background: #fff;
  color: var(--brand);
}

.button-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.hero {
  position: relative;
  padding: 6rem 0 4.5rem;
}

.hero-grid,
.page-grid,
.split-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  max-width: 12ch;
}

.hero-title {
  display: grid;
  gap: 0.35rem;
  max-width: 13.5ch;
  font-size: clamp(2.35rem, 4.2vw, 4rem) !important;
  line-height: 0.96;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.1vw, 3.45rem);
  max-width: 15ch;
  line-height: 1.02;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-title-accent {
  display: block;
  max-width: 12.5ch;
  color: var(--brand-soft);
}

.hero-copy,
.page-intro,
.section-heading p,
.footer-copy,
.price-copy,
.expand-card p,
.info-card p,
.feature-portal p,
.step-card p,
.check-card,
.prose-stack p,
.mini-panel p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-copy,
.page-intro {
  margin-top: 1.25rem;
  max-width: 40rem;
}

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

.eyebrow,
.kicker,
.portal-label,
.expand-kicker,
.price-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--brand-soft);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.proof-chip {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 53, 36, 0.12);
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  color: var(--brand);
}

.hero-panel-wrap {
  display: flex;
  justify-content: flex-end;
}

.hero-panel,
.price-card,
.info-card,
.step-card,
.feature-portal,
.mini-panel,
.metrics-panel,
.cta-card,
.storage-stack,
.expand-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-panel {
  width: 100%;
  max-width: 34rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.terminal-top,
.hero-panel-footer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.2rem;
}

.terminal-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(19, 32, 25, 0.95);
}

.terminal-top span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: #d17a2a;
}

.terminal-top span:nth-child(2) {
  background: #e0b24e;
}

.terminal-top span:nth-child(3) {
  background: #73906f;
}

.terminal-top p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.terminal-body {
  background: linear-gradient(180deg, #102117 0%, #17281d 100%);
  padding: 1.5rem 1.2rem;
}

.terminal-body pre {
  margin: 0;
  color: #e9efe7;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

.hero-panel-footer {
  align-items: flex-start;
  flex-direction: column;
  background: rgba(255, 251, 244, 0.92);
}

.hero-panel-footer strong {
  color: var(--ink);
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
  pointer-events: none;
}

.hero-orb-a {
  width: 28rem;
  height: 28rem;
  right: -6rem;
  top: 2rem;
  background: rgba(209, 122, 42, 0.14);
}

.hero-orb-b {
  width: 22rem;
  height: 22rem;
  left: -4rem;
  bottom: 0;
  background: rgba(18, 53, 36, 0.12);
}

.section,
.page-main {
  position: relative;
}

.section {
  padding: 5rem 0;
}

.page-hero {
  padding: 4rem 0 1.5rem;
}

.section-tint {
  background: linear-gradient(180deg, rgba(235, 227, 212, 0.55), rgba(235, 227, 212, 0.22));
  border-top: 1px solid rgba(28, 45, 34, 0.06);
  border-bottom: 1px solid rgba(28, 45, 34, 0.06);
}

.section-dark {
  padding-top: 0;
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 2.2rem;
}

.section-heading h2,
.split-panel h2,
.cta-card h2,
.prose-stack h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-top: 0.45rem;
}

.page-main .section-heading h2,
.page-main .split-panel h2,
.page-main .prose-stack h2,
.expand-card summary h2 {
  font-size: clamp(1.7rem, 2.7vw, 2.55rem);
}

.grid-three,
.stack-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.info-card,
.step-card,
.feature-portal,
.price-card,
.mini-panel {
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.info-card h3,
.step-card h3,
.feature-portal h3,
.price-card h2,
.mini-panel h3 {
  font-size: 1.5rem;
  margin-top: 0.55rem;
  margin-bottom: 0.7rem;
}

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

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand);
  font-weight: 800;
  margin-bottom: 1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-weight: 700;
  color: var(--brand);
}

.text-link::after {
  content: "→";
}

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

.check-card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid var(--line);
}

.cta-card {
  border-radius: 32px;
  padding: 2.5rem;
  background: linear-gradient(135deg, #173627 0%, #102117 100%);
  color: #fff;
}

.cta-card .eyebrow,
.cta-card p {
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-logo {
  height: 2rem;
}

.footer-copy {
  margin-top: 1rem;
  max-width: 34rem;
}

.footer-links {
  display: grid;
  gap: 0.65rem;
  color: var(--muted);
}

.expandable-grid {
  display: grid;
  gap: 1rem;
}

.expand-card {
  border-radius: 24px;
  overflow: hidden;
}

.expand-card summary {
  list-style: none;
  cursor: pointer;
  padding: 1.45rem 1.5rem;
}

.expand-card summary::-webkit-details-marker {
  display: none;
}

.expand-card summary h2 {
  margin-top: 0.4rem;
  margin-bottom: 0.45rem;
}

.expand-card[open] summary {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 251, 244, 0.72);
}

.expand-body {
  padding: 1.25rem 1.5rem 1.5rem;
  color: var(--muted);
}

.expand-body p + p {
  margin-top: 0.8rem;
}

.storage-visual {
  display: flex;
  justify-content: flex-end;
}

.storage-stack {
  display: grid;
  gap: 0.9rem;
  padding: 1.5rem;
  border-radius: 28px;
  max-width: 26rem;
  width: 100%;
}

.storage-box {
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(18, 53, 36, 0.96), rgba(34, 72, 53, 0.92));
  color: #f8f4ec;
  padding: 1rem 1.1rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.pricing-grid {
  align-items: stretch;
}

.pricing-examples-heading {
  margin-top: 3.5rem;
}

.pricing-examples {
  margin-top: 1.5rem;
}

.price-card-featured {
  transform: translateY(-0.4rem);
  background: linear-gradient(180deg, rgba(18, 53, 36, 0.98), rgba(30, 71, 52, 0.95));
  color: #fff;
}

.price-card-featured .price-label,
.price-card-featured .price-copy,
.price-card-featured li {
  color: rgba(255, 255, 255, 0.84);
}

.price-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.price-list li + li {
  margin-top: 0.6rem;
}

.metrics-panel {
  border-radius: 24px;
  padding: 1.5rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.metric-row:last-child {
  border-bottom: 0;
}

.prose-stack {
  display: grid;
  gap: 2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 980px) {
  .hero-grid,
  .page-grid,
  .split-panel,
  .grid-three,
  .steps,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel-wrap,
  .storage-visual {
    justify-content: flex-start;
  }

  .check-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 0.75rem 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 252, 245, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 100%;
  }

  .hero-title {
    max-width: 100%;
    gap: 0.5rem;
    font-size: clamp(2.1rem, 9.5vw, 3rem) !important;
  }

  .hero-title-line,
  .hero-title-accent {
    max-width: 100%;
    white-space: normal;
  }

  .page-hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.7rem);
  }

  .footer-grid {
    flex-direction: column;
  }

  .metric-row {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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