/* ==========================================================================
   FLITKEY HOMEPAGE DESIGN SYSTEM & STYLESHEET
   Default Mode: Light Theme
   Color Scheme: Signal Red Accent
   ========================================================================== */

/* ── COLOR PALETTE & THEMES ── */
:root {
  /* Default Font Families */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ── ACCENT PALETTES (SIGNAL RED AS DEFAULT) ── */
html, html[data-accent="signal-red"] {
  --accent: #e11d48;
  --accent-hover: #be123c;
  --accent-dark: #9f1239;
  --accent-light: rgba(225, 29, 72, 0.08);
  --accent-border: rgba(225, 29, 72, 0.25);
  --accent-glow: rgba(225, 29, 72, 0.3);
  --accent-gradient: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #be123c 100%);
}

html[data-accent="ink-blue"] {
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-light: rgba(59, 130, 246, 0.08);
  --accent-border: rgba(59, 130, 246, 0.25);
  --accent-glow: rgba(59, 130, 246, 0.3);
  --accent-gradient: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
}

html[data-accent="forest-green"] {
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-dark: #047857;
  --accent-light: rgba(16, 185, 129, 0.08);
  --accent-border: rgba(16, 185, 129, 0.25);
  --accent-glow: rgba(16, 185, 129, 0.3);
  --accent-gradient: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
}

html[data-accent="emerald-teal"] {
  --accent: #14b8a6;
  --accent-hover: #0d9488;
  --accent-dark: #0f766e;
  --accent-light: rgba(20, 184, 166, 0.08);
  --accent-border: rgba(20, 184, 166, 0.25);
  --accent-glow: rgba(20, 184, 166, 0.3);
  --accent-gradient: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 50%, #0d9488 100%);
}

/* ── LIGHT THEME (DEFAULT) ── */
html, html[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #ffffff;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --border-color: rgba(15, 23, 42, 0.08);
  --border-color-hover: rgba(15, 23, 42, 0.18);

  --header-bg: rgba(255, 255, 255, 0.88);
  --hero-glow: radial-gradient(circle at 50% 30%, rgba(225, 29, 72, 0.06), transparent 70%);
}

/* ── DARK THEME (NIGHT MODE) ── */
html[data-theme="dark"] {
  --bg-main: #0f1117;
  --bg-surface: #161a23;
  --bg-card: #1e2330;
  --bg-card-hover: #262c3d;
  --bg-input: #12151e;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.18);
  
  --header-bg: rgba(15, 17, 23, 0.88);
  --hero-glow: radial-gradient(circle at 50% 30%, rgba(225, 29, 72, 0.18), transparent 70%);
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── RESET & BASE STYLES ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

.font-mono {
  font-family: var(--font-mono);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* ── TOP ANNOUNCEMENT BANNER ── */
.top-banner {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  font-size: 0.875rem;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
  color: var(--text-muted);
}

.badge-pulse {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.banner-link {
  font-weight: 600;
  color: var(--accent);
}

.banner-link:hover {
  text-decoration: underline;
}

/* ── HEADER & NAVIGATION ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 4px;
  box-shadow: 0 0 16px var(--accent-glow);
  transition: background var(--transition-normal);
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Controls */
.theme-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.icon-btn:hover {
  color: var(--text-main);
  background: var(--border-color);
}

html[data-theme="dark"] .sun-icon { display: block; }
html[data-theme="dark"] .moon-icon { display: none; }
html, html[data-theme="light"] .sun-icon { display: none; }
html, html[data-theme="light"] .moon-icon { display: block; }

.accent-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 6px;
  border-left: 1px solid var(--border-color);
}

.accent-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.accent-dot:hover {
  transform: scale(1.2);
}

.accent-dot.active {
  border-color: var(--text-main);
  transform: scale(1.15);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 3px 12px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-border);
  color: var(--text-main);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  font-size: 0.85rem;
}

.btn-ghost:hover {
  color: var(--text-main);
  border-color: var(--accent-border);
  background: var(--accent-light);
}

.btn-inverted {
  background: #ffffff;
  color: var(--accent-dark);
  font-weight: 700;
}

.btn-inverted:hover {
  background: #f1f5f9;
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-ghost-inverted {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost-inverted:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ── HERO SECTION ── */
.hero-section {
  position: relative;
  padding: 80px 0 90px;
  background: var(--hero-glow);
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
}

.hero-title {
  font-size: 3.8rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ── HERO MOCKUP (SNIPPET PICKER) ── */
.hero-mockup-wrapper {
  position: relative;
}

.hero-mockup {
  background: var(--bg-surface);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.hero-mockup:hover {
  border-color: var(--accent-border);
  box-shadow: 0 16px 40px var(--accent-light);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 3px;
}

.mockup-title {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

.mockup-shortcut {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-color-hover);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.mockup-body {
  padding: 18px;
}

.search-input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--accent-border);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: 0 0 0 3px var(--accent-light);
}

.search-input-box svg {
  color: var(--accent);
}

.search-input-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.95rem;
}

.typing-cursor {
  width: 2px;
  height: 18px;
  background: var(--accent);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.picker-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.picker-item:hover, .picker-item.active {
  background: var(--accent-light);
  border-color: var(--accent-border);
}

.trigger-chip {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 8px;
  background: var(--bg-main);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-sm);
  color: var(--accent);
}

.item-desc {
  font-size: 0.9rem;
  color: var(--text-main);
  flex: 1;
}

.action-hint {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.item-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--accent);
  padding: 2px 6px;
  background: var(--accent-light);
  border-radius: 4px;
}

.mockup-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 20px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ── STATS SECTION ── */
.stats-section {
  padding: 44px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.stat-card {
  text-align: center;
}

.stat-value {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── SECTION COMMON STYLES ── */
.section-header {
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 10px;
}

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

/* ── INTERACTIVE DEMO SECTION ── */
.demo-section {
  padding: 90px 0;
}

.demo-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--bg-surface);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.demo-sidebar {
  padding: 24px;
  background: var(--bg-main);
  border-right: 1px solid var(--border-color);
}

.demo-sidebar-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.demo-trigger-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-trigger-item {
  padding: 10px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.demo-trigger-item:hover {
  border-color: var(--accent-border);
  color: var(--text-main);
  background: var(--accent-light);
}

.demo-trigger-item code {
  color: var(--accent);
  font-weight: 700;
}

.demo-editor-container {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
}

.editor-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.expansion-toast {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  opacity: 0;
  transform: scale(0.9);
  transition: all var(--transition-fast);
}

.expansion-toast.show {
  opacity: 1;
  transform: scale(1);
}

#demo-textarea {
  width: 100%;
  flex: 1;
  padding: 20px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 220px;
}

.editor-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── FEATURES SECTION ── */
.features-section {
  padding: 90px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: 0 10px 24px var(--accent-light);
}

.feature-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.feature-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.feature-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-body {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── HOW IT WORKS ── */
.how-section {
  padding: 90px 0;
}

.how-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.steps-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.step-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-copy {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.step-copy code {
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Triggers Table */
.triggers-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-header {
  padding: 16px 20px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-wrapper {
  overflow-x: auto;
}

.triggers-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.triggers-table th, .triggers-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.triggers-table th {
  font-weight: 600;
  color: var(--text-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.triggers-table tr:last-child td {
  border-bottom: none;
}

/* ── USE CASES ── */
.use-cases-section {
  padding: 90px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.use-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.use-case-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
}

.use-case-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.use-case-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.use-case-copy {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── DOWNLOAD SECTION ── */
.download-section {
  padding: 90px 0;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}

.download-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-normal), transform var(--transition-normal);
}

.download-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
}

.download-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.platform-icon {
  color: var(--text-main);
}

.platform-title {
  font-size: 1.4rem;
  font-weight: 800;
}

.platform-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.download-btn {
  margin-bottom: 14px;
}

.download-note {
  font-size: 0.825rem;
  color: var(--text-dim);
}

.download-extra {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ── PRICING SECTION ── */
.pricing-section {
  padding: 90px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.pro-card {
  border: 2px solid var(--accent);
  box-shadow: 0 8px 30px var(--accent-light);
}

.pro-badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.plan-tag {
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

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

.plan-price {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.plan-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.pro-includes-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.925rem;
  color: var(--text-main);
}

.plan-features svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

kbd {
  font-family: var(--font-mono);
  background: var(--bg-main);
  border: 1px solid var(--border-color-hover);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.8em;
}

/* ── TESTIMONIALS CAROUSEL SECTION ── */
.testimonial-section {
  padding: 90px 0;
  text-align: center;
}

.testimonial-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.testimonial-track-container {
  overflow: hidden;
  width: 100%;
  padding: 24px 10px;
}

.testimonial-track {
  position: relative;
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(50px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.testimonial-slide.active {
  position: relative;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.testimonial-quote {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.015em;
  max-width: 820px;
  margin: 0 auto 24px;
  color: var(--text-main);
}

.testimonial-author {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

.carousel-nav-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color-hover);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: all var(--transition-fast);
  z-index: 10;
}

.carousel-nav-btn:hover {
  border-color: var(--accent-border);
  background: var(--accent-light);
  color: var(--accent);
  transform: scale(1.08);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.testimonial-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color-hover);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.testimonial-dots .dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 12px;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ── FAQ SECTION ── */
.faq-section {
  padding: 90px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.faq-wrapper {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--accent-border);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform var(--transition-fast);
  line-height: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
  animation: faqSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes faqSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── CTA BANNER ── */
.cta-banner {
  padding: 90px 0;
  background: var(--accent-gradient);
  color: #ffffff;
  text-align: center;
}

.cta-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── DOCUMENTATION & PAGE CONTENT STYLES ── */
.page-content-wrapper {
  padding: 60px 24px 90px;
}

.page-header {
  margin-bottom: 48px;
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 8px;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Legal & Information Card */
.legal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  max-width: 960px;
  margin: 0 auto;
}

.legal-h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 32px 0 14px;
  letter-spacing: -0.01em;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--text-main);
}

.legal-card p, .legal-card ul, .legal-card ol {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.legal-card ul, .legal-card ol {
  padding-left: 24px;
}

.legal-card li {
  margin-bottom: 8px;
}

.privacy-highlight-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  font-size: 0.95rem;
  color: var(--text-main);
}

/* Docs Layout */
.docs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding: 40px 24px 90px;
}

.docs-sidebar {
  position: sticky;
  top: 92px;
  height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 12px;
}

.sidebar-search input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.875rem;
  color: var(--text-main);
  outline: none;
  margin-bottom: 24px;
}

.sidebar-search input:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.docs-nav-tree {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.docs-nav-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.docs-nav-item {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
}

.docs-nav-item:hover, .docs-nav-item.active {
  color: var(--accent);
  background: var(--accent-light);
  border-left-color: var(--accent);
}

.docs-content {
  min-width: 0;
}

.docs-section {
  scroll-margin-top: 100px;
  margin-bottom: 60px;
}

.docs-h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 8px 0 16px;
}

.docs-h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 36px 0 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.docs-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.code-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.code-box pre {
  padding: 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-main);
}

.status-yes {
  color: #10b981;
  font-weight: 700;
  font-size: 0.85rem;
}

.status-no {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.docs-faq-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.docs-faq-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.docs-faq-block p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Contact Page Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  max-width: 1040px;
  margin: 0 auto;
}

.contact-form-card, .contact-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.contact-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-main);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-feedback-toast {
  display: none;
  margin-top: 16px;
  padding: 14px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.form-feedback-toast.show {
  display: block;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.contact-info-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── FOOTER ── */
.footer {
  background: var(--bg-main);
  padding: 70px 0 30px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 280px;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

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

.footer-legal a:hover {
  color: var(--text-main);
}

/* ── RESPONSIVE MEDIA QUERIES ── */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: 3rem;
  }

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

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

  .demo-card {
    grid-template-columns: 1fr;
  }

  .demo-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

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

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

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: relative;
    top: 0;
    height: auto;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
  }

  .nav-links.active {
    display: flex;
  }

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

  .hero-title {
    font-size: 2.4rem;
  }

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

  .cta-title {
    font-size: 2.2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .testimonial-quote {
    font-size: 1.25rem;
  }

  .carousel-nav-btn {
    width: 36px;
    height: 36px;
  }

  .legal-card {
    padding: 24px;
  }

  .page-title {
    font-size: 2.2rem;
  }
}
