:root {
  --navy: #0c1e32;
  --navy-mid: #142a45;
  --navy-light: #1e3a5f;
  --slate: #4a5568;
  --slate-light: #718096;
  --gray-100: #f7f8fa;
  --gray-200: #e8ecf1;
  --gray-300: #d1d9e6;
  --white: #ffffff;
  --accent: #2b6cb0;
  --accent-bright: #3182ce;
  --success: #276749;
  --success-bg: #e6f4ed;
  --warn: #975a16;
  --warn-bg: #fef3e2;
  --maxw: 1120px;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(12, 30, 50, 0.08);
  --shadow-lg: 0 8px 32px rgba(12, 30, 50, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--navy);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent-bright); }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 0;
}
.brand:hover { color: var(--white); opacity: 0.9; }

.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 500;
  border: 0;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
}

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px !important;
}
.nav-cta:hover {
  background: var(--accent-bright);
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
}

/* Hero */
.hero {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-light) 100%);
  color: var(--white);
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(43, 108, 176, 0.15) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  margin-bottom: 20px;
}

.trl-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
}

.hero h1 {
  font-size: 48px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 20px;
  max-width: 620px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 540px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-bright);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 28px;
  backdrop-filter: blur(8px);
}

.hero-card h3 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin: 0 0 20px;
}

/* Metric bars */
.metric-row {
  margin-bottom: 18px;
}
.metric-row:last-child { margin-bottom: 0; }

.metric-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.85);
}

.metric-label span:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--white);
}

.metric-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

.metric-fill.ours { background: #48bb78; }
.metric-fill.eleven { background: #63b3ed; }
.metric-fill.whisper { background: #fc8181; }

.metric-legend {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Sections */
section {
  padding: 80px 0;
}

section.alt {
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  font-weight: 600;
  margin-bottom: 12px;
}

section h2 {
  font-size: 32px;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 16px;
  max-width: 720px;
  color: var(--navy);
}

.section-lede {
  font-size: 17px;
  color: var(--slate);
  max-width: 680px;
  margin: 0 0 40px;
  line-height: 1.65;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 14px;
  color: var(--slate);
  margin: 0;
  line-height: 1.6;
}

.card-icon {
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.stat-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.stat-value {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-value.accent { color: var(--accent); }
.stat-value.success { color: var(--success); }

.stat-label {
  font-size: 13px;
  color: var(--slate-light);
  line-height: 1.4;
}

/* Tables */
.table-wrap {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.data thead th {
  text-align: left;
  background: var(--gray-100);
  color: var(--slate-light);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-200);
}

table.data tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}

table.data tbody tr:last-child td { border-bottom: 0; }

table.data tbody tr.highlight {
  background: var(--success-bg);
}

table.data tbody tr.highlight td:first-child {
  font-weight: 600;
}

table.data .num {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

table.data .best {
  color: var(--success);
  font-weight: 600;
}

table.data .system-name {
  font-weight: 500;
}

table.data .system-detail {
  display: block;
  font-size: 12px;
  color: var(--slate-light);
  font-weight: 400;
  margin-top: 2px;
}

/* Win cards */
.wins-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.win-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
}

.win-card .win-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--success);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.win-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
}

.win-card p {
  font-size: 13px;
  color: var(--slate);
  margin: 0;
  line-height: 1.55;
}

/* Example blocks */
.example-block {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
}

.example-header {
  background: var(--gray-100);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gray-200);
}

.example-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.example-metrics {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--slate-light);
  font-variant-numeric: tabular-nums;
}

.example-body {
  padding: 20px;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 12px;
  line-height: 1.7;
  color: var(--slate);
}

.example-line {
  margin-bottom: 8px;
}
.example-line:last-child { margin-bottom: 0; }

.example-line .tag {
  display: inline-block;
  width: 90px;
  font-weight: 600;
  color: var(--navy);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.example-note {
  padding: 14px 20px;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  font-size: 13px;
  color: var(--slate);
  line-height: 1.55;
}

/* Notice */
.notice {
  padding: 16px 20px;
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: #f0f6fc;
  font-size: 14px;
  color: var(--slate);
  line-height: 1.6;
  margin-top: 24px;
}

.notice strong { color: var(--navy); }

/* Partners */
.partners-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.partner-tag {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}

/* Timeline */
.timeline {
  border-left: 2px solid var(--gray-200);
  margin-left: 8px;
  padding-left: 28px;
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  border: 2px solid var(--white);
}

.timeline-item.current::before {
  background: var(--accent);
}

.timeline-item.future::before {
  background: var(--white);
  border-color: var(--gray-300);
}

.timeline-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
}

.timeline-item .date {
  font-size: 12px;
  color: var(--slate-light);
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 14px;
  color: var(--slate);
  margin: 0;
  line-height: 1.55;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

form.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

form.contact .full { grid-column: 1 / -1; }

form.contact label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}

form.contact label .hint {
  font-weight: 400;
  color: var(--slate-light);
}

form.contact input,
form.contact select,
form.contact textarea {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.15s ease;
}

form.contact input:focus,
form.contact select:focus,
form.contact textarea:focus {
  outline: none;
  border-color: var(--accent);
}

form.contact textarea {
  min-height: 120px;
  resize: vertical;
}

form.contact button[type="submit"] {
  background: var(--navy);
  color: var(--white);
  border: 0;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
}

form.contact button[type="submit"]:hover {
  background: var(--navy-mid);
}

form.contact button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: default;
}

