/* Codyssey Labs: brand colours from Branding/logos (teal #0FB39B, cyan #13A7B8,
   indigo #5B6EEA, violet #7C3AED, navy #1B2740, slate #2E3D55). */

:root {
  --bg: #F4F5F8;
  --surface: #FFFFFF;
  --surface-alt: #ECEEF4;
  --text: #1B2740;
  --text-muted: #4E5A70;
  --border: #DADFE8;
  --link: #6D28D9;
  --icon-bg: #E9F7F4;
  --icon: #0B8F7C;
  --chip-bg: #FFFFFF;

  /* The header, hero and footer stay on the dark brand band in both themes. */
  --band: #1B2740;
  --band-2: #2E3D55;
  --band-text: #E8EBF2;
  --band-muted: #B4BCCB;
  --teal: #1FE5C4;
  --violet: #8B5CF6;

  --radius: 14px;
  --shadow: 0 1px 2px rgb(27 39 64 / 6%), 0 8px 24px rgb(27 39 64 / 6%);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Montserrat", "Inter", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111827;
    --surface: #1A2436;
    --surface-alt: #151E2E;
    --text: #E8EBF2;
    --text-muted: #A9B2C3;
    --border: #2E3D55;
    --link: #B9A4FF;
    --icon-bg: rgb(31 229 196 / 12%);
    --icon: #1FE5C4;
    --chip-bg: #1A2436;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #111827;
  --surface: #1A2436;
  --surface-alt: #151E2E;
  --text: #E8EBF2;
  --text-muted: #A9B2C3;
  --border: #2E3D55;
  --link: #B9A4FF;
  --icon-bg: rgb(31 229 196 / 12%);
  --icon: #1FE5C4;
  --chip-bg: #1A2436;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: var(--link); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--teal); color: var(--band); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-head); text-decoration: none; text-align: center;
  border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #10202E; }
.btn-primary:hover { background: #4DEDD2; }
.btn-ghost { border-color: rgb(232 235 242 / 40%); color: var(--band-text); }
.btn-ghost:hover { background: rgb(232 235 242 / 8%); }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: .95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(27 39 64 / 92%);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgb(255 255 255 / 6%);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand img { width: 168px; height: auto; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: transparent; border: 1px solid rgb(255 255 255 / 18%); color: var(--band-text); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; gap: 4px; padding: 12px 16px 20px;
  background: var(--band); border-bottom: 1px solid rgb(255 255 255 / 8%);
}
.site-nav.is-open { display: flex; }
.site-nav a:not(.btn) {
  color: var(--band-muted); text-decoration: none; font-weight: 500;
  padding: 12px 8px; border-radius: 8px;
}
.site-nav a:not(.btn):hover { color: var(--band-text); background: rgb(255 255 255 / 6%); }
.site-nav .btn { margin-top: 8px; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; position: static; flex-direction: row; align-items: center;
    gap: 4px; padding: 0; background: none; border: 0;
  }
  .site-nav a:not(.btn) { padding: 8px 12px; }
  .site-nav .btn { margin: 0 0 0 8px; }
}

/* Hero */
/* Fills the first screen below the 68px header (svh keeps phones' browser bars out). */
.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  min-height: calc(100vh - 68px);
  min-height: calc(100svh - 68px);
  color: var(--band-text);
  background:
    radial-gradient(600px 380px at 18% 30%, rgb(31 229 196 / 16%), transparent 70%),
    radial-gradient(640px 420px at 82% 75%, rgb(139 92 246 / 22%), transparent 70%),
    linear-gradient(160deg, var(--band) 0%, var(--band-2) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgb(255 255 255 / 7%) 1px, transparent 1px);
  background-size: 22px 22px;
}
/* Thin concentric arcs, as on the brand's social covers. */
.hero::after {
  content: ""; position: absolute; right: -420px; top: 50%; width: 1000px; height: 1000px;
  transform: translateY(-50%); pointer-events: none;
  background: radial-gradient(circle closest-side,
    transparent 0 49.6%, rgb(139 92 246 / 22%) 50% 50.3%,
    transparent 50.7% 69.6%, rgb(31 229 196 / 16%) 70% 70.3%,
    transparent 70.7% 89.6%, rgb(31 229 196 / 10%) 90% 90.3%, transparent 90.7%);
}
.hero-inner { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 72px; }
.hero-inner > * { max-width: 820px; }

