/* ─── Reset & Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple-50: #f3e5f5;
  --purple-100: #e1bee7;
  --purple-200: #ce93d8;
  --purple-300: #c4b5fd;
  --purple-400: #a78bfa;
  --purple-500: #7c4dff;
  --purple-600: #651fff;
  --purple-700: #6200ea;
  --purple-800: #4a148c;
  --navy: #1A202E;
  --bg-primary: #08090d;
  --bg-secondary: #0e1016;
  --bg-tertiary: #161a24;
  --bg-card: rgba(26, 32, 46, 0.55);
  --bg-card-hover: rgba(36, 44, 62, 0.7);
  --text-primary: #f5f6fa;
  --text-secondary: #b4b8c7;
  --text-muted: #7a8094;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --radius: 14px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --gradient: linear-gradient(135deg, #7c4dff, #9b7dff);
  --gradient-text: linear-gradient(135deg, #ede7ff 0%, #c4b5fd 55%, #f5f6fa 100%);
  --shadow-glow: 0 0 80px rgba(124, 77, 255, 0.12);
  --transition: 0.2s ease;
  --font-sans: "Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Outfit", "Plus Jakarta Sans", sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, .home-hero h1, .page-hero h1, .blog-article-header h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ─── Quick links (homepage sitelink hints) ───────────────────────── */
.quick-links {
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 20px 0;
}

.quick-links-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.quick-links-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.quick-links-list a:hover {
  border-color: var(--purple-500);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.quick-links-icon { font-size: 1.1rem; line-height: 1; }

/* ─── Subpages (download, connect) ────────────────────────────────── */
.page-hero {
  padding-top: 120px;
  min-height: 60vh;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.4rem);
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.12;
}

.page-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 32px;
}

.page-related {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.page-related a {
  color: var(--purple-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-related a:hover { color: var(--purple-200); }

/* ─── Models catalog ─────────────────────────────────────────────── */
.models-page {
  padding: 7rem 0 5rem;
}

.models-container {
  max-width: 820px;
}

.models-hero {
  max-width: 720px;
  margin-bottom: 3rem;
}

.models-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin: 0.4rem 0 0.85rem;
  letter-spacing: -0.035em;
  line-height: 1.1;
  font-weight: 800;
}

.models-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-top: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.models-legend strong {
  color: var(--purple-300);
  font-weight: 600;
}

.models-band {
  margin-bottom: 3rem;
}

.models-band-head {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.models-band-head h2 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.models-band-head p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 40rem;
  line-height: 1.55;
}

.model-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: models;
}

.model-list-item {
  counter-increment: models;
  padding: 1.25rem 0 1.35rem;
  border-bottom: 1px solid rgba(42, 42, 58, 0.85);
}

.model-list-item:last-child {
  border-bottom: none;
}

.model-list-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 0.85rem;
  margin-bottom: 0.35rem;
}

.model-list-title-row h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.model-list-title-row h3::before {
  content: counter(models, decimal-leading-zero) ". ";
  color: var(--text-muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 0.92em;
  margin-right: 0.15rem;
}

.model-list-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple-300);
  border: 1px solid rgba(124, 77, 255, 0.35);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

.model-list-tag-remote {
  color: var(--text-muted);
  border-color: var(--border);
}

.model-list-plain {
  margin: 0 0 0.55rem;
  color: var(--text-primary);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 38rem;
}

.model-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  margin: 0 0 0.4rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.model-list-meta span:not(:last-child)::after {
  content: "·";
  margin: 0 0.45rem;
  color: rgba(107, 107, 130, 0.7);
}

.model-list-nerd {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.45;
  max-width: 40rem;
}

@media (max-width: 800px) {
  .model-list-title-row h3 {
    font-size: 1.08rem;
  }
  .model-list-plain {
    font-size: 0.98rem;
  }
}

.blog-list-banner {
  margin: 0 0 1.5rem;
  overflow: hidden;
  border-radius: 18px;
  max-height: 280px;
}

.blog-list-banner img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.changelog-more[hidden] {
  display: none !important;
}

.changelog-load-more {
  display: flex;
  justify-content: center;
  margin: 1.25rem 0 0.5rem;
}

.platform-svg {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.35rem;
  display: block;
}

