/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0f;
  --bg2: #0f0f1a;
  --bg3: #141428;
  --surface: #1a1a2e;
  --surface2: #16213e;
  --border: rgba(108, 99, 255, 0.2);
  --border-subtle: rgba(255,255,255,0.06);
  --accent: #6c63ff;
  --accent2: #a78bfa;
  --accent-glow: rgba(108, 99, 255, 0.3);
  --text: #e8e8f0;
  --text2: #a0a0b8;
  --text3: #606080;
  --white: #ffffff;
  --green: #22c55e;
  --yellow: #eab308;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-accent: 0 0 40px rgba(108, 99, 255, 0.15);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent2); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }
img { max-width: 100%; display: block; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text2); }

/* ===== LAYOUT ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--text2); max-width: 600px; margin: 0 auto 56px; font-size: 1.05rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1140px; margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  font-size: 1.2rem; font-weight: 800; color: var(--white);
  letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: var(--text2); font-size: 0.9rem; font-weight: 500;
  padding: 6px 14px; border-radius: 8px; transition: all var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--accent); color: var(--white) !important;
  padding: 8px 18px !important; border-radius: 8px !important;
}
.nav-cta:hover { background: #5a52e0 !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text2); border-radius: 2px; transition: all var(--transition); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius); font-weight: 600;
  font-size: 0.95rem; cursor: pointer; border: none; transition: all var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #5a52e0; color: var(--white); transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-glow); }
.btn-outline { border: 1.5px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--white); background: rgba(108,99,255,0.08); }
.btn-ghost { color: var(--text2); background: transparent; padding: 10px 20px; }
.btn-ghost:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ===== BADGE / TAG ===== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600;
}
.badge-live { background: rgba(34,197,94,0.12); color: var(--green); border: 1px solid rgba(34,197,94,0.25); }
.badge-review { background: rgba(234,179,8,0.12); color: var(--yellow); border: 1px solid rgba(234,179,8,0.25); }
.badge-accent { background: rgba(108,99,255,0.15); color: var(--accent2); border: 1px solid var(--border); }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  background: rgba(108,99,255,0.12); color: var(--accent2); border: 1px solid var(--border);
  margin-bottom: 12px;
}

/* ===== CARDS ===== */
.card {
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 32px; transition: all var(--transition);
}
.card:hover { border-color: var(--border); box-shadow: var(--shadow-accent); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(108,99,255,0.15); display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; margin-bottom: 16px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(108,99,255,0.18) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 80% 60%, rgba(167,139,250,0.08) 0%, transparent 60%),
              var(--bg);
}
.hero-content { text-align: center; max-width: 860px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(108,99,255,0.1); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 16px; font-size: 0.82rem; font-weight: 600;
  color: var(--accent2); margin-bottom: 28px; letter-spacing: 0.04em;
}
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: block; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent2) 0%, #c4b5fd 50%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-lead { font-size: 1.15rem; color: var(--text2); max-width: 640px; margin: 0 auto 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  padding-top: 48px; border-top: 1px solid var(--border-subtle);
}
.hero-stat .num { font-size: 1.8rem; font-weight: 800; color: var(--white); letter-spacing: -0.02em; }
.hero-stat .label { font-size: 0.82rem; color: var(--text3); margin-top: 2px; }

/* ===== PRODUCT CARDS (homepage) ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.product-card {
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 28px; transition: all var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--border); box-shadow: var(--shadow-accent); transform: translateY(-3px); }
.product-card h3 { color: var(--white); margin-bottom: 8px; }
.product-card p { font-size: 0.9rem; flex: 1; margin-bottom: 20px; }
.product-card ul { list-style: none; margin-bottom: 24px; }
.product-card ul li {
  font-size: 0.85rem; color: var(--text2); padding: 5px 0;
  padding-left: 18px; position: relative;
}
.product-card ul li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.product-card .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--accent2);
  margin-top: auto;
}
.product-card .card-link:hover { color: var(--white); gap: 10px; }

/* ===== PIPELINE ===== */
.pipeline { max-width: 680px; margin: 0 auto; }
.pipeline-step { display: flex; align-items: flex-start; gap: 20px; }
.pipeline-line {
  display: flex; flex-direction: column; align-items: center; flex-shrink: 0;
}
.pipeline-dot {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700; color: var(--white); flex-shrink: 0;
}
.pipeline-connector { width: 2px; height: 32px; background: linear-gradient(to bottom, var(--accent), transparent); margin: 4px 0; }
.pipeline-body { padding-bottom: 32px; }
.pipeline-body h4 { color: var(--white); margin-bottom: 4px; }
.pipeline-body p { font-size: 0.9rem; }

/* ===== TRACTION TABLE ===== */
.traction-wrap { overflow-x: auto; }
.traction-table { width: 100%; border-collapse: collapse; max-width: 720px; margin: 0 auto; }
.traction-table th, .traction-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--border-subtle); }
.traction-table th { font-size: 0.8rem; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; }
.traction-table td { font-size: 0.95rem; color: var(--text); }
.traction-table tr:last-child td { border-bottom: none; }

/* ===== INFRA GRID ===== */
.infra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.infra-card {
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); padding: 24px; text-align: center;
  transition: all var(--transition);
}
.infra-card:hover { border-color: var(--border); }
.infra-card .icon { font-size: 1.8rem; margin-bottom: 10px; }
.infra-card h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 6px; }
.infra-card p { font-size: 0.82rem; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, rgba(108,99,255,0.15) 0%, rgba(167,139,250,0.08) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 72px 48px; text-align: center; margin: 0 24px;
}
.cta-section h2 { color: var(--white); margin-bottom: 12px; }
.cta-section p { max-width: 500px; margin: 0 auto 36px; font-size: 1.05rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--bg2); border-top: 1px solid var(--border-subtle);
  padding: 56px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { font-size: 1.1rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer-brand .logo span { color: var(--accent); }
.footer-brand p { font-size: 0.88rem; max-width: 260px; }
.footer-col h5 { font-size: 0.8rem; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.88rem; color: var(--text2); margin-bottom: 10px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border-subtle);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text3); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 140px 0 80px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(108,99,255,0.15) 0%, transparent 70%), var(--bg);
  text-align: center;
}
.page-hero .tag { margin-bottom: 20px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ===== FEATURE LIST ===== */
.feature-list { list-style: none; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--border-subtle);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .fi { width: 32px; height: 32px; border-radius: 8px; background: rgba(108,99,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.feature-list .ft h4 { color: var(--white); margin-bottom: 3px; }
.feature-list .ft p { font-size: 0.88rem; }

/* ===== DIVIDER ===== */
.divider { height: 1px; background: var(--border-subtle); margin: 0; }

/* ===== GLOW ACCENT ===== */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 100px 0 60px; }
  .hero-stats { gap: 28px; }
  .cta-section { padding: 48px 24px; margin: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border-subtle); padding: 16px 24px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}
