@font-face {
  font-family: 'Archivo Black';
  src: url('assets/fonts/ArchivoBlack-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

:root {
  --bg: #0a0b0e;
  --surface: #171a20;
  --surface-2: #1d212a;
  --surface-3: #242a35;
  --text: #e8eaf0;
  --muted: #8b90a0;
  --faint: #6a6f7d;

  --primary: #7c6cff;
  --primary-2: #9f7bff;
  --primary-3: #b7a9ff;
  --primary-grad: linear-gradient(135deg, #7c6cff, #9f7bff);
  --primary-soft: rgba(124, 108, 255, 0.16);

  --keep: #34c98d;
  --keep-soft: rgba(52, 201, 141, 0.13);
  --cut: #ef6b6b;
  --warn: #f2b544;
  --warn-soft: rgba(242, 181, 68, 0.13);

  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);

  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 15px;

  --shadow: 0 26px 60px -18px rgba(0, 0, 0, 0.8);
  --ease: cubic-bezier(0.2, 0.9, 0.3, 1);

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(1200px 700px at 22% -8%, #16181f 0%, #0a0b0e 55%, #070809 100%);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Archivo Black', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }
section .eyebrow { margin-bottom: 14px; }
section h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
section .section-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 620px;
  margin-bottom: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--primary-3);
  background: var(--primary-soft);
  border: 1px solid rgba(124, 108, 255, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(10, 11, 14, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 15px; }
.nav-brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color 0.15s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-cta-slot { display: flex; }
.nav-toggle { display: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  color: #fff;
  background: var(--primary-grad);
  box-shadow: 0 8px 24px -6px rgba(124, 108, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-outline {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: filter 0.15s var(--ease), transform 0.15s var(--ease); }
  .btn-primary:hover { filter: brightness(1.08); }
  .btn-outline:hover { background: var(--surface-2); border-color: var(--primary-3); }
  .card-hover:hover { transform: translateY(-3px); }
}
.card-hover { transition: transform 0.15s var(--ease); }

/* ===== Hero ===== */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(38px, 5.4vw, 60px); margin: 18px 0 20px; }
.hero-copy .hero-sub { color: var(--muted); font-size: 18px; max-width: 520px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-badges { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-badges span { font-size: 13px; color: var(--faint); display: flex; align-items: center; gap: 6px; }
.hero-badges svg { width: 14px; height: 14px; color: var(--keep); }

/* Hero mock panel */
.mock-panel {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 22px;
}
.mock-titlebar { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); opacity: 0.5; }
.mock-titlebar span { font-size: 12px; color: var(--faint); margin-left: 6px; }
.mock-fork { display: grid; gap: 12px; }
.mock-choice {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.mock-choice.active { border-color: var(--primary); background: var(--primary-soft); }
.mock-choice svg { width: 22px; height: 22px; color: var(--primary-3); flex-shrink: 0; margin-top: 2px; }
.mock-choice h4 { font-family: 'Inter'; font-weight: 900; font-size: 14px; margin: 0 0 4px; }
.mock-choice p { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.mock-caption { text-align: center; font-size: 12px; color: var(--faint); margin-top: 16px; }

/* ===== Workflow ===== */
.workflow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.workflow-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
}
.workflow-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.workflow-card-head .icon-badge { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--primary-soft); display: flex; align-items: center; justify-content: center; }
.workflow-card-head .icon-badge svg { width: 22px; height: 22px; color: var(--primary-3); }
.workflow-card-head h3 { font-family: 'Inter'; font-weight: 900; font-size: 19px; }
.workflow-card > p { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.mode-row { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.mode-row:first-of-type { border-top: none; padding-top: 0; }
.mode-row-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.mode-badge {
  font-size: 10px; font-weight: 900; letter-spacing: 0.04em; color: var(--keep);
  background: var(--keep-soft); border-radius: 999px; padding: 2px 8px;
}
.mode-row p { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* ===== Feature grid ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
}
.feature-glyph {
  width: 100%; height: 78px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
}
.feature-glyph svg { width: 60px; height: 44px; }
.feature-card h3 { font-family: 'Inter'; font-weight: 900; font-size: 16px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* ===== Pricing ===== */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
}
.pricing-card.pro { border-color: rgba(124, 108, 255, 0.35); background: linear-gradient(180deg, var(--primary-soft), var(--surface) 60%); }
.pricing-badge {
  display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: 0.05em;
  border-radius: 999px; padding: 5px 12px; margin-bottom: 16px;
}
.pricing-card.free .pricing-badge { color: var(--keep); background: var(--keep-soft); }
.pricing-card.pro .pricing-badge { color: var(--primary-3); background: var(--primary-soft); border: 1px solid rgba(124,108,255,0.35); }
.pricing-card h3 { font-family: 'Inter'; font-weight: 900; font-size: 22px; margin-bottom: 18px; }
.pricing-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; padding: 8px 0; color: var(--text); }
.pricing-list svg { width: 16px; height: 16px; color: var(--keep); flex-shrink: 0; margin-top: 3px; }
.pricing-fineprint { color: var(--faint); font-size: 12.5px; margin-top: 18px; line-height: 1.5; }

/* ===== Beta ===== */
.beta-box {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 48px;
  text-align: center;
}
.beta-box h2 { margin-bottom: 12px; }
.beta-box .section-sub { margin: 0 auto 28px; }
.beta-fine { color: var(--faint); font-size: 12.5px; margin-top: 18px; }

/* ===== Footer ===== */
footer { border-top: 1px solid var(--line); padding: 48px 0; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 14px; }
.footer-brand svg { width: 20px; height: 20px; }
.footer-tagline { color: var(--faint); font-size: 12.5px; margin-top: 4px; }
/* Wraps because the footer now carries Terms/Privacy/Refunds as well as the
   product links, and a non-wrapping row of that many items pushed the whole
   page into a horizontal scroll on a phone. */
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--faint); font-size: 12px; width: 100%; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }

/* ===== Mobile ===== */
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav-links a:not(.nav-beta-link) { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; }
  .workflow-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .beta-box { padding: 32px 20px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}

/* ---- product switcher ----------------------------------------------------
 * This site now carries two products (Script Cutter and EndFrame), so every
 * page has to make the other reachable or the second one is effectively
 * invisible. Shared chrome, so it lives here rather than in either product's
 * own stylesheet — endframe.css is not loaded by index.html. */
.prod-switch { display: flex; align-items: center; gap: 2px; margin-left: 18px; }
.prod-switch a {
  font-size: 12.5px;
  color: var(--faint);
  padding: 5px 10px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.prod-switch a:hover { color: var(--text); }
.prod-switch a.current { color: var(--text); border-color: var(--line-strong); background: var(--surface); }
@media (max-width: 860px) { .prod-switch { display: none; } }