.docs-steps {
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

.docs-steps code {
  font-size: 0.9em;
  background: var(--bg-secondary);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* ─── Navigation ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.nav.scrolled {
  background: rgba(8, 9, 13, 0.72);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.nav-logo img {
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.nav-mobile a {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius); }

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(124, 77, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(124, 77, 255, 0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--purple-500);
  color: var(--text-primary);
}

.nav-links .btn {
  background: var(--gradient);
  color: white;
}

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 77, 255, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(186, 104, 200, 0.08), transparent);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(124, 77, 255, 0.12);
  border: 1px solid rgba(124, 77, 255, 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--purple-300);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.gradient-text,
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-platforms {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.platform-icons { display: flex; gap: 8px; }

.platform-tag {
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 77, 255, 0.2), transparent 70%);
  animation: pulse-glow 4s ease-in-out infinite;
}

.hero-app-icon {
  width: 200px;
  height: 200px;
  border-radius: 44px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), var(--shadow-glow);
  position: relative;
  z-index: 1;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ─── Section ────────────────────────────────────────────────────── */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Features Grid ──────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Connect Steps ──────────────────────────────────────────────── */
.connect-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.step {
  text-align: center;
  padding: 32px 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Connect Download ───────────────────────────────────────────── */
.connect-download {
  text-align: center;
}

.connect-download h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.connect-subtitle {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 15px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  text-align: left;
}

.download-card:hover {
  border-color: var(--purple-500);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 77, 255, 0.15);
}

.download-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 77, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--purple-300);
}

.download-info strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.download-info span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── App Download ───────────────────────────────────────────────── */
.app-download {
  display: flex;
  justify-content: center;
}

.app-download-card {
  text-align: center;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
}

.app-dl-icon {
  margin: 0 auto 20px;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.app-download-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.app-download-card > p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
}

.store-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
}

.store-badge:hover {
  border-color: var(--purple-500);
  background: rgba(124, 77, 255, 0.08);
}

.store-badge-soon {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}

.footer-brand img { border-radius: 6px; }

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

.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
  transition: color var(--transition);
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 13px;
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .connect-steps { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero { padding: 120px 0 60px; }
  .hero-subtitle { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-platforms { justify-content: center; }

  .features-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }

  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .store-buttons { flex-direction: column; }
}

/* ─── Changelog ───────────────────────────────────────────────────── */
.changelog-tabs {
  display: flex;
  gap: 4px;
  max-width: 720px;
  margin: 0 auto 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 4px;
  border: 1px solid var(--border);
}

.changelog-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.changelog-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.changelog-tab.active {
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
}

.changelog-panel {
  display: none;
  max-width: 720px;
  margin: 0 auto;
}

.changelog-panel.active {
  display: block;
}

.changelog-entry {
  position: relative;
  padding: 24px 28px;
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.changelog-entry:hover {
  border-color: var(--border-light);
}

.changelog-entry h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.changelog-entry-title {
  margin: -4px 0 12px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}

.changelog-date {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 8px;
}

.changelog-entry ul {
  list-style: none;
  padding: 0;
}

.changelog-entry li {
  position: relative;
  padding: 6px 0 6px 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.changelog-entry li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-500);
}

.changelog-entry li strong {
  color: var(--text-primary);
}

.changelog-older {
  margin-top: 8px;
}

.changelog-older summary {
  cursor: pointer;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  list-style: none;
  user-select: none;
}

.changelog-older summary::-webkit-details-marker {
  display: none;
}

.changelog-older summary::before {
  content: '▸ ';
  color: var(--purple-500);
  transition: transform var(--transition);
  display: inline-block;
}

.changelog-older[open] summary::before {
  content: '▾ ';
}

.changelog-older summary:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

.changelog-older .changelog-entry:first-child {
  margin-top: 20px;
}

/* ─── Blog ────────────────────────────────────────────────────────── */
.blog-page .nav-links a.active,
.blog-page .nav-mobile a[href="/blog/"] {
  color: var(--purple-300);
}

