/* ═══════════════════════════════════════════════════════════════════
   ActionLock — Landing Page Stylesheet
   Design: Dark premium, glassmorphism, vibrant gradients
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Colors */
  --bg-primary: #07070d;
  --bg-secondary: #0c0c16;
  --bg-tertiary: #111120;
  --bg-card: rgba(17, 17, 32, 0.6);
  --bg-card-hover: rgba(25, 25, 48, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);

  --text-primary: #f0f0f5;
  --text-secondary: #9494b0;
  --text-tertiary: #5e5e7a;
  --text-muted: #3d3d5c;

  --accent-primary: #0088ff;
  --accent-secondary: #00e5ff;
  --accent-purple: #7c4dff;
  --accent-warning: #fdcb6e;
  --accent-danger: #e17055;
  --accent-success: #00e676;

  --gradient-primary: linear-gradient(135deg, #00e5ff 0%, #0088ff 50%, #7c4dff 100%);
  --gradient-secondary: linear-gradient(135deg, #00e5ff 0%, #0088ff 100%);
  --gradient-glow: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 229, 255, 0.12), transparent 40%);

  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 229, 255, 0.35);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

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

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.15);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

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

ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(108, 92, 231, 0.1);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--accent-secondary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ─── Navigation ────────────────────────────────────────────────── */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 7, 13, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-base);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.45));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 16px rgba(0, 229, 255, 0.7));
}

.logo-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.5));
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.5rem 1.2rem !important;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  color: white !important;
  font-weight: 600 !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition-base);
}

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(108, 92, 231, 0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  background: rgba(108, 92, 231, 0.08);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* ─── Hero ──────────────────────────────────────────────────────── */
#hero {
  position: relative;
  padding: 8rem 0 4.5rem;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.12) 0%, rgba(124, 77, 255, 0.06) 45%, transparent 70%);
  pointer-events: none;
  animation: heroGlowPulse 8s ease-in-out infinite;
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.75; transform: translateX(-50%) scale(1.08); }
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 45%, black 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 45%, black 35%, transparent 75%);
}

/* 2-Column Split Hero Layout */
.hero-split {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

#hero-title {
  font-size: clamp(2.3rem, 4.4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  text-align: left;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

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

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 530px;
  margin: 0 0 var(--space-xl) 0;
  line-height: 1.75;
  text-align: left;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.6s ease-out 0.3s both;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-xl);
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* Right Column: Code Block */
.hero-right {
  position: relative;
  width: 100%;
}

.hero-code {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.code-window {
  background: #0b0f1c;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 255, 0.08);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.code-window:hover {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 45px rgba(0, 229, 255, 0.16);
  transform: translateY(-2px);
}

.code-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.75rem var(--space-lg);
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-color);
}

.code-dots {
  display: flex;
  gap: 6px;
}

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

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-title {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.code-body {
  padding: var(--space-lg);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.code-body code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

.code-keyword { color: #c792ea; font-weight: 600; }
.code-url { color: #82aaff; }
.code-comment { color: #546e7a; font-style: italic; }
.code-key { color: #f07178; }
.code-string { color: #c3e88d; }
.code-number { color: #f78c6c; }

/* ─── Sections ──────────────────────────────────────────────────── */
.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section-dark {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Problem Cards ─────────────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.problem-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-danger);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.problem-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.problem-card:hover::before { opacity: 1; }

.problem-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.problem-multiplier {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-danger);
  opacity: 0.6;
}

.problem-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.problem-card-rate::before {
  background: var(--accent-warning);
}

.problem-card-rate .problem-multiplier {
  color: var(--accent-warning);
}

/* ─── Feature Cards ─────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.feature-icon {
  font-size: 1.6rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
}

.feature-list li {
  padding: 0.4rem 0;
  padding-left: var(--space-lg);
  position: relative;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: 600;
}

.features-secondary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.feature-small {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.feature-small:hover {
  border-color: var(--border-hover);
  background: var(--bg-glass-hover);
}

.feature-small-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.feature-small h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.feature-small p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── How It Works ──────────────────────────────────────────────── */
.steps-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
}

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

.step-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.4;
  margin-bottom: var(--space-md);
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.step-visual {
  margin-top: auto;
}

.step-code {
  display: block;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-secondary);
  word-break: break-all;
}

.step-connector {
  display: flex;
  align-items: center;
  padding: 0 var(--space-md);
}

.connector-line {
  width: 40px;
  height: 2px;
  background: var(--gradient-primary);
  position: relative;
}

.connector-line::after {
  content: '→';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-primary);
  font-size: 1rem;
  font-weight: bold;
}

.status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.status-badge {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid;
}

.status-badge.executed {
  background: rgba(0, 184, 148, 0.1);
  border-color: rgba(0, 184, 148, 0.3);
  color: var(--accent-success);
}

.status-badge.deduplicated {
  background: rgba(108, 92, 231, 0.1);
  border-color: rgba(108, 92, 231, 0.3);
  color: var(--accent-primary);
}

.status-badge.queued {
  background: rgba(253, 203, 110, 0.1);
  border-color: rgba(253, 203, 110, 0.3);
  color: var(--accent-warning);
}

/* ─── Presets ────────────────────────────────────────────────────── */
.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.preset-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
}

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

.preset-logo {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.preset-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.preset-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.preset-stat {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.preset-stat-value {
  font-weight: 700;
  color: var(--accent-secondary);
  font-size: 1.1rem;
  font-family: var(--font-mono);
}

.preset-code {
  display: block;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  color: var(--accent-secondary);
}

/* ─── Pricing ───────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
}

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

.pricing-card-featured {
  border-color: var(--accent-primary);
  background: linear-gradient(180deg, rgba(108, 92, 231, 0.08) 0%, var(--bg-card) 100%);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.pricing-card-featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 1rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-tier {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.pricing-price {
  margin-bottom: var(--space-md);
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.pricing-features {
  text-align: left;
  margin-bottom: var(--space-xl);
}

.pricing-features li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-features .check {
  color: var(--accent-success);
  font-weight: 700;
  flex-shrink: 0;
}

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

/* ─── n8n Section ───────────────────────────────────────────────── */
.n8n-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.n8n-install .code-window {
  max-width: 500px;
}

.n8n-features-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.n8n-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
}

.n8n-feature-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.n8n-feature h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.n8n-feature p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── CTA Section ───────────────────────────────────────────────── */
.cta-block {
  position: relative;
  text-align: center;
  padding: var(--space-4xl) var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(108, 92, 231, 0.12), transparent 60%);
  pointer-events: none;
}

.cta-block h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
  position: relative;
}

.cta-block p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: var(--space-2xl);
  position: relative;
}

.cta-actions {
  position: relative;
}

/* ─── Footer ────────────────────────────────────────────────────── */
#main-footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .logo-icon {
  font-size: 1.2rem;
}

