/* CoreBleKit — OneStack Labs
   Brand navy #022149 · accent #1B6FE8 · IBM Plex type */

:root {
  --bg: #eef3f9;
  --panel: #ffffff;
  --ink: #0b1b33;
  --muted: #5b6b82;
  --accent: #1b6fe8;
  --navy: #022149;
  --line: rgba(2, 33, 73, 0.12);
  --shadow: 0 18px 50px rgba(2, 33, 73, 0.08);
  --radius: 18px;
  --max: 820px;
  --font: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(27, 111, 232, 0.18), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(2, 33, 73, 0.12), transparent 50%),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(238, 243, 249, 0.86);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(2, 33, 73, 0.16);
  background: #021428;
}
.brand-logo.app { border-radius: 10px; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text small {
  display: block;
  font-weight: 600;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nav a {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
}
.nav a:hover,
.nav a.active {
  background: rgba(27, 111, 232, 0.12);
  color: var(--accent);
  text-decoration: none;
}

/* —— Legacy legal home bits (kept for privacy/terms pages) —— */
.hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 20px 18px;
}
.hero-with-icons {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}
.hero-icon {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
  background: #021428;
}
.hero-icon.app { border-radius: 22px; }
.hero-org {
  margin: 0 0 4px !important;
  font-size: 0.95rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted) !important;
}
.hero-sub {
  margin: 0 0 14px !important;
  font-size: 1.05rem !important;
  font-weight: 600;
  color: var(--navy) !important;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  color: var(--navy);
}
.hero-with-icons h1 { margin-bottom: 6px; }
.hero p {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-with-icons p { max-width: 52ch; }

.cards {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 20px 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
}
.card h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--navy);
}
.card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}
.card .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 16px;
  border-radius: 10px;
  text-decoration: none;
}
.card .cta:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 64px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 40px);
}
.meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 24px;
}
.panel h1 {
  margin: 0 0 8px;
  color: var(--navy);
  letter-spacing: -0.03em;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}
.panel h2 {
  margin: 28px 0 10px;
  color: var(--navy);
  font-size: 1.2rem;
}
.panel p, .panel li { color: #243549; }
.panel ul { padding-left: 1.2rem; }
.panel li { margin: 6px 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 20px 36px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer a { font-weight: 600; }
.footer-brands {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-brands img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  background: #021428;
  box-shadow: 0 4px 12px rgba(2, 33, 73, 0.12);
}
.footer-brands img:last-child { border-radius: 9px; }
.footer-links { margin: 8px 0 0; }

/* —— Product homepage (light, brand-first) —— */
body.home {
  background:
    radial-gradient(900px 480px at 70% -10%, rgba(27, 111, 232, 0.16), transparent 55%),
    radial-gradient(700px 420px at 0% 20%, rgba(2, 33, 73, 0.08), transparent 50%),
    #f3f6fb;
  color: var(--ink);
}

.home-header {
  background: rgba(243, 246, 251, 0.9);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 20px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(27, 111, 232, 0.28);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary {
  background: #fff;
  color: var(--navy);
  border-color: rgba(2, 33, 73, 0.14);
  box-shadow: 0 8px 20px rgba(2, 33, 73, 0.06);
}
.btn-secondary:hover {
  border-color: rgba(27, 111, 232, 0.35);
  background: #f8fbff;
}

.splash {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 48px 20px 64px;
  overflow: hidden;
}

.splash-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0.55;
}

.radar {
  position: relative;
  width: min(78vw, 560px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px solid rgba(27, 111, 232, 0.22);
}
.r1 { width: 38%; height: 38%; }
.r2 { width: 62%; height: 62%; }
.r3 { width: 88%; height: 88%; }

.pulse {
  position: absolute;
  width: 18%;
  height: 18%;
  border-radius: 50%;
  background: rgba(27, 111, 232, 0.12);
  animation: radar-pulse 3.2s ease-out infinite;
}

.radar-mark {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(2, 33, 73, 0.18);
  opacity: 0.35;
}

.splash-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
body.ready .splash-copy {
  opacity: 1;
  transform: none;
}

.splash-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(2, 33, 73, 0.16);
  margin-bottom: 4px;
}

.byline {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.splash h1 {
  margin: 0;
  font-size: clamp(3.2rem, 10vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--navy);
  font-weight: 700;
}

.tagline {
  margin: 6px 0 8px;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
}

.splash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
}

.band {
  padding: 72px 20px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.band-soft {
  background:
    linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}
.band-final {
  background:
    linear-gradient(160deg, rgba(27, 111, 232, 0.08), transparent 45%),
    #fff;
  text-align: center;
}
.band-final .band-inner {
  align-items: center;
}
.band-final p { margin-left: auto; margin-right: auto; }

.band-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.band h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  letter-spacing: -0.03em;
  color: var(--navy);
}
.band > .band-inner > p,
.band-inner > p {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.split h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.15rem;
}
.split p {
  margin: 0;
  color: var(--muted);
}

.home-footer {
  background: #f3f6fb;
}

@keyframes radar-pulse {
  0% { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  .splash-copy { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

@media (max-width: 700px) {
  .split { grid-template-columns: 1fr; gap: 20px; }
  .splash { min-height: calc(100vh - 96px); padding-top: 36px; }
  .radar-mark { width: 64px; height: 64px; border-radius: 16px; }
}

@media (max-width: 600px) {
  .site-header-inner { flex-direction: column; align-items: flex-start; }
}