.blog-hero {
  padding-bottom: 24px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.blog-card:hover {
  border-color: var(--purple-500);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.blog-card-image {
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-card-body h2 {
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 700;
}

.blog-card-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex: 1;
}

.blog-card-meta,
.blog-card-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.blog-article-inner {
  max-width: 760px;
  padding-top: 110px;
  padding-bottom: 80px;
}

.blog-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.blog-breadcrumb a {
  color: var(--purple-300);
}

.blog-article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 12px 0 20px;
  font-weight: 800;
}

.blog-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.blog-byline strong {
  display: block;
  font-size: 0.95rem;
}

.blog-byline span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.blog-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--border);
}

.blog-hero-image img {
  width: 100%;
  height: auto;
}

.blog-tldr {
  background: rgba(124, 77, 255, 0.12);
  border: 1px solid rgba(124, 77, 255, 0.35);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 28px;
  color: var(--text-primary);
  line-height: 1.55;
}

.blog-content h2 {
  margin: 36px 0 14px;
  font-size: 1.4rem;
  font-weight: 700;
}

.blog-content h3 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
  font-weight: 650;
}

.blog-content p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.blog-content ul,
.blog-content ol {
  margin: 0 0 18px 1.2rem;
  color: var(--text-secondary);
}

.blog-content li {
  margin-bottom: 8px;
  line-height: 1.55;
}

.blog-content a {
  color: var(--purple-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
}

.blog-cta {
  margin-top: 40px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}

.blog-cta h2 {
  margin-bottom: 8px;
}

.blog-cta p {
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.blog-related {
  margin-top: 48px;
}

.blog-related h2 {
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.blog-related-grid {
  display: grid;
  gap: 12px;
}

.blog-related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.blog-related-card:hover {
  border-color: var(--purple-500);
}

.blog-related-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.feature-card a.feature-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--purple-300);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Shine border (macOS composer rim) */
.shine-frame {
  position: relative;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.shine-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(
    185deg,
    rgba(167, 139, 250, 0.95) 0%,
    rgba(124, 77, 255, 0.55) 28%,
    rgba(124, 77, 255, 0.18) 55%,
    rgba(124, 77, 255, 0) 78%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.shine-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 28px rgba(124, 77, 255, 0.12);
  pointer-events: none;
}

.shine-pill {
  border: 1px solid rgba(124, 77, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(167, 139, 250, 0.35);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-product-card {
  max-width: 360px;
  margin-left: auto;
}

.hero-product-inner {
  padding: 2rem 1.75rem;
  text-align: center;
}

.hero-product-title {
  margin: 1rem 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-product-copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.hero-product-meta {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-product-meta a {
  color: var(--purple-300);
  text-decoration: none;
  font-weight: 600;
}

.home-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: stretch;
}

.changelog-widget-inner {
  padding: 1.35rem 1.4rem 1.5rem;
}

.changelog-widget-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-300);
  font-weight: 700;
}

.changelog-widget h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.changelog-widget-title {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.changelog-widget ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.changelog-widget li {
  margin-bottom: 0.3rem;
}

.download-platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}

.download-card-inner {
  padding: 1.5rem 1.35rem 1.6rem;
  text-align: center;
}

.download-card-inner h2 {
  margin: 0.75rem 0 0.4rem;
  font-size: 1.2rem;
}

.download-card-inner p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  min-height: 2.6em;
}

.download-card-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.download-card-actions .btn {
  width: 100%;
  max-width: 17rem;
}

.download-note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.download-block {
  margin: 2rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}

.download-block h2 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.download-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.download-feature-list {
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 1.2rem;
}

.download-meta {
  margin-top: 1rem;
  color: var(--text-muted);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.blog-teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

@media (max-width: 960px) {
  .hero-grid,
  .home-split,
  .download-platforms {
    grid-template-columns: 1fr;
  }
  .hero-product-card {
    margin: 0 auto;
  }
}

@media (max-width: 1100px) {
  .blog-teaser-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .blog-teaser-grid {
    grid-template-columns: 1fr;
  }
}

.section-header .section-actions {
  margin-top: 16px;
}

/* ─── Homepage redesign (conversion + GEO) ───────────────────────── */
.home-hero {
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 860px);
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(124, 77, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 70%, rgba(179, 136, 255, 0.12), transparent 50%),
    #0a0a0f;
}

.home-hero-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  will-change: transform;
}

.home-orb-a {
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  top: -8%;
  left: -6%;
  background: rgba(124, 77, 255, 0.55);
}

.home-orb-b {
  width: min(360px, 48vw);
  height: min(360px, 48vw);
  right: -4%;
  top: 18%;
  background: rgba(186, 104, 200, 0.35);
}

.home-orb-c {
  width: min(300px, 40vw);
  height: min(300px, 40vw);
  left: 38%;
  bottom: -12%;
  background: rgba(99, 102, 241, 0.28);
}

.home-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.home-hero-grid-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  align-items: center;
  width: 100%;
}

.home-hero-copy {
  min-width: 0;
}

.home-brand {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 0.9rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.home-hero h1 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  max-width: 22ch;
}

.home-hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 36rem;
  margin-bottom: 1.35rem;
  line-height: 1.6;
}

