/* ==========================================================================
   Design System Tokens & Root Variables
   ========================================================================== */
:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #111622;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 34, 52, 0.9);
  --bg-input: rgba(12, 17, 28, 0.8);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.35);
  --border-active: #6366f1;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-cyan: #06b6d4;
  --accent-rose: #f43f5e;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
  --shadow-emerald: 0 0 25px rgba(16, 185, 129, 0.25);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables (Switchable) */
body.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(248, 250, 252, 0.95);
  --bg-input: #ffffff;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(99, 102, 241, 0.4);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Ambient Glow Blobs */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  transition: opacity 0.5s ease;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: -150px;
  left: 10%;
}

.bg-glow-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  top: 30%;
  right: -100px;
}

.bg-glow-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
  bottom: 5%;
  left: 20%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 20, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

body.light-theme .site-header {
  background: rgba(255, 255, 255, 0.85);
}

.header-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-glow);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-title strong {
  color: var(--accent-cyan);
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-secondary);
  padding: 0.3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.45rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.action-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.action-icon-btn:hover {
  background: var(--border-subtle);
}

.cta-mini-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-emerald);
  transition: transform var(--transition-fast);
  white-space: nowrap;
}

.cta-mini-btn:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-content {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  max-width: 900px;
  margin: 1rem auto 3.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  color: #a5b4fc;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #38bdf8 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.accent-emerald { color: var(--accent-emerald); }
.accent-amber { color: var(--accent-amber); }
.accent-cyan { color: var(--accent-cyan); }

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.25rem;
}

.stat-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Tabs System
   ========================================================================== */
.tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.tab-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  margin-bottom: 2rem;
}

.section-tag {
  display: inline-block;
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.section-header h2 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 800px;
}

/* ==========================================================================
   Cards, Grids & UI Components
   ========================================================================== */
.grid-2-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
}

.grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.mt-4 {
  margin-top: 1.75rem;
}

.content-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.content-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.glow-border {
  border: 1px solid var(--border-subtle);
  position: relative;
}

.glow-border:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.pillar-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.pillar-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.pillar-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.check-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.4rem;
}

.check-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--accent-emerald);
  font-weight: bold;
}

/* Flywheel Box */
.infographic-box {
  margin-top: 2.5rem;
  background: linear-gradient(180deg, rgba(17, 22, 34, 0.8) 0%, rgba(10, 13, 20, 0.95) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-glow);
}

.infographic-box h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 800;
}

.flywheel-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.fw-step {
  flex: 1;
  min-width: 180px;
  background: var(--bg-card);
  padding: 1.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fw-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-glow);
}

.fw-step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.fw-step p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.fw-arrow {
  font-size: 1.8rem;
  color: var(--accent-cyan);
  font-weight: 800;
}

@media (max-width: 860px) {
  .fw-arrow {
    display: none;
  }
}

/* ==========================================================================
   Styled Tables & Comparison
   ========================================================================== */
.table-responsive {
  overflow-x: auto;
  margin-top: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.styled-table th {
  background: rgba(17, 22, 34, 0.95);
  color: var(--text-primary);
  padding: 1rem 1.25rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.styled-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.styled-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.badge-free {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-pro {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.box-icon {
  font-size: 2rem;
}

.feature-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-box p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.quote-box {
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid var(--accent-primary);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  color: #c7d2fe;
  font-style: italic;
  margin-top: auto;
}

/* Card Badge Headers */
.card-badge-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.card-num {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

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

.inner-grid {
  margin-top: 1.5rem;
}

.sub-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.sub-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.hook-item {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hook-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.hook-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-amber);
  margin-bottom: 0.25rem;
}

.hook-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.step-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-checklist li {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.warning-callout {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: #fde68a;
  margin: 1rem 0 1.5rem;
}

.blueprint-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.blueprint-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.code-preview {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: #06090e;
  padding: 1rem;
  border-radius: var(--radius-sm);
  color: #38bdf8;
  overflow-x: auto;
  white-space: pre-wrap;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.styled-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.styled-bullets li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.2rem;
}

.styled-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

.ordered-steps {
  margin-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Funnel Cards */
.funnel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.funnel-badge {
  display: inline-block;
  background: var(--accent-primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

.funnel-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.funnel-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.strategy-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 0.5rem;
}

.strategy-pill strong {
  display: block;
  font-size: 0.88rem;
  color: var(--accent-emerald);
  margin-bottom: 0.4rem;
}

.strategy-pill ul {
  margin-left: 1.2rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* ==========================================================================
   ROI Calculator Section
   ========================================================================== */
.calc-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

@media (max-width: 960px) {
  .calc-wrapper {
    grid-template-columns: 1fr;
  }
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.control-header label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.control-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  box-shadow: 0 0 12px var(--accent-primary);
  transition: transform var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-hints {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.calc-results {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.calc-results h3 {
  font-size: 1.25rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.result-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.res-card {
  background: var(--bg-card);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.res-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.res-number {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.res-desc, .res-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.res-breakdown-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   Ad Scripts & Copy Section
   ========================================================================== */
.script-filters {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-glow);
}

.filter-btn.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.scripts-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.script-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color var(--transition-fast);
}

.script-card:hover {
  border-color: var(--border-glow);
}

.script-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.script-badge {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.copy-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: var(--accent-primary);
  color: white;
}

.script-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
}

.script-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: #06090e;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  color: #e2e8f0;
  white-space: pre-wrap;
  border: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.6;
}

/* ==========================================================================
   30-Day Roadmap Section
   ========================================================================== */
.roadmap-progress-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.progress-info strong {
  font-family: var(--font-mono);
  color: var(--accent-emerald);
  font-size: 1.2rem;
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #10b981);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.roadmap-phase {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition-fast);
}

.roadmap-phase:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 650px) {
  .roadmap-phase {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.phase-badge {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  font-size: 0.9rem;
  font-weight: 800;
  height: fit-content;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  white-space: nowrap;
}

.phase-content {
  flex: 1;
}

.phase-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.phase-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--bg-secondary);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.task-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
}

.task-item input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--accent-emerald);
  cursor: pointer;
}

.task-item span {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.task-item.completed span {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #10b981;
  color: white;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-container p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

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

/* ==========================================================================
   Search Toolbar & Dynamic Scripts Styling
   ========================================================================== */
.scripts-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  backdrop-filter: blur(12px);
  transition: border-color var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

.search-icon {
  font-size: 1.2rem;
}

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

.search-box input::placeholder {
  color: var(--text-muted);
}

.info-alert-box {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: #a5f3fc;
  margin-bottom: 2rem;
}

/* Master Script Cards */
.script-card-full {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.script-card-full:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.script-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meta-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge-cat {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-time {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.script-card-full h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.script-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.block-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--accent-amber);
}

.block-content {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.voiceover-text {
  font-family: var(--font-mono);
  color: #e2e8f0;
  background: #06090e;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  white-space: pre-wrap;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* AI Prompt Cards */
.ai-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.2);
}

.ai-badge {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.prompt-box {
  background: #06090e;
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #7dd3fc;
  line-height: 1.6;
  position: relative;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .nav-links {
    max-width: 250px;
  }

  .grid-2-col {
    grid-template-columns: 1fr;
  }

  .content-card {
    padding: 1.25rem;
  }
}

