:root {
  --bg-deep: #0f0a0d;
  --bg-surface: #1a1116;
  --bg-elevated: #241820;
  --bg-elevated-hover: #2e1e28;
  --border: #3a2530;
  --border-soft: #2a1b22;
  --text: #f3e9ed;
  --text-muted: #a68f97;
  --text-faint: #6b5960;
  --rose: #fb7185;
  --rose-bright: #fda4af;
  --rose-deep: #9f1239;
  --rose-glow: rgba(251, 113, 133, 0.25);
  --rose-glow-strong: rgba(251, 113, 133, 0.45);
  --success: #34d399;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-deep);
  background-image: radial-gradient(ellipse 900px 500px at 50% -10%, rgba(251, 113, 133, 0.12), transparent);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--rose-bright);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* -- nav ------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(15, 10, 13, 0.75);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}
.brand svg {
  height: 24px;
  width: 24px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}
.nav-links a.plain {
  color: var(--text-muted);
}
.nav-links a.plain:hover {
  color: var(--text);
  text-decoration: none;
}

/* -- buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  transition: border-color 150ms var(--ease), background 150ms var(--ease), box-shadow 150ms var(--ease),
    transform 150ms var(--ease);
}
.btn:hover {
  background: var(--bg-elevated-hover);
  border-color: var(--rose-deep);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--rose);
  border-color: var(--rose);
  color: #2b060d;
  box-shadow: 0 0 0 1px var(--rose-glow);
}
.btn-primary:hover {
  background: var(--rose-bright);
  border-color: var(--rose-bright);
  box-shadow: 0 0 32px var(--rose-glow-strong);
}
.btn-ghost {
  background: transparent;
}

/* -- hero --------------------------------------------------------------- */

.hero {
  padding: 96px 24px 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hero-mark {
  filter: drop-shadow(0 0 30px var(--rose-glow));
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 780px;
}

.hero .accent {
  color: var(--rose-bright);
}

.hero p.pitch {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 580px;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-faint);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 5px 14px;
}
.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

/* -- how it works -------------------------------------------------------------- */

.how {
  padding: 20px 24px 90px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: var(--max-width);
  margin: 0 auto;
  counter-reset: step;
}
.how-card {
  position: relative;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  padding: 26px 22px 24px;
  transition: border-color 150ms var(--ease), transform 150ms var(--ease);
}
.how-card:hover {
  border-color: var(--rose-deep);
  transform: translateY(-2px);
}
.how-card .step {
  counter-increment: step;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rose-glow);
  color: var(--rose-bright);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}
.how-card .step::before {
  content: counter(step);
}
.how-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
}
.how-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 720px) {
  .how-grid {
    grid-template-columns: 1fr;
  }
}

/* -- features -------------------------------------------------------------- */

.features {
  padding: 40px 24px 90px;
}
.features h2,
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.features .subtitle,
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 44px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 150ms var(--ease), transform 150ms var(--ease);
}
.feature-card:hover {
  border-color: var(--rose-deep);
  transform: translateY(-2px);
}
.feature-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--rose-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-card .icon svg {
  width: 20px;
  height: 20px;
}
.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
}
.feature-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

/* -- models strip ------------------------------------------------------- */

.models {
  padding: 0 24px 90px;
}
.models-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  padding: 30px 28px;
}
.models-inner h2 {
  text-align: center;
  font-size: 22px;
  margin: 0 0 6px;
}
.models-inner > p {
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
  margin: 0 auto 28px;
  max-width: 520px;
}
.models-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.models-table th {
  text-align: left;
  color: var(--text-faint);
  font-weight: 500;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--border-soft);
}
.models-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-muted);
}
.models-table tr:last-child td {
  border-bottom: none;
}
.models-table td.modality {
  color: var(--text);
  font-weight: 600;
}
.models-table td.model {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--rose-bright);
}

@media (max-width: 640px) {
  .models-table {
    display: block;
    overflow-x: auto;
  }
}

/* -- footer ----------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--border-soft);
  padding: 28px 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-faint);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--text-muted);
}

/* -- generic page (download) -------------------------------------------- */

.page {
  padding: 56px 24px 90px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.page-header {
  margin-bottom: 44px;
}
.page-header h1 {
  font-size: 34px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.page-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* -- download page ----------------------------------------------------------- */

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.download-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-align: center;
}
.download-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--rose-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.download-card .icon svg {
  width: 26px;
  height: 26px;
}
.download-card .platform {
  font-weight: 600;
  margin-bottom: 6px;
}
.download-card .note {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.source-note {
  margin-top: 50px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  text-align: left;
}
.source-note h3 {
  margin: 0 0 8px;
  font-size: 15px;
  text-align: center;
}
.source-note p {
  color: var(--text-muted);
  margin: 0 auto 16px;
  max-width: 560px;
  font-size: 13.5px;
  text-align: center;
}
.source-note pre {
  background: var(--bg-deep);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text);
  overflow-x: auto;
  max-width: 460px;
  margin: 0 auto;
}
