/* ==========================================================================
   Synectix Forge — Design Tokens
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Color */
  --bg: #09090B;
  --bg-2: #111114;
  --card: #18181B;
  --card-hover: #1D1D21;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --accent: #4C6EF5;       /* Synectix Blue */
  --accent-dim: #4C6EF533;
  --accent-cyan: #4CD6E8;  /* hover / secondary accent */

  --text-primary: #FAFAFA;
  --text-secondary: #A1A1AA;
  --text-tertiary: #71717A;

  --success: #34D399;
  --warning: #F5A524;
  --error: #F5555B;

  /* Type */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --container: 1180px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.section {
  padding: 128px 0;
  position: relative;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--text-primary);
  color: #0A0A0C;
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-dim);
}

.btn-accent:hover {
  background: #5B7BF7;
  box-shadow: 0 0 0 6px var(--accent-dim);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
}

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  padding: 12px 0;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left { display: flex; align-items: center; gap: 40px; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  position: relative;
  flex-shrink: 0;
}

.logo-mark::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 3px;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 45% 45%, 45% 100%, 0 100%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.nav-right { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  width: 36px;
  height: 36px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-glow span {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
}

.glow-blue {
  width: 620px;
  height: 620px;
  background: var(--accent);
  top: -220px;
  left: 50%;
  transform: translateX(-70%);
  animation: driftA 16s ease-in-out infinite alternate;
}

.glow-cyan {
  width: 480px;
  height: 480px;
  background: var(--accent-cyan);
  top: -100px;
  left: 60%;
  opacity: 0.28;
  animation: driftB 18s ease-in-out infinite alternate;
}

@keyframes driftA {
  from { transform: translate(-70%, 0) scale(1); }
  to   { transform: translate(-55%, 30px) scale(1.08); }
}
@keyframes driftB {
  from { transform: translate(-40%, 0) scale(1); }
  to   { transform: translate(-30%, -20px) scale(0.95); }
}

.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: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 40%, transparent 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin-bottom: 22px;
}

.hero-content h1 span {
  background: linear-gradient(180deg, #fff 20%, var(--text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content .lede {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 88px;
}

/* ---- Hero product preview (signature element) ---- */

.hero-preview {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  perspective: 1600px;
}

.preview-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, #131317, #0D0D10);
  box-shadow:
    0 40px 100px -30px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.02),
    0 0 90px -20px var(--accent-dim);
  transform: rotateX(6deg);
  transform-origin: bottom center;
  overflow: hidden;
  aspect-ratio: 16 / 9.4;
}

.preview-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.preview-chrome span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.preview-tabs {
  margin-left: 14px;
  display: flex;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
}

.preview-tabs em {
  font-style: normal;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
}

/* Tight colored glow that sits directly behind the floating panel,
   tinted per slide via --glow-tint (set by JS) */
.preview-glow {
  position: absolute;
  inset: -90px;
  z-index: -1;
  filter: blur(90px);
  opacity: 0.45;
  background: radial-gradient(ellipse 55% 45% at 50% 38%, var(--glow-tint, var(--accent)), transparent 70%);
  transition: background 0.7s var(--ease);
  pointer-events: none;
}

.preview-body {
  position: relative;
  height: calc(100% - 45px);
  overflow: hidden;
}

.preview-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px) scale(0.99);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
}

.preview-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Full-bleed video/image per slide — swap the src attributes to your own
   footage. Falls back to the poster image, then to a plain dark panel. */
.preview-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-2);
}

.preview-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.preview-dots button {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.14);
  border: none;
  padding: 0;
  transition: background 0.25s;
}

.preview-dots button.is-active { background: var(--accent-cyan); }

.preview-caption {
  max-width: 520px;
  margin: 26px auto 0;
  text-align: center;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.preview-caption strong { color: var(--text-primary); font-weight: 600; }


/* ==========================================================================
   What is Synectix Forge — ecosystem diagram
   ========================================================================== */

.diagram-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(76,110,245,0.08), transparent 70%), var(--bg-2);
}

.diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.diagram-node {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--card);
  letter-spacing: 0.01em;
}

.diagram-node.core {
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 0 4px var(--accent-dim);
  font-size: 14px;
}

