:root {
  --bg: #f6f8fc;
  --bg-elev: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #dbe4f0;
  --brand: #0d9488;
  --brand-2: #1d4ed8;
  --accent: #f97316;
  --ok: #16a34a;
  --shadow: 0 16px 50px rgba(15, 23, 42, 0.12);
  --radius: 18px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
}

[data-theme="dark"] {
  --bg: #050910;
  --bg-elev: #0c1422;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --line: #243142;
  --brand: #2dd4bf;
  --brand-2: #60a5fa;
  --accent: #fb923c;
  --ok: #22c55e;
  --shadow: 0 20px 60px rgba(2, 8, 23, 0.6);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 10% 0%, rgba(29, 78, 216, 0.09), transparent 45%),
              radial-gradient(circle at 90% 15%, rgba(13, 148, 136, 0.1), transparent 50%),
              var(--bg);
  font-family: "Avenir Next", "Sofia Pro", "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-links a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--brand) 16%, transparent);
}

.theme-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.theme-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.theme-toggle button[aria-checked="true"] {
  color: var(--text);
  background: color-mix(in srgb, var(--brand) 20%, transparent);
}

.hero {
  padding: var(--space-16) 0 var(--space-12);
}

.eyebrow {
  color: var(--brand);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

h1, h2, h3 {
  line-height: 1.14;
  margin: 0 0 var(--space-4);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); }

p.lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 68ch;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-8);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-4);
}

.card {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow);
}

.metric {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid color-mix(in srgb, var(--ok) 40%, var(--line));
  color: color-mix(in srgb, var(--ok) 85%, var(--text));
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  border: 1px solid var(--line);
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: 0;
  color: white;
}

.btn.ghost {
  color: var(--text);
  background: var(--bg-elev);
}

.section {
  padding: var(--space-12) 0;
}

.video {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.kicker {
  color: var(--muted);
  font-size: 0.95rem;
}

.quote {
  border-left: 4px solid var(--brand);
  padding-left: var(--space-4);
  color: var(--muted);
}

.list-clean {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-8) 0;
  color: var(--muted);
  margin-top: var(--space-12);
}

.footer-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-panel {
  display: grid;
  gap: var(--space-3);
}

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font: inherit;
}

textarea { min-height: 160px; resize: vertical; }

.small {
  font-size: 0.86rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; padding: 0.8rem 0; }
  .nav-links { order: 3; width: 100%; justify-content: center; }
}
