/* ==========================================================================
   OSIGU Developers landing — styles
   Tokens synced with OSIGU DS v1.0 (same palette as the docs sites).
   Themes: light (default), dark, system (follows prefers-color-scheme).
   ========================================================================== */

:root {
  /* DS tokens — light */
  --osigu-primary: #528EF7;
  --osigu-secondary: #101E3E;
  --osigu-active: #E7EFFE;
  --osigu-surface-1: #FFFFFF;
  --osigu-surface-2: #FAFAFA;
  --osigu-text-primary: #101E3E;
  --osigu-text-body: #374151;
  --osigu-text-muted: #6B7280;
  --osigu-border-1: #E0E0E0;
  --osigu-blue-darker: #3B7AE5;
  --osigu-blue-dark: #2D63C2;
  --osigu-blue-light: #8FB7FA;

  /* Semantic / component tokens (themable) */
  --nav-bg: rgba(255, 255, 255, 0.92);
  --menu-bg: #FFFFFF;
  --card-bg: #FFFFFF;
  --chip-bg: var(--osigu-surface-2);
  --ghost-bg: #FFFFFF;
  --bt-border: #CFE0FD;
  --hero-base: #F6F9FF;
  --hero-glow-1: rgba(82, 142, 247, 0.22);
  --hero-glow-2: rgba(82, 142, 247, 0.10);
  --hero-grid: rgba(82, 142, 247, 0.05);
  --why-bg: var(--osigu-secondary);

  --shadow-sm: 0 2px 6px rgba(13, 27, 42, 0.06), 0 1px 2px rgba(13, 27, 42, 0.04);
  --shadow-md: 0 4px 14px rgba(13, 27, 42, 0.08), 0 1px 4px rgba(13, 27, 42, 0.04);
  --shadow-lg: 0 12px 40px rgba(13, 27, 42, 0.12);
  --shadow-blue: 0 4px 18px rgba(82, 142, 247, 0.28);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Ubuntu', var(--font-body);

  --container: 1140px;
  color-scheme: light;
}

/* ---- Dark palette (shared by [data-theme="dark"] and system-dark) -------- */
/* Keep both blocks identical.                                                */
:root[data-theme="dark"] {
  --osigu-active: #17294E;
  --osigu-surface-1: #0B1428;
  --osigu-surface-2: #111E3C;
  --osigu-text-primary: #F1F5FD;
  --osigu-text-body: #C4CDE0;
  --osigu-text-muted: #8F9BB5;
  --osigu-border-1: #24304E;

  --nav-bg: rgba(11, 20, 40, 0.92);
  --menu-bg: #111E3C;
  --card-bg: #111E3C;
  --chip-bg: rgba(255, 255, 255, 0.05);
  --ghost-bg: transparent;
  --bt-border: #2A4475;
  --hero-base: #0B1428;
  --hero-glow-1: rgba(82, 142, 247, 0.18);
  --hero-glow-2: rgba(82, 142, 247, 0.08);
  --hero-grid: rgba(82, 142, 247, 0.07);
  --why-bg: #081020;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --osigu-active: #17294E;
    --osigu-surface-1: #0B1428;
    --osigu-surface-2: #111E3C;
    --osigu-text-primary: #F1F5FD;
    --osigu-text-body: #C4CDE0;
    --osigu-text-muted: #8F9BB5;
    --osigu-border-1: #24304E;

    --nav-bg: rgba(11, 20, 40, 0.92);
    --menu-bg: #111E3C;
    --card-bg: #111E3C;
    --chip-bg: rgba(255, 255, 255, 0.05);
    --ghost-bg: transparent;
    --bt-border: #2A4475;
    --hero-base: #0B1428;
    --hero-glow-1: rgba(82, 142, 247, 0.18);
    --hero-glow-2: rgba(82, 142, 247, 0.08);
    --hero-grid: rgba(82, 142, 247, 0.07);
    --why-bg: #081020;

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--osigu-text-body);
  background: var(--osigu-surface-1);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--osigu-text-primary); line-height: 1.15; }