.home-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff !important;
  color: #111 !important;
  border: none !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-store:hover {
  background: #f3f0ff !important;
  color: #111 !important;
  transform: translateY(-1px);
}

/* Purple shine rim on download / CTA buttons */
.btn-shine {
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.btn-shine::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    185deg,
    rgba(196, 181, 253, 1) 0%,
    rgba(124, 77, 255, 0.85) 32%,
    rgba(124, 77, 255, 0.28) 62%,
    rgba(124, 77, 255, 0.05) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

.btn-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 22px rgba(124, 77, 255, 0.28);
  pointer-events: none;
  z-index: -1;
}

.btn-store.btn-shine {
  box-shadow:
    0 0 0 2px rgba(167, 139, 250, 0.85),
    0 0 0 3px rgba(124, 77, 255, 0.25),
    0 8px 28px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(124, 77, 255, 0.35);
}

.btn-store.btn-shine::before {
  inset: -3px;
  padding: 2.5px;
}

.home-hero-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.home-hero-meta a {
  color: var(--purple-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-connect-panel {
  max-width: 420px;
  width: 100%;
  justify-self: end;
}

.home-connect-panel-inner {
  padding: 1.5rem 1.4rem 1.55rem;
}

.home-connect-panel h2 {
  font-size: 1.25rem;
  margin: 0 0 0.55rem;
  color: var(--text-primary);
}

.home-connect-panel p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.home-connect-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.home-answer {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
}

.home-answer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 1.75rem;
  align-items: stretch;
}

.home-answer h2 {
  font-size: 1.65rem;
  margin-bottom: 0.75rem;
}

.home-answer p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.home-answer-aside {
  align-self: stretch;
}

.home-answer-aside-inner {
  padding: 1.5rem 1.4rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-300);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.home-answer-aside .btn {
  margin: 1rem 0 0.65rem;
  align-self: flex-start;
}

.text-link {
  display: inline-block;
  color: var(--purple-300);
  font-weight: 600;
  font-size: 0.95rem;
}

.home-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.home-path {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--border);
}

.home-path:last-child {
  border-right: none;
}

.home-path h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.home-path p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.55;
  font-size: 0.98rem;
}

.home-path a {
  color: var(--purple-300);
  font-weight: 600;
}

.section#paths .section-header {
  margin-bottom: 1.5rem;
}

.home-benefits {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 2rem;
  border-top: 1px solid var(--border);
}

.home-benefits li {
  padding: 1.25rem 1.25rem 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.home-benefits li:nth-child(odd) {
  padding-right: 1.5rem;
  border-right: 1px solid var(--border);
}

.home-benefits li:nth-child(even) {
  padding-left: 1.5rem;
}

.home-benefits strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.home-benefits span {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.55;
}

.home-mid-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-connect {
  padding: 4rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.home-connect-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.home-connect h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin: 0.4rem 0 0.85rem;
  line-height: 1.15;
}

.home-connect p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  max-width: 36rem;
}

.home-connect-visual {
  min-height: 280px;
  overflow: hidden;
  position: relative;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(circle at 50% 40%, rgba(124, 77, 255, 0.18), transparent 60%),
    rgba(255, 255, 255, 0.02);
}

.home-relay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  width: 100%;
}