.footer-brand .logo-text {
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-tagline {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin-top: var(--space-sm);
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.footer-links a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.88rem;
  color: var(--text-tertiary);
}

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

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
}

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

/* ─── Animations ────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  #hero-title, .hero-subtitle {
    text-align: center;
  }

  .hero-actions, .hero-stats {
    justify-content: center;
  }

  .stat {
    align-items: center;
  }

  .hero-right {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(7, 7, 13, 0.98);
    backdrop-filter: blur(20px);
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border-color);
    gap: var(--space-md);
  }

  #hero {
    padding: 6.5rem 0 3rem;
    min-height: auto;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

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

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .steps-grid {
    flex-direction: column;
  }

  .step-connector {
    transform: rotate(90deg);
    padding: var(--space-sm);
  }

  .n8n-showcase {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .pricing-card-featured {
    transform: scale(1);
  }

  .pricing-card-featured:hover {
    transform: translateY(-4px);
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

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

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

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

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

/* ═══════════════════════════════════════════════════════════════════
   Flowyl Interactive Modals (Get Free API Key & Upgrades)
   ═══════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 7, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  visibility: hidden;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #0d0d18;
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 18px;
  padding: 2.25rem 2rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(0, 229, 255, 0.12);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00e5ff, #0088ff, #7c4dff);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: var(--accent-primary);
}

.modal-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.4rem;
}

.modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.modal-form .form-group {
  margin-bottom: 1.15rem;
  text-align: left;
}

.modal-form .form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.modal-form .form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(6, 6, 12, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 0.92rem;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.modal-form .form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2);
  background: rgba(10, 10, 20, 0.95);
}

.modal-perks {
  display: flex;
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  justify-content: space-around;
  flex-wrap: wrap;
}

.modal-perks span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.modal-perks strong {
  color: #fff;
}

/* Success Result State */
.modal-success-screen {
  text-align: left;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 9999px;
  color: #00e676;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.api-key-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #06060c;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 10px;
  padding: 0.4rem 0.5rem 0.4rem 1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.08);
}

.api-key-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #00e5ff;
  font-family: var(--font-mono, monospace);
  font-size: 0.92rem;
  font-weight: 600;
  flex: 1;
  width: 100%;
}

.btn-copy-key {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #00e5ff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-copy-key:hover {
  background: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.code-snippet-box {
  background: #06060c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.code-snippet-box pre {
  margin: 0;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  line-height: 1.5;
  color: #b0b0c8;
  overflow-x: auto;
  white-space: pre-wrap;
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
}

/* ─── Google Sign-In & Firebase Integration Styles ─────────────── */
.btn-nav-google {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-nav-google:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.nav-profile-active {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.btn-user-signout {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 0.8rem;
  margin-left: 0.2rem;
  transition: color 0.2s ease;
}

.btn-user-signout:hover {
  color: #ff7675;
}

.btn-google-modal {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  color: #1f1f1f;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-google-modal:hover {
  background: #f1f3f4;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.modal-or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
  color: var(--text-tertiary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal-or-divider::before,
.modal-or-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-or-divider span {
  padding: 0 0.75rem;
}

.modal-usage-box {
  background: rgba(6, 6, 14, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

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


