:root {
  color-scheme: light;
  --ink: #14201c;
  --muted: #5d6b63;
  --paper: #f5f7f0;
  --surface: #ffffff;
  --soft: #eef3e9;
  --line: #dbe5d5;
  --teal: #137477;
  --teal-dark: #0d4e50;
  --coral: #d96149;
  --amber: #d9a12d;
  --green: #6c9b54;
  --blue: #4b77a8;
  --rose: #bd5d7a;
  --charcoal: #101916;
  --shadow: 0 18px 54px rgba(20, 32, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img,
svg {
  display: block;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(16, 25, 22, 0.46);
  color: #fff;
  backdrop-filter: blur(18px);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(20, 32, 28, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-size: 16px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 750;
}

.nav-links a:not(.nav-cta) {
  opacity: 0.86;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-cta {
  padding: 10px 16px;
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
  box-shadow: 0 12px 26px rgba(217, 97, 73, 0.26);
}

.site-header.is-scrolled .nav-cta {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}

.nav-cta svg,
.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
}

.site-header.is-scrolled .nav-toggle {
  border-color: var(--line);
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  min-height: 90svh;
  background:
    linear-gradient(90deg, rgba(10, 15, 13, 0.9) 0%, rgba(10, 15, 13, 0.72) 38%, rgba(10, 15, 13, 0.18) 78%),
    url("assets/decipler-hero.png");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero-inner {
  min-height: 90svh;
  display: grid;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 60px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #9ee0cf;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 78px;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 42px;
}

.button {
  min-width: 172px;
  padding: 14px 18px;
}

.button-primary {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
  box-shadow: 0 14px 32px rgba(217, 97, 73, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #bd4f3a;
  border-color: #bd4f3a;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.button-light {
  background: #fff;
  color: var(--charcoal);
  border-color: var(--line);
}

.button-light:hover,
.button-light:focus-visible {
  background: var(--soft);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 0;
}

.hero-stats div {
  min-height: 104px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats dt {
  margin-bottom: 4px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.status-band {
  background: var(--charcoal);
  color: #fff;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.status-grid > div {
  min-height: 122px;
  padding: 26px;
  background: var(--charcoal);
}

.status-label {
  display: block;
  margin-bottom: 8px;
  color: #9ee0cf;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-grid strong {
  display: block;
  max-width: 310px;
  font-size: 18px;
  line-height: 1.3;
}

.section {
  padding: 92px 0;
}

.section-intro {
  padding-top: 56px;
  background: var(--surface);
}

.intro-grid,
.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 56px;
  align-items: start;
}

.intro-grid p:last-child,
.section-heading p,
.feature-copy p,
.product-copy p,
.privacy-points p,
.download-option p {
  color: var(--muted);
  font-size: 17px;
}

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

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.76fr);
  gap: 48px;
  align-items: end;
}

.split-heading h2 {
  max-width: 720px;
}

.split-heading p {
  margin-bottom: 6px;
}

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

.category-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 32px rgba(20, 32, 28, 0.05);
}

.category-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.card-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 8px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.accent-teal .card-icon {
  background: rgba(19, 116, 119, 0.12);
  color: var(--teal-dark);
}

.accent-coral .card-icon {
  background: rgba(217, 97, 73, 0.13);
  color: var(--coral);
}

.accent-amber .card-icon {
  background: rgba(217, 161, 45, 0.16);
  color: #9b6f10;
}

.accent-green .card-icon {
  background: rgba(108, 155, 84, 0.16);
  color: #4d7637;
}

.accent-blue .card-icon {
  background: rgba(75, 119, 168, 0.14);
  color: var(--blue);
}

.accent-rose .card-icon {
  background: rgba(189, 93, 122, 0.14);
  color: var(--rose);
}

.feature-band {
  background: #e8f1e3;
}

.feature-grid,
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 56px;
  align-items: center;
}

.feature-copy,
.product-copy {
  max-width: 560px;
}

.flow-steps {
  display: grid;
  gap: 14px;
}

.flow-steps article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  min-height: 118px;
  padding: 22px;
  border: 1px solid #d1dfca;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.flow-steps span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.flow-steps h3,
.flow-steps p {
  margin-bottom: 0;
}

.flow-steps p {
  color: var(--muted);
}

.product-section {
  background: var(--surface);
}

.app-preview {
  padding: 28px;
  border: 1px solid #cedbd0;
  border-radius: 8px;
  background: #f8fbf4;
  box-shadow: var(--shadow);
}

.preview-topbar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.preview-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cdd8c8;
}

.preview-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.preview-header span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.preview-header strong {
  color: var(--teal-dark);
  font-size: 28px;
  line-height: 1;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.preview-metrics div {
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.preview-metrics strong,
.preview-metrics span {
  display: block;
}

.preview-metrics strong {
  margin-bottom: 6px;
  color: var(--charcoal);
  font-size: 30px;
  line-height: 1;
}

.preview-metrics span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.preview-list {
  display: grid;
  gap: 10px;
}

.preview-list span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 850;
}

.preview-list span::after {
  content: "Off";
  color: var(--muted);
}

.preview-list .is-on {
  color: var(--ink);
}

.preview-list .is-on::after {
  content: "On";
  color: var(--teal-dark);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 750;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--teal);
  box-shadow: inset 0 0 0 4px #cde8dc;
}

.privacy-section {
  background: var(--soft);
}

.privacy-points {
  display: grid;
  gap: 24px;
}

.privacy-points article {
  padding-bottom: 24px;
  border-bottom: 1px solid #cad8c5;
}

.privacy-points article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.privacy-points h3 {
  margin-bottom: 6px;
}

.privacy-points p {
  margin-bottom: 0;
}

.download-section {
  background: var(--paper);
}

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

.download-option {
  display: grid;
  align-content: space-between;
  gap: 28px;
  min-height: 326px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(20, 32, 28, 0.06);
}

.download-option.is-muted {
  background: #fbfcf8;
}

.download-platform {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.download-option strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
}

.download-option p {
  margin-bottom: 0;
  font-size: 15px;
}

.download-option .button {
  width: 100%;
}

.download-status {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 850;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  min-height: 112px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  color: var(--muted);
}

.footer-inner p {
  margin: 0;
  text-align: center;
}

.footer-year {
  font-weight: 850;
}

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

  .nav-links {
    position: fixed;
    top: 72px;
    right: 20px;
    left: 20px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 14px;
    border-radius: 8px;
  }

  .nav-cta {
    margin-top: 6px;
    background: var(--charcoal);
    color: #fff;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 34px;
  }

  .intro-grid,
  .split-heading,
  .feature-grid,
  .product-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .nav {
    min-height: 66px;
  }

  .nav-links {
    top: 66px;
    right: 14px;
    left: 14px;
  }

  .hero,
  .hero-inner {
    min-height: 94svh;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(10, 15, 13, 0.94) 0%, rgba(10, 15, 13, 0.82) 54%, rgba(10, 15, 13, 0.42) 100%),
      url("assets/decipler-hero.png");
    background-position: 62% center;
  }

  .hero-inner {
    align-items: end;
    padding-top: 88px;
    padding-bottom: 34px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-actions,
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .hero-stats,
  .status-grid,
  .category-grid,
  .download-grid,
  .preview-metrics {
    grid-template-columns: 1fr;
  }

  .hero-stats div,
  .status-grid > div,
  .preview-metrics div {
    min-height: 0;
  }

  .section {
    padding: 68px 0;
  }

  .section-intro {
    padding-top: 42px;
  }

  .category-card,
  .flow-steps article,
  .app-preview,
  .download-option {
    padding: 22px;
  }

  .flow-steps article {
    grid-template-columns: 1fr;
  }

  .download-option {
    min-height: 0;
  }

  .footer-inner {
    justify-items: start;
  }

  .footer-inner p {
    text-align: left;
  }
}
