/* ==========================================================================
   ScrapePulse API - High-Converting B2B SaaS Landing Page Stylesheet
   Theme: Modern Dark (#080c14), Glassmorphism, Amber & Cyan Accents
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #080c14;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.75);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-card-border-hover: rgba(56, 189, 248, 0.3);
  
  --color-amber: #f59e0b;
  --color-amber-bright: #fbbf24;
  --color-amber-glow: rgba(245, 158, 11, 0.25);
  
  --color-cyan: #06b6d4;
  --color-cyan-bright: #38bdf8;
  --color-cyan-glow: rgba(6, 182, 212, 0.25);

  --color-accent-blue: #3b82f6;
  --color-success: #10b981;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dark: #0f172a;

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'JetBrains Mono', monospace;

  /* Transitions & Shadows */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glow-cyan: 0 0 25px rgba(6, 182, 212, 0.3);
  --glow-amber: 0 0 25px rgba(245, 158, 11, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg-dark);
  position: relative;
}

/* Ambient Gradient Mesh Background */
.bg-ambient-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: orbFloat 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.ambient-orb.orb-1 {
  top: -10%;
  left: 20%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--color-cyan) 0%, transparent 70%);
}

.ambient-orb.orb-2 {
  top: 40%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-amber) 0%, transparent 70%);
  animation-delay: -7s;
}

.ambient-orb.orb-3 {
  bottom: 10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  animation-delay: -14s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.1); }
  100% { transform: translate(-40px, -60px) scale(0.95); }
}

/* Grid Overlay */
.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 85%);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-cyan-bright) 50%, var(--color-amber-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-amber {
  background: linear-gradient(135deg, var(--color-amber-bright) 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-cyan {
  background: linear-gradient(135deg, var(--color-cyan-bright) 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism Card Style */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  border-radius: 1rem;
  box-shadow: var(--glass-shadow);
  transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--bg-card-border-hover);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 1.25rem 0;
  background: rgba(8, 12, 20, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.brand-logo .shield-icon {
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(245, 158, 11, 0.2));
  padding: 0.4rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.version-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-cyan-bright);
  border: 1px solid rgba(6, 182, 212, 0.3);
  letter-spacing: 0.05em;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-cyan-bright), var(--color-amber-bright));
  border-radius: 2px;
  transition: width var(--transition-normal);
}

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

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

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-cyan) 0%, #0284c7 50%, var(--color-amber) 100%);
  background-size: 200% auto;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35);
}

.btn-primary:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(6, 182, 212, 0.5);
}

.btn-amber {
  background: linear-gradient(135deg, var(--color-amber) 0%, #f97316 100%);
  color: #080c14;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(245, 158, 11, 0.5);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-cyan-bright);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.825rem;
  border-radius: 0.45rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  border-radius: 0.75rem;
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 4rem;
  position: relative;
  text-align: center;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(12px);
  margin-bottom: 2rem;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-cyan-bright);
  box-shadow: 0 0 10px var(--color-cyan-bright);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.hero-pill-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 950px;
  margin: 0 auto 1.5rem;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

/* Hero Stats Bar */
.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

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

.section-title {
  font-size: 2.35rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Live Code Sandbox Section */
.code-sandbox-section {
  padding: 4rem 0 5rem;
}

.code-sandbox-container {
  max-width: 1050px;
  margin: 0 auto;
  overflow: hidden;
}

.sandbox-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 1rem;
}

.endpoint-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(8, 12, 20, 0.6);
  padding: 0.3rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.endpoint-btn {
  padding: 0.4rem 0.9rem;
  border-radius: 0.35rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-code);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.endpoint-btn.active {
  background: var(--color-cyan);
  color: #080c14;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-btn {
  padding: 0.4rem 0.9rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.lang-btn.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--color-amber-bright);
  color: var(--color-amber-bright);
}

.copy-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-code-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.code-editor-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 380px;
  background: #05080e;
}