.contact-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
}

.contact-detail {
  margin-bottom: 20px;
}

.contact-detail dt {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-light);
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-detail dd {
  margin: 0;
  font-size: 15px;
}

.contact-detail dd a {
  color: var(--navy);
  border-bottom: 1px solid var(--gray-300);
}
.contact-detail dd a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Page header (inner pages) */
.page-header {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 56px 0 48px;
}

.page-header h1 {
  font-size: 36px;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 12px;
}

.page-header p {
  font-size: 17px;
  color: var(--slate);
  max-width: 640px;
  margin: 0;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0;
  font-size: 13px;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}

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

.site-footer li { margin-bottom: 8px; }

.site-footer a {
  color: rgba(255, 255, 255, 0.6);
}
.site-footer a:hover { color: var(--white); }

.footer-brand p {
  margin: 12px 0 0;
  line-height: 1.55;
  max-width: 280px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
  padding-top: 24px;
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Map visual */
.map-visual {
  width: 100%;
  height: auto;
  opacity: 0.9;
}

/* Download button */
.download-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--navy);
  color: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius);
  margin-bottom: 40px;
}

.download-bar p {
  margin: 0;
  font-size: 15px;
}

.download-bar .btn-primary {
  background: var(--white);
  color: var(--navy);
  white-space: nowrap;
}
.download-bar .btn-primary:hover {
  background: var(--gray-100);
  color: var(--navy);
}

/* Article / blog */
.article-body {
  max-width: 700px;
  margin: 0 auto;
}

.article-meta {
  font-size: 13px;
  color: var(--slate-light);
  margin-bottom: 8px;
}

.article-body h2 {
  font-size: 24px;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--navy);
  margin: 44px 0 16px;
}
.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin: 32px 0 12px;
}

.article-body p {
  font-size: 16px;
  color: var(--slate);
  line-height: 1.75;
  margin: 0 0 20px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
  color: var(--slate);
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.7;
  font-size: 16px;
}

.article-body .table-wrap {
  margin: 24px 0 28px;
}

.article-cta {
  margin-top: 48px;
  padding: 24px 28px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.article-cta p {
  margin: 0;
  font-size: 15px;
  color: var(--navy);
  font-weight: 500;
}

.article-cta .cta-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.post-list {
  display: grid;
  gap: 20px;
}

.post-card {
  display: block;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
  border-color: var(--gray-200);
}

.post-card:hover {
  border-color: var(--accent);
}

.post-card .post-eyebrow {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.post-card h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.post-card p {
  font-size: 14px;
  color: var(--slate);
  margin: 0;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 36px; }
  .cards-3 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .wins-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .menu-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav.open { display: flex; }

  .site-nav li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-nav a {
    display: block;
    padding: 14px 0;
  }

  .site-header .wrap { position: relative; }

  section { padding: 56px 0; }
  section h2 { font-size: 26px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  form.contact { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 28px; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .menu-toggle, .download-bar { display: none; }
  .hero { background: none; color: var(--navy); padding: 20px 0; }
  .hero-sub { color: var(--slate); }
}