.home-relay-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 88px;
  padding: 0.85rem 0.75rem;
  border-radius: 14px;
  background: rgba(22, 22, 31, 0.9);
  border: 1px solid rgba(124, 77, 255, 0.28);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.home-relay-icon {
  font-size: 1.45rem;
  line-height: 1;
}

.home-relay-svg {
  width: 28px;
  height: 28px;
  color: var(--purple-300);
}

.blog-card-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-relay-pulse {
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.9), transparent);
  background-size: 200% 100%;
  animation: relay-flow 1.8s linear infinite;
}

@keyframes relay-flow {
  0% { background-position: 100% 0; opacity: 0.35; }
  50% { opacity: 1; }
  100% { background-position: -100% 0; opacity: 0.35; }
}

.home-relay-caption {
  margin: 0 !important;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted) !important;
}

.home-changelog-row {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.home-changelog-row .changelog-widget {
  min-width: 0;
}

.home-faq {
  max-width: 820px;
  margin: 0 auto;
}

.home-faq .section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.home-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* FAQ accordion (also used on docs; duplicated here so home has styles) */
.docs-faq,
details.docs-faq {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
}

.docs-faq:hover,
details.docs-faq:hover {
  border-color: var(--border-light);
}

.docs-faq[open],
details.docs-faq[open] {
  border-color: rgba(124, 77, 255, 0.4);
  background: var(--bg-card-hover);
}

.docs-faq summary,
details.docs-faq summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.docs-faq summary::before,
details.docs-faq summary::before {
  content: '▸';
  transition: transform 0.2s;
  color: var(--purple-300);
  flex-shrink: 0;
}

.docs-faq[open] summary::before,
details.docs-faq[open] summary::before {
  transform: rotate(90deg);
}

.docs-faq summary::-webkit-details-marker,
details.docs-faq summary::-webkit-details-marker {
  display: none;
}

.docs-faq p,
details.docs-faq p {
  padding: 0 1.25rem 1.1rem;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.docs-faq p a,
details.docs-faq p a {
  color: var(--purple-300);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-final-cta {
  padding: 4.5rem 0;
  text-align: center;
  background: #0d0b0a;
  border-top: 1px solid var(--border);
}

.home-final-cta .home-brand {
  margin-bottom: 0.75rem;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
}

.home-final-cta h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.home-final-cta > .container > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.home-final-cta .home-hero-cta {
  justify-content: center;
}

.home-final-cta .btn-ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

@media (max-width: 900px) {
  .home-hero {
    min-height: min(92svh, 820px);
    padding: 6.5rem 0 3.5rem;
  }

  .home-hero-grid-layout,
  .home-answer-grid,
  .home-paths,
  .home-benefits,
  .home-connect-grid {
    grid-template-columns: 1fr;
  }

  .home-connect-panel {
    max-width: none;
    justify-self: stretch;
  }

  .home-hero h1 {
    max-width: none;
  }

  .home-path {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .home-path:last-child {
    border-bottom: none;
  }

  .home-benefits li:nth-child(odd),
  .home-benefits li:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: none;
  }

  .home-hero-cta {
    flex-direction: column;
  }

  .btn-store {
    width: 100%;
    white-space: normal;
  }

  .home-relay-pulse {
    width: 18px;
  }

  .home-changelog-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-orb,
  .home-relay-pulse,
  .home-relay-node {
    animation: none !important;
  }
}

/* ─── 2026 product site (startup chrome + archive) ───────────────── */
h3, h4, .nav, .btn, .home-kicker, .docs-eyebrow, .pill-deprecated,
.blog-card-meta, .nav-logo {
  font-family: var(--font-sans);
}

.home-hero {
  min-height: min(100svh, 980px);
  padding: 9.5rem 0 5.75rem;
  background:
    radial-gradient(ellipse 80% 55% at 50% -18%, rgba(124, 77, 255, 0.16), transparent 58%),
    var(--bg-primary);
}

.home-hero-grid-layout.home-hero-product {
  grid-template-columns: 1.15fr 0.85fr;
  max-width: 1120px;
  margin: 0 auto;
  gap: 2.5rem;
  align-items: center;
}

.home-stage-3d {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.home-stage-3d canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.home-hero-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 10, 15, 0.58) 0%, rgba(10, 10, 15, 0.22) 36%, rgba(10, 10, 15, 0.04) 62%, rgba(10, 10, 15, 0.2) 100%),
    radial-gradient(ellipse 85% 75% at 64% 48%, transparent 22%, rgba(10, 10, 15, 0.32) 100%);
}

.home-stage-3d-css {
  display: none;
  position: absolute;
  inset: 6% 4%;
  perspective: 1100px;
  transform-style: preserve-3d;
}

.home-stage-3d.is-css .home-stage-3d-css {
  display: block;
}

.home-stage-crystal {
  position: absolute;
  left: 48%;
  top: 18%;
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  border-radius: 28%;
  background:
    radial-gradient(circle at 38% 32%, rgba(196, 181, 253, 0.55), transparent 42%),
    conic-gradient(from 210deg, rgba(124, 77, 255, 0.5), rgba(192, 132, 252, 0.35), rgba(99, 102, 241, 0.45), rgba(124, 77, 255, 0.5));
  filter: blur(1.5px);
  transform: rotateX(18deg) rotateY(-24deg) rotate(18deg);
  clip-path: polygon(50% 0%, 90% 25%, 90% 75%, 50% 100%, 10% 75%, 10% 25%);
}

.home-stage-slab {
  position: absolute;
  border-radius: 14px;
  border: 1px solid rgba(196, 181, 253, 0.35);
  background: linear-gradient(160deg, rgba(124, 77, 255, 0.28), rgba(26, 32, 46, 0.55));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.home-stage-phone {
  width: 120px;
  height: 220px;
  left: 22%;
  top: 22%;
  transform: rotateY(-28deg) rotateX(12deg);
}

.home-stage-mac {
  width: 280px;
  height: 176px;
  right: 10%;
  bottom: 18%;
  border-radius: 10px;
  transform: rotateY(22deg) rotateX(18deg);
}

.home-hero-product .home-connect-panel {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .home-stage-3d.is-css .home-stage-3d-css {
    animation: home-stage-tilt 14s ease-in-out infinite alternate;
  }
  .home-stage-3d.is-css .home-stage-crystal {
    animation: home-stage-hue 26s ease-in-out infinite;
  }
}

@keyframes home-stage-tilt {
  from { transform: rotateY(-14deg) rotateX(4deg); }
  to { transform: rotateY(14deg) rotateX(-4deg); }
}

@keyframes home-stage-hue {
  0% { filter: hue-rotate(-18deg) saturate(1.05); }
  50% { filter: hue-rotate(22deg) saturate(1.12); }
  100% { filter: hue-rotate(-18deg) saturate(1.05); }
}

.home-hero-product h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.8vw, 3.85rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.038em;
  max-width: 14ch;
  margin-bottom: 1.15rem;
  color: var(--text-primary);
}

.home-hero-product .home-hero-lead {
  font-size: 1.12rem;
  max-width: 34rem;
  color: var(--text-secondary);
}

.deprecation-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(26, 32, 46, 0.4);
  padding: 0.9rem 0;
}

