/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #1f2937; background: #f9fafb; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* ── Colours ────────────────────────────────────────────────── */
:root {
  --navy:   #0f1f3d;
  --navy2:  #152845;
  --red:    #F52F2F;
  --red-dk: #d42626;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

/* ── Layout helpers ─────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 896px; margin: 0 auto; padding: 0 1.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.flex-wrap { flex-wrap: wrap; }
.grid { display: grid; }
.min-w-0 { min-width: 0; }
.shrink-0 { flex-shrink: 0; }

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-size: 1.875rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
h2 { font-size: 1.5rem; font-weight: 700; color: var(--navy); }
h3 { font-size: 1rem; font-weight: 600; color: var(--navy); }
p  { color: var(--gray-600); }
.text-xs   { font-size: 0.75rem; }
.text-sm   { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.text-3xl  { font-size: 1.875rem; }
.text-4xl  { font-size: 2.25rem; }
.text-5xl  { font-size: 3rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
code, .mono { font-family: "SF Mono", "Fira Code", "Cascadia Code", Consolas, monospace; }

/* ── Spacing ────────────────────────────────────────────────── */
.mt-1  { margin-top: 0.25rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem; }
.mt-5  { margin-top: 1.25rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-14 { margin-top: 3.5rem; }
.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-5  { margin-bottom: 1.25rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.py-3  { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4  { padding-top: 1rem;    padding-bottom: 1rem; }
.py-5  { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-10 { padding-top: 2.5rem;  padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem;    padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem;  padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem;    padding-bottom: 4rem; }
.px-4  { padding-left: 1rem;   padding-right: 1rem; }
.px-5  { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6  { padding-left: 1.5rem;  padding-right: 1.5rem; }
.p-4   { padding: 1rem; }
.p-5   { padding: 1.25rem; }
.p-6   { padding: 1.5rem; }
.p-8   { padding: 2rem; }

/* ── Borders & Radius ───────────────────────────────────────── */
.rounded    { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.border { border: 1px solid var(--gray-200); }
.border-b { border-bottom: 1px solid var(--gray-200); }
.border-t { border-top: 1px solid var(--gray-200); }
.overflow-hidden { overflow: hidden; }

/* ── Shadows ────────────────────────────────────────────────── */
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }

/* ── Colours / bg ───────────────────────────────────────────── */
.bg-white   { background: #fff; }
.bg-gray-50 { background: var(--gray-50); }
.bg-navy    { background: var(--navy); }
.bg-red     { background: var(--red); }
.text-white  { color: #fff; }
.text-navy   { color: var(--navy); }
.text-red    { color: var(--red); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }

/* ── NAV ────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: 4rem;
  display: flex; align-items: center;
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo img { height: 1.75rem; width: auto; }
.nav-logo .divider { color: rgba(255,255,255,0.2); font-size: 1.25rem; }
.nav-logo .label { color: rgb(77, 205, 228); font-size: 0.875rem; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  color: rgba(255,255,255,0.65); font-size: 0.875rem; font-weight: 500;
  padding: 0.4rem 0.75rem; border-radius: 0.5rem; transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-links a.active { color: #fff; }
.btn-enquiry {
  background: var(--red); color: #fff; font-size: 0.875rem; font-weight: 600;
  padding: 0.5rem 1.125rem; border-radius: 0.625rem; transition: background 0.15s;
  white-space: nowrap;
}
.btn-enquiry:hover { background: var(--red-dk); color: #fff; }
.nav-mobile-toggle { display: none; color: rgba(255,255,255,0.7); padding: 0.4rem; }
.nav-mobile-menu {
  display: none; flex-direction: column; background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08); padding: 0.75rem 1.5rem 1rem;
  gap: 0.25rem;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  color: rgba(255,255,255,0.7); font-size: 0.875rem; font-weight: 500;
  padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-mobile-menu a:last-child { border-bottom: none; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative; background: var(--navy);
  border-bottom: 1px solid #1a2f57; overflow: hidden;
}
.hero-bg-dots {
  position: absolute; inset: 0; opacity: 0.09;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 28px 28px;
}
.hero-glow {
  position: absolute; bottom: -5rem; left: 2.5rem;
  width: 18rem; height: 18rem;
  background: #60a5fa; opacity: 0.07; border-radius: 50%; filter: blur(48px);
}
.hero-top-line {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
}
.hero-inner {
  position: relative; max-width: 1280px; margin: 0 auto; padding: 6rem 1.5rem;
  display: flex; align-items: center; gap: 4rem; flex-wrap: wrap;
}
.hero-copy { flex: 1; min-width: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--red); margin-bottom: 1.25rem;
}
.hero-title {
  font-size: 3rem; font-weight: 700; color: #fff;
  line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1.25rem;
}
.hero-title span { color: var(--red); }
.hero-desc { font-size: 1.125rem; color: rgba(219,234,254,0.7); line-height: 1.625; margin-bottom: 2rem; max-width: 38rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--red); color: #fff; font-weight: 600; font-size: 0.9375rem;
  padding: 0.75rem 1.5rem; border-radius: 0.75rem; transition: background 0.15s;
}
.btn-primary:hover { background: var(--red-dk); color: #fff; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1); color: #fff; font-weight: 600; font-size: 0.9375rem;
  padding: 0.75rem 1.5rem; border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.2); transition: background 0.15s;
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ── Hero API Cards ─────────────────────────────────────────── */
.hero-cards { width: 480px; flex-shrink: 0; display: flex; flex-direction: column; gap: 1rem; }
.hero-cards-row { display: flex; gap: 1rem; }
.hero-api-card {
  flex: 1; border-radius: 1rem; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04); padding: 1.5rem;
  transition: background 0.2s, transform 0.2s; display: block;
}
.hero-api-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.hero-api-card.wide { flex: none; width: 100%; padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1.25rem; }
.hero-api-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-api-dot { width: 1.25rem; height: 1.25rem; border-radius: 0.25rem; }
.hero-api-name { color: #fff; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.25rem; }
.hero-api-cat { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.hero-cards-label { text-align: center; font-size: 0.6875rem; color: rgba(255,255,255,0.2); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.25rem; }

/* ── Quick Links Strip ──────────────────────────────────────── */
.quick-links { border-bottom: 1px solid var(--gray-100); background: #fff; }
.quick-links .inner { max-width: 1280px; margin: 0 auto; padding: 1.25rem 1.5rem; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.quick-links a { display: flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; color: var(--gray-500); transition: color 0.15s; }
.quick-links a:hover { color: var(--red); }
.quick-links svg { width: 0.875rem; height: 0.875rem; }

/* ── API Cards Grid ─────────────────────────────────────────── */
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; }
.section-header h2 { font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.section-header p { font-size: 0.875rem; color: var(--gray-600); margin-top: 0.25rem; }
.section-header .view-all { font-size: 0.875rem; color: var(--red); font-weight: 500; display: flex; align-items: center; gap: 0.25rem; }
.section-header .view-all:hover { text-decoration: underline; color: var(--red); }
.api-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.api-card {
  background: #fff; border: 1px solid var(--gray-100); border-radius: 1rem;
  padding: 1.5rem; display: flex; flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s; text-decoration: none;
}
.api-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.api-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  padding: 0.2rem 0.6rem; border-radius: 9999px; margin-bottom: 0.75rem;
}
.api-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.375rem; }
.api-card .desc { font-size: 0.875rem; color: var(--gray-500); line-height: 1.5; flex: 1; }
.api-card .card-footer { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--gray-100); display: flex; align-items: center; gap: 0.5rem; }
.btn-docs {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.75rem; font-weight: 600; padding: 0.35rem 0.75rem;
  border-radius: 0.5rem; background: var(--red); color: #fff; transition: background 0.15s;
}
.btn-docs:hover { background: #1a3060; color: #fff; }
.status-badge {
  font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.5rem;
  border-radius: 9999px; text-transform: capitalize; margin-left: auto;
}
.status-stable  { background: #dcfce7; color: #15803d; }
.status-beta    { background: #fef9c3; color: #a16207; }
.status-preview { background: #f3e8ff; color: #7e22ce; }

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner { background: var(--navy); color: #fff; }
.cta-banner .inner { max-width: 1280px; margin: 0 auto; padding: 3.5rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-banner h2 { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.cta-banner p { font-size: 0.875rem; color: #d1d5db; }
.cta-actions { display: flex; gap: 0.75rem; flex-shrink: 0; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--navy); font-weight: 600; font-size: 0.875rem; padding: 0.625rem 1.25rem; border-radius: 0.75rem; transition: background 0.15s; }
.btn-white:hover { background: #f3f4f6; color: var(--navy); }
.btn-red-sm { background: var(--red); color: #fff; font-weight: 600; font-size: 0.875rem; padding: 0.625rem 1.25rem; border-radius: 0.75rem; transition: background 0.15s; }
.btn-red-sm:hover { background: var(--red-dk); color: #fff; }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer { background: var(--navy); color: #fff; margin-top: auto; }
footer .inner { max-width: 1280px; margin: 0 auto; padding: 3rem 1.5rem; }
footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
footer .logo-col img { height: 1.75rem; width: auto; margin-bottom: 0.75rem; }
footer .logo-col p { font-size: 0.875rem; color: #9ca3af; line-height: 1.625; max-width: 18rem; }
footer h4 { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #9ca3af; margin-bottom: 0.75rem; }
footer ul li + li { margin-top: 0.5rem; }
footer ul a { font-size: 0.875rem; color: #d1d5db; transition: color 0.15s; }
footer ul a:hover { color: #fff; }
footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.875rem; color: #6b7280; }

/* ── Tag colour helpers ─────────────────────────────────────── */
.tag-red    { background: #fee2e2; color: #b91c1c; }
.tag-blue   { background: #dbeafe; color: #1d4ed8; }
.tag-green  { background: #dcfce7; color: #15803d; }
.tag-purple { background: #f3e8ff; color: #7e22ce; }
.tag-orange { background: #ffedd5; color: #c2410c; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-cards { display: none; }
}
@media (max-width: 768px) {
  .nav-links, .btn-enquiry { display: none; }
  .nav-mobile-toggle { display: block; }
  .hero-title { font-size: 2rem; }
  .api-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner .inner { flex-direction: column; align-items: flex-start; }
  footer .footer-grid { grid-template-columns: 1fr 1fr; }
  footer .logo-col { grid-column: 1 / -1; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
@media (max-width: 480px) {
  .api-grid { grid-template-columns: 1fr; }
  footer .footer-grid { grid-template-columns: 1fr; }
}