a { color: var(--osigu-primary); text-decoration: none; }
a:hover { color: var(--osigu-blue-dark); }
:root[data-theme="dark"] a:hover { color: var(--osigu-blue-light); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) a:hover { color: var(--osigu-blue-light); }
}

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

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

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--osigu-border-1);
}
.nav-inner {
  display: flex; align-items: center; gap: 22px;
  height: 68px; max-width: var(--container); margin: 0 auto; padding: 0 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { height: 30px; width: auto; }
.nav-brand .brand-suffix {
  font-family: var(--font-heading); font-weight: 500; font-size: 17px;
  color: var(--osigu-text-muted); border-left: 1px solid var(--osigu-border-1);
  padding-left: 10px; letter-spacing: .01em;
}
.nav-links { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--osigu-text-body); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--osigu-primary); }

/* Theme toggle */
.theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--osigu-border-1); background: transparent;
  color: var(--osigu-text-body); padding: 0;
}
.theme-btn:hover { border-color: var(--osigu-primary); color: var(--osigu-primary); }
.theme-btn svg { width: 18px; height: 18px; display: none; }
.theme-btn[data-mode="system"] .icon-system { display: block; }
.theme-btn[data-mode="light"] .icon-light { display: block; }
.theme-btn[data-mode="dark"] .icon-dark { display: block; }

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--osigu-text-body);
  padding: 6px 12px; border: 1px solid var(--osigu-border-1); border-radius: 999px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { border-color: var(--osigu-primary); color: var(--osigu-primary); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px;
  background: var(--menu-bg); border: 1px solid var(--osigu-border-1); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 6px; z-index: 60;
}
.lang-menu a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--osigu-text-body); font-size: 14px; font-weight: 500;
}
.lang-menu a:hover, .lang-menu a[aria-current="true"] { background: var(--osigu-active); color: var(--osigu-primary); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-heading); font-weight: 500; font-size: 15px;
  border-radius: 999px; padding: 11px 26px; transition: all .18s ease; cursor: pointer;
}
.btn-primary { background: var(--osigu-primary); color: #fff !important; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--osigu-blue-darker); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--osigu-border-1); color: var(--osigu-text-primary) !important; background: var(--ghost-bg); }
.btn-ghost:hover { border-color: var(--osigu-primary); color: var(--osigu-primary) !important; }
.btn-light { background: #fff; color: var(--osigu-secondary) !important; }
.btn-light:hover { background: #E7EFFE; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 108px 24px 96px;
  background:
    radial-gradient(900px 480px at 50% -10%, var(--hero-glow-1), transparent 65%),
    radial-gradient(620px 340px at 82% 12%, var(--hero-glow-2), transparent 70%),
    linear-gradient(180deg, var(--hero-base) 0%, var(--osigu-surface-1) 85%);
}
.hero::before {
  /* subtle grid, echoes osigu.com hero */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(720px 420px at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(720px 420px at 50% 0%, #000 30%, transparent 75%);
}
.hero > * { position: relative; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--osigu-primary);
  background: var(--osigu-active); border-radius: 999px; padding: 6px 16px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px); font-weight: 700; max-width: 880px; margin: 0 auto 20px;
  letter-spacing: -0.015em;
}
.hero h1 em { font-style: normal; color: var(--osigu-primary); }
.hero p.lead {
  font-size: clamp(16px, 2vw, 19px); color: var(--osigu-text-muted);
  max-width: 720px; margin: 0 auto 36px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Trust strip */
.strip { border-block: 1px solid var(--osigu-border-1); background: var(--osigu-surface-2); }
.strip-inner {
  max-width: var(--container); margin: 0 auto; padding: 26px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.strip-item { display: flex; gap: 12px; align-items: flex-start; }
.strip-item svg { flex: none; width: 22px; height: 22px; color: var(--osigu-primary); margin-top: 3px; }
.strip-item b { display: block; font-size: 14.5px; color: var(--osigu-text-primary); }
.strip-item span { font-size: 13px; color: var(--osigu-text-muted); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 92px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; margin: 14px 0 16px; letter-spacing: -0.01em; }
.section-head p { color: var(--osigu-text-muted); font-size: 17px; }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card-bg); border: 1px solid var(--osigu-border-1); border-radius: var(--radius-xl);
  padding: 34px 30px 30px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--osigu-blue-light); }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--osigu-primary), var(--osigu-blue-dark));
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  box-shadow: var(--shadow-blue);
}
.card-icon svg { width: 26px; height: 26px; color: #fff; }
.card .domain {
  font-size: 12px; font-weight: 600; color: var(--osigu-text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--chip-bg); border: 1px solid var(--osigu-border-1);
  border-radius: 999px; padding: 3px 10px; position: absolute; top: 30px; right: 26px;
}
.card .stage {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--osigu-primary);
  background: var(--osigu-active); border-radius: 999px; padding: 3px 12px; margin-bottom: 12px;
  width: fit-content;
}
.card h3 { font-size: 23px; font-weight: 700; margin-bottom: 4px; }
.card .card-tag { font-size: 14px; font-weight: 600; color: var(--osigu-primary); margin-bottom: 14px; }
.card p.desc { font-size: 15px; margin-bottom: 20px; flex-grow: 1; }
.card .inside { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.card .inside span {
  font-size: 12.5px; font-weight: 600; color: var(--osigu-text-body);
  background: var(--chip-bg); border: 1px solid var(--osigu-border-1);
  border-radius: 999px; padding: 4px 11px;
}
.card .card-cta { font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 7px; }
.card .card-cta svg { width: 16px; height: 16px; transition: transform .18s ease; }
.card:hover .card-cta svg { transform: translateX(4px); }

.better-together {
  margin-top: 34px; display: flex; gap: 14px; align-items: flex-start;
  background: var(--osigu-active); border: 1px solid var(--bt-border); border-radius: var(--radius-lg);
  padding: 22px 26px; font-size: 15px; color: var(--osigu-text-body);
}
.better-together svg { flex: none; width: 22px; height: 22px; color: var(--osigu-primary); margin-top: 2px; }
.better-together b { color: var(--osigu-text-primary); }

/* Why Osigu — dark navy band (always dark, both themes) */
.why { background: var(--why-bg); }
.why .section-head h2 { color: #fff; }
.why .section-head p { color: #B9C3D8; }
.why .eyebrow { background: rgba(82, 142, 247, 0.18); color: var(--osigu-blue-light); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-item {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg); padding: 28px 24px;
}
.why-item svg { width: 26px; height: 26px; color: var(--osigu-primary); margin-bottom: 16px; }
.why-item h3 { color: #fff; font-size: 17px; font-weight: 500; margin-bottom: 10px; }
.why-item p { color: #B9C3D8; font-size: 14px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step {
  position: relative; background: var(--osigu-surface-2); border: 1px solid var(--osigu-border-1);
  border-radius: var(--radius-lg); padding: 30px 26px 26px;
}
.step .num {
  font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: #fff;
  background: var(--osigu-primary); width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  box-shadow: var(--shadow-blue);
}
.step h3 { font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--osigu-text-muted); }
.step a { font-weight: 600; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--osigu-blue-dark) 0%, var(--osigu-primary) 100%);
  border-radius: var(--radius-xl); padding: 56px 48px; text-align: center;
  box-shadow: var(--shadow-blue);
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.cta-band p { color: #E3EDFE; margin-bottom: 28px; font-size: 16px; }

/* --------------------------------------------------------------------------
   Footer (always dark navy, both themes)
   -------------------------------------------------------------------------- */
footer {
  background: var(--why-bg); color: #B9C3D8; padding: 56px 0 32px; margin-top: 92px;
}
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
}
.footer-brand img { height: 28px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 13px; max-width: 320px; }
.footer-col b { display: block; color: #fff; font-family: var(--font-heading); font-weight: 500; font-size: 14px; margin-bottom: 12px; }
.footer-col a { display: block; color: #B9C3D8; font-size: 14px; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--container); margin: 40px auto 0; padding: 24px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 13px;
}
.footer-bottom a { color: #B9C3D8; }
.footer-bottom a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .why-grid, .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .nav-links a.nav-anchor { display: none; }
}
@media (max-width: 560px) {
  .why-grid, .strip-inner { grid-template-columns: 1fr; }
  .hero { padding: 72px 20px 64px; }
  .section { padding: 64px 0; }
  .cta-band { padding: 40px 24px; }
}
