:root {
  --bg: #0a0b10;
  --bg-2: #10121c;
  --surface: #141725;
  --surface-2: #1b1f30;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e7e9f2;
  --text-dim: #9aa0b4;
  --text-faint: #6b7086;
  --accent: #8b5cf6;
  --accent-2: #06b6d4;
  --accent-3: #ec4899;
  --success: #10b981;
  --gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  --gradient-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.15));
  --shadow-lg: 0 20px 60px -15px rgba(0, 0, 0, 0.5);
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Background effects ========== */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 500px; height: 500px;
  background: #8b5cf6;
  top: -150px; left: -200px;
}
.orb-2 {
  width: 600px; height: 600px;
  background: #06b6d4;
  top: 20%; right: -250px;
  opacity: 0.25;
}
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

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

/* ========== Navigation ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 16, 0.7);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
  transition: transform 0.3s var(--ease);
}
.logo:hover { transform: translateY(-1px); }
.logo:hover .logo-mark svg { transform: rotate(-6deg) scale(1.05); }
.logo-mark { display: inline-flex; }
.logo-mark svg { transition: transform 0.4s var(--ease); }
.logo-text { display: inline-flex; }
.logo-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.btn { color: white; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -10px rgba(139, 92, 246, 0.75);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); border-color: rgba(255,255,255,0.25); }
.btn-full { width: 100%; }

/* ========== Hero ========== */
.hero {
  padding: 80px 0 120px;
  position: relative;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 500;
}
.pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.6; } }

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 24px 0 20px;
  max-width: 900px;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
}
.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hero-stats strong {
  font-size: 1.7rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats span {
  font-size: 0.82rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ========== Sections ========== */
.section {
  padding: 100px 0;
  position: relative;
}
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(20, 23, 37, 0.4), transparent);
}
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ========== Grid ========== */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ========== Cards ========== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  background: var(--surface-2);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--gradient-soft);
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}
.card h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ========== Stack chips ========== */
.stack-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}
.chip {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.25s var(--ease);
}
.chip:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-2px);
}

/* ========== Steps ========== */
.steps .step {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 14px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
}
.step h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  font-weight: 600;
}
.step p { color: var(--text-dim); font-size: 0.94rem; }

/* ========== About ========== */
.about-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-wrap p { color: var(--text-dim); margin-top: 16px; }
.about-wrap h2 { margin-top: 12px; }
.bullets {
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.96rem;
  color: var(--text-dim);
}
.bullets li:last-child { border-bottom: none; }
.bullets li span {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ========== Contact ========== */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact-card::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: var(--gradient);
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.2;
  pointer-events: none;
}
.contact-left { position: relative; }
.contact-left h2 { margin: 12px 0 16px; }
.contact-left p { color: var(--text-dim); margin-bottom: 28px; }
.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--text-dim);
  transition: color 0.2s var(--ease);
}
a.contact-line:hover { color: var(--text); }

.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.field input, .field textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  width: 100%;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
}
.form-note {
  font-size: 0.8rem;
  color: var(--text-faint);
  text-align: center;
  margin-top: 4px;
}
.form-note a { color: var(--accent-2); }
.form-note a:hover { text-decoration: underline; }

/* ========== Footer ========== */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-tag {
  color: var(--text-dim);
  margin-top: 12px;
  font-size: 0.92rem;
  max-width: 320px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.footer-cols h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-cols a, .footer-cols span {
  display: block;
  color: var(--text-dim);
  font-size: 0.92rem;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.footer-cols a:hover { color: var(--text); }
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-wrap { grid-template-columns: 1fr; gap: 30px; }
  .contact-card { grid-template-columns: 1fr; gap: 40px; padding: 36px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    background: rgba(10, 11, 16, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 12px 10px;
    border-radius: 8px;
  }
  .nav-links a:hover { background: var(--surface); }
  .nav-links a.btn { margin-top: 6px; justify-content: center; }
  .nav-toggle { display: flex; }

  .section { padding: 70px 0; }
  .hero { padding: 50px 0 80px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .contact-card { padding: 28px; }
  .footer-base { flex-direction: column; gap: 10px; text-align: center; }
}
