:root {
  --primary: #0f172a;
  --accent: #2563eb;
  --accent-soft: #3b82f6;
  --accent-glow: rgba(37, 99, 235, 0.12);
  --text-main: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --bg-light: #f8fafc;
  --bg-subtle: #f1f5f9;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.03);
  --shadow-lg: 0 20px 40px -8px rgba(0,0,0,0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  color: var(--text-main);
  line-height: 1.7;
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent-soft);
  color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

h1, h2, h3 {
  color: var(--primary);
  line-height: 1.15;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.015em; }
h3 { font-size: 1.35rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Navigation */
.navbar {
  height: 72px;
  display: flex;
  align-items: center;
  position: fixed;
  inset: 0 0 auto 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: height var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  height: 64px;
  box-shadow: var(--shadow-md);
}

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

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--primary);
  letter-spacing: -0.5px;
  display: block;
}

.logo .dot {
  color: var(--accent);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Hero */
.hero {
  padding: clamp(8rem, 12vw, 12rem) 0 clamp(5rem, 8vw, 8rem);
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, var(--accent-glow) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    var(--white);
}

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

.hero h1 {
  background: linear-gradient(135deg, var(--primary) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtext {
  font-size: 1.15rem;
  color: var(--text-light);
  margin: 1.75rem 0 2.75rem;
  max-width: 600px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

/* About */
.about {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background: var(--white);
}

.about-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* Services */
.services {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.underline {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  margin: 1.25rem auto 0;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.75rem;
}

.service-card {
  padding: 2.5rem 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card .icon {
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  color: var(--accent);
}

.service-card h3 {
  margin-bottom: 0.85rem;
  font-size: 1.2rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Expertise */
.expertise {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background: var(--white);
}

.expertise-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(3rem, 5vw, 5rem);
  align-items: center;
}

.expertise-text p {
  color: var(--text-light);
  margin-top: 1.25rem;
  line-height: 1.8;
}

.feature-list {
  list-style: none;
  margin-top: 2.25rem;
  display: grid;
  gap: 0.75rem;
}

.feature-list li {
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--text-main);
}

.feature-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  margin-right: 0.85rem;
  flex-shrink: 0;
  background: var(--accent-glow);
  border-radius: 50%;
  position: relative;
}

.feature-list li::after {
  content: '✓';
  position: absolute;
  margin-left: 0.2rem;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 700;
}

.expertise-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-item {
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-num {
  display: block;
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-label {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-light);
}

/* Footer */
footer {
  padding: clamp(4rem, 6vw, 6rem) 0 2rem;
  background: var(--primary);
  color: var(--white);
}

.footer-content {
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1.25rem;
  display: block;
}

.footer-brand p {
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-bottom {
  padding-top: 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

section[id] {
  scroll-margin-top: 80px;
}

/* Responsive */
@media (max-width: 1024px) {
  .expertise-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .expertise-stats {
    flex-direction: row;
  }

  .stat-item {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 1.5rem 2rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.25rem;
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a::after {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 7rem 0 4rem;
  }

  .hero-subtext {
    font-size: 1.05rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .expertise-stats {
    flex-direction: column;
  }

  .footer-content {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}