:root {
  --bg: #efe5d5;
  --bg-deep: #e4d3be;
  --surface: rgba(251, 246, 239, 0.84);
  --surface-strong: #fbf6ef;
  --ink: #173d2f;
  --ink-soft: #556158;
  --accent: #d8894e;
  --accent-soft: #f0d0b1;
  --line: rgba(23, 61, 47, 0.12);
  --shadow: 0 30px 80px rgba(23, 61, 47, 0.12);
  --shadow-strong: 0 42px 90px rgba(23, 61, 47, 0.2);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --headline-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body-font: "Avenir Next", "Segoe UI Variable", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body-font);
  background:
    radial-gradient(circle at top left, rgba(216, 137, 78, 0.24), transparent 38%),
    radial-gradient(circle at top right, rgba(23, 61, 47, 0.14), transparent 32%),
    linear-gradient(180deg, #f6ede1 0%, var(--bg) 42%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 88%);
  opacity: 0.35;
}

.page-shell {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.hero,
.section,
.footer-panel {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  min-height: 92vh;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 246, 239, 0.7);
  backdrop-filter: blur(12px);
}

.brand-name {
  margin: 0;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.hero h1,
.section h2,
.feature-card h3 {
  font-family: var(--headline-font);
  font-weight: 700;
  line-height: 0.95;
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(3.2rem, 6vw, 6.2rem);
  text-wrap: balance;
}

.lede {
  max-width: 62ch;
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.cta-row,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  color: #f8f4ee;
  background: linear-gradient(135deg, #173d2f, #295945);
  box-shadow: var(--shadow);
}

.button-secondary {
  color: var(--ink);
  background: rgba(251, 246, 239, 0.72);
  border-color: rgba(23, 61, 47, 0.2);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
}

.stat-row li {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(251, 246, 239, 0.64);
  backdrop-filter: blur(10px);
}

.stat-row strong,
.gallery-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.stat-row span,
.gallery-card span,
.feature-card p,
.panel p,
.check-list,
.text-link {
  color: var(--ink-soft);
}

.hero-art {
  position: relative;
  height: min(860px, 82vh);
}

.device {
  overflow: hidden;
  border-radius: 32px;
  border: 12px solid #10281f;
  background: #10281f;
  box-shadow: var(--shadow-strong);
}

.device img {
  display: block;
  width: 100%;
  height: auto;
}

.stack-left,
.stack-center,
.stack-right {
  position: absolute;
  width: min(290px, 46vw);
}

.stack-left {
  left: 0;
  bottom: 8%;
  transform: rotate(-8deg);
}

.stack-center {
  right: 18%;
  top: 2%;
  transform: rotate(4deg);
}

.stack-right {
  right: 0;
  bottom: 0;
  transform: rotate(10deg);
}

.section {
  margin-top: 56px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(251, 246, 239, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.section-heading {
  margin-bottom: 24px;
}

.section h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  text-wrap: balance;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.panel,
.gallery-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.feature-card {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(240, 228, 212, 0.7));
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.6rem;
}

.feature-card p {
  margin: 0;
  line-height: 1.7;
}

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

.panel {
  padding: 28px;
}

.panel-ink {
  color: #f7f0e4;
  background: linear-gradient(160deg, #173d2f 0%, #244f3f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.panel-ink .eyebrow,
.panel-ink p,
.panel-ink .check-list,
.panel-ink .text-link {
  color: rgba(247, 240, 228, 0.78);
}

.panel-light {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(242, 225, 204, 0.9));
}

.check-list {
  margin: 20px 0 0;
  padding-left: 18px;
  line-height: 1.8;
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  color: inherit;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(240, 228, 212, 0.76));
}

.gallery-card figcaption {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.single {
  max-width: 280px;
  margin: 0 auto;
}

.footer-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 560ms ease forwards;
}

.delay-1 {
  animation-delay: 80ms;
}

.delay-2 {
  animation-delay: 160ms;
}

.delay-3 {
  animation-delay: 240ms;
}

.delay-4 {
  animation-delay: 320ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero,
  .split,
  .gallery-grid,
  .three-up,
  .footer-panel {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .hero-art {
    height: 720px;
  }

  .footer-actions {
    margin-top: 0;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 10px;
  }

  .section {
    padding: 22px;
    margin-top: 24px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .hero-art {
    height: auto;
    display: grid;
    gap: 18px;
  }

  .stack-left,
  .stack-center,
  .stack-right {
    position: static;
    width: min(100%, 320px);
    margin: 0 auto;
    transform: none;
  }

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