/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  --color-brand:      #4f6ef7;   /* primary blue */
  --color-brand-dark: #3a56d4;
  --color-accent:     #7c3aed;   /* violet gradient end */
  --color-bg:         #0d0f14;   /* near-black page bg */
  --color-surface:    #13161f;   /* card / nav surface */
  --color-surface-2:  #1c2030;   /* elevated cards */
  --color-border:     #232840;
  --color-text:       #e8eaf0;
  --color-text-muted: #8a8fa8;
  --color-check:      #4ade80;

  --radius-card: 1rem;
  --radius-btn:  0.5rem;

  --shadow-card: 0 2px 24px rgba(0,0,0,.45);
  --shadow-btn:  0 4px 20px rgba(79,110,247,.35);

  --font-sans: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --transition: 0.2s ease;
}

/* ─── Reset & base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

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

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul[role="list"] { list-style: none; }

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-block: 6rem; }

/* Offset anchor scroll targets so the sticky nav doesn't cover them */
section[id] { scroll-margin-top: 4.5rem; }

/* ─── Nav ────────────────────────────────────────────────────── */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,15,20,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: .9375rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--color-text); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .625rem 1.375rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: .9375rem;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition), opacity var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn-sm { padding: .45rem 1rem; font-size: .875rem; }
.btn-lg { padding: .875rem 2rem; font-size: 1.0625rem; }

.btn-primary {
  background: var(--color-brand);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: var(--color-brand-dark); opacity: .95; }

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
}
.btn-ghost:hover { color: var(--color-text); border-color: var(--color-brand); }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: 7rem 8rem;
  overflow: hidden;
  text-align: center;
}

.hero-inner { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  background: rgba(79,110,247,.15);
  border: 1px solid rgba(79,110,247,.4);
  color: var(--color-brand);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.accent {
  background: linear-gradient(135deg, var(--color-brand), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-blob {
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse 60% 55% at 50% 30%, rgba(79,110,247,.18) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 75% 70%, rgba(124,58,237,.12) 0%, transparent 65%);
  pointer-events: none;
}

/* ─── Section header ─────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-label {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: .75rem;
}

.section-header h2, .about-text h2, .contact-inner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

/* ─── Services grid ──────────────────────────────────────────── */
.services { background: var(--color-surface); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  color: var(--color-brand);
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: .6rem;
  letter-spacing: -.01em;
}

.card p {
  color: var(--color-text-muted);
  font-size: .9375rem;
  line-height: 1.6;
}

/* ─── About ──────────────────────────────────────────────────── */
.about { background: var(--color-bg); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text .section-label { margin-bottom: .5rem; }

.about-text p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  margin-top: 1.25rem;
  margin-bottom: 2rem;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-list li {
  display: flex;
  gap: .875rem;
  font-size: .9375rem;
  color: var(--color-text-muted);
  align-items: flex-start;
}

.about-check {
  color: var(--color-check);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.about-list strong { color: var(--color-text); }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.stat-num {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--color-brand), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: .875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ─── Contact ────────────────────────────────────────────────── */
.contact {
  background: var(--color-surface);
  text-align: center;
}

.contact-inner {
  max-width: 640px;
  margin-inline: auto;
}

.contact-inner .section-label { margin-bottom: .5rem; }

.contact-sub {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  margin-block: 1.25rem 2rem;
}

.contact-note {
  margin-top: 1.25rem;
  font-size: .875rem;
  color: var(--color-text-muted);
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding-block: 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo { font-size: .9375rem; }

.footer-copy {
  font-size: .875rem;
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: .875rem;
  color: var(--color-text-muted);
}
.footer-links a:hover { color: var(--color-text); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 820px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-stats { order: -1; }
}

@media (max-width: 640px) {
  .section { padding-block: 4rem; }
  .hero { padding-block: 5rem 6rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 3.75rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding-block: .6rem; }
  .nav-links .btn { width: 100%; margin-top: .5rem; justify-content: center; }

  .nav-burger { display: flex; }
  .nav { position: relative; }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: .75rem;
  }
}
