:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --ink: #0a2540;
  --ink-soft: #425466;
  --line: #e3e8ef;
  --accent: #0a4d68;
  --accent-hover: #073846;
  --teal: #0d9488;
  --amber: #f59e0b;
  --indigo: #4f46e5;
  --rose: #e11d48;
  --radius: 10px;
  --max: 1100px;
  --max-narrow: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

.container.narrow { max-width: var(--max-narrow); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.8em; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 24px;
}
.logo {
  height: 96px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .logo { height: 64px; }
}
.brand { display: inline-flex; align-items: center; }
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(60px, 10vw, 120px) 0 clamp(50px, 8vw, 90px);
  background:
    radial-gradient(ellipse at 15% 20%, rgba(13, 148, 136, 0.16), transparent 55%),
    radial-gradient(ellipse at 85% 10%, rgba(79, 70, 229, 0.14), transparent 55%),
    radial-gradient(ellipse at 60% 95%, rgba(245, 158, 11, 0.12), transparent 60%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--accent) 35%, var(--indigo) 65%, var(--amber) 100%);
}
.hero h1 { max-width: 22ch; margin-bottom: 0.5em; }
.lede {
  font-size: 1.2rem;
  max-width: 60ch;
  color: var(--ink-soft);
  margin-bottom: 2em;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(10, 77, 104, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #0f766e 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(10, 77, 104, 0.32);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }

/* Sections */
.section { padding: clamp(60px, 9vw, 100px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lede { font-size: 1.08rem; max-width: 60ch; margin-bottom: 2em; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
}
.card-teal::before { background: linear-gradient(90deg, var(--teal), #06b6d4); }
.card-amber::before { background: linear-gradient(90deg, var(--amber), #f97316); }
.card:hover { border-color: transparent; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(10, 37, 64, 0.08); }
.card h3 { margin-bottom: 0.5em; }
.card p { margin-bottom: 0; }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.card-icon svg { width: 24px; height: 24px; }
.card-teal .card-icon { background: rgba(13, 148, 136, 0.12); color: var(--teal); }
.card-amber .card-icon { background: rgba(245, 158, 11, 0.14); color: var(--amber); }

/* Eyebrow labels */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow-teal { background: rgba(13, 148, 136, 0.12); color: var(--teal); }
.eyebrow-amber { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.eyebrow-indigo { background: rgba(79, 70, 229, 0.12); color: var(--indigo); }

/* Platforms */
.platform-group { margin-top: 2.5em; }
.platform-group h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 1em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.platform-group h3::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.platform-group:nth-of-type(1) h3::before { background: var(--teal); }
.platform-group:nth-of-type(2) h3::before { background: var(--accent); }
.platform-group:nth-of-type(3) h3::before { background: var(--indigo); }
.chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}

/* Logo grid */
.logo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.logo-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 16px 18px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  filter: grayscale(0.15);
}
.logo-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(10, 37, 64, 0.08);
  border-color: rgba(10, 77, 104, 0.3);
  filter: grayscale(0);
}
.logo-tile img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}
.logo-tile span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.logo-tile--text {
  background: linear-gradient(135deg, rgba(10, 77, 104, 0.06), rgba(79, 70, 229, 0.05));
}
.logo-tile--text .tile-mark {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 14px 14px 6px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 1em;
}
.contact-grid h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 0.6em;
}
.contact-grid p { margin-bottom: 0.4em; color: var(--ink); }
.fineprint { font-size: 0.88rem; color: var(--ink-soft); }

/* Legal page */
.legal h1 { margin-bottom: 0.2em; }
.legal .effective { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 2em; }
.legal h2 {
  font-size: 1.25rem;
  margin-top: 2em;
  margin-bottom: 0.5em;
}
.legal p { color: var(--ink); }
.legal .keywords {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.back-link { margin-top: 3em; }

/* Footer */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 28px 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--accent) 35%, var(--indigo) 65%, var(--amber) 100%);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-inner p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.92rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--accent); }