.code-pane {
  padding: 1.5rem;
  font-family: var(--font-code);
  font-size: 0.875rem;
  color: #e2e8f0;
  line-height: 1.7;
  overflow-x: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.code-pane pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Syntax Highlighting Colors */
.token-verb { color: var(--color-cyan-bright); font-weight: 600; }
.token-url { color: #a7f3d0; }
.token-string { color: #fde047; }
.token-keyword { color: #f472b6; font-weight: 600; }
.token-comment { color: #64748b; font-style: italic; }
.token-number { color: #fb923c; }
.token-function { color: #60a5fa; }
.token-key { color: #38bdf8; }

.response-pane {
  padding: 1.5rem;
  background: rgba(8, 12, 20, 0.95);
  font-family: var(--font-code);
  font-size: 0.825rem;
  display: flex;
  flex-direction: column;
}

.response-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.775rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge-200 {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 600;
}

.response-body-scroll {
  flex: 1;
  overflow-y: auto;
  max-height: 300px;
  color: #cbd5e1;
}

/* Interactive Playground Section */
.playground-section {
  padding: 4rem 0 6rem;
  position: relative;
}

.playground-card {
  padding: 2.25rem;
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.75);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.playground-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group-row {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.url-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.url-input-icon {
  position: absolute;
  left: 1.2rem;
  color: var(--color-cyan-bright);
  font-size: 1.1rem;
  pointer-events: none;
}

.url-input {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 3rem;
  border-radius: 0.75rem;
  background: rgba(8, 12, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-family: var(--font-code);
  font-size: 0.925rem;
  outline: none;
  transition: all var(--transition-fast);
}

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

.presets-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.preset-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.preset-chip {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-chip:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--color-cyan-bright);
  color: var(--text-primary);
}

/* Config Options Bar */
.config-options-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  padding: 1.25rem;
  background: rgba(8, 12, 20, 0.6);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.option-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.option-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.select-control {
  padding: 0.55rem 0.8rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.select-control:focus {
  border-color: var(--color-cyan-bright);
}

.toggle-switch-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.2rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--color-cyan);
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Playground Output Browser Chrome */
.playground-output-frame {
  margin-top: 2rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background: #05080e;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.browser-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.browser-address-bar {
  flex: 1;
  max-width: 500px;
  margin: 0 1rem;
  padding: 0.35rem 1rem;
  border-radius: 0.4rem;
  background: rgba(8, 12, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-tabs {
  display: flex;
  gap: 0.4rem;
}

.preview-tab-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 0.35rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preview-tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.preview-canvas-viewport {
  min-height: 420px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #020408;
}

.preview-rendered-image {
  max-width: 100%;
  height: auto;
  border-radius: 0.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: opacity var(--transition-normal);
}

.raw-html-view {
  width: 100%;
  height: 420px;
  padding: 1.5rem;
  font-family: var(--font-code);
  font-size: 0.825rem;
  color: #94a3b8;
  overflow-y: auto;
  white-space: pre-wrap;
  background: #05080e;
}

/* Loading Overlay */
.playground-loader {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(8, 12, 20, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.playground-loader.active {
  opacity: 1;
  pointer-events: auto;
}

.spinner-ring {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(6, 182, 212, 0.2);
  border-top-color: var(--color-cyan-bright);
  border-right-color: var(--color-amber-bright);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-status-text {
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: var(--color-cyan-bright);
}

/* Features Grid */
.features-section {
  padding: 4rem 0 6rem;
}

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

.feature-card {
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(245, 158, 11, 0.15));
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.15);
}

.feature-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

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

/* Pricing Section */
.pricing-section {
  padding: 4rem 0 7rem;
  position: relative;
}

.pricing-card-wrapper {
  max-width: 580px;
  margin: 0 auto;
  position: relative;
}

.pricing-badge-glow {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--color-cyan), var(--color-amber));
  padding: 0.35rem 1.25rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #080c14;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
  z-index: 2;
}

.pricing-card {
  padding: 3.5rem 2.5rem 2.5rem;
  border: 2px solid rgba(56, 189, 248, 0.3);
  text-align: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(8, 12, 20, 0.95) 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(6, 182, 212, 0.15);
}

.pricing-plan-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.pricing-plan-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.pricing-price-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 2.5rem;
}

.price-currency {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.price-value {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

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

.pricing-features-list {
  text-align: left;
  list-style: none;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.975rem;
  color: var(--text-primary);
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.pricing-cta-btn {
  width: 100%;
  padding: 1.1rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 0.75rem;
}

.guarantee-note {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 0 6rem;
}

.faq-grid {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.5);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  user-select: none;
}

.faq-chevron {
  font-size: 1.1rem;
  color: var(--color-cyan-bright);
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 0 1.5rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 1.5rem 1.25rem;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 480px;
  padding: 2.5rem;
  border-radius: 1.25rem;
  position: relative;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

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

/* Footer */
.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 8, 14, 0.9);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 320px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

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

.footer-column-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

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

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-cyan-bright);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  padding: 0.85rem 1.25rem;
  border-radius: 0.6rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--color-cyan-bright);
  color: var(--text-primary);
  font-size: 0.875rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive Queries */
@media (max-width: 992px) {
  .hero-title { font-size: 2.75rem; }
  .code-editor-body { grid-template-columns: 1fr; }
  .hero-stats-bar { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0; }
  .stat-item:nth-child(2) { border-right: none; }
  .nav-links { display: none; } /* Could be hamburger in JS if needed */
}

@media (max-width: 640px) {
  .hero-title { font-size: 2.1rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-stats-bar { grid-template-columns: 1fr; gap: 1rem; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 0.75rem; }
  .stat-item:last-child { border-bottom: none; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .btn-lg { width: 100%; }
  .features-grid { grid-template-columns: 1fr; }
}
