/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; border-color: hsl(220 14% 18%); }

:root {
  --bg: hsl(220 20% 7%);
  --fg: hsl(210 20% 92%);
  --card: hsl(220 18% 10%);
  --primary: hsl(210 100% 56%);
  --primary-fg: hsl(220 20% 7%);
  --muted: hsl(215 12% 50%);
  --border: hsl(220 14% 18%);
  --radius: 0.75rem;
  --glow: 0 0 40px hsl(210 100% 56% / 0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* === Typography Utilities === */
.text-gradient {
  background: linear-gradient(135deg, hsl(210 100% 65%), hsl(210 100% 45%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mono-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
}

/* === Grid BG === */
.grid-bg {
  background-image:
    linear-gradient(hsl(220 14% 18% / 0.5) 1px, transparent 1px),
    linear-gradient(90deg, hsl(220 14% 18% / 0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* === Navbar === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: hsl(220 20% 7% / 0.8);
  backdrop-filter: blur(16px);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between; height: 4rem;
}
.logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.logo-img { height: 2rem; width: auto; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a, .mobile-nav a {
  font-size: 0.875rem; color: var(--muted); text-decoration: none; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .mobile-nav a:hover { color: var(--fg); }
.menu-toggle { display: none; background: none; border: none; color: var(--fg); cursor: pointer; }
.mobile-nav {
  display: none; flex-direction: column; gap: 1rem;
  padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--bg);
}
.mobile-nav.open { display: flex; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
}

/* === Hero === */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, hsl(210 100% 56% / 0.1), hsl(260 80% 50% / 0.05));
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 48rem; margin: 0 auto; text-align: center;
  padding: 6rem 0;
}
.hero-content .mono-label { color: var(--muted); margin-bottom: 2rem; }
.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-desc {
  font-size: 1.125rem; color: var(--muted); max-width: 40rem; margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 2rem; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500; text-decoration: none;
  transition: all 0.2s; cursor: pointer; border: 1px solid transparent;
}
.btn-primary {
  background: var(--primary); color: var(--primary-fg);
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-outline {
  background: transparent; color: var(--fg);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--muted); }

/* === Sections === */
.section { padding: 6rem 0; }
.section-bordered { border-top: 1px solid var(--border); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  letter-spacing: -0.02em; margin-top: 1rem;
}

/* === Services Grid === */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.service-card {
  padding: 2rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
  transition: all 0.3s;
}
.service-card:hover {
  border-color: hsl(210 100% 56% / 0.4);
  box-shadow: var(--glow);
}
.service-icon { color: var(--primary); margin-bottom: 1.5rem; transition: transform 0.3s; }
.service-card:hover .service-icon { transform: scale(1.1); }
.service-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
.service-card p { color: var(--muted); line-height: 1.7; }

@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* === About === */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-text h2 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  letter-spacing: -0.02em; margin: 1rem 0 1.5rem;
}
.about-text p { color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }
.about-text p:first-of-type:not(.mono-label) { font-size: 1.125rem; }
.about-stat-wrapper { display: flex; align-items: center; justify-content: center; }
.about-stat-card {
  padding: 2.5rem; border-radius: 1rem;
  background: var(--card); border: 1px solid var(--border);
  text-align: center; width: 100%; max-width: 16rem;
}
.stat-number { font-size: clamp(3.5rem, 5vw, 4.5rem); font-weight: 700; margin-bottom: 0.5rem; }
.stat-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.875rem; letter-spacing: 0.08em; color: var(--muted); }

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

/* === Footer === */
.footer { border-top: 1px solid var(--border); background: var(--card); }
.footer .container { padding-top: 4rem; padding-bottom: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.footer-col h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col h4 { margin-bottom: 1rem; }
.footer-col > p { color: var(--muted); font-size: 0.875rem; line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  color: var(--muted); text-decoration: none; font-size: 0.875rem; transition: color 0.2s;
}
.footer-links a:hover { color: var(--fg); }
.contact-link {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--muted); text-decoration: none; font-size: 0.875rem; transition: color 0.2s;
}
.contact-link svg { color: var(--primary); }
.contact-link:hover { color: var(--fg); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 1.5rem 0; text-align: center;
}
.footer-bottom p {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: var(--muted);
}

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