:root {
  --bg: #07070a;
  --elev-1: rgba(255, 255, 255, 0.04);
  --elev-2: rgba(255, 255, 255, 0.07);
  --elev-3: rgba(255, 255, 255, 0.12);
  --text: #e6e6ea;
  --muted: #a1a1aa;
  --primary: #7c3aed; /* violet */
  --secondary: #06b6d4; /* cyan */
  --accent: #22d3ee;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --card-radius: 16px;
  --glass: blur(12px) saturate(120%);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
  --shadow-sm: 0 8px 24px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 800px at 20% 0%, rgba(124,58,237,.08), transparent 60%),
              radial-gradient(1000px 600px at 80% 0%, rgba(6,182,212,.08), transparent 60%),
              var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-repeat: no-repeat;
}

h1, h2, h3, h4, h5 { font-family: "Space Grotesk", Inter, sans-serif; margin: 0 0 12px; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 700; }
h4 { font-size: 18px; font-weight: 600; }
h5 { font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }

p { margin: 0 0 16px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* Background elements */
#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.gradient-orb {
  position: fixed;
  filter: blur(60px);
  opacity: .45;
  z-index: 0;
  pointer-events: none;
}
.orb-1 { width: 500px; height: 500px; top: -100px; left: -80px; background: radial-gradient(circle at 30% 30%, #7c3aed, transparent 60%); animation: float 18s ease-in-out infinite; }
.orb-2 { width: 500px; height: 500px; bottom: -120px; right: -80px; background: radial-gradient(circle at 70% 70%, #06b6d4, transparent 60%); animation: float 22s ease-in-out infinite reverse; }

@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(24px) } }

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px;
  background-position: center center;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.5), transparent 70%);
  z-index: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7,7,10,.6);
  backdrop-filter: var(--glass);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: .02em; }
.brand img { filter: drop-shadow(0 6px 16px rgba(124,58,237,.35)); }
.brand-footer { font-weight: 800; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #eaeaf0; margin: 5px 0; border-radius: 2px; transition: .3s ease; }

.nav-list { list-style: none; display: flex; gap: 22px; align-items: center; margin: 0; padding: 0; }
.nav-list a { color: var(--muted); transition: color .2s ease; }
.nav-list a:hover { color: var(--text); }
.cta-link { color: var(--text); }

.header-cta { display: none; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .nav-list { position: absolute; top: 64px; right: 4%; left: 4%; padding: 16px; background: rgba(16,16,20,.9); backdrop-filter: var(--glass); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; box-shadow: var(--shadow-lg); display: none; flex-direction: column; gap: 12px; }
  .nav-list.open { display: flex; }
  .header-cta { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border-radius: 12px; padding: 10px 16px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  color: var(--text); transition: transform .05s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: 0; color: white;
  box-shadow: 0 10px 24px rgba(124,58,237,.35), 0 6px 16px rgba(6,182,212,.25);
}
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.16); }
.btn-lg { padding: 14px 18px; font-size: 16px; }

/* Sections */
.section { position: relative; z-index: 1; padding: 72px 0; }
.section.alt { background: rgba(255,255,255,.02); border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.section-head { margin-bottom: 28px; }
.section-subtitle { color: var(--muted); }

.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--muted); }
.badge { border-radius: 999px; padding: 6px 10px; font-size: 12px; border: 1px solid rgba(255,255,255,.12); }
.badge-outline { background: rgba(255,255,255,.02); }
.badge-soft { background: rgba(124,58,237,.08); border-color: rgba(124,58,237,.28); }
.badge-glow { background: rgba(6,182,212,.12); border-color: rgba(6,182,212,.32); box-shadow: 0 0 0 2px rgba(6,182,212,.08) inset; }
.dot { width: 4px; height: 4px; background: rgba(255,255,255,.24); border-radius: 50%; display: inline-block; }

