/* ==========================================================================
   InsertAddress — Main Stylesheet
   Dark editorial marketing site
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  --bg: #08090d;
  --surface: #11131a;
  --surface-raised: #191c26;
  --border: #262a36;
  --border-subtle: #1a1d28;
  --accent: #e4a94f;
  --accent-dim: #9e7636;
  --accent-glow: rgba(228, 169, 79, 0.10);
  --accent-hot: #f2c46a;
  --text: #e6e8ed;
  --text-muted: #6e7389;
  --text-dim: #484d63;
  --danger: #f04444;
  --success: #34d399;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --display: 'Syne', 'Outfit', system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
}

/* ==========================================================================
   Global Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button, input {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Selection */
::selection {
  background: var(--accent);
  color: var(--bg);
}

::-moz-selection {
  background: var(--accent);
  color: var(--bg);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-dim);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-dim) var(--bg);
}

/* Grain Overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  opacity: 0.018;
  pointer-events: none;
  z-index: 9999;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, .h1 {
  font-family: var(--display);
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
}

h2, .h2 {
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

h3, .h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

small, .text-sm {
  font-size: 0.85rem;
}

.accent-text {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
}

.text-muted {
  color: var(--text-muted);
}

.text-dim {
  color: var(--text-dim);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

section {
  padding: 6rem 0;
}

section + section {
  border-top: 1px solid var(--border-subtle);
}

.section-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

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

.section-header p {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   Navigation (.nav)
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(8, 9, 13, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.nav-logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #08090d !important;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  transition: filter 0.2s ease;
}

.nav-cta:hover {
  filter: brightness(1.1);
  color: #08090d !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: rgba(8, 9, 13, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

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

.nav-mobile a {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

/* ==========================================================================
   Hero (.hero)
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 4rem;
  text-align: center;
  border-bottom: none;
}

.hero h1 {
  max-width: 800px;
}

.hero .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 600px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: transparent;
  white-space: nowrap;
}

.stat-pill::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.stat-pill strong {
  color: var(--text);
  font-weight: 600;
}

/* ==========================================================================
   Pipeline Visualization (.pipeline-viz)
   ========================================================================== */

.pipeline-viz {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 4rem;
  padding: 2rem 0;
  width: 100%;
  overflow: hidden;
}

.pipeline-node {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.75rem;
  text-align: center;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.pipeline-node-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pipeline-node-label {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pipeline-connector {
  position: relative;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent-dim), var(--border));
  flex-shrink: 0;
}

.pipeline-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent-glow);
  animation: dotTravel 2s ease-in-out infinite;
}

.pipeline-connector:nth-child(4)::after {
  animation-delay: 0.7s;
}

/* ==========================================================================
   How It Works — Steps (.steps)
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.step-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

.step-number {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.step-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  position: relative;
}

/* CSS-only geometric icons */
.step-icon-queue {
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
}

.step-icon-queue span {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--accent-dim);
}

.step-icon-queue span:nth-child(1) { width: 36px; background: var(--accent); }
.step-icon-queue span:nth-child(2) { width: 28px; }
.step-icon-queue span:nth-child(3) { width: 20px; }

.step-icon-calendar {
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent-dim);
  border-radius: 6px;
  position: relative;
}

.step-icon-calendar::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.step-icon-calendar::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 8px;
  width: 2px;
  height: 8px;
  background: var(--accent-dim);
  box-shadow: 14px 0 0 var(--accent-dim);
}

.step-icon-rocket {
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 32px solid var(--accent);
  border-radius: 4px;
  position: relative;
}

.step-icon-rocket::after {
  content: '';
  position: absolute;
  bottom: -38px;
  left: -6px;
  width: 12px;
  height: 6px;
  background: var(--accent-dim);
  border-radius: 0 0 4px 4px;
}

.step-card h3 {
  margin-bottom: 0.75rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Smart Scheduling (.scheduling)
   ========================================================================== */

.scheduling-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.scheduling-text h2 {
  margin-bottom: 1.5rem;
}

.scheduling-text > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.decision-pipeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.decision-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border-left: 3px solid var(--accent);
  font-size: 0.92rem;
  color: var(--text);
}

.decision-item span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Heatmap */
.heatmap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow-x: auto;
}

.heatmap-title {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: 40px repeat(24, 1fr);
  gap: 3px;
}

.heatmap-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  font-weight: 500;
}

.heatmap-col-label {
  font-size: 0.55rem;
  color: var(--text-dim);
  text-align: center;
  padding-bottom: 4px;
}

.heatmap-cell {
  width: 100%;
  aspect-ratio: 1;
  min-width: 10px;
  border-radius: 3px;
  background: var(--border-subtle);
  transition: background 0.15s ease;
}

.heatmap-cell.heat-1 {
  background: #2a2218;
}