.deprecation-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1.5rem;
}

.deprecation-bar p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 42rem;
}

.deprecation-bar a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.deprecation-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.88rem;
}

.pill-deprecated {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 197, 106, 0.38);
  color: #e8c56a;
  background: rgba(232, 197, 106, 0.08);
  vertical-align: 1px;
  margin-right: 0.4rem;
}

.footer-legacy {
  margin-top: 1.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 38rem;
  line-height: 1.55;
}

.footer-legacy a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legacy-archive {
  margin-top: 3.5rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--border);
}

.legacy-archive > h2 {
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
}

.legacy-archive > p {
  color: var(--text-muted);
  max-width: 40rem;
  margin-bottom: 1.4rem;
}

.legacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.legacy-card {
  display: block;
  padding: 1.05rem 1.15rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border-light);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  transition: border-color var(--transition), background var(--transition);
}

.legacy-card:hover {
  border-color: rgba(232, 197, 106, 0.4);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-primary);
}

.legacy-card strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin: 0.35rem 0 0.2rem;
  font-family: var(--font-sans);
}

.legacy-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.connect-sunset {
  max-width: 42rem;
  margin: 0 auto 2rem;
  padding: 1.15rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid rgba(232, 197, 106, 0.28);
  background: rgba(232, 197, 106, 0.06);
  color: var(--text-secondary);
}

