:root {
  --bg: #f7f2e8;
  --surface: #fffdf8;
  --surface-soft: #f1ece2;
  --sage: #748d79;
  --sage-deep: #516856;
  --blue: #486899;
  --ink: #1a221c;
  --muted: #5d675f;
  --line: #e6ddd0;
  --shadow: 0 18px 44px rgba(26, 34, 28, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(116, 141, 121, 0.12), transparent 32%),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg) 45%, #f1e9dc 100%);
}

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

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 221, 208, 0.9);
}

.nav-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 600;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--sage-deep);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.hero,
.page-hero,
.section,
.legal-page {
  padding: 72px 0;
}

.hero-layout,
.page-hero-layout,
.platform-grid,
.footer-shell,
.legal-panel {
  display: grid;
  gap: 28px;
}

.hero-layout,
.page-hero-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: start;
}

.hero-copy h1,
.page-copy h1,
.legal-panel h2,
.legal-shell h1,
.section-heading h2 {
  margin: 0 0 18px;
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 4.7vw, 4.6rem);
  line-height: 1.05;
  font-weight: 600;
}

.section-heading h2,
.legal-panel h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.72);
}

.hero-text,
.page-intro,
.section-intro,
.feature-card p,
.platform-card p,
.legal-summary,
.legal-shell p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.03rem;
}

.hero-actions,
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin: 28px 0 0;
}

.platform-note {
  margin: 18px 0 0;
  color: var(--sage-deep);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  background: var(--sage);
  color: white;
}

.button-primary:hover {
  background: var(--sage-deep);
}

.button-secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

.button-light {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-copy,
.page-copy,
.feature-card,
.platform-card,
.legal-shell {
  min-width: 0;
}

.hero-device-stack,
.screen-grid,
.feature-grid {
  display: grid;
  gap: 18px;
}

.hero-device-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.hero-device-stack .device-card {
  height: 100%;
}

.hero-device-stack .device-screen {
  height: clamp(360px, 34vw, 560px);
  max-height: clamp(360px, 34vw, 560px);
}

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

.screen-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.feature-card,
.platform-card,
.device-card,
.legal-shell {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(230, 221, 208, 0.9);
  box-shadow: var(--shadow);
}

.feature-card,
.platform-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.device-card {
  padding: 14px;
  border-radius: var(--radius-xl);
}

.device-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.device-head span,
.platform-chip {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.platform-chip-blue {
  color: var(--blue);
}

.device-head small {
  color: var(--muted);
  font-weight: 700;
}

.device-screen {
  max-height: min(78vh, 720px);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 26px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: rgba(81, 104, 86, 0.55) transparent;
}

.device-screen::-webkit-scrollbar {
  width: 8px;
}

.device-screen::-webkit-scrollbar-thumb {
  background: rgba(81, 104, 86, 0.42);
  border-radius: 999px;
}

.device-screen img {
  width: 100%;
  height: auto;
}

.section-white {
  background: rgba(255, 255, 255, 0.72);
}

.section-cream {
  background: transparent;
}

.section-dark {
  background: #1b221c;
  color: white;
}

.section-heading {
  margin-bottom: 28px;
  max-width: 780px;
}

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

.legal-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.legal-shell {
  padding: 34px;
  border-radius: var(--radius-xl);
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.legal-shell h2 {
  margin: 8px 0 0;
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
}

.site-footer {
  background: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(230, 221, 208, 0.9);
}

.footer-shell {
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 82px;
}

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

@media (max-width: 1080px) {
  .hero-layout,
  .page-hero-layout,
  .platform-grid,
  .legal-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero-device-stack,
  .feature-grid,
  .screen-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .hero-device-stack .device-screen {
    height: auto;
    max-height: min(78vh, 720px);
  }

  .footer-shell {
    padding: 18px 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .hero,
  .page-hero,
  .section,
  .legal-page {
    padding: 56px 0;
  }

  .feature-card,
  .platform-card,
  .device-card,
  .legal-shell {
    padding: 20px;
  }

  .button,
  .hero-actions,
  .legal-actions {
    width: 100%;
  }
}