.heatmap-cell.heat-2 {
  background: #4a3a1e;
}

.heatmap-cell.heat-3 {
  background: #7a5c28;
}

.heatmap-cell.heat-4 {
  background: #b5822e;
}

.heatmap-cell.heat-5 {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.65rem;
  color: var(--text-dim);
}

.heatmap-legend span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* ==========================================================================
   Video Editor (.editor)
   ========================================================================== */

.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.editor-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  overflow: hidden;
}

.editor-topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.editor-topbar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.editor-topbar-dot:nth-child(1) { background: var(--danger); }
.editor-topbar-dot:nth-child(2) { background: var(--accent); }
.editor-topbar-dot:nth-child(3) { background: var(--success); }

.editor-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 340px;
  background: #000;
  border-radius: var(--radius-sm);
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.editor-subtitle {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  max-width: 90%;
}

.editor-timeline {
  margin-top: 1rem;
  position: relative;
  height: 40px;
  background: var(--surface-raised);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.timeline-segment {
  height: 100%;
  position: relative;
}

.timeline-segment.keep {
  background: rgba(52, 211, 153, 0.25);
  border-bottom: 2px solid var(--success);
  flex: 3;
}

.timeline-segment.cut {
  background: rgba(240, 68, 68, 0.15);
  border-bottom: 2px solid var(--danger);
  flex: 1;
}

.timeline-playhead {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent), 0 0 16px var(--accent-glow);
  z-index: 5;
  animation: playheadMove 4s ease-in-out infinite;
}

.editor-transcript {
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--surface-raised);
  border-radius: var(--radius-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-height: 60px;
  overflow: hidden;
}

.editor-transcript .word {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
}

.editor-transcript .word:hover {
  background: var(--border);
}

.editor-transcript .word-cut {
  text-decoration: line-through;
  color: var(--text-dim);
  opacity: 0.5;
}

/* Editor text panel */
.editor-text h2 {
  margin-bottom: 1rem;
}

.editor-text > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.editor-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.editor-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
}

.editor-feature-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.editor-feature h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.editor-feature p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Queue (.queue-section)
   ========================================================================== */

