/* =========================================================
   ZipOrZoom marketing site — styles
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --bg-muted: #f6f6f9;
  --bg-dark: #0a0a12;
  --bg-elevated: #ffffff;

  --ink: #0b0b12;
  --ink-muted: #51525c;
  --ink-soft: #71727a;
  --ink-dim: #9ea0a8;
  --border: #e7e7ec;
  --border-strong: #d4d4dc;

  --brand-1: #8B5CF6;
  --brand-2: #3B82F6;
  --brand-3: #06B6D4;
  --brand-ink: #5B21B6;

  --shadow-sm: 0 1px 2px rgba(11, 11, 18, 0.04), 0 1px 3px rgba(11, 11, 18, 0.06);
  --shadow-md: 0 4px 10px rgba(11, 11, 18, 0.05), 0 10px 30px rgba(11, 11, 18, 0.08);
  --shadow-lg: 0 10px 20px rgba(11, 11, 18, 0.06), 0 30px 60px rgba(11, 11, 18, 0.12);
  --shadow-glow: 0 30px 80px rgba(139, 92, 246, 0.35);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

html { scroll-behavior: smooth; }

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

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

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

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
p { margin: 0; color: var(--ink-muted); }

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

.gradient-text {
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--ink-soft); }
.monospace { font-family: var(--font-mono); font-size: 0.82em; }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.75);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(231, 231, 236, 0.8);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}
.brand-logo img {
  display: block;
  height: 30px;
  width: auto;
}
.footer-brand .brand-logo img { height: 24px; }

.brand-name { font-size: 1.05rem; }

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--ink-muted);
  font-size: 0.92rem;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: flex;
  gap: 14px;
  align-items: center;
}

.link-muted {
  font-size: 0.92rem;
  color: var(--ink-muted);
}
.link-muted:hover { color: var(--ink); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
  font-size: 0.95rem;
  white-space: nowrap;
}

.btn-sm { padding: 8px 14px; font-size: 0.88rem; border-radius: 8px; }
.btn-lg { padding: 15px 24px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #7C3AED, #2563EB);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(124, 58, 237, 0.36), inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(11,11,18,0.04);
  border-color: rgba(11,11,18,0.06);
}
.btn-ghost:hover { background: rgba(11,11,18,0.07); }

.btn-ghost-light {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.14); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 72px 0 100px;
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 720px;
  z-index: -1;
  background:
    radial-gradient(60% 60% at 20% 30%, rgba(139,92,246,0.22), transparent 60%),
    radial-gradient(50% 50% at 80% 20%, rgba(59,130,246,0.22), transparent 60%),
    radial-gradient(40% 40% at 50% 90%, rgba(6,182,212,0.15), transparent 60%);
  filter: blur(10px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: rgba(11,11,18,0.04);
  border: 1px solid rgba(11,11,18,0.06);
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.lede {
  margin-top: 22px;
  font-size: 1.17rem;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 620px;
}
.lede strong { color: var(--ink); font-weight: 600; }

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

.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
}
.meta-item svg { color: var(--brand-2); }

/* =========================================================
   Hero visual — stylized app window
   ========================================================= */
.hero-visual {
  position: relative;
  perspective: 1500px;
}

.app-window {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  transform: rotateY(-8deg) rotateX(4deg) rotate(0.5deg);
  transform-origin: 50% 50%;
}

.app-titlebar {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  padding: 12px 14px;
  background: #f3f3f6;
  border-bottom: 1px solid var(--border);
}

