:root {
  --bg: #0a0a0f;
  --bg-soft: #101019;
  --surface: #14141f;
  --border: #23232f;
  --text: #ececf1;
  --muted: #8a8a9a;
  --accent: #6c5ce7;
  --accent-2: #00d2c6;
  --max: 1080px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

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

/* Background grid */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.grid-bg::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.22), transparent 70%);
  filter: blur(40px);
}

main, .nav, .footer { position: relative; z-index: 1; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  color: var(--accent-2);
  font-size: 18px;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 450;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }

/* Layout */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 32px;
}
.section-head { margin-bottom: 48px; max-width: 720px; }
.tag {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  margin-bottom: 16px;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; }
.section-sub {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  max-width: 560px;
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 32px 60px;
  text-align: left;
}
.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 700;
  margin-bottom: 28px;
  background: linear-gradient(180deg, #fff 30%, #b9b9c9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lede {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(108, 92, 231, 0.5); }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card h3 { font-size: 21px; font-weight: 600; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* Approach */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
}
.approach-item .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}
.approach-item h3 { font-size: 20px; font-weight: 600; margin: 12px 0 10px; }
.approach-item p { color: var(--muted); font-size: 15.5px; }

/* Careers */
.jobs { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 30px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.job:hover { border-color: var(--accent); background: var(--bg-soft); }
.job-main h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.job-main p { color: var(--muted); font-size: 15px; max-width: 640px; }
.job-apply {
  flex-shrink: 0;
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
}
.job-apply:hover { text-decoration: underline; }
.careers-note { margin-top: 28px; color: var(--muted); font-size: 15px; }
.careers-note a { color: var(--accent-2); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.contact-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.contact-value {
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  font-style: normal;
  line-height: 1.5;
}
a.contact-value:hover { color: var(--accent-2); }

/* Footer */
.footer {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 16px);
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .job { flex-direction: column; align-items: flex-start; }
  .section { padding: 56px 24px; }
  .hero { padding: 48px 24px; }
}
