:root {
  --bg: #f5efe6;
  --bg-strong: #efe4d2;
  --surface: rgba(255, 251, 245, 0.82);
  --surface-strong: #fffaf2;
  --text: #221c17;
  --muted: #62554b;
  --line: rgba(34, 28, 23, 0.12);
  --brand: #001e64;
  --brand-deep: #001447;
  --accent: #f50c56;
  --accent-soft: #ffd5e3;
  --gold: #c9a552;
  --shadow: 0 24px 60px rgba(65, 42, 24, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-display: "Space Grotesk", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 30, 100, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(245, 12, 86, 0.14), transparent 26%),
    linear-gradient(180deg, #fbf7ef 0%, var(--bg) 100%);
  font-family: var(--font-body);
}

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

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

.site-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.75);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(53, 35, 23, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 30, 100, 0.1);
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong,
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
}

.brand-copy span:last-child {
  color: var(--muted);
  font-size: 0.85rem;
}

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

.site-nav a,
.footer-links a {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff7ed;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
  padding: 34px 0 18px;
}

.hero-copy,
.hero-card,
.feature-card,
.story-panel,
.checklist-panel,
.privacy-callout,
.policy-card,
.policy-aside,
.feature-strip > div {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 42px;
  border-radius: var(--radius-lg);
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-deep);
  font-size: 0.77rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.9rem, 6vw, 5.4rem);
  line-height: 0.96;
}

.hero-text,
.section-heading h2,
.section-heading p,
.story-panel p,
.check-item span,
.feature-card p,
.privacy-copy p,
.policy-card p,
.policy-card li {
  color: var(--muted);
}

.hero-text {
  max-width: 58ch;
  margin: 22px 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.68);
  border-color: var(--line);
  color: var(--text);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 8px);
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(201, 165, 82, 0.24), transparent 30%),
    linear-gradient(180deg, rgba(18, 78, 74, 0.08), rgba(255, 255, 255, 0.7));
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(245, 12, 86, 0.18);
  filter: blur(4px);
}

.device-frame {
  position: relative;
  width: min(100%, 360px);
  margin: 0 auto;
  border-radius: 34px;
  padding: 18px;
  background: #1d1f24;
  box-shadow: 0 26px 50px rgba(20, 20, 25, 0.26);
}

.device-top {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding-bottom: 16px;
}

.signal {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.device-body {
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, #fcfaf6, #f2ecdf);
}

.metric-card,
.metric-grid article {
  border-radius: 18px;
  padding: 16px;
}

.metric-card {
  margin-bottom: 14px;
  color: #fff;
}

.accent-coral {
  background: linear-gradient(145deg, var(--accent), #b10844);
}

.metric-card span,
.metric-grid span {
  display: block;
  font-size: 0.82rem;
  opacity: 0.88;
}

.metric-card strong,
.metric-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.metric-grid article {
  background: #fff8ed;
  border: 1px solid rgba(0, 30, 100, 0.1);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.feature-strip > div {
  padding: 18px 20px;
  border-radius: var(--radius-md);
}

.strip-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
}

.feature-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.content-section {
  padding: 86px 0 0;
}

.alternate {
  position: relative;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
  color: var(--text);
}

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

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

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

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

.story-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.story-panel,
.checklist-panel,
.privacy-callout,
.policy-card,
.policy-aside {
  border-radius: var(--radius-lg);
}

.story-panel,
.checklist-panel {
  padding: 28px;
}

.story-panel p {
  margin: 0 0 16px;
  line-height: 1.8;
}

.story-panel p:last-child {
  margin-bottom: 0;
}

.checklist-panel {
  display: grid;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.95), rgba(227, 233, 255, 0.88));
}

.check-item {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 30, 100, 0.1);
}

.check-item strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
}

.privacy-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 86px;
  padding: 30px;
  background:
    radial-gradient(circle at left top, rgba(0, 30, 100, 0.18), transparent 28%),
    radial-gradient(circle at right bottom, rgba(245, 12, 86, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(232, 237, 255, 0.82));
}

.privacy-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
}

.privacy-copy p:last-child {
  margin-bottom: 0;
  max-width: 56ch;
  line-height: 1.7;
}

.site-footer {
  margin-top: 72px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 4px 0 0;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.policy-body .page-shell {
  padding-bottom: 72px;
}

.policy-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.policy-aside {
  position: sticky;
  top: 104px;
  padding: 28px;
}

.policy-aside h1 {
  max-width: none;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.policy-meta {
  margin: 24px 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(34, 28, 23, 0.08);
}

.policy-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.policy-card {
  padding: 34px;
  background: rgba(255, 251, 245, 0.9);
}

.policy-card h2,
.policy-card h3,
.policy-card h4 {
  color: var(--text);
}

.policy-card h2 {
  margin-top: 0;
  font-size: 2rem;
}

.policy-card h3 {
  margin-top: 30px;
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.policy-card h4 {
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 1.02rem;
}

.policy-card p,
.policy-card li {
  line-height: 1.75;
}

.policy-card ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.policy-card code {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 30, 100, 0.08);
  font-family: "SFMono-Regular", "Consolas", monospace;
}

.support-card {
  min-height: 320px;
}

.support-email {
  margin: 24px 0;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 30, 100, 0.1);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  word-break: break-word;
}

.support-email a {
  color: var(--brand);
}

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

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

  .privacy-callout,
  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .policy-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero-copy,
  .hero-card,
  .policy-card,
  .policy-aside {
    padding: 22px;
  }

  .site-header {
    border-radius: 28px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.4rem, 10vw, 3.6rem);
  }

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

  .site-nav {
    gap: 12px;
  }
}