.traffic { display: flex; gap: 6px; }
.traffic-dot { width: 12px; height: 12px; border-radius: 50%; }
.traffic-dot.red { background: #FF5F57; }
.traffic-dot.yellow { background: #FEBC2E; }
.traffic-dot.green { background: #28C840; }

.app-title {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.app-actions { text-align: right; }
.app-pill {
  display: inline-block;
  padding: 3px 9px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: rgba(11,11,18,0.05);
  border-radius: 999px;
}

.app-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 400px;
}

.app-sidebar {
  background: #fafafb;
  border-right: 1px solid var(--border);
  padding: 14px 10px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.sidebar-section {
  padding: 12px 10px 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--ink-muted);
}
.sidebar-item.active {
  background: rgba(59,130,246,0.1);
  color: var(--brand-2);
}
.sidebar-item svg { flex-shrink: 0; }

.app-main { padding: 16px 18px; }

.file-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  font-size: 0.83rem;
  color: var(--ink-soft);
}
.breadcrumb .sep { margin: 0 6px; color: var(--ink-dim); }
.breadcrumb .current { color: var(--ink); font-weight: 600; }
.tool-buttons { display: flex; gap: 6px; }
.tool-btn {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--ink-muted);
  cursor: pointer;
}

.file-header, .file-row {
  display: grid;
  grid-template-columns: 2fr 0.8fr 1.3fr 0.9fr;
  align-items: center;
  gap: 12px;
  padding: 9px 4px;
  font-size: 0.82rem;
}
.file-header {
  color: var(--ink-dim);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  margin-top: 10px;
}
.file-row { border-bottom: 1px solid var(--border); }
.file-row:last-of-type { border-bottom: 0; }
.file-row.highlighted {
  background: rgba(139, 92, 246, 0.07);
  border-radius: 6px;
  border-bottom: 0;
  padding-left: 8px;
  padding-right: 8px;
}

.file-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 500;
}
.file-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  flex-shrink: 0;
}
.file-icon.folder { background: linear-gradient(135deg, #60A5FA, #3B82F6); }
.file-icon.doc    { background: linear-gradient(135deg, #F3F4F6, #D1D5DB); border: 1px solid #D4D4DC; }
.file-icon.img    { background: linear-gradient(135deg, #FCD34D, #F59E0B); }

.file-size { color: var(--ink-soft); }
.file-date { color: var(--ink-dim); }
.file-ratio {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}
.bar {
  display: inline-block;
  height: 4px;
  flex: 1;
  background: rgba(11,11,18,0.06);
  border-radius: 99px;
  overflow: hidden;
}
.fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  border-radius: 99px;
}

.app-progress {
  margin-top: 16px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(59,130,246,0.06));
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 10px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.progress-percent { font-weight: 600; color: var(--brand-ink); }
.progress-track {
  height: 5px;
  background: rgba(11,11,18,0.05);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  width: 82%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--brand-3));
  border-radius: 99px;
  animation: shimmer 2.4s ease-in-out infinite;
  background-size: 200% 100%;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 0%; }
  50%      { background-position: 100% 0%; }
}

/* Floating cards next to the window */
.floating-card {
  position: absolute;
  background: #fff;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  min-width: 180px;
}
.floating-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}
.floating-sub {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}
.floating-card .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.floating-card .dot.green { background: #10B981; box-shadow: 0 0 0 3px rgba(16,185,129,0.2); }
.floating-card .dot.blue  { background: #3B82F6; box-shadow: 0 0 0 3px rgba(59,130,246,0.2); }

.card-a {
  top: -18px;
  left: -30px;
  animation: float 6s ease-in-out infinite;
}
.card-b {
  bottom: 22px;
  right: -20px;
  animation: float 7s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* =========================================================
   Strip
   ========================================================= */
.strip {
  padding: 28px 0;
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.strip-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.strip-label {
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 500;
  flex-shrink: 0;
}
.strip-formats {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.fmt {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* =========================================================
   Generic section styles
   ========================================================= */
.section { padding: 104px 0; }
.section-muted { background: var(--bg-muted); }

.section-dark {
  background: var(--bg-dark);
  color: #fff;
}
.section-dark .section-eyebrow { color: #a7a7b6; }

.section-header { max-width: 760px; margin: 0 auto 56px; }
.section-header.center { text-align: center; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-ink);
  margin-bottom: 16px;
}
.section-lede {
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--ink-muted);
}

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

.feature {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.feature-wide { grid-column: span 2; }

.feature h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: var(--ink);
}
.feature p { font-size: 0.94rem; }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
}
.feature-icon.indigo  { background: linear-gradient(135deg, #6366F1, #4F46E5); }
.feature-icon.emerald { background: linear-gradient(135deg, #10B981, #059669); }
.feature-icon.violet  { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.feature-icon.amber   { background: linear-gradient(135deg, #F59E0B, #D97706); }
.feature-icon.rose    { background: linear-gradient(135deg, #F43F5E, #BE185D); }
.feature-icon.cyan    { background: linear-gradient(135deg, #06B6D4, #0E7490); }
.feature-icon.sky     { background: linear-gradient(135deg, #0EA5E9, #0369A1); }
.feature-icon.lime    { background: linear-gradient(135deg, #84CC16, #4D7C0F); }
.feature-icon.pink    { background: linear-gradient(135deg, #EC4899, #BE185D); }

.feature-code {
  margin-top: 18px;
  padding: 11px 14px;
  background: #0a0a12;
  color: #d4d4dc;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  overflow-x: auto;
}
.feature-code .t-key { color: #c4b5fd; }
.feature-code .t-val { color: #86efac; }
.feature-code .t-add { color: #34d399; }
.feature-code .t-mod { color: #fbbf24; }
.feature-code .t-rem { color: #f87171; }

/* =========================================================
   Split section (formats)
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 500;
}
.check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  position: relative;
  flex-shrink: 0;
}
.check::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

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

.format-card {
  padding: 18px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .2s ease, border-color .2s ease;
}
.format-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-2);
}
.format-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.format-meta {
  font-size: 0.72rem;
  color: var(--ink-soft);
}

/* =========================================================
   Platform grid
   ========================================================= */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.platform {
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.platform:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.platform.featured {
  background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
  border-color: transparent;
  box-shadow: 0 0 0 1.5px var(--brand-2), var(--shadow-md);
}

.platform-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand-ink);
  background: rgba(139,92,246,0.12);
  border-radius: 999px;
}

.platform-icon { color: var(--ink); margin-bottom: 4px; }
.platform h3 { font-size: 1.3rem; }

.platform-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.platform-specs li {
  padding-left: 18px;
  position: relative;
}
.platform-specs li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-2);
}

.platform a.btn { margin-top: auto; }

/* =========================================================
   Stats
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-num {
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  margin-top: 10px;
  color: #a7a7b6;
  font-size: 0.94rem;
}

/* =========================================================
   Download
   ========================================================= */
.download-card {
  padding: 60px;
  background: linear-gradient(135deg, #0a0a12 0%, #18182a 100%);
  border-radius: var(--radius-xl);
  color: #fff;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.download-card::before {
  content: '';
  position: absolute;
  inset: auto -30% -40% auto;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
  z-index: 0;
}
.download-card::after {
  content: '';
  position: absolute;
  inset: -40% auto auto -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 70%);
  z-index: 0;
}
.download-copy, .download-actions { position: relative; z-index: 1; }
.download-copy .section-eyebrow { color: #c4b5fd; }
.download-copy .section-lede { color: rgba(255,255,255,0.7); }
.download-card h2 { color: #fff; }

.download-actions {
  display: grid;
  gap: 12px;
}
.download-option {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  color: #fff;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.download-option:hover {
  background: rgba(255,255,255,0.1);
  transform: translateX(4px);
  border-color: rgba(255,255,255,0.2);
}
.download-os { font-weight: 600; font-size: 1rem; }
.download-arch { color: rgba(255,255,255,0.6); font-size: 0.85rem; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}

.faq-item {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s ease;
}
.faq-item[open] { border-color: var(--brand-2); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink-soft);
  transition: transform .2s ease;
}
.faq-item[open] summary::after {
  content: '−';
  color: var(--brand-2);
}

.faq-item p {
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  padding: 96px 0;
  background: linear-gradient(135deg, #0a0a12 0%, #1a1a2e 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 40% at 20% 80%, rgba(139,92,246,0.25), transparent 60%),
    radial-gradient(50% 40% at 80% 20%, rgba(59,130,246,0.25), transparent 60%);
  z-index: 0;
}
.cta-inner { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.7); margin-top: 14px; font-size: 1.1rem; }

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

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: #07070c;
  color: #a7a7b6;
  padding: 64px 0 28px;
  font-size: 0.9rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .brand { color: #fff; }
.footer-tag {
  margin-top: 12px;
  max-width: 320px;
  color: #7a7a85;
  line-height: 1.55;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col h4 { color: #fff; margin-bottom: 4px; font-size: 0.78rem; }
.footer-col a { color: #a7a7b6; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 0.82rem;
  color: #6a6a74;
}
.footer-version { font-family: var(--font-mono); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 600px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-wide { grid-column: span 2; }
  .platform-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .download-card { grid-template-columns: 1fr; padding: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 72px; }
  .nav-links { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: auto; }
  .faq-grid { grid-template-columns: 1fr; }
  .format-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .app-body { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .app-window { transform: none; }
  .card-a, .card-b { display: none; }
  .hero-cta .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   Legal pages (privacy / terms / license)
   ========================================================= */
.legal {
  padding: 72px 0 104px;
  background: var(--bg);
}

.legal-container {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.legal-nav h4 {
  color: var(--ink-soft);
  margin-bottom: 10px;
  padding: 0 8px;
}
.legal-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-muted);
  font-size: 0.92rem;
  transition: background .15s ease, color .15s ease;
}
.legal-nav a:hover { color: var(--ink); background: rgba(11,11,18,0.04); }
.legal-nav a.active {
  color: var(--brand-ink);
  background: rgba(139,92,246,0.1);
  font-weight: 600;
}

.legal-content {
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

.legal-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.legal-header h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--ink);
  margin-top: 12px;
}
.legal-meta {
  margin-top: 12px;
  color: var(--ink-dim);
  font-size: 0.9rem;
}

.legal-content h2 {
  font-size: 1.3rem;
  color: var(--ink);
  margin: 44px 0 14px;
  letter-spacing: -0.01em;
}
.legal-content p { margin: 0 0 16px; }
.legal-content a { color: var(--brand-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--brand-ink); }
.legal-content ul {
  margin: 0 0 18px;
  padding-left: 22px;
}
.legal-content li { margin-bottom: 8px; }
.legal-content strong { color: var(--ink); font-weight: 600; }
.legal-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 1px 6px;
  background: rgba(11,11,18,0.06);
  border-radius: 4px;
  color: var(--ink);
}

.legal-callout {
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(139,92,246,0.07), rgba(59,130,246,0.06));
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 36px;
}
.legal-callout strong { color: var(--ink); }

.legal-footer-note {
  margin-top: 56px;
  padding: 18px 22px;
  background: var(--bg-muted);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0 32px;
}
.license-card {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}
.license-card.allow   { border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.04); }
.license-card.require { border-color: rgba(59,130,246,0.3); background: rgba(59,130,246,0.04); }
.license-card.deny    { border-color: rgba(244,63,94,0.25);  background: rgba(244,63,94,0.04); }
.license-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 12px;
}
.license-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}
.license-card.allow   .license-tick { background: #10B981; }
.license-card.require .license-tick { background: #3B82F6; }
.license-card.deny    .license-tick { background: #F43F5E; }
.license-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.license-card li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(11,11,18,0.05);
}
.license-card li:last-child { border-bottom: 0; }

.license-text {
  margin: 20px 0;
  padding: 22px 24px;
  background: #0a0a12;
  color: #d4d4dc;
  border-radius: 14px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.65;
}
.license-text pre {
  margin: 0;
  font-family: var(--font-mono);
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 900px) {
  .legal-container { grid-template-columns: 1fr; gap: 28px; }
  .legal-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding: 10px;
  }
  .legal-nav h4 { display: none; }
  .legal-nav a { white-space: nowrap; }
  .license-grid { grid-template-columns: 1fr; }
}