.diagram-arrow {
  width: 1px;
  height: 30px;
  background: linear-gradient(var(--border-strong), var(--accent));
  position: relative;
}

.diagram-arrow::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--accent);
}

.diagram-branches {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   Platform cards
   ========================================================================== */

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

.platform-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005));
  backdrop-filter: blur(6px);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.platform-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5);
}

.platform-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.platform-icon svg { width: 22px; height: 22px; }

.platform-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }

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

/* ==========================================================================
   Offer grid
   ========================================================================== */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.offer-card {
  background: var(--bg-2);
  padding: 30px 26px;
  transition: background 0.25s;
}

.offer-card:hover { background: var(--card-hover); }

.offer-icon { color: var(--accent-cyan); margin-bottom: 16px; }
.offer-icon svg { width: 20px; height: 20px; }

.offer-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.offer-card p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; }

/* ==========================================================================
   Community stats
   ========================================================================== */

.stats-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

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

.stat {
  padding: 48px 24px;
  text-align: center;
  border-left: 1px solid var(--border);
}
.stat:first-child { border-left: none; }

.stat .num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.stat .num.counting { color: var(--accent-cyan); }

.stat .label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Downloads preview
   ========================================================================== */

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

.download-card {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-card .dl-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dl-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
}
.dl-icon svg { width: 18px; height: 18px; }

.dl-top h4 { font-size: 15px; font-weight: 600; }
.dl-top span { font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); }

.dl-links {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
}

.dl-links a { color: var(--text-secondary); }
.dl-links a:hover { color: var(--accent-cyan); }

/* ==========================================================================
   Comparison
   ========================================================================== */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}

.compare-card {
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
}

.compare-card.negative { background: var(--bg-2); }

.compare-card.positive {
  background: linear-gradient(165deg, rgba(76,110,245,0.12), rgba(76,110,245,0.02));
  border-color: rgba(76,110,245,0.35);
}

.compare-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-card ul { display: flex; flex-direction: column; gap: 14px; }

.compare-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.compare-card.positive li { color: var(--text-primary); }

.compare-card li svg { width: 16px; height: 16px; flex-shrink: 0; }
.compare-card.negative li svg { color: var(--error); }
.compare-card.positive li svg { color: var(--success); }

/* ==========================================================================
   Testimonials (placeholder)
   ========================================================================== */

.testimonial-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.testimonial-card {
  padding: 26px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  background: var(--bg-2);
  color: var(--text-tertiary);
  font-size: 14px;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  text-align: center;
  padding: 100px 32px;
  position: relative;
}

.cta-band h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

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

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

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--bg-2);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 13.5px;
  margin-top: 14px;
  max-width: 240px;
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--text-secondary); transition: color 0.2s; }
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-social { display: flex; gap: 16px; }
.footer-social svg { width: 18px; height: 18px; }
.footer-social a:hover { color: var(--text-primary); }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Downloads Page specific
   ========================================================================== */

.page-header {
  padding: 170px 0 60px;
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 16.5px;
  max-width: 480px;
  margin: 0 auto;
}

.platform-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.platform-nav a {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.platform-nav a:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.03);
}

.dl-section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.dl-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.dl-section-head .dl-icon { width: 48px; height: 48px; border-radius: 12px; }
.dl-section-head .dl-icon svg { width: 22px; height: 22px; }

.dl-section-head h2 { font-size: 22px; font-weight: 700; }
.dl-section-head span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-cyan);
  background: var(--accent-dim);
  padding: 3px 9px;
  border-radius: 100px;
}

.dl-panel {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
}

