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

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface2: #1a1a26;
  --border: rgba(255,255,255,0.06);
  --text: #e8e8ed;
  --text-dim: #8888a0;
  --accent: #6366f1;
  --accent-glow: rgba(99,102,241,0.15);
  --gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
}

html { scroll-behavior: smooth; }

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

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

a { color: var(--accent); text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.logo span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-login {
  padding: 8px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
  background: var(--surface2); color: var(--text) !important;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.nav-login:hover { border-color: rgba(99,102,241,0.4); color: #fff !important; }
.nav-cta {
  padding: 8px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
  background: var(--gradient); color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.9; }

/* HERO */
.hero {
  min-height: auto;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  padding: 180px 24px 60px;
}
.hero-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 600px 400px at 50% 30%, var(--accent-glow), transparent),
    radial-gradient(ellipse 400px 300px at 30% 60%, rgba(139,92,246,0.08), transparent),
    radial-gradient(ellipse 400px 300px at 70% 50%, rgba(99,102,241,0.06), transparent);
  pointer-events: none;
}
.hero-content { position: relative; max-width: 800px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 50px;
  background: var(--surface2); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-dim); font-weight: 500;
  margin-bottom: 32px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero h1 .gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p {
  font-size: 18px; color: var(--text-dim);
  max-width: 560px; margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  padding: 14px 32px; border-radius: 12px;
  background: var(--gradient); color: #fff;
  font-size: 15px; font-weight: 600;
  border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(99,102,241,0.3); }
.btn-secondary {
  padding: 14px 32px; border-radius: 12px;
  background: var(--surface2); color: var(--text);
  font-size: 15px; font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.15); }

/* SECTIONS */
section { padding: 120px 0; }
.section-label {
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent); margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800; letter-spacing: -1px;
  margin-bottom: 20px;
}
.section-subtitle {
  font-size: 17px; color: var(--text-dim);
  max-width: 600px; line-height: 1.7;
}

/* OFFERINGS */
.offerings { margin-top: 64px; }
.offering-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.offering-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.offering-card:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-2px);
}
.offering-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}
.offering-card:hover::before { opacity: 1; }
.offering-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 24px;
}
.offering-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.offering-card p { color: var(--text-dim); font-size: 15px; line-height: 1.7; }

/* HOW IT WORKS */
.steps { margin-top: 64px; display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex; gap: 40px; align-items: flex-start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-size: 64px; font-weight: 800;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; min-width: 80px;
  opacity: 0.6;
}
.step-content h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.step-content p { color: var(--text-dim); font-size: 15px; line-height: 1.7; max-width: 500px; }

/* USE CASES */
.use-cases { margin-top: 64px; }
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.use-case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.3s;
}
.use-case:hover { border-color: rgba(99,102,241,0.2); }
.use-case-icon { font-size: 28px; margin-bottom: 16px; }
.use-case h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.use-case p { color: var(--text-dim); font-size: 14px; line-height: 1.6; }

/* TECH STACK */
.tech-strip {
  margin-top: 64px;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.tech-tag {
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s;
}
.tech-tag:hover { color: var(--text); border-color: rgba(99,102,241,0.3); }

/* CTA */
.cta-section {
  text-align: center;
  padding: 120px 24px;
}
.cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, var(--accent-glow), transparent 60%);
  pointer-events: none;
}
.cta-box > * { position: relative; }
.cta-box h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; }
.cta-box p { color: var(--text-dim); font-size: 17px; max-width: 500px; margin: 0 auto 36px; line-height: 1.7; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}
footer p { color: var(--text-dim); font-size: 13px; }
footer a { color: var(--text-dim); }
footer a:hover { color: var(--text); }

/* MOBILE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr !important; }
  .offering-grid { grid-template-columns: 1fr; }
  .step { flex-direction: column; gap: 16px; }
  .step-num { font-size: 48px; }
  .use-case-grid { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
  .cta-box { padding: 60px 24px; }
}

/* ANIMATED GRAPHICS */
.hero-grid {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
  pointer-events: none;
}

.orb {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.orb-1 { width: 400px; height: 400px; background: rgba(99,102,241,0.12); top: 10%; left: -5%; animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; background: rgba(139,92,246,0.1); top: 60%; right: -5%; animation-delay: -3s; }
.orb-3 { width: 250px; height: 250px; background: rgba(99,102,241,0.08); bottom: 10%; left: 30%; animation-delay: -5s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.cta-ring {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(99,102,241,0.1);
  animation: ring-pulse 4s ease-in-out infinite;
  pointer-events: none;
}
.cta-ring:nth-child(2) { width: 600px; height: 600px; animation-delay: -1s; }
.cta-ring:nth-child(3) { width: 700px; height: 700px; animation-delay: -2s; }
@keyframes ring-pulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.08; transform: translate(-50%, -50%) scale(1.05); }
}

.particles { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(99,102,241,0.4);
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-20px) scale(1); opacity: 0; }
}

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(10,10,15,0.95); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 24px; border-bottom: 1px solid var(--border); }
  .nav-cta { margin: 16px 24px; text-align: center; }
}

/* Page header spacing for non-home pages */
.page-section { padding-top: 160px; }

/* Lucide icon styling */
.offering-icon i, .use-case-icon i {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.tech-tag i {
  width: 14px;
  height: 14px;
  color: var(--accent);
  vertical-align: -2px;
  margin-right: 4px;
}