.eyebrow {
  font: 600 .8rem/1.4 var(--font-head); letter-spacing: .22em; text-transform: uppercase;
  color: var(--band-muted); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: -.02em; }
.hero h1::after {
  content: ""; display: block; width: 72px; height: 5px; margin-top: 22px; border-radius: 3px;
  background: linear-gradient(90deg, var(--violet), var(--teal));
}
.lead { margin-top: 22px; font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--band-muted); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.4rem); letter-spacing: -.01em; }
.section-head p:not(.kicker) { margin-top: 14px; color: var(--text-muted); font-size: 1.05rem; }
.kicker {
  font: 700 .78rem/1.4 var(--font-head); letter-spacing: .18em; text-transform: uppercase;
  color: var(--icon); margin-bottom: 10px;
}

.cards, .contact-grid, .steps, .chips, .product-points, .social { list-style: none; margin: 0; padding: 0; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card, .contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3, .contact-card h3 { font-size: 1.1rem; font-weight: 600; margin-top: 18px; }
.card p { margin-top: 8px; color: var(--text-muted); font-size: .97rem; }

.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; background: var(--icon-bg); color: var(--icon);
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.stack { margin-top: 48px; }
.stack-title { font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 500;
  background: var(--chip-bg); border: 1px solid var(--border); color: var(--text);
}

/* Process */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); counter-reset: step; }
.step { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step-num {
  font: 700 1.6rem/1 var(--font-head);
  background: linear-gradient(90deg, var(--violet), #13A7B8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 1.1rem; font-weight: 600; margin-top: 14px; }
.step p { margin-top: 8px; color: var(--text-muted); font-size: .97rem; }

/* Product */
.product {
  display: grid; gap: 32px; padding: 32px; border-radius: 20px;
  color: var(--band-text);
  background:
    radial-gradient(500px 300px at 90% 10%, rgb(31 229 196 / 14%), transparent 70%),
    linear-gradient(150deg, var(--band) 0%, var(--band-2) 100%);
}
@media (min-width: 860px) { .product { grid-template-columns: 1.4fr 1fr; padding: 44px; align-items: center; } }
.product h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 700; margin-top: 14px; }
.product-body > p:not(.badge) { margin-top: 14px; color: var(--band-muted); }
.badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; color: var(--teal);
  background: rgb(31 229 196 / 12%); border: 1px solid rgb(31 229 196 / 35%);
}
.text-link { display: inline-block; margin-top: 20px; color: var(--teal); font-weight: 600; text-underline-offset: 4px; }
.product-points { display: grid; gap: 10px; }
.product-points li {
  position: relative; padding: 12px 16px 12px 40px; border-radius: 10px;
  background: rgb(255 255 255 / 5%); border: 1px solid rgb(255 255 255 / 8%);
}
.product-points li::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 10px; height: 10px;
  transform: translateY(-50%); border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--violet));
}

/* About */
.about { display: grid; gap: 40px; }
@media (min-width: 860px) { .about { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.about h2 { font-size: clamp(1.75rem, 4vw, 2.4rem); }
.about p:not(.kicker) { margin-top: 16px; color: var(--text-muted); font-size: 1.05rem; }
.facts {
  margin: 0; padding: 8px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.facts div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.facts dd { margin: 0; font-weight: 500; }

/* Contact */
.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.contact-card a, .contact-card address { display: block; margin-top: 6px; font-style: normal; color: var(--text-muted); overflow-wrap: anywhere; }
.contact-card a { color: var(--link); font-weight: 500; }
.contact-cta { margin-top: 32px; }

/* Footer */
.site-footer { background: var(--band); color: var(--band-muted); padding: 56px 0 28px; }
.footer-inner { display: grid; gap: 32px; }
@media (min-width: 860px) { .footer-inner { grid-template-columns: 1.4fr 1fr auto; align-items: start; } }
.footer-brand img { width: 168px; height: auto; }
.footer-brand p { margin-top: 14px; max-width: 340px; }
.footer-nav { display: grid; gap: 4px; }
.footer-nav a, .footer-legal a { color: var(--band-muted); text-decoration: none; }
.footer-nav a { padding: 6px 0; }
.footer-nav a:hover, .footer-legal a:hover { color: var(--band-text); text-decoration: underline; }
.social { display: flex; gap: 10px; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; color: var(--band-text);
  background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 10%);
}
.social a:hover { color: var(--teal); background: rgb(31 229 196 / 10%); }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-legal {
  display: grid; gap: 6px; margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 10%); font-size: .88rem;
}
