:root {
  --bg: #0a0a10;
  --bg-alt: #0d0d15;
  --surface: #141220;
  --surface-2: #1c1929;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f2f8;
  --text-muted: #a79fb2;
  --text-faint: #6f6779;
  --accent: #39ff8a;
  --accent-dim: #1fae5c;
  --accent-2: #c026f5;
  --accent-glow: rgba(57, 255, 138, 0.28);
  --accent-2-glow: rgba(192, 38, 245, 0.24);
  --gradient-brand: linear-gradient(135deg, var(--accent), var(--accent-2));

  --font-heading: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --container: 1120px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px var(--accent-glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--gradient-brand);
  color: #06120d;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 6px 24px -6px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 32px -6px var(--accent-glow), 0 0 32px -4px var(--accent-2-glow);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 16, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a:not(.btn) {
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 110px;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 560px;
  background:
    radial-gradient(circle at 30% 20%, var(--accent-glow), transparent 60%),
    radial-gradient(circle at 80% 10%, var(--accent-2-glow), transparent 55%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 0%, black 20%, transparent 75%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.hero-content {
  max-width: 720px;
}

.hero-content .eyebrow {
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 700;
  margin-bottom: 22px;
}

.hero h1 span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-tags {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-tags span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.hero-tags svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- Section shell ---------- */

section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 16.5px;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px -12px var(--accent-glow), 0 0 0 1px var(--accent-glow);
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--accent);
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 18px;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: var(--text-muted);
}

.service-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---------- About ---------- */

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-layout h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  margin-bottom: 20px;
}

.about-layout > div:first-child p {
  color: var(--text-muted);
  font-size: 16.5px;
  margin-bottom: 18px;
}

.about-features {
  display: grid;
  gap: 18px;
}

.about-feature {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.about-feature .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 2px;
}

.about-feature h4 {
  font-size: 15.5px;
  margin-bottom: 6px;
}

.about-feature p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Contact ---------- */

.contact-panel {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-panel h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  margin-bottom: 14px;
  max-width: 480px;
}

.contact-panel p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 440px;
}

.contact-panel .contact-left {
  flex: 1 1 380px;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  flex: 0 0 auto;
}

.contact-email {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
}

.contact-actions .btn {
  width: 100%;
}

/* ---------- Footer ---------- */

footer {
  padding: 64px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--text-faint);
  font-size: 14.5px;
}

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-faint);
}

/* ---------- Legal pages ---------- */

.legal-main {
  padding: 72px 0 100px;
}

.legal-main .wrap {
  max-width: 760px;
}

.legal-main h1 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 48px;
  display: block;
}

.legal-main h2 {
  font-size: 21px;
  margin-top: 40px;
  margin-bottom: 14px;
}

.legal-main p, .legal-main li {
  color: var(--text-muted);
  font-size: 15.5px;
  margin-bottom: 14px;
}

.legal-main ul {
  padding-left: 22px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    padding: 40px 28px;
  }

  .contact-actions {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  section {
    padding: 64px 0;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .footer-top {
    flex-direction: column;
  }
}
