/* Presentation page of SOFIA Filter Studio. Same palette as the app (app/style.css). */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f3f5f9;
  --surface: #ffffff;
  --border: #e2e6ee;
  --text: #1e2533;
  --muted: #5d6578;
  --accent: #2f6fed;
  --accent-hover: #1e4fbf;
  --accent-soft: #eaf1fe;
  --accent-text: #1e4fbf;
  --success: #15803d;
  --glow: rgba(47, 111, 237, 0.16);
  --shadow: 0 1px 2px rgba(30, 37, 51, 0.06), 0 18px 48px -12px rgba(30, 37, 51, 0.22);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", "DejaVu Sans Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f131a;
    --bg-alt: #131821;
    --surface: #171c25;
    --border: #283040;
    --text: #e6eaf2;
    --muted: #a0a8ba;
    --accent: #5b8def;
    --accent-hover: #7aa3f2;
    --accent-soft: #1c2a45;
    --accent-text: #a9c4f8;
    --success: #4ade80;
    --glow: rgba(91, 141, 239, 0.18);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 48px -12px rgba(0, 0, 0, 0.7);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f131a;
  --bg-alt: #131821;
  --surface: #171c25;
  --border: #283040;
  --text: #e6eaf2;
  --muted: #a0a8ba;
  --accent: #5b8def;
  --accent-hover: #7aa3f2;
  --accent-soft: #1c2a45;
  --accent-text: #a9c4f8;
  --success: #4ade80;
  --glow: rgba(91, 141, 239, 0.18);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 48px -12px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 780px;
}

/* Navigation --------------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}

.brand svg {
  width: 30px;
  height: 30px;
}

.brand small {
  font-weight: 500;
  color: var(--muted);
  font-size: 15px;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
}

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

.nav-links a:hover {
  color: var(--text);
}

/* Buttons ------------------------------------------------------------------------------------ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.button.small {
  padding: 8px 14px;
  font-size: 14px;
}

/* Hero --------------------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 72px 0 0;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 720px;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 600;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  margin: 0 auto;
  max-width: 820px;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 750;
}

h1 .accent {
  color: var(--accent);
}

.lead {
  margin: 22px auto 0;
  max-width: 680px;
  font-size: clamp(17px, 2vw, 19.5px);
  color: var(--muted);
}

.cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}


.window {
  margin: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.window-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border);
}

.window-bar span {
  margin: 0 auto;
  padding: 2px 14px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  transform: translateX(-24px);
}

.hero-shot {
  margin: 56px auto -1px;
  max-width: 1080px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 0;
}

/* Stats -------------------------------------------------------------------------------------- */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 32px 24px;
  border-left: 1px solid var(--border);
}

.stat:first-child {
  border-left: 0;
}

.stat strong {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
}

/* Sections ----------------------------------------------------------------------------------- */
.section {
  padding: 96px 0;
}

.section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}


h2 {
  margin: 0 0 40px;
  max-width: 720px;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.body {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 16px;
}

.download svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--accent-soft);
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-card p,
.download p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* Steps -------------------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.step-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.mini {
  margin-top: auto;
  padding-top: 20px;
}

.mini.kinds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mini.kinds svg {
  width: 100%;
  height: auto;
  padding: 6px 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini.kinds svg.on {
  border: 2px solid var(--accent);
  background: var(--accent-soft);
  stroke: var(--accent);
}

.mini.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mini.fields span {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

.mini.fields b {
  color: var(--muted);
  font-weight: 600;
}

.mini.fields i {
  margin-left: auto;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

pre.mini.code {
  margin: auto 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
  color: var(--text);
}

/* Tour --------------------------------------------------------------------------------------- */
.tour-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tour-tabs button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.tour-tabs button:hover {
  color: var(--text);
}

.tour-tabs button[aria-selected="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-text);
}

.tour-stage {
  margin: 0;
}

.tour-stage figcaption {
  margin: 18px auto 0;
  max-width: 760px;
  text-align: center;
  color: var(--muted);
}

.phones {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 8px 0;
}

.phones img {
  width: min(300px, 44vw);
  border-radius: 28px;
  border: 8px solid var(--text);
  box-shadow: var(--shadow);
}

/* Two columns, table, list ------------------------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.two-col h2 {
  margin-bottom: 18px;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  font-size: 15.5px;
}

.table th,
.table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--border);
}

.table th {
  border-top: 0;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table td:first-child {
  white-space: nowrap;
}

/* Downloads ---------------------------------------------------------------------------------- */
.downloads {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.download {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.download:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.download .go {
  margin-top: 18px;
  color: var(--accent-text);
  font-weight: 600;
}

.small-print {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.small-print a {
  color: var(--accent-text);
}

/* FAQ ---------------------------------------------------------------------------------------- */
details {
  border-bottom: 1px solid var(--border);
}

details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.15s;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  margin: -4px 0 20px;
  color: var(--muted);
}

/* Footer ------------------------------------------------------------------------- */





.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer nav {
  display: flex;
  gap: 20px;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--text);
}

/* Responsive --------------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .nav-inner .button {
    margin-left: auto;
  }

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

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .steps,
  .downloads {
    grid-template-columns: 1fr 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding-top: 48px;
  }

  .cta .button {
    flex: 1 1 100%;
  }

  .hero-shot {
    max-width: 290px;
    margin: 40px auto 48px;
    border: 7px solid var(--text);
    border-radius: 30px;
  }

  .hero-shot .window-bar {
    display: none;
  }

  .window-bar span {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  h2 {
    margin-bottom: 28px;
  }

  .stats-grid,
  .steps,
  .downloads {
    grid-template-columns: 1fr;
  }

  .stat {
    border-left: 0;
    padding: 22px 0;
  }

  .stat + .stat {
    border-top: 1px solid var(--border);
  }

  .brand small {
    display: none;
  }

  .table td:first-child {
    white-space: normal;
  }

  .phones {
    gap: 12px;
  }

  .phones img {
    border-width: 5px;
    border-radius: 20px;
  }
}

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

  .button,
  .download {
    transition: none;
  }
}
