/* ═══════════════════════════════════════════════════════════════════════════
   SQLord — Premium Corporate Landing CSS
   Inspired by: Vercel, Linear, Stripe, Resend
   ═══════════════════════════════════════════════════════════════════════════ */

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

:root {
  --bg:          #000000;
  --bg-1:        #0a0a0a;
  --bg-2:        #111111;
  --bg-3:        #1a1a1a;
  --border:      rgba(255,255,255,0.08);
  --border-hi:   rgba(255,255,255,0.15);
  --text:        #ededed;
  --text-2:      #a1a1aa;
  --text-3:      #71717a;
  --accent:      #00dc82;
  --accent-dim:  rgba(0,220,130,0.12);
  --accent-glow: rgba(0,220,130,0.25);
  --red:         #ef4444;
  --mono:        'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --sans:        -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 0 0 1px rgba(255,255,255,0.05), 0 4px 32px rgba(0,0,0,0.4);
  --shadow-lg:   0 0 0 1px rgba(255,255,255,0.08), 0 8px 64px rgba(0,0,0,0.6);
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

/* ── Noise texture overlay ────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Container ────────────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ═══ NAVBAR ═══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .2s, border-color .2s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border);
}
.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-icon {
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: #000;
}
.nav-menu {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}
.nav-menu a {
  font-size: 0.875rem;
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: 7px;
  transition: color .15s, background .15s;
}
.nav-menu a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-ghost-sm {
  font-size: 0.875rem;
  color: var(--text-2);
  padding: 7px 14px;
  border-radius: 7px;
  transition: color .15s, background .15s;
}
.btn-ghost-sm:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.btn-solid-sm {
  font-size: 0.875rem;
  font-weight: 500;
  color: #000;
  background: var(--accent);
  padding: 7px 16px;
  border-radius: 7px;
  transition: opacity .15s, transform .1s;
}
.btn-solid-sm:hover { opacity: 0.9; transform: translateY(-1px); }
.burger {
  display: none;
  background: none; border: none;
  color: var(--text); font-size: 20px;
  cursor: pointer; margin-left: auto;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px 16px;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 0.9rem;
  color: var(--text-2);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mobile-cta {
  color: var(--accent);
  font-weight: 600;
}

/* ═══ HERO ══════════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

/* Radial glow background */
.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(0,220,130,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Grid lines */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,220,130,0.08);
  border: 1px solid rgba(0,220,130,0.2);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--accent); }

.hero-body {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #000;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: opacity .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: color .15s, border-color .15s, background .15s;
}
.btn-link:hover { color: var(--text); border-color: var(--border-hi); background: rgba(255,255,255,0.03); }

/* Stats bar */
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══ SECTIONS ══════════════════════════════════════════════════════════════ */
.section {
  padding: 96px 0;
  position: relative;
}
.section-alt {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 14px;
}
.section-head p {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto;
}

/* ═══ FEATURES GRID ════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}
.feat-card {
  background: var(--bg-1);
  padding: 32px 28px;
  transition: background .2s;
  position: relative;
}
.feat-card:hover { background: var(--bg-2); }
.feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.feat-card:hover::before { opacity: 1; }

.feat-icon-wrap {
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,220,130,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}
.feat-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feat-card p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 20px;
}
.feat-plan {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.feat-plan.starter {
  background: rgba(0,220,130,0.1);
  color: var(--accent);
  border: 1px solid rgba(0,220,130,0.2);
}
.feat-plan.pro {
  background: rgba(168,85,247,0.1);
  color: #a855f7;
  border: 1px solid rgba(168,85,247,0.2);
}

/* ═══ PIPELINE ══════════════════════════════════════════════════════════════ */
.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  gap: 4px;
}
.pipe-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 16px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.pipe-step:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.pipe-n {
  width: 22px; height: 22px;
  background: var(--bg-3);
  border: 1px solid var(--border-hi);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-3);
  flex-shrink: 0;
}
.pipe-step.pipe-end .pipe-n {
  background: var(--accent-dim);
  border-color: rgba(0,220,130,0.3);
  color: var(--accent);
}
.pipe-arrow {
  color: var(--text-3);
  font-size: 0.75rem;
  padding: 0 4px;
}

/* ═══ HOW IT WORKS ══════════════════════════════════════════════════════════ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.how-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.how-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
}
.how-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.how-card:hover::after { opacity: 1; }
.how-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.06);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
  font-family: var(--mono);
}
.how-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.how-card p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ═══ PRICING ═══════════════════════════════════════════════════════════════ */
.pricing-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 780px;
  margin: 0 auto 28px;
}
@media (max-width: 640px) { .pricing-row { grid-template-columns: 1fr; } }

.plan-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: border-color .2s;
}
.plan-box:hover { border-color: var(--border-hi); }

.plan-box.plan-featured {
  background: var(--bg-1);
  border-color: rgba(0,220,130,0.3);
  box-shadow: 0 0 0 1px rgba(0,220,130,0.1), 0 8px 48px rgba(0,220,130,0.08);
}

.plan-badge {
  position: absolute;
  top: -1px; right: 24px;
  background: var(--accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.plan-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.plan-price {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}
.plan-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0;
}
.plan-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.plan-list {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-2);
}
.plan-list li::before {
  content: '';
  width: 16px; height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}
.plan-list li.y { color: var(--text); }
.plan-list li.y::before {
  background-color: rgba(0,220,130,0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%2300dc82' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.plan-list li.n { color: var(--text-3); }
.plan-list li.n::before {
  background-color: rgba(255,255,255,0.05);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 3l4 4M7 3l-4 4' stroke='%2352525b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.btn-plan-outline {
  display: block;
  text-align: center;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-hi);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: background .15s, border-color .15s;
}
.btn-plan-outline:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); }

.btn-plan-solid {
  display: block;
  text-align: center;
  padding: 11px 20px;
  border-radius: var(--radius);
  background: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  color: #000;
  transition: opacity .15s, transform .1s;
}
.btn-plan-solid:hover { opacity: 0.9; transform: translateY(-1px); }

.pricing-link {
  text-align: center;
  font-size: 0.875rem;
}
.pricing-link a {
  color: var(--text-2);
  transition: color .15s;
}
.pricing-link a:hover { color: var(--accent); }

/* ═══ FAQ ════════════════════════════════════════════════════════════════════ */
.faq-wrap { max-width: 680px; }
.faq { display: flex; flex-direction: column; gap: 1px; }
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item:hover { border-color: var(--border-hi); }
.fq {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fq::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform .2s, color .2s;
}
.faq-item.open .fq::after { transform: rotate(45deg); color: var(--accent); }
.fa {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.faq-item.open .fa { display: block; }

/* ═══ CTA SECTION ═══════════════════════════════════════════════════════════ */
.cta-section {
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse at center, rgba(0,220,130,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 12px;
}
.cta-section p {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 32px;
}

/* ═══ FOOTER ════════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}
.footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.footer-logo {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-3);
  max-width: 220px;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-3);
  transition: color .15s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ═══ RESPONSIVE ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-menu, .nav-actions { display: none; }
  .burger { display: block; }
  .hero { padding: 100px 24px 60px; }
  .hero-stats { gap: 24px; }
  .section { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .footer-row { flex-direction: column; }
}
@media (max-width: 480px) {
  .how-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
}