.hero { padding-top: 96px; text-align: center; }
.hero-subtitle { color: var(--muted); max-width: 760px; margin: 10px auto 22px; }
.text-gradient { background: linear-gradient(90deg, #a78bfa, #22d3ee, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 200%; animation: gradientShift 8s ease-in-out infinite; }
@keyframes gradientShift { 0%,100%{ background-position: 0% 50% } 50%{ background-position: 100% 50% } }
.hero-ctas { display: flex; gap: 12px; justify-content: center; margin: 16px 0 10px; flex-wrap: wrap; }

.trust-strip { margin-top: 28px; }
.trust-strip .muted { text-align: center; color: var(--muted); margin-bottom: 10px; }
.logo-row { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; justify-content: center; flex-wrap: wrap; }
.logo-pill { border: 1px solid rgba(255,255,255,.12); padding: 8px 12px; border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.02); }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.metric { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 16px; backdrop-filter: var(--glass); }
.metric .num { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.metric .label { color: var(--muted); font-size: 13px; }
@media (max-width: 720px) { .metrics { grid-template-columns: 1fr 1fr; } }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--card-radius);
  padding: 18px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.card .icon { font-size: 28px; margin-bottom: 6px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }
.checklist { margin: 12px 0 0; padding-left: 18px; }
.checklist li { margin: 6px 0; }
.checklist.compact li { margin: 4px 0; }

@media (max-width: 1024px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 16px; background: rgba(255,255,255,.03); }
.step-num { font-family: "Space Grotesk"; color: var(--muted); font-weight: 700; letter-spacing: .12em; font-size: 12px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* Cases */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case { overflow: hidden; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); box-shadow: var(--shadow-lg); }
.case-media { height: 160px; background: linear-gradient(135deg, rgba(124,58,237,.5), rgba(6,182,212,.5)); filter: saturate(120%); }
.case-a { background: radial-gradient(circle at 20% 20%, rgba(124,58,237,.55), transparent 40%), radial-gradient(circle at 80% 80%, rgba(6,182,212,.55), transparent 40%), linear-gradient(135deg, rgba(124,58,237,.35), rgba(6,182,212,.35)); }
.case-b { background: radial-gradient(circle at 20% 80%, rgba(6,182,212,.55), transparent 40%), radial-gradient(circle at 70% 20%, rgba(34,211,238,.55), transparent 40%), linear-gradient(135deg, rgba(15,23,42,.35), rgba(6,182,212,.35)); }
.case-c { background: radial-gradient(circle at 70% 50%, rgba(124,58,237,.55), transparent 40%), radial-gradient(circle at 30% 40%, rgba(34,211,238,.55), transparent 40%), linear-gradient(135deg, rgba(2,6,23,.35), rgba(124,58,237,.35)); }
.case-body { padding: 16px; }
.bullets { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
@media (max-width: 1024px) { .cases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cases { grid-template-columns: 1fr; } }

/* Credibility */
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cred-card { border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 18px; background: rgba(255,255,255,.03); }
.badge-row { display: flex; gap: 8px; margin-bottom: 8px; }
.cred-badge { font-weight: 800; font-size: 12px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.cred-badge.yc { background: linear-gradient(90deg, #ff6a00, #ff9a3d); color: #1b0e00; border: 0; }
.cred-badge.iitd { background: linear-gradient(90deg, #334155, #64748b); color: #e5e7eb; border: 0; }
.cred-badge.startup { background: linear-gradient(90deg, #22d3ee, #a78bfa); color: #041014; border: 0; }
@media (max-width: 900px) { .cred-grid { grid-template-columns: 1fr; } }

/* Team */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.person { text-align: center; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 16px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; font-weight: 800; color: #0a0a0a; background: linear-gradient(135deg, #a78bfa, #22d3ee); }
.avatar::after { content: attr(data-initials); }
@media (max-width: 1024px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .people { grid-template-columns: 1fr; } }

/* CTA */
.cta { background: linear-gradient(180deg, rgba(124,58,237,.08), rgba(6,182,212,.08)); border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.cta-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: center; }
@media (max-width: 900px) { .cta-inner { grid-template-columns: 1fr; } }
.contact-form { background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.10); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-lg); }
.field { display: grid; gap: 8px; margin-bottom: 12px; }
label { color: var(--muted); font-size: 13px; }
input, textarea {
  width: 100%; padding: 12px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.02); color: var(--text); outline: none;
}
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,211,238,.12); }
.form-hint { color: var(--muted); font-size: 13px; margin-top: 8px; }
.form-success { margin-top: 10px; color: var(--success); }

/* Footer */
.site-footer { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.06); background: rgba(0,0,0,.35); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 16px; padding: 32px 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 12px 0 20px; }
.muted { color: var(--muted); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* Utilities */
.neon { text-shadow: 0 0 12px rgba(124,58,237,.65); }
.hero .metrics .metric { backdrop-filter: var(--glass); }

/* Accessibility tweaks */
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 12px;
}

/* Mobile-first enhancements */
.site-header { padding-top: max(0px, env(safe-area-inset-top)); }

/* Improve touch targets and layout on small screens */
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding-top: 72px; }
  .hero-ctas { flex-direction: column; gap: 10px; }
  .btn { width: 100%; min-height: 48px; padding: 14px 18px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 16px; }
}

/* Very small devices */
@media (max-width: 380px) {
  .metrics { grid-template-columns: 1fr; }
  .nav-list { top: calc(56px + env(safe-area-inset-top)); }
}

/* Full-screen mobile menu panel with scrollable area */
@media (max-width: 920px) {
  .nav-list {
    position: fixed;
    top: calc(64px + env(safe-area-inset-top));
    right: 4%;
    left: 4%;
    max-height: calc(100vh - (64px + env(safe-area-inset-top)) - 24px);
    overflow: auto;
    padding: 16px;
  }
  .nav-list a { padding: 10px 6px; }
}
body.nav-open { overflow: hidden; }

/* Inputs: ensure comfortable height on mobile */
input, textarea { min-height: 44px; }
.contact-form button.btn { width: 100%; }

/* Subtle tap feedback on touch devices */
@media (pointer: coarse) {
  a, button { -webkit-tap-highlight-color: rgba(255,255,255,.12); }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .gradient-orb, .text-gradient { animation: none !important; }
}
