:root,
[data-theme="light"] {
  --bg: #f6f7f4;
  --surface: rgba(255,255,255,0.72);
  --surface-strong: #ffffff;
  --text: #1a1f1c;
  --muted: #6b756e;
  --border: rgba(26,31,28,0.10);
  --primary: #0f766e;
  --primary-hover: #0b5d57;
  --primary-soft: rgba(15,118,110,0.12);
  --accent: #34d399;
  --shadow: 0 24px 70px rgba(15,40,30,0.10);
  --hero-1: rgba(15,118,110,0.16);
  --hero-2: rgba(52,211,153,0.10);
}

[data-theme="dark"] {
  --bg: #0d1410;
  --surface: rgba(20,28,24,0.74);
  --surface-strong: #141c18;
  --text: #eef2ee;
  --muted: #95a59b;
  --border: rgba(255,255,255,0.09);
  --primary: #34d399;
  --primary-hover: #6ee7b7;
  --primary-soft: rgba(52,211,153,0.14);
  --accent: #4fd1c5;
  --shadow: 0 24px 70px rgba(0,0,0,0.40);
  --hero-1: rgba(52,211,153,0.15);
  --hero-2: rgba(79,209,197,0.10);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0d1410;
    --surface: rgba(20,28,24,0.74);
    --surface-strong: #141c18;
    --text: #eef2ee;
    --muted: #95a59b;
    --border: rgba(255,255,255,0.09);
    --primary: #34d399;
    --primary-hover: #6ee7b7;
    --primary-soft: rgba(52,211,153,0.14);
    --accent: #4fd1c5;
    --shadow: 0 24px 70px rgba(0,0,0,0.40);
    --hero-1: rgba(52,211,153,0.15);
    --hero-2: rgba(79,209,197,0.10);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, var(--hero-1), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 100%, var(--hero-2), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a,
button {
  font: inherit;
  color: inherit;
}

svg {
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--surface-strong);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.skip-link:focus {
  left: 12px;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--primary), var(--accent));
  color: white;
  flex-shrink: 0;
}

.brand-sub {
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover {
  color: var(--text);
  background: var(--surface);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s, border-color 0.2s;
}
.theme-toggle:hover {
  background: var(--surface);
  border-color: var(--border);
}

.main {
  flex: 1;
}

.hero {
  padding: 72px 0 48px;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.tag svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.hero h1 .grad {
  color: var(--primary);
}

.hero .lead {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 32px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--primary);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.cta:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.cta:active {
  transform: translateY(1px);
}
.cta svg {
  width: 16px;
  height: 16px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 52px;
}

.metric {
  padding: 24px 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.metric-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.metric-head svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.metric-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.features {
  padding: 40px 0 80px;
}

.section-head {
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 28px 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
}
.feature-ico svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.site-footer {
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}
.footer-brand svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 820px) {
  .cards,
  .metrics {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 48px 0 32px;
  }
  .metrics {
    margin-top: 36px;
  }
  .brand-sub {
    display: none;
  }
}

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