.connect-sunset strong { color: var(--text-primary); }
.connect-sunset a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-platforms .download-card-lg#mac .btn-primary {
  background: var(--gradient);
}

.changelog-tab .pill-deprecated {
  margin-left: 0.4rem;
  margin-right: 0;
  font-size: 0.55rem;
}

@media (max-width: 720px) {
  .home-hero-product h1 { max-width: none; }
  .home-hero-grid-layout.home-hero-product { grid-template-columns: 1fr; }
  .home-hero-fx::after {
    background:
      linear-gradient(180deg, rgba(10, 10, 15, 0.82) 0%, rgba(10, 10, 15, 0.42) 42%, rgba(10, 10, 15, 0.55) 100%),
      radial-gradient(ellipse 90% 70% at 50% 40%, transparent 10%, rgba(10, 10, 15, 0.4) 100%);
  }
  .deprecation-bar .container { align-items: flex-start; }
}

/* ─── Phone / model catalog ───────────────────────────────────────── */
.catalog-page {
  padding: 7rem 0 5rem;
}

.catalog-wrap {
  max-width: 880px;
}

.catalog-bc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.catalog-bc a { color: var(--purple-300); }

.catalog-hero { margin-bottom: 2rem; }

.catalog-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  margin: 0.35rem 0 0.85rem;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.spec-grid div {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.spec-grid dt {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.spec-grid dd {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.catalog-block { margin: 2.25rem 0; }

.catalog-block h2 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.catalog-block > p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  max-width: 40rem;
}

.fit-grid,
.phone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.fit-card,
.phone-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.fit-card:hover,
.phone-card:hover {
  border-color: var(--purple-500);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.fit-card strong,
.phone-card strong { font-size: 1.02rem; }

.fit-card span,
.phone-card span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.fit-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.fit {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
}

.fit-great { color: #86efac; border: 1px solid rgba(134, 239, 172, 0.35); }
.fit-ok { color: var(--purple-300); border: 1px solid rgba(124, 77, 255, 0.35); }
.fit-tight { color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.35); }
.fit-no { color: var(--text-muted); border: 1px solid var(--border); }

.table-wrap { overflow-x: auto; }

.fit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.fit-table th,
.fit-table td {
  text-align: left;
  padding: 0.65rem 0.55rem;
  border-bottom: 1px solid var(--border);
}

.fit-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.fit-table a { color: var(--purple-300); }

.catalog-list {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.catalog-list a { color: var(--purple-300); }

.catalog-cta {
  margin: 1.75rem 0;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124, 77, 255, 0.28);
  background: rgba(124, 77, 255, 0.08);
}

.catalog-cta p { margin-bottom: 0.85rem; color: var(--text-secondary); }

.catalog-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.phone-filter-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.phone-filter {
  width: 100%;
  max-width: 28rem;
  margin-bottom: 1.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font: inherit;
}

.phone-filter:focus {
  outline: none;
  border-color: var(--purple-500);
}

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

/* ─── Auth action (password reset / verify email) ─────────────────── */
.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(124, 77, 255, 0.18), transparent 55%),
    radial-gradient(700px 420px at 92% 8%, rgba(155, 125, 255, 0.12), transparent 50%),
    var(--bg-primary);
}

.auth-shell .nav { position: sticky; }

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 72px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 36px 32px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.auth-card h1 {
  font-size: 1.7rem;
  margin: 0 0 10px;
  line-height: 1.2;
}

.auth-lead, .auth-hint, .auth-error {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.auth-error {
  color: #f0a8a8;
  background: rgba(220, 80, 80, 0.12);
  border: 1px solid rgba(220, 80, 80, 0.28);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.auth-field {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font: inherit;
}

.auth-field:focus {
  outline: none;
  border-color: var(--purple-500);
}

.auth-card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.auth-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.auth-card .btn[disabled] {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.auth-success-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(124, 77, 255, 0.16);
  color: var(--purple-300);
  font-size: 1.4rem;
}

.auth-hidden { display: none; }

.auth-email {
  color: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 520px) {
  .auth-card { padding: 28px 20px 24px; }
}
