/* ==========================================================================
   SPIKE — Landing Page & Connected Surfaces Design System
   Grounded in: SPIKE Workflow Studio (v0.5.48) + Architectural Frame Rails
   ========================================================================== */

@font-face {
  font-family: 'Mazzard';
  src: url('assets/fonts/MazzardH-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mazzard';
  src: url('assets/fonts/MazzardH-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mazzard';
  src: url('assets/fonts/MazzardH-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mazzard';
  src: url('assets/fonts/MazzardH-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mazzard';
  src: url('assets/fonts/MazzardH-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-canvas: #0b0b0d;
  --bg-deep: #060607;
  --bg-surface: #18181b;
  --bg-surface-head: #242428;
  --bg-field: #141417;
  --bg-hover: #2e2e33;

  --border-rail: rgba(255, 255, 255, 0.08);
  --border-hairline: rgba(255, 255, 255, 0.07);
  --border-node: #3f3f46;
  --border-field: #3d3d40;

  --text-primary: #f4f4f5;
  --text-secondary: #b4b4bd;
  --text-muted: #94949e;

  --accent-orange: #F35D27;
  --accent-amber: #D77F1C;
  --accent-glow: #ff9500;
  --accent-grad: linear-gradient(135deg, #F35D27 0%, #D77F1C 100%);
  --run-grad: linear-gradient(135deg, #ff6a00 0%, #ff9500 100%);

  --rail-width: min(1840px, calc(100% - 32px));
  --nav-height: 64px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color-scheme: dark;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: 'Mazzard', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  caret-color: var(--accent-orange);
}

::selection {
  background: rgba(243, 93, 39, 0.35);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0d0d0e;
}
::-webkit-scrollbar-thumb {
  background: #333338;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4b4b52;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}

button, input, select, textarea {
  font-family: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid rgba(243, 93, 39, 0.85);
  outline-offset: 2px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Architectural Frame Rails (TobyFlow-grade structural cleanness)
   ========================================================================== */

.rail-container {
  position: relative;
  width: 100%;
  max-width: var(--rail-width);
  margin-inline: auto;
  border-left: 1px solid var(--border-rail);
  border-right: 1px solid var(--border-rail);
}

.section-band {
  position: relative;
  border-top: 1px solid var(--border-hairline);
}

.section-band.no-top {
  border-top: none;
}

.rail-inner {
  padding: 80px clamp(20px, 4vw, 64px);
}

.rail-inner.compact {
  padding: 56px clamp(20px, 4vw, 64px);
}

/* Subtle engineering crosshair markers (+) at rail intersections */
.rail-cross {
  position: relative;
}
.rail-cross::before,
.rail-cross::after {
  content: '';
  position: absolute;
  top: -5px;
  width: 9px;
  height: 9px;
  pointer-events: none;
  z-index: 20;
  background:
    linear-gradient(to right, transparent 4px, rgba(255, 255, 255, 0.28) 4px, rgba(255, 255, 255, 0.28) 5px, transparent 5px),
    linear-gradient(to bottom, transparent 4px, rgba(255, 255, 255, 0.28) 4px, rgba(255, 255, 255, 0.28) 5px, transparent 5px);
}
.rail-cross::before {
  left: -5px;
}
.rail-cross::after {
  right: -5px;
}

/* ==========================================================================
   Sticky Navbar
   ========================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--nav-height);
  background: rgba(8, 8, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hairline);
}

.nav-rail {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(18px, 3vw, 48px);
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #ffffff;
  flex-shrink: 0;
}

.brand-link img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
}

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

.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: #f4f4f5;
  transition: color 0.16s ease;
}

.nav-links a:hover {
  color: var(--accent-orange);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-signin {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  padding: 7px 12px;
  border-radius: 7px;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.nav-signin:hover {
  color: var(--accent-orange);
  background: rgba(255, 255, 255, 0.06);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-field);
  border: 1px solid var(--border-node);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: var(--accent-grad);
  color: #ffffff;
}

.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-node);
  background: var(--bg-surface);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 20px;
  background: #141416;
  border-bottom: 1px solid var(--border-rail);
}

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

.mobile-drawer a {
  padding: 10px 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-drawer a:last-child {
  border-bottom: none;
}

/* ==========================================================================
   Buttons & Reusable Controls
   ========================================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  background: var(--accent-grad);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.18s var(--ease-out-expo), filter 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid var(--border-node);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s var(--ease-out-expo);
}

.btn-secondary:hover {
  border-color: #71717a;
  background: #27272a;
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO: Authentic SPIKE Workflow Studio Showcase
   ========================================================================== */

.hero-section {
  position: relative;
  background-color: var(--bg-deep);
}

.hero-studio-shell {
  position: relative;
  width: 100%;
  background-color: #050506;
  background-image: radial-gradient(circle, #1f1f25 1px, transparent 1px);
  background-size: 28px 28px;
  overflow: hidden;
  padding: 28px 16px 36px;
}

/* Gentle radial ambient vignette at outer canvas edges */
.hero-studio-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 82%, rgba(5, 5, 6, 0.72) 100%);
  z-index: 150;
}

.studio-viewport {
  position: relative;
  width: 100%;
  height: 752px;
  margin-inline: auto;
  overflow: hidden;
}

.studio-scale-box {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2020px;
  height: 752px;
  transform-origin: top center;
}

/* Wire SVG sits directly under node cards, ports sit above wires */
.studio-canvas {
  position: relative;
  width: 2020px;
  height: 752px;
  z-index: 100;
}

.studio-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 80;
}

.studio-wires path.wire-base {
  fill: none;
  stroke: #71717a;
  stroke-width: 2;
  transition: stroke 0.2s ease, opacity 0.2s ease;
}

.studio-wires path.wire-base.is-highlighted {
  stroke: #d4d4d8;
}

.studio-wires path.glow-overlay {
  fill: none;
  stroke: #ff9500;
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px #ff9500) drop-shadow(0 0 3px #ffb84d);
  stroke-dasharray: 20 120;
  animation: wireFlow 1.2s linear infinite;
  pointer-events: none;
}

@keyframes wireFlow {
  to {
    stroke-dashoffset: -140;
  }
}

/* Authentic Studio Node Card */
.studio-node {
  position: absolute;
  background: #1c1c1e;
  border: 1px solid #3f3f46;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.62);
  user-select: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 12px;
  color: #eeeeee;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.studio-node:hover,
.studio-node.is-active-stage {
  border-color: #71717a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65);
}

.studio-node.is-running {
  border-color: #ff9500;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.72), 0 0 0 1.5px #ff9500;
}

.studio-node .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 9px;
  background: #27272a;
  border-radius: 9px 9px 0 0;
  font-weight: 600;
  font-size: 11px;
  color: #d4d4d8;
  letter-spacing: 0.25px;
  cursor: grab;
}

.studio-node .head:active {
  cursor: grabbing;
}

.studio-node .body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 8px;
}

.studio-node .field-row {
  display: flex;
  gap: 4px;
}

.studio-node .field-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.studio-node .field-wrap label {
  font-size: 9px;
  color: #9ca3af;
  margin-bottom: 1px;
  display: block;
}

.studio-node .mock-select,
.studio-node .mock-input {
  width: 100%;
  background: #18181b;
  color: #d4d4d8;
  border: 1px solid #3d3d40;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 9.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.studio-node .mock-select::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid #a1a1aa;
  flex-shrink: 0;
}

.studio-node .mock-textarea {
  width: 100%;
  background: #111111;
  color: #d4d4d8;
  border: 1px solid #3d3d40;
  border-radius: 5px;
  padding: 5px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9.5px;
  line-height: 1.4;
}

.studio-node .node-enhance-btn {
  background: transparent;
  border: 1px solid #3f3f46;
  color: #a1a1aa;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 10px;
  cursor: pointer;
  margin-top: 4px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.studio-node .node-enhance-btn:hover {
  border-color: #ff9500;
  color: #ffffff;
}

.studio-node .upload-zone {
  border: 1px dashed #52525b;
  border-radius: 5px;
  padding: 5px;
  text-align: center;
  font-size: 9.5px;
  color: #a1a1aa;
  background: #18181b;
}

.studio-node .meta-preview {
  font-size: 9px;
  color: #9ca3af;
  margin-top: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Modifier attachment sections */
.studio-node .attach-section {
  border: 1px solid #3d3d40;
  border-radius: 6px;
  padding: 5px;
  background: #18181b;
}

.studio-node .attach-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.studio-node .attach-name {
  font-size: 8.5px;
  font-weight: 700;
  color: #d4d4d8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-node .attach-id {
  font-size: 8.5px;
  color: #9ca3af;
  margin-left: 4px;
  flex-shrink: 0;
}

.studio-node .attach-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.studio-node .attach-toggle {
  flex: 1 1 42%;
  border: 1px solid #3d3d40;
  background: #111111;
  color: #a1a1aa;
  font: 600 9px system-ui, sans-serif;
  padding: 3px 2px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}

.studio-node .attach-toggle:hover {
  border-color: #a1a1aa;
  color: #e4e4e7;
}

.studio-node .attach-toggle.on {
  background: linear-gradient(135deg, #F35D27, #D77F1C);
  border-color: transparent;
  color: #ffffff;
}

/* Media Frames */
.studio-node .frame {
  width: 100%;
  background: #141417;
  border: 1px solid #2e2e33;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-node .frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.studio-node .frame-clear-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.68);
  color: #e4e4e7;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.studio-node .mp4-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.studio-node .media-actions {
  display: flex;
  gap: 5px;
  align-items: center;
  width: 100%;
  margin-top: 2px;
}

.studio-node .upload-btn {
  flex: 1;
  min-width: 0;
  min-height: 24px;
  padding: 4px 8px;
  background: #27272a;
  color: #e4e4e7;
  border: 1px solid #3f3f46;
  border-radius: 5px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-node .upload-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-node .save-btn {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3f3f46;
  border-radius: 5px;
  background: #27272a;
  color: #e4e4e7;
}

/* SPIKE orange range slider inside Video node */
.studio-node .slider-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.studio-node input[type='range'].spike-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, #F35D27, #D77F1C var(--fill, 42%), #2b2b2b var(--fill, 42%));
  outline: none;
  cursor: pointer;
}

.studio-node input[type='range'].spike-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1B1919;
  border: 2px solid #F35D27;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.studio-node input[type='range'].spike-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1B1919;
  border: 2px solid #F35D27;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.studio-node .duration-value {
  font-size: 9.5px;
  color: #e4e4e7;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* Ports — identical to studio/index.html */
.studio-node .port-out {
  position: absolute;
  right: -11px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #27272a;
  border: 1.5px solid #52525b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  z-index: 120;
}

.studio-node .ports-in {
  position: absolute;
  left: -11px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 120;
}

.studio-node .input-port {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #27272a;
  border: 1.5px solid #52525b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  position: relative;
}

.studio-node .port-out.connected,
.studio-node .input-port.connected {
  background: linear-gradient(135deg, #F35D27, #D77F1C);
  border-color: #F35D27;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.studio-node .port-out svg,
.studio-node .input-port svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
}

.studio-node .port-badge {
  position: absolute;
  left: -16px;
  top: -6px;
  font-size: 8.5px;
  background: #3f3f46;
  color: #e4e4e7;
  border-radius: 8px;
  padding: 0 3px;
  font-weight: 700;
  line-height: 12px;
  border: 1px solid #52525b;
}

/* Above-the-fold clarity bar cleanly anchored at bottom of Hero */
.hero-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 4vw, 64px);
  background: #09090b;
  border-top: 1px solid var(--border-hairline);
}

.hero-summary h1 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero-summary p {
  margin: 4px 0 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   Section 2: Pain ("CAPEK?") + Value Proposition ("SPIKE FLOW AUTOMATION")
   ========================================================================== */

#workflow-how .rail-inner {
  max-width: 1200px;
  margin-inline: auto;
}

.pain-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.pain-title {
  margin: 0 0 18px;
  font-size: clamp(44px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-orange);
}

.pain-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #f4f4f5;
  text-transform: uppercase;
}

.pain-lines .accent {
  color: var(--accent-orange);
}

.pain-sub {
  margin: 20px 0 0;
  font-size: 15.5px;
  color: var(--text-secondary);
  max-width: 48ch;
}

.pain-art {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 12px;
}

.pain-art img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  /* Soft edge integration into #111 ground */
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%), linear-gradient(to right, transparent 0%, #000 10%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%), linear-gradient(to right, transparent 0%, #000 10%, #000 92%, transparent 100%);
  mask-composite: intersect;
}

.value-band {
  max-width: 1200px;
  margin-inline: auto;
  text-align: center;
  padding: 64px clamp(20px, 4vw, 64px) 40px;
}

.value-title {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.value-title .accent {
  color: var(--accent-orange);
}

.value-sub {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--text-secondary);
}

.trust-pills {
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Distinct non-CTA trust badges so visitors don't confuse them with buttons */
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-node);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.trust-pill svg {
  width: 16px;
  height: 16px;
  color: var(--accent-orange);
  flex-shrink: 0;
}

.value-disclaimer {
  margin: 18px auto 0;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 62ch;
}

/* ==========================================================================
   Section 3: 4 Animated Feature Windows + AND MORE (Deep Focused Dark)
   ========================================================================== */

#features {
  background-color: #050506;
  background-image: radial-gradient(circle, #1f1f25 1px, transparent 1px);
  background-size: 28px 28px;
}

.features-section {
  max-width: 1200px;
  margin-inline: auto;
  padding: 64px clamp(20px, 4vw, 64px) 84px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.feature-window {
  background: #121215;
  border: 1px solid #2b2b33;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.56);
  transition: transform 0.6s var(--ease-out-expo), opacity 0.6s ease, border-color 0.25s ease;
}

/* Keep visible by default if JS hasn't marked reveal-ready */
.reveal-ready .feature-window {
  opacity: 0;
  transform: translateY(22px);
}
.reveal-ready .feature-window.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-window:hover {
  border-color: rgba(243, 93, 39, 0.55);
}

.fw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #18181c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fw-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.fw-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fw-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

.fw-dots .d-red { background: #ef4444; }
.fw-dots .d-yellow { background: #f59e0b; }
.fw-dots .d-green { background: #22c55e; }

.fw-stage {
  position: relative;
  height: 230px;
  padding: 18px;
  background: #08080a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fw-caption {
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Animation 1: Batch Generation (blur + opacity sequential reveal) --- */
.batch-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.batch-slot {
  aspect-ratio: 1;
  border-radius: 8px;
  background: #232327;
  border: 1px solid #35353b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  position: relative;
  opacity: 0.2;
  filter: blur(8px);
  transform: scale(0.92);
  transition: opacity 0.45s var(--ease-out-expo), filter 0.45s var(--ease-out-expo), transform 0.45s var(--ease-out-expo), border-color 0.25s ease;
}

.batch-slot svg {
  width: 20px;
  height: 20px;
}

.feature-window.anim-active .batch-slot.revealed {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.batch-slot.is-video.revealed {
  border-color: rgba(243, 93, 39, 0.45);
  color: var(--accent-orange);
}

/* --- Animation 2: Workflow Nodes (sequential node pop + left-to-right wire draw) --- */
.wf-mini {
  position: relative;
  width: 100%;
  height: 100%;
}

.wf-mini-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.wf-mini-wire {
  fill: none;
  stroke: #71717a;
  stroke-width: 2;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  transition: stroke-dashoffset 0.7s var(--ease-out-expo), stroke 0.3s ease;
}

.wf-mini-wire.connected {
  stroke-dashoffset: 0;
  stroke: var(--accent-orange);
}

.wf-mini-node {
  position: absolute;
  border-radius: 8px;
  background: #222226;
  border: 1px solid #3f3f46;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  z-index: 2;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transition: opacity 0.38s var(--ease-out-expo), transform 0.38s var(--ease-out-expo), border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 6px 8px;
  gap: 4px;
}

.wf-mini-node.shown {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wf-mini-node.lit {
  border-color: rgba(243, 93, 39, 0.7);
}

.wf-mini-node .mini-bar {
  height: 6px;
  width: 55%;
  border-radius: 3px;
  background: #3f3f46;
}

.wf-mini-node .mini-box {
  flex: 1;
  border-radius: 4px;
  background: #17171a;
  border: 1px solid #2e2e33;
}

.wf-mini-node.n1 { left: 4%; top: 12%; width: 17%; height: 34%; }
.wf-mini-node.n2 { left: 4%; top: 54%; width: 17%; height: 34%; }
.wf-mini-node.n3 { left: 29%; top: 36%; width: 17%; height: 30%; }
.wf-mini-node.n4 { left: 53%; top: 24%; width: 20%; height: 56%; }
.wf-mini-node.n5 { left: 79%; top: 8%; width: 17%; height: 30%; }
.wf-mini-node.n6 { left: 79%; top: 44%; width: 17%; height: 48%; }

/* --- Animation 3: Prompt Assistance (short -> Gemini sparkle pulse & glow -> expanded prompt) --- */
.prompt-demo-box {
  position: relative;
  width: 100%;
  height: 100%;
  background: #1c1c1e;
  border: 1px solid #3f3f46;
  border-radius: 10px;
  padding: 14px 16px 38px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.prompt-demo-box.glowing {
  border-color: var(--accent-orange);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.prompt-demo-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.prompt-demo-text {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  color: #e4e4e7;
  transition: color 0.3s ease;
}

.prompt-demo-box.glowing .prompt-demo-text {
  color: #ffffff;
}

.gemini-spark-badge {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #27272a;
  border: 1px solid #3f3f46;
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease-out-expo), background 0.35s ease, color 0.35s ease;
}

.gemini-spark-badge svg {
  width: 17px;
  height: 17px;
}

.gemini-spark-badge.active {
  transform: scale(1.22);
  background: var(--accent-grad);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

/* --- Animation 4: Extend / Split / Merge --- */
.video-ops-demo {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vop-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.vop-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.vop-track {
  position: relative;
  height: 38px;
  background: #1c1c1e;
  border: 1px solid #2e2e33;
  border-radius: 8px;
  padding: 5px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.vop-clip {
  height: 100%;
  border-radius: 5px;
  background: #2c2c32;
  border: 1px solid #45454f;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e4e4e7;
  font-size: 11px;
  font-weight: 600;
  transition: transform 0.55s var(--ease-out-expo), opacity 0.35s ease, background 0.45s ease, border-color 0.45s ease;
}

/* Split track: 1 clip splits into 2 */
.split-left,
.split-right {
  width: calc(50% - 2px);
}

.split-cut-blade {
  position: absolute;
  left: 50%;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: var(--accent-orange);
  transform: translateX(-50%) scaleY(0);
  transition: transform 0.25s var(--ease-out-expo), opacity 0.25s ease;
  z-index: 3;
}

.vop-track[data-state='split'] .split-cut-blade {
  transform: translateX(-50%) scaleY(1);
}
.vop-track[data-state='split'] .split-left {
  transform: translateX(-6px);
  border-color: rgba(243, 93, 39, 0.55);
}
.vop-track[data-state='split'] .split-right {
  transform: translateX(6px);
  border-color: rgba(243, 93, 39, 0.55);
}

/* Extend track: 1 clip + growing orange extension */
.extend-base {
  width: 56%;
  flex-shrink: 0;
}

.extend-added {
  height: 100%;
  width: 44%;
  margin-left: 4px;
  border-radius: 5px;
  background: var(--accent-grad);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  transition: transform 0.6s var(--ease-out-expo), opacity 0.35s ease;
}

.vop-track[data-state='extended'] .extend-added {
  transform: scaleX(1);
  opacity: 1;
}

/* Merge track: 2 clips + "+" icon merging into 1 long clip */
.merge-track {
  justify-content: center;
  gap: 8px;
}

.merge-c1,
.merge-c2 {
  width: 42%;
}

.merge-plus {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s ease, opacity 0.3s ease;
}

.vop-track[data-state='merged'] .merge-plus {
  opacity: 0;
  transform: scale(0.3);
}

.vop-track[data-state='merged'] .merge-c1 {
  transform: translateX(14px);
  background: linear-gradient(90deg, #323238, #F35D27);
  border-color: #F35D27;
}

.vop-track[data-state='merged'] .merge-c2 {
  transform: translateX(-14px);
  background: linear-gradient(90deg, #F35D27, #D77F1C);
  border-color: #D77F1C;
  color: #ffffff;
}

/* AND MORE expandable showcase */
.and-more-wrap {
  margin-top: 28px;
  text-align: center;
}

.and-more-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out-expo), margin-top 0.4s ease;
  margin-top: 0;
}

.and-more-panel.open {
  grid-template-rows: 1fr;
  margin-top: 24px;
}

.and-more-inner {
  overflow: hidden;
}

.and-more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  text-align: left;
}

.extra-cap {
  background: var(--bg-surface);
  border: 1px solid var(--border-node);
  border-radius: 12px;
  padding: 18px;
}

.extra-cap h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.extra-cap h3 svg {
  width: 16px;
  height: 16px;
  color: var(--accent-orange);
}

.extra-cap p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Section 4: READY TO USE TEMPLATES (Auto-Scroll Empty Carousel)
   ========================================================================== */

.templates-section {
  padding: 72px 24px;
  text-align: center;
}

.section-heading {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.section-heading .accent {
  color: var(--accent-orange);
}

.section-sub {
  margin: 10px auto 0;
  font-size: 15.5px;
  color: var(--text-secondary);
  max-width: 58ch;
  padding-inline: 24px;
}

.templates-marquee {
  position: relative;
  margin-top: 40px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.templates-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: templateScroll 34s linear infinite;
}

.templates-marquee:hover .templates-track {
  animation-play-state: paused;
}

@keyframes templateScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.template-slot-card {
  width: 280px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-node);
  border-radius: 14px;
  padding: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, transform 0.25s var(--ease-out-expo);
}

.template-slot-card:hover {
  border-color: rgba(243, 93, 39, 0.65);
  transform: translateY(-2px);
}

.template-slot-preview {
  height: 158px;
  padding: 16px;
  border-radius: 9px;
  background: #141416;
  border: 1px dashed #3f3f46;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.template-slot-preview svg {
  width: 22px;
  height: 22px;
  opacity: 0.65;
}

.template-slot-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
}

.template-slot-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.template-slot-ext {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: #fb923c;
}

/* ==========================================================================
   Section 5: ONE TIME PRICING
   ========================================================================== */

.pricing-section {
  max-width: 1200px;
  margin-inline: auto;
  padding: 72px clamp(20px, 4vw, 64px);
  text-align: center;
}

.pricing-banner {
  margin-top: 36px;
  border-radius: 18px;
  padding: 52px 32px;
  background: var(--accent-grad);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.pricing-strike-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pricing-old {
  font-size: 24px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: line-through;
  text-decoration-thickness: 2.5px;
  text-decoration-color: #111111;
}

.pricing-promo-badge {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  text-transform: lowercase;
}

.pricing-main-row {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pricing-currency {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.94);
  align-self: center;
}

.pricing-amount {
  font-size: clamp(54px, 7.5vw, 86px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.pricing-per {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.pricing-benefits {
  margin: 20px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
}

.pricing-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pricing-benefits svg {
  width: 15px;
  height: 15px;
}

.pricing-cta-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.btn-pricing-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 10px;
  background: #ffffff;
  color: #111111;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.28);
  transition: transform 0.18s var(--ease-out-expo), box-shadow 0.18s ease;
}

.btn-pricing-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(17, 17, 17, 0.36);
}

.btn-pricing-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 10px;
  background: rgba(17, 17, 17, 0.24);
  border: 1.5px solid rgba(255, 255, 255, 0.78);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background-color 0.18s ease, transform 0.18s var(--ease-out-expo);
}

.btn-pricing-secondary:hover {
  background: rgba(17, 17, 17, 0.38);
  transform: translateY(-2px);
}

/* ==========================================================================
   Section 6: FAQ (2-column smooth accordion)
   ========================================================================== */

.faq-section {
  max-width: 1200px;
  margin-inline: auto;
  padding: 72px clamp(20px, 4vw, 64px);
}

.faq-header {
  text-align: center;
  margin-bottom: 36px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  align-items: start;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-node);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: rgba(243, 93, 39, 0.72);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  color: var(--text-primary);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.faq-trigger:hover {
  color: #ffffff;
}

.faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out-expo), color 0.2s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-orange);
}

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s var(--ease-out-expo);
}

.faq-item.open .faq-body {
  grid-template-rows: 1fr;
}

.faq-body-inner {
  overflow: hidden;
}

.faq-body-inner p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

/* ==========================================================================
   Section 7: Closing Statement & Architectural Footer
   ========================================================================== */

.closing-section {
  padding: 84px clamp(20px, 4vw, 64px);
  text-align: center;
}

.closing-headline {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.closing-headline .accent {
  color: var(--accent-orange);
}

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

.closing-privacy {
  margin: 18px auto 0;
  font-size: 12.5px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.closing-privacy svg {
  width: 14px;
  height: 14px;
  color: var(--accent-orange);
}

.site-footer {
  border-top: 1px solid var(--border-hairline);
  background: #0d0d0e;
}

.footer-inner {
  padding: 52px clamp(20px, 4vw, 64px) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px 88px;
  margin-bottom: 40px;
  align-items: start;
}

.footer-desc {
  margin: 12px 0 20px;
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 34ch;
  line-height: 1.6;
}

.footer-col-title {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}

.footer-links a,
.footer-links .footer-link-btn {
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.footer-links .footer-link-btn {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover,
.footer-links .footer-link-btn:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   Subpages: Checkout, Affiliate, Sign In, Privacy, Terms
   ========================================================================== */

.subpage-wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding: 64px clamp(20px, 4vw, 64px) 88px;
}

.subpage-header {
  max-width: 68ch;
  margin-bottom: 36px;
}

.subpage-header h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.subpage-header p {
  margin: 0;
  font-size: 15.5px;
  color: var(--text-secondary);
}

.two-col-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.panel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-node);
  border-radius: 14px;
  padding: 28px;
}

.panel-card h2,
.panel-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg-field);
  border: 1px solid var(--border-node);
  border-radius: 9px;
  padding: 11px 13px;
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color 0.16s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-orange);
}

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

.pay-method-btn {
  padding: 12px 10px;
  border-radius: 9px;
  border: 1px solid var(--border-node);
  background: var(--bg-field);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.pay-method-btn.active {
  border-color: var(--accent-orange);
  background: rgba(243, 93, 39, 0.14);
  color: #ffffff;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
  color: var(--text-secondary);
}

.summary-row strong {
  color: var(--text-primary);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  font-size: 16px;
  font-weight: 700;
}

.summary-total .price-accent {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-orange);
}

.step-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.step-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.notice-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(243, 93, 39, 0.1);
  border: 1px solid rgba(243, 93, 39, 0.35);
  color: #fed7aa;
  font-size: 13px;
  line-height: 1.55;
}

.notice-box.hidden {
  display: none;
}

.legal-doc {
  max-width: 78ch;
}

.legal-doc h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.legal-doc .legal-lead {
  font-size: 15.5px;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.legal-meta-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px 20px;
  padding: 20px 22px;
  margin-bottom: 30px;
  background: var(--bg-surface);
  border: 1px solid var(--border-node);
  border-radius: 12px;
}

.legal-meta-item span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.legal-meta-item strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.legal-doc h2 {
  margin: 30px 0 10px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
}

.legal-doc h3 {
  margin: 18px 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.legal-doc p,
.legal-doc li {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.72;
}

.legal-doc ul {
  margin: 8px 0 14px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 5px;
}

.legal-doc a {
  color: var(--accent-orange);
  text-decoration: underline;
}

.legal-lang-block[hidden] {
  display: none;
}

/* ==========================================================================
   Modal (Chrome Web Store Install Preview)
   ========================================================================== */

.spike-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.spike-modal-backdrop.open {
  display: flex;
}

.spike-modal {
  width: 100%;
  max-width: 460px;
  background: var(--bg-surface);
  border: 1px solid var(--border-node);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}

.spike-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.spike-modal-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.spike-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-node);
  background: var(--bg-field);
  color: var(--text-secondary);
  cursor: pointer;
}

.spike-modal-close:hover {
  color: #ffffff;
  border-color: #71717a;
}

/* ==========================================================================
   Responsive Breakpoints & Reduced Motion
   ========================================================================== */

@media (max-width: 1024px) {
  .rail-inner,
  .rail-inner.compact,
  .hero-action-bar,
  .value-band,
  .features-section,
  .pricing-section,
  .faq-section,
  .closing-section,
  .footer-inner,
  .subpage-wrap {
    padding-inline: 24px;
  }

  .pain-grid,
  .two-col-layout {
    grid-template-columns: 1fr;
  }

  .pain-art {
    justify-content: center;
  }

  .and-more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  :root {
    --rail-width: 100%;
  }

  .rail-cross::before,
  .rail-cross::after {
    display: none;
  }

  .nav-rail {
    padding-inline: 16px;
    gap: 10px;
  }

  .rail-inner,
  .rail-inner.compact,
  .hero-action-bar,
  .value-band,
  .features-section,
  .pricing-section,
  .faq-section,
  .closing-section,
  .footer-inner,
  .subpage-wrap {
    padding-inline: 18px;
  }

  .nav-links,
  .nav-cta-mini {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .features-grid,
  .faq-grid,
  .footer-grid,
  .and-more-grid {
    grid-template-columns: 1fr;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }

  .hero-action-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .templates-track {
    animation: none;
  }
  .studio-wires path.glow-overlay {
    animation: none;
    stroke-dasharray: none;
  }
  .reveal-ready .feature-window {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
