/* ============================================================
   Embedding Core — Public Site Design System
   Dark glassmorphism theme with vibrant accents
   ============================================================ */

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

/* ---------- CSS Variables ---------- */
:root {
  /* Core palette */
  --bg-900: #060b14;
  --bg-800: #0d1526;
  --bg-700: #111d35;
  --bg-600: #162240;

  /* Accent blues */
  --accent-primary: #3b82f6;
  --accent-primary-hover: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.35);

  /* Accent cyan/teal */
  --accent-secondary: #06b6d4;
  --accent-secondary-glow: rgba(6, 182, 212, 0.3);

  /* Accent green */
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.3);

  /* Accent purple */
  --accent-purple: #8b5cf6;

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-hover: rgba(59, 130, 246, 0.4);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(59,130,246,0.3) 0%, transparent 70%),
                   radial-gradient(ellipse 60% 40% at 80% 80%, rgba(6,182,212,0.15) 0%, transparent 60%);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Spacing */
  --section-py: 96px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-900);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Utility ---------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: 'JetBrains Mono', monospace; }

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-glow);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-blue { background: rgba(59,130,246,0.15); color: var(--accent-primary); border: 1px solid rgba(59,130,246,0.3); }
.badge-green { background: rgba(16,185,129,0.15); color: var(--accent-green); border: 1px solid rgba(16,185,129,0.3); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.large { padding: 14px 32px; font-size: 1rem; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-secondary:hover { background: var(--glass-bg-hover); border-color: var(--glass-border-hover); transform: translateY(-1px); }
.btn-secondary.large { padding: 14px 32px; font-size: 1rem; }

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  background: #fff;
  color: #1f2937;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.btn-google:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.4); transform: translateY(-1px); }
.btn-google svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(6, 11, 20, 0.85);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}
.brand-logo .logo {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 8px;
  position: relative;
}
.brand-logo .logo::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 3px;
  border: 2px solid rgba(255,255,255,0.7);
}
.brand-logo span { font-weight: 700; font-size: 1.05rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text-primary); background: var(--glass-bg); }
.nav-links .btn-primary { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

/* Animated grid background */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--glass-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 80%);
  pointer-events: none;
  opacity: 0.5;
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Code snippet under hero */
.hero-code {
  margin-top: 48px;
  display: inline-block;
  text-align: left;
  background: var(--bg-800);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.hero-code .kw { color: var(--accent-primary); }
.hero-code .str { color: #a5f3fc; }
.hero-code .num { color: var(--accent-green); }
.hero-code .cmt { color: var(--text-muted); }

/* ---------- Section headings ---------- */
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ---------- Features ---------- */
.features {
  padding: var(--section-py) 0;
  background: linear-gradient(to bottom, var(--bg-900), var(--bg-800));
}
.features-header { text-align: center; margin-bottom: 60px; }
.features-header .section-subtitle { margin: 0 auto; }

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

.feature-card {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-4px); }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.65; }

/* ---------- How it Works ---------- */
.how-it-works {
  padding: var(--section-py) 0;
  background: var(--bg-800);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
  position: relative;
}
.step-card {
  padding: 36px 28px;
  position: relative;
  text-align: center;
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 20px var(--accent-glow);
}
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ---------- Pricing ---------- */
.pricing {
  padding: var(--section-py) 0;
  background: linear-gradient(to bottom, var(--bg-800), var(--bg-900));
}
.pricing-header { text-align: center; margin-bottom: 60px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  padding: 40px 36px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.pricing-card.featured {
  background: linear-gradient(145deg, rgba(59,130,246,0.12), rgba(6,182,212,0.08));
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 0 40px rgba(59,130,246,0.15);
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #fff;
  padding: 4px 20px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.pricing-card .price { font-size: 3rem; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--text-secondary); }
.pricing-card .price-note { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 32px; }

.pricing-card ul { list-style: none; margin-bottom: 36px; flex: 1; }
.pricing-card ul li {
  padding: 10px 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-card ul li::before { content: '✓'; color: var(--accent-green); font-weight: 700; }
.pricing-card ul li:last-child { border-bottom: none; }
.pricing-card .btn-primary, .pricing-card .btn-secondary { width: 100%; justify-content: center; }

/* ---------- CTA Strip ---------- */
.cta-strip {
  padding: 80px 0;
  background: var(--bg-900);
}
.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 16px; }
.cta-inner p { color: var(--text-secondary); margin-bottom: 32px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-900);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner p { color: var(--text-muted); font-size: 0.875rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-primary); }

/* ---------- Modal (Login) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 11, 20, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--bg-700);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.25s;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal .logo-large {
  width: 64px; height: 64px;
  background: var(--gradient-primary);
  border-radius: 16px;
  margin: 0 auto 24px;
  position: relative;
}
.modal .logo-large::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 5px;
  border: 2.5px solid rgba(255,255,255,0.7);
}
.modal h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.modal p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 28px; }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border: none;
  background: var(--glass-bg);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--glass-bg-hover); }
.modal { position: relative; }

/* ---------- Toast notifications ---------- */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  animation: toast-in 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.toast.success { background: linear-gradient(135deg, #059669, #10b981); }
.toast.error { background: linear-gradient(135deg, #dc2626, #ef4444); }
.toast.info { background: linear-gradient(135deg, #2563eb, #3b82f6); }
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
