/* ====================================================================
   LYRA AI PLATFORM — Main Stylesheet
   lyraauth.com
   ==================================================================== */

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a26;
  --surface: #16161f;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(139,92,246,0.4);
  --text: #f0f0ff;
  --text-muted: #8888aa;
  --text-dim: #555570;
  --accent: #8b5cf6;
  --accent2: #6d28d9;
  --accent3: #a78bfa;
  --green: #10b981;
  --blue: #3b82f6;
  --orange: #f59e0b;
  --red: #ef4444;
  --pink: #ec4899;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --glow: 0 0 40px rgba(139,92,246,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ── */
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { color: var(--text-muted); line-height: 1.7; }

a { color: var(--accent3); text-decoration: none; transition: color 0.2s; }
a:hover { color: white; }

/* ── Layout ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 100px 0; }
.section-sm { padding: 60px 0; }

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 40%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-green {
  background: linear-gradient(135deg, #10b981, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  box-shadow: 0 4px 20px rgba(139,92,246,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139,92,246,0.5);
  color: white;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent3);
  color: var(--accent3);
  background: rgba(139,92,246,0.05);
}
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s ease;
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: white;
  text-decoration: none;
}
.nav-logo .star { color: var(--accent3); font-size: 22px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 8px 14px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-links a:hover { color: white; background: rgba(255,255,255,0.05); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ── 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-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(139,92,246,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(236,72,153,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(59,130,246,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent3);
  margin-bottom: 28px;
}
.hero-title { margin-bottom: 24px; max-width: 800px; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 64px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 2rem; font-weight: 800; color: white; }
.hero-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ── Product Grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--card-color, var(--accent)), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card:hover::before { opacity: 1; }
.product-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  background: rgba(255,255,255,0.05);
}
.product-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.product-card p { font-size: 14px; margin-bottom: 20px; }
.product-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.07);
  color: var(--text-muted);
  margin-right: 6px;
  margin-bottom: 6px;
}

/* ── How It Works ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step { text-align: center; }
.step-num {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: white;
  margin: 0 auto 16px;
}
.step h3 { margin-bottom: 8px; }

/* ── Flywheel section ── */
.flywheel {
  text-align: center;
  padding: 60px;
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(236,72,153,0.05));
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.flywheel-arrow {
  font-size: 2.5rem;
  color: var(--accent3);
  display: block;
  margin: 8px 0;
}
.flywheel-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 32px 0;
}
.flywheel-item {
  padding: 10px 20px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent3);
}

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all 0.3s;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(139,92,246,0.15);
  background: linear-gradient(135deg, rgba(139,92,246,0.08), var(--surface));
}
.price-tag { font-size: 2.5rem; font-weight: 800; color: white; }
.price-tag span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.price-features { list-style: none; margin: 24px 0; }
.price-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-features li::before { content: '✓'; color: var(--green); font-weight: 700; }

/* ── Code snippet ── */
.code-block {
  background: #0d0d14;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  color: #c8d6e5;
  overflow-x: auto;
  position: relative;
}
.code-block .comment { color: #546e7a; }
.code-block .string  { color: #a5d6a7; }
.code-block .tag     { color: #81d4fa; }
.code-block .attr    { color: #ffcc80; }

/* ── Footer ── */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo { font-size: 20px; font-weight: 800; color: white; margin-bottom: 14px; }
.footer-desc { font-size: 14px; color: var(--text-muted); max-width: 260px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-dim); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--text-muted); }
.footer-col a:hover { color: white; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; color: var(--text-dim); }

/* ── Section labels ── */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent3);
  margin-bottom: 14px;
}

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ── Trusted by logos (placeholder) ── */
.trusted-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0.3;
  filter: grayscale(1);
  margin-top: 64px;
}
.trusted-label { font-size: 13px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

/* ── Animations ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 0.6s ease both; }
.fade-up-2 { animation: fade-up 0.6s 0.1s ease both; }
.fade-up-3 { animation: fade-up 0.6s 0.2s ease both; }
.fade-up-4 { animation: fade-up 0.6s 0.3s ease both; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .flywheel { padding: 32px 20px; }
}
