:root {
  --bg: #f4f5f8;
  --bg-elevated: #ffffff;
  --ink: #0f172a;
  --ink-muted: #475569;
  --line: rgba(15, 23, 42, 0.1);
  --accent: #4f46e5;
  --accent-deep: #3730a3;
  --accent-soft: rgba(79, 70, 229, 0.12);
  --dark: #0f172a;
  --dark-elevated: #1e293b;
  --on-dark: #e2e8f0;
  --on-dark-muted: #94a3b8;
  --success: #34d399;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --header-h: 76px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-lede,
.hero-subtitle,
.about-copy p,
.contact-info p {
  color: var(--ink-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  background: rgba(244, 245, 248, 0.96);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
}

.brand-mark svg {
  width: 18px;
  height: 18px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 700;
  font-size: 0.98rem;
}

.brand-tag {
  color: var(--ink-muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.primary-nav .nav-list {
  display: flex;
  gap: 1.75rem;
}

.primary-nav a {
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

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

.nav-cta {
  display: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  margin: auto;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Hero */
.hero-section {
  padding: 4.5rem 0 5.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4.6vw, 4.1rem);
  max-width: 14ch;
}

.hero-copy h1 span {
  display: block;
  color: var(--accent);
}

.hero-subtitle {
  max-width: 52ch;
  margin: 1.25rem 0 2rem;
  font-size: 1.05rem;
}

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

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.75rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-points svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.hero-panel {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, #152036 0%, var(--dark) 100%);
  color: var(--on-dark);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--on-dark-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}

.panel-badge {
  margin-left: auto;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #c7d2fe;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.mini-stat {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.mini-label {
  color: var(--on-dark-muted);
  font-size: 0.75rem;
}

.mini-value {
  font-size: 1.7rem;
  font-weight: 700;
}

.mini-value span {
  margin-left: 0.2rem;
  color: var(--on-dark-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.sparkline {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 72px;
  margin: 1.25rem 0;
}

.sparkline span {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #818cf8, #4f46e5);
  opacity: 0.85;
}

.sparkline span:nth-child(1) { height: 28%; }
.sparkline span:nth-child(2) { height: 42%; }
.sparkline span:nth-child(3) { height: 36%; }
.sparkline span:nth-child(4) { height: 58%; }
.sparkline span:nth-child(5) { height: 47%; }
.sparkline span:nth-child(6) { height: 72%; }
.sparkline span:nth-child(7) { height: 64%; }
.sparkline span:nth-child(8) { height: 81%; }
.sparkline span:nth-child(9) { height: 69%; }
.sparkline span:nth-child(10) { height: 88%; }
.sparkline span:nth-child(11) { height: 76%; }
.sparkline span:nth-child(12) { height: 94%; }

.panel-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--on-dark-muted);
  font-size: 0.9rem;
}

.panel-list svg {
  width: 16px;
  height: 16px;
  color: #a5b4fc;
}

/* Services */
.services-section {
  padding: 5rem 0;
  background: var(--bg-elevated);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: var(--shadow);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.service-icon svg {
  width: 20px;
  height: 20px;
}

.service-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.12rem;
}

.service-card p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* About */
.about-section {
  padding: 5.5rem 0;
}

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

.about-copy h2 {
  margin-bottom: 1.1rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.about-copy p + p {
  margin-top: 1rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.metric-card {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
}

.metric-value {
  font-size: 1.85rem;
  font-weight: 700;
}

.metric-label {
  margin-top: 0.35rem;
  color: var(--on-dark-muted);
  font-size: 0.88rem;
}

/* Testimonials */
.testimonials-section {
  padding: 5rem 0;
  background: var(--bg-elevated);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quote {
  color: var(--ink);
  font-size: 1.02rem;
}

.quote-name {
  margin-top: 1.5rem;
  font-weight: 600;
}

.quote-role {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

/* Contact */
.contact-section {
  padding: 5.5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.contact-details {
  margin-top: 2rem;
  font-style: normal;
}

.contact-details p {
  display: flex;
  gap: 0.7rem;
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

.contact-details svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--accent);
}

.contact-details a:hover {
  color: var(--accent);
}

.contact-form {
  display: grid;
  gap: 0.45rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-elevated);
}

.contact-form label {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfbfd;
  color: var(--ink);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.contact-form .btn {
  margin-top: 1rem;
  width: fit-content;
}

.form-note {
  color: var(--ink-muted);
  font-size: 0.8rem;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--on-dark-muted);
}

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

.copyright {
  font-size: 0.88rem;
}

.footer-nav a:hover,
.social-list a:hover {
  color: #fff;
}

.social-list {
  display: flex;
  gap: 0.75rem;
}

.social-list a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.social-list svg {
  width: 16px;
  height: 16px;
}

.privacy-panel {
  padding: 2rem 0 3rem;
  background: #0b1220;
  color: var(--on-dark-muted);
}

.privacy-panel h2 {
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: 1.2rem;
}

.privacy-panel[hidden] {
  display: none;
}

@media (max-width: 980px) {
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: relative;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    z-index: 30;
    height: calc(100dvh - var(--header-h));
    background: var(--bg);
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }

  .primary-nav.is-open {
    transform: translateX(0);
  }

  .primary-nav .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 1.5rem;
  }

  .primary-nav a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.15rem;
    color: var(--ink);
  }

  .nav-cta {
    display: block;
    margin-top: 1.25rem;
  }

  .nav-cta a {
    display: inline-flex;
    padding: 0.75rem 1.25rem;
    border: 0;
    color: #fff;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .hero-section,
  .services-section,
  .about-section,
  .testimonials-section,
  .contact-section {
    padding: 3.5rem 0;
  }

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

  .contact-form .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