.dl-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.dl-meta div span { display: block; }
.dl-meta .k {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.dl-meta .v { font-family: var(--font-mono); font-size: 14.5px; color: var(--text-primary); }

.dl-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.dl-links-col {
  border-left: 1px solid var(--border);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.dl-links-col a {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dl-links-col a:hover { color: var(--accent-cyan); }
.dl-links-col a svg { width: 15px; height: 15px; }

.sys-req {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.7;
}
.sys-req strong { color: var(--text-secondary); font-weight: 500; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1000px) {
  .platform-grid, .compare-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-bottom: 1px solid var(--border); }
  .download-grid, .testimonial-row { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .dl-panel { grid-template-columns: 1fr; }
  .dl-links-col { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 20px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .section { padding: 88px 0; }
  .platform-grid, .compare-grid, .offer-grid, .stats-grid, .download-grid, .testimonial-row {
    grid-template-columns: 1fr;
  }
  .stat { border-left: none; border-bottom: 1px solid var(--border); }
  .preview-slide { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .dl-meta { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 20px; }
}

/* ==========================================================================
   Additions inspired by raycast.com — trusted-by, integrations, AI,
   feature triptych, chip strip, developer section, video grid, newsletter
   ========================================================================== */

.trusted-strip { padding: 0 0 110px; position: relative; z-index: 1; }
.trusted-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.trusted-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.trusted-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 7px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--card);
  font-size: 13px;
  color: var(--text-secondary);
}
.trusted-chip .avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  flex-shrink: 0;
}
.trusted-chip strong { color: var(--text-primary); font-weight: 600; }

/* Tabs */
.tab-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.tab-btn {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.tab-btn.is-active, .tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.04);
}

/* Integrations */
.integration-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.integration-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--card);
  transition: border-color 0.2s, transform 0.2s;
}
.integration-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.integration-card .ic {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--bg-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-cyan); flex-shrink: 0;
}
.integration-card .ic svg { width: 18px; height: 18px; }
.integration-card h5 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.integration-card p { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }
.integration-more { text-align: center; margin-top: 28px; }

/* AI section */
.ai-section {
  padding: 128px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(76,110,245,0.08), transparent 70%), var(--bg-2);
  overflow: hidden;
}
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ai-copy h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.ai-copy > p { color: var(--text-secondary); font-size: 16px; line-height: 1.6; margin-bottom: 28px; }
.ai-list { display: flex; flex-direction: column; gap: 18px; }
.ai-list li { display: flex; gap: 14px; align-items: flex-start; }
.ai-list .ic {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-cyan); flex-shrink: 0;
}
.ai-list .ic svg { width: 16px; height: 16px; }
.ai-list h5 { font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.ai-list p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; }
.ai-visual {
  position: relative; border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong); overflow: hidden;
  aspect-ratio: 1 / 1; background: var(--bg);
}
.ai-visual img { width: 100%; height: 100%; object-fit: cover; }
.ai-visual .ai-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--accent-cyan); opacity: 0.5;
}
.ai-visual .ai-fallback svg { width: 64px; height: 64px; }

/* Feature triptych */
.triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.triptych-card {
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--card); overflow: hidden; display: flex; flex-direction: column;
}
.triptych-visual {
  height: 150px;
  background: linear-gradient(160deg, rgba(76,110,245,0.14), rgba(76,110,245,0.02));
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-cyan);
}
.triptych-visual svg { width: 34px; height: 34px; }
.triptych-body { padding: 22px; }
.triptych-body h4 { font-size: 15.5px; font-weight: 600; margin-bottom: 6px; }
.triptych-body p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }

/* Chip strip + preview tiles */
.chip-strip-wrap { max-width: 760px; margin: 0 auto; text-align: center; }
.chip-strip-wrap > p { font-size: 16px; color: var(--text-secondary); line-height: 1.9; }
.chip-strip-wrap .chip { color: var(--text-primary); font-weight: 500; }
.chip-strip-wrap a.chip-link { color: var(--accent-cyan); font-weight: 600; }

.preview-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 48px; }
.preview-tile {
  aspect-ratio: 16 / 11; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-2); position: relative; overflow: hidden;
}
.preview-tile::after {
  content: attr(data-name);
  position: absolute; bottom: 6px; left: 8px;
  font-family: var(--font-mono); font-size: 9.5px; color: var(--text-tertiary);
}
.preview-tile .tile-ghost { position: absolute; inset: 10px; border-radius: 6px; background: rgba(255,255,255,0.035); }