.queue-mockup {
  max-width: 700px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.queue-channel {
  border-bottom: 1px solid var(--border-subtle);
}

.queue-channel:last-child {
  border-bottom: none;
}

.queue-channel-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface-raised);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.queue-platform-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.queue-platform-dot.tiktok   { background: #2dd4bf; }
.queue-platform-dot.youtube  { background: #f87171; }
.queue-platform-dot.instagram { background: #e879f9; }
.queue-platform-dot.linkedin { background: #60a5fa; }

.queue-item {
  display: grid;
  grid-template-columns: 24px 28px 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s ease;
}

.queue-item:nth-child(even) {
  background: rgba(17, 19, 26, 0.5);
}

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

.queue-item:hover {
  background: var(--surface-raised);
}

.queue-drag {
  color: var(--text-dim);
  cursor: grab;
  font-size: 0.85rem;
  letter-spacing: -0.05em;
  user-select: none;
}

.queue-pos {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

.queue-title {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-priority {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.priority-low {
  background: rgba(110, 115, 137, 0.15);
  color: var(--text-muted);
}

.priority-mid {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}

.priority-high {
  background: rgba(228, 169, 79, 0.15);
  color: var(--accent);
}

.queue-time {
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
}

/* Live item */
.queue-item.is-live {
  background: rgba(52, 211, 153, 0.04);
}

.queue-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--success);
}

.queue-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 1.5s ease-in-out infinite;
}

/* ==========================================================================
   Platforms (.platforms)
   ========================================================================== */

.platforms {
  text-align: center;
}

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 700px;
  margin: 0 auto;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.platform-badge:hover {
  border-color: var(--accent-dim);
}

.platform-badge.top {
  border-color: var(--accent-dim);
  box-shadow: 0 0 16px var(--accent-glow), inset 0 0 12px var(--accent-glow);
  padding: 0.7rem 1.3rem;
  font-size: 0.9rem;
}

.platform-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.platform-dot.tiktok   { background: #2dd4bf; }
.platform-dot.youtube  { background: #f87171; }
.platform-dot.instagram { background: #e879f9; }
.platform-dot.linkedin { background: #60a5fa; }
.platform-dot.x-twitter { background: #e0e0e0; }
.platform-dot.facebook { background: #3b82f6; }
.platform-dot.pinterest { background: #ef4444; }
.platform-dot.snapchat { background: #facc15; }
.platform-dot.threads  { background: #a78bfa; }

.platform-badge.more {
  border-style: dashed;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ==========================================================================
   CTA Section (.cta-section)
   ========================================================================== */

.cta-section {
  background: var(--surface);
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2rem;
}

.cta-form {
  display: inline-flex;
  max-width: 460px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.cta-form input {
  flex: 1;
  background: var(--surface-raised);
  padding: 0.85rem 1.25rem;
  font-size: 0.92rem;
  color: var(--text);
  border: none;
  min-width: 0;
}

.cta-form input::placeholder {
  color: var(--text-dim);
}

.cta-form input:focus {
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.cta-form button {
  background: var(--accent);
  color: #08090d;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.85rem 1.75rem;
  white-space: nowrap;
  transition: filter 0.2s ease;
}

.cta-form button:hover {
  filter: brightness(1.1);
}

/* ==========================================================================
   Screenshot Showcases
   ========================================================================== */

.screenshot-showcase {
  padding: 5rem 0;
}

.screenshot-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 60px rgba(228, 169, 79, 0.04);
}

.screenshot-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
  opacity: 0.3;
  z-index: 1;
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.screenshot-frame--small {
  border-radius: 12px;
}

.screenshot-frame--small img {
  border-radius: 12px;
}

.screenshot-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.screenshot-duo__item {
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .screenshot-duo {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

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

.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--accent);
}

/* ==========================================================================
   Animations — Keyframes
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

@keyframes dotTravel {
  0% {
    transform: translateY(-50%) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-50%) translateX(calc(100px - 8px));
    opacity: 0;
  }
}

@keyframes playheadMove {
  0% {
    left: 0%;
  }
  100% {
    left: 100%;
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 6px var(--accent-glow);
  }
  50% {
    box-shadow: 0 0 18px var(--accent-glow), 0 0 30px var(--accent-glow);
  }
}

/* Scroll-triggered animation classes */
.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slide-in {
  animation: slideIn 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Pre-animation state — elements start hidden */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
}

[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive — 1024px
   ========================================================================== */

@media (max-width: 1024px) {
  h1, .h1 {
    font-size: 3rem;
  }

  h2, .h2 {
    font-size: 2rem;
  }

  .pipeline-connector {
    width: 60px;
  }

  @keyframes dotTravel {
    0% {
      transform: translateY(-50%) translateX(0);
      opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
      transform: translateY(-50%) translateX(calc(60px - 8px));
      opacity: 0;
    }
  }
}

/* ==========================================================================
   Responsive — 768px
   ========================================================================== */

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 3rem;
  }

  h1, .h1 {
    font-size: 2.5rem;
  }

  h2, .h2 {
    font-size: 1.75rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .scheduling-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .editor-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .pipeline-viz {
    flex-direction: column;
    gap: 0;
  }

  .pipeline-connector {
    width: 2px;
    height: 40px;
  }

  .pipeline-connector::after {
    animation-name: dotTravelVertical;
  }

  @keyframes dotTravelVertical {
    0% {
      transform: translateX(-50%) translateY(0);
      opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
      transform: translateX(-50%) translateY(32px);
      opacity: 0;
    }
  }

  .stat-pills {
    flex-direction: column;
    align-items: center;
  }

  .heatmap {
    overflow-x: auto;
  }

  .heatmap-grid {
    min-width: 500px;
  }

  .queue-item {
    grid-template-columns: 20px 24px 1fr auto;
    font-size: 0.8rem;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
  }

  .queue-time {
    display: none;
  }

  .badge-grid {
    gap: 0.5rem;
  }

  .cta-form {
    flex-direction: column;
    border-radius: var(--radius);
  }

  .cta-form input {
    border-radius: var(--radius) var(--radius) 0 0;
    text-align: center;
  }

  .cta-form button {
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 0.85rem;
  }
}

/* ==========================================================================
   Responsive — 480px
   ========================================================================== */

@media (max-width: 480px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  h1, .h1 {
    font-size: 2rem;
  }

  h2, .h2 {
    font-size: 1.5rem;
  }

  h3, .h3 {
    font-size: 1.1rem;
  }

  body {
    font-size: 0.92rem;
  }

  section {
    padding: 3rem 0;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .step-card {
    padding: 1.5rem;
  }

  .step-number {
    font-size: 2.25rem;
  }

  .pipeline-node {
    padding: 1rem 1.25rem;
  }

  .pipeline-node-label {
    font-size: 0.7rem;
  }

  .editor-mockup {
    padding: 0.75rem;
    border-radius: var(--radius);
  }

  .editor-frame {
    max-height: 260px;
  }

  .queue-item {
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
  }

  .queue-drag,
  .queue-pos {
    display: none;
  }

  .platform-badge {
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
  }

  .platform-badge.top {
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
  }

  .nav .container {
    height: 56px;
  }

  .hero {
    padding-top: 80px;
  }
}

/* ==========================================================================
   Utility
   ========================================================================== */

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

.text-center { text-align: center; }
.text-left   { text-align: left; }

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1       { gap: 0.5rem; }
.gap-2       { gap: 1rem; }
.gap-3       { gap: 1.5rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
