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

:root {
  --bg:          #080d14;
  --bg-card:     #0e1520;
  --bg-card-alt: #111c2b;
  --border:      #182030;
  --accent:      #22d3ee;
  --accent-dim:  rgba(34, 211, 238, 0.08);
  --accent-line: rgba(34, 211, 238, 0.18);
  --text:        #dde4ed;
  --text-muted:  #8a9ab5;
  --text-dim:    #4f6070;
  --display:     'Space Grotesk', system-ui, sans-serif;
  --body:        'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---- Nav ---- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 13, 20, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
}
.nav-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.nav-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--accent); color: #080d14;
  padding: 0.45rem 1.1rem; border-radius: 6px;
  font-weight: 700; font-size: 0.8rem;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; text-decoration: none; }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 7rem 1.5rem 5.5rem;
  max-width: 860px; margin: 0 auto;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(34, 211, 238, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}
.hero-tag {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  padding: 0.3rem 0.9rem; border-radius: 999px;
  margin-bottom: 2rem;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.75rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex; gap: 0.875rem;
  justify-content: center; flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: 7px;
  font-weight: 600; font-size: 0.95rem;
  transition: opacity 0.2s, border-color 0.2s;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent); color: #080d14;
}
.btn-primary:hover { opacity: 0.85; }
.btn-secondary {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent-line); }

/* ---- Layout helpers ---- */
.section {
  padding: 5.5rem 1.5rem;
  max-width: 1040px; margin: 0 auto;
}
.section-sm { padding: 4rem 1.5rem; }
.divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 1040px; margin: 0 auto;
}
.label {
  font-family: var(--display);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.7rem;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.2; margin-bottom: 0.75rem;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1rem; max-width: 540px;
  margin-bottom: 3rem; line-height: 1.7;
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}
@media (max-width: 680px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.about-text p {
  color: var(--text-muted);
  font-size: 1rem; margin-bottom: 1rem;
  line-height: 1.75;
}
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 1.25rem;
}
.stat-number {
  font-family: var(--display);
  font-size: 2rem; font-weight: 700;
  color: var(--accent); line-height: 1;
}
.stat-label {
  font-size: 0.78rem; color: var(--text-dim);
  margin-top: 0.35rem; line-height: 1.4;
}

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}
.service-card {
  position: relative; overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem 1.75rem 1.75rem;
  transition: border-color 0.25s, transform 0.25s;
}
.service-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}
.service-bg-num {
  position: absolute;
  top: -0.75rem; right: 1.25rem;
  font-family: var(--display);
  font-size: 6rem; font-weight: 700;
  color: rgba(34, 211, 238, 0.05);
  line-height: 1; user-select: none;
  pointer-events: none;
}
.service-num {
  font-family: var(--display);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 0.6rem;
}
.service-card h3 {
  font-family: var(--display);
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 0.6rem; letter-spacing: -0.01em;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem; line-height: 1.7;
}

/* ---- Social Proof ---- */
.proof-wrap {
  padding: 4rem 1.5rem;
  max-width: 1040px; margin: 0 auto;
}
.proof-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 2rem 2.25rem;
  display: flex; gap: 2.5rem; align-items: center; flex-wrap: wrap;
}
.proof-quote {
  flex: 1; min-width: 240px;
}
.proof-quote blockquote {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem; line-height: 1.75;
  margin-bottom: 0.75rem;
}
.proof-attribution {
  font-size: 0.8rem; color: var(--text-dim);
  font-family: var(--display); font-weight: 500;
}
.proof-stat {
  text-align: center; flex-shrink: 0;
}
.proof-stat-number {
  font-family: var(--display);
  font-size: 2.5rem; font-weight: 700;
  color: var(--accent); line-height: 1;
}
.proof-stat-label {
  font-size: 0.8rem; color: var(--text-dim);
  margin-top: 0.3rem;
}

/* ---- Skills ---- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.1rem;
  margin-bottom: 3rem;
}
.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 1.4rem;
}
.skill-group-title {
  font-family: var(--display);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.875rem;
}
.skill-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.skill-tag {
  background: rgba(34, 211, 238, 0.05);
  border: 1px solid rgba(34, 211, 238, 0.12);
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.78rem; line-height: 1.5;
}
.certs-block { margin-top: 0; }
.certs-block .section-title { font-size: 1.3rem; margin-bottom: 1.25rem; }
.certs-list {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.cert-tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem; color: var(--text-muted);
  line-height: 1.4;
}
.cert-tag strong {
  display: block;
  color: var(--text);
  font-size: 0.825rem;
  font-family: var(--display);
  font-weight: 600;
}

/* ---- CTA ---- */
.cta-wrap {
  padding: 4rem 1.5rem 6rem;
  display: flex; justify-content: center;
}
.cta-inner {
  max-width: 600px; width: 100%;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 3rem 2rem;
}
.cta-inner h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 0.875rem;
}
.cta-inner p {
  color: var(--text-muted);
  margin-bottom: 2rem; font-size: 0.975rem; line-height: 1.7;
}
.cta-actions {
  display: flex; gap: 0.875rem;
  justify-content: center; flex-wrap: wrap;
}
.cta-note {
  font-size: 0.78rem; color: var(--text-dim);
  margin-top: 1.1rem;
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 1.5rem;
  text-align: center;
  color: var(--text-dim); font-size: 0.8rem;
}
.footer-links {
  display: flex; gap: 1.5rem;
  justify-content: center; margin-top: 0.5rem;
  flex-wrap: wrap;
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent); text-decoration: none; }

/* ---- Mobile ---- */
@media (max-width: 480px) {
  .hero { padding: 5rem 1.25rem 4rem; }
  .section { padding: 4rem 1.25rem; }
  .proof-inner { padding: 1.5rem; }
  .cta-inner { padding: 2rem 1.25rem; }
  nav { padding: 0.875rem 1.25rem; }
  .nav-link { display: none; }
}