/* Developer section */
.dev-section { padding: 128px 0; }
.dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.code-mock {
  border-radius: var(--radius-lg); border: 1px solid var(--border-strong);
  background: #0C0C0F; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
}
.code-mock .preview-chrome { background: rgba(255,255,255,0.02); }
.code-mock pre {
  margin: 0; padding: 22px 24px; font-family: var(--font-mono);
  font-size: 12.5px; line-height: 1.8; color: #B9C4DB; overflow-x: auto;
}
.code-mock .tok-kw { color: #C792EA; }
.code-mock .tok-fn { color: #82AAFF; }
.code-mock .tok-str { color: #C3E88D; }
.code-mock .tok-com { color: #546079; }
.dev-features { display: flex; flex-direction: column; gap: 26px; }
.dev-feature { display: flex; gap: 16px; }
.dev-feature .ic {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-cyan); flex-shrink: 0;
}
.dev-feature .ic svg { width: 18px; height: 18px; }
.dev-feature h5 { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.dev-feature p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }

/* Video / community stories */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.video-card { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: var(--card); }
.video-thumb {
  aspect-ratio: 16 / 9; background: var(--bg-2); position: relative;
  display: flex; align-items: center; justify-content: center; color: var(--text-tertiary);
}
.video-thumb .play {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center;
  color: #fff; backdrop-filter: blur(4px);
}
.video-thumb .play svg { width: 16px; height: 16px; }
.video-card h5 { padding: 14px 16px; font-size: 13.5px; font-weight: 500; color: var(--text-secondary); }

/* Newsletter */
.newsletter { display: flex; gap: 8px; margin-top: 14px; max-width: 320px; }
.newsletter input {
  flex: 1; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text-primary); padding: 0 12px; font-size: 13.5px;
}
.newsletter input:focus { outline: none; border-color: var(--accent); }
.newsletter button { height: 40px; }

.footer-top.expanded { grid-template-columns: 1.3fr repeat(5, 1fr); }

@media (max-width: 1000px) {
  .integration-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid, .dev-grid { grid-template-columns: 1fr; }
  .ai-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .triptych { grid-template-columns: 1fr 1fr; }
  .preview-tiles { grid-template-columns: repeat(3, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top.expanded { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 720px) {
  .integration-grid, .triptych, .video-grid { grid-template-columns: 1fr; }
  .preview-tiles { grid-template-columns: repeat(2, 1fr); }
  .footer-top.expanded { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Raycast-inspired design polish — decorative keyboard, cursor spotlight,
   card tilt, scroll parallax
   ========================================================================== */

/* Decorative activity heatmap motif (visual only, no copy) —
   echoes the streaks / study-history feature without adding new copy */
.activity-wrap {
  position: relative;
  max-width: 620px;
  margin: 0 auto 64px;
  opacity: 0.55;
  perspective: 900px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}

.activity-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: rotateX(38deg);
  transform-origin: top center;
}

.activity-row { display: flex; gap: 6px; justify-content: center; }

.cell {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.cell.l1 { background: rgba(76,110,245,0.16); border-color: rgba(76,110,245,0.2); }
.cell.l2 { background: rgba(76,110,245,0.34); border-color: rgba(76,110,245,0.36); }
.cell.l3 { background: rgba(76,110,245,0.58); border-color: rgba(76,110,245,0.6); }
.cell.l4 {
  background: var(--accent);
  border-color: var(--accent-cyan);
  animation: cellPulse 5.5s ease-in-out infinite;
}
.cell.l4:nth-child(3n) { animation-delay: 1.1s; }
.cell.l4:nth-child(3n+1) { animation-delay: 2.6s; }
.cell.l4:nth-child(3n+2) { animation-delay: 4s; }

@keyframes cellPulse {
  0%, 82%, 100% { box-shadow: none; }
  90% { box-shadow: 0 0 12px var(--accent-cyan); }
}

@media (max-width: 720px) {
  .activity-wrap { max-width: 300px; opacity: 0.4; }
  .cell { width: 12px; height: 12px; }
}


/* Cursor spotlight in hero */
.hero { --spot-x: 50%; --spot-y: 30%; }
.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--spot-x) var(--spot-y), rgba(76,110,245,0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.hero:hover .hero-spotlight { opacity: 1; }

/* Card tilt (JS sets --rx/--ry) */
.platform-card, .download-card {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(0);
  transition: transform 0.15s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.platform-card:hover, .download-card:hover {
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5);
}

/* Subtle grain overlay for premium depth */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

@media (prefers-reduced-motion: reduce) {
  .cell.l4 { animation: none; }
}