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

/* ── DARK THEME (default) ── */
:root,
[data-theme="dark"] {
  --bg: #080c14;
  --bg2: #0d1220;
  --surface: #111827;
  --border: rgba(255,255,255,0.07);
  --text: #e2e8f0;
  --muted: #8892a4;
  --accent: #6366f1;
  --accent2: #06b6d4;
  --nav-bg: rgba(8,12,20,0.85);
  --nav-bg-scrolled: rgba(8,12,20,0.97);
  --card-hover-border: rgba(99,102,241,0.4);
  --radius: 12px;
  --transition: 0.25s ease;
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg: #f8fafc;
  --bg2: #f1f5f9;
  --surface: #ffffff;
  --border: rgba(0,0,0,0.08);
  --text: #0f172a;
  --muted: #64748b;
  --accent: #4f46e5;
  --accent2: #0891b2;
  --nav-bg: rgba(248,250,252,0.85);
  --nav-bg-scrolled: rgba(248,250,252,0.97);
  --card-hover-border: rgba(79,70,229,0.35);
}

[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(6,182,212,0.05) 0%, transparent 50%);
}
[data-theme="light"] .about-blob {
  background: radial-gradient(ellipse, rgba(99,102,241,0.1) 0%, transparent 70%);
}
[data-theme="light"] .hero-scroll-hint span {
  background: linear-gradient(to bottom, transparent, var(--accent));
}
[data-theme="light"] .btn-ghost {
  border-color: rgba(0,0,0,0.15);
}
[data-theme="light"] .btn-ghost:hover {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.25);
}
[data-theme="light"] .nav-toggle span { background: var(--text); }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

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

/* ── TYPOGRAPHY ── */
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
p  { color: var(--muted); font-size: 1.05rem; }

.section-header p { font-size: 1.1rem; }
.hero-sub { font-size: 1.2rem !important; }
.about-text p { font-size: 1.05rem !important; }
.card p { font-size: 1rem !important; }
.careers-message p { font-size: 1.05rem !important; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 12px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -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: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 9px 22px;
  font-size: 1.2rem;
  font-weight: 500;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── NAV ── */
.nav-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.nav {
  display: flex;
  align-items: center;
  height: 92px;
  padding-top: 6px;
}
.logo { display: flex; align-items: center; gap: 0px; flex-shrink: 0; text-decoration: none; }
.logo-img {
  height: 76px;
  width: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}
.logo-name {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  flex: 1;
}
.nav-links .nav-spacer { width: 32px; }
.nav-links .nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

/* ── THEME TOGGLE ── */
.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  flex-shrink: 0;
  padding: 0;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
  transition: color var(--transition);
}
.theme-toggle:hover svg { color: var(--accent); }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
}
[data-theme="light"] .hero-canvas { opacity: 1; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(6,182,212,0.08) 0%, transparent 50%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 80px;
  max-width: 700px;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 24px 0 36px;
  max-width: 560px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ── SECTIONS ── */
.section { padding: 100px 0; }
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}
.section-header h2 { margin-bottom: 16px; }

/* ── SERVICES ── */
.services { background: var(--bg2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}
.card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-4px);
}
.card-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(6,182,212,0.1));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; color: var(--accent2); }

/* ── ABOUT ── */
.about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}
.about-blob {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.18) 0%, transparent 70%);
  border-radius: 50%;
}
.stats-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 300px;
  transition: background var(--transition), border-color var(--transition);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.85rem; color: var(--muted); }
.about-text h2 { margin-bottom: 20px; }
.about-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}
.about-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  flex-shrink: 0;
}

/* ── CAREERS ── */
.careers { background: var(--bg2); }
.careers-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

/* ── CONTACT ── */
.contact { background: var(--bg); }
.contact-form {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}
input, textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  resize: vertical;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, textarea:focus { border-color: var(--accent); }
.form-note { font-size: 0.85rem; min-height: 20px; }
.form-note.success { color: #34d399; }
.form-note.error { color: #f87171; }

/* ── FOOTER ── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-logo-img {
  height: 80px;
  width: auto;
  display: block;
}
.footer-brand p { font-size: 0.85rem; margin-top: 10px; line-height: 1.6; }
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }
.footer-bottom { padding-top: 24px; }
.footer-bottom p { font-size: 0.8rem; color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { min-height: auto; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 92px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-cta { flex-direction: row; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .hero-cta { flex-direction: column; }
  .btn { justify-content: center; }
}
