/* ── Custom Properties ────────────────────────────────── */
:root {
  --background: hsl(250 100% 99%);
  --foreground: hsl(225 25% 15%);
  --primary: hsl(217 91% 60%);
  --primary-glow: hsl(262 83% 70%);
  --primary-foreground: hsl(0 0% 100%);
  --secondary: hsl(350 25% 96%);
  --muted: hsl(350 15% 96%);
  --muted-foreground: hsl(225 10% 45%);
  --card: hsl(0 0% 100%);
  --border: hsl(350 15% 92%);
  --radius: 0.5rem;
  --shadow-soft: 0 4px 20px -8px hsl(225 25% 15% / 0.1);
  --shadow-elegant: 0 10px 30px -10px hsl(217 91% 60% / 0.15);
  --gradient-hero: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img,
svg {
  display: block;
}

/* ── Layout ──────────────────────────────────────────── */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* ── Header ──────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 3.5rem;
  background: hsl(250 100% 99% / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
}

.logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav {
  display: none;
  gap: 2rem;
}

.nav a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--foreground);
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--foreground);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 3.5rem;
  left: 0;
  right: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  flex-direction: column;
  padding: 1rem 1.5rem;
  gap: 0.75rem;
}

.mobile-menu.nav-open {
  display: flex;
}

.mobile-menu a {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.mobile-menu a:hover {
  color: var(--foreground);
}

/* ── Typography ──────────────────────────────────────── */
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

.section-subtitle {
  color: var(--muted-foreground);
  max-width: 540px;
  margin-bottom: 2rem;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-hero);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-elegant);
}

/* ── Cards ───────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--gradient-hero);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.icon-box svg {
  width: 24px;
  height: 24px;
  color: white;
  stroke: white;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

/* ── Intro Section ───────────────────────────────────── */
.intro {
  padding: 6rem 0 4rem;
}

.intro p {
  color: var(--muted-foreground);
  max-width: 520px;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* ── Services Grid ───────────────────────────────────── */
.services-grid {
  display: grid;
  gap: 1.25rem;
}

/* ── About Section ───────────────────────────────────── */
.about-text {
  color: var(--muted-foreground);
  max-width: 640px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.stats-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--gradient-hero);
  flex-shrink: 0;
}

.stat-icon svg {
  width: 20px;
  height: 20px;
  stroke: white;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ── Contact Section ─────────────────────────────────── */
.contact-intro {
  color: var(--muted-foreground);
  max-width: 540px;
  margin-bottom: 1.5rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted-foreground);
}

.contact-list li svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  flex-shrink: 0;
}

.contact-list a {
  color: var(--foreground);
  transition: color 0.2s ease;
}

.contact-list a:hover {
  color: var(--primary);
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

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

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

.footer .logo svg {
  width: 24px;
  height: 24px;
}

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

/* ── Responsive ──────────────────────────────────────── */
@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: 3rem;
  }
}

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