/* Kobey Technology LLC — shared design system */

:root {
  --brand: #3452e1;
  --brand-dark: #263ec2;
  --brand-light: #6a80f5;
  --brand-ink: #ffffff;

  --bg: #ffffff;
  --bg-alt: #f4f6fc;
  --bg-band: #eef1fc;
  --surface: #ffffff;
  --border: #e1e5f2;

  --ink: #11142a;
  --ink-soft: #4d5372;
  --ink-faint: #767c9c;

  --hero-bg: linear-gradient(135deg, #1b2a8f 0%, #3452e1 55%, #4f6bf0 100%);
  --hero-ink: #ffffff;
  --hero-ink-soft: rgba(255, 255, 255, 0.82);

  --shadow-sm: 0 1px 2px rgba(17, 20, 42, 0.06), 0 1px 1px rgba(17, 20, 42, 0.04);
  --shadow-md: 0 12px 24px -8px rgba(17, 20, 42, 0.12), 0 2px 6px rgba(17, 20, 42, 0.06);
  --shadow-lg: 0 24px 48px -12px rgba(17, 20, 42, 0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --max-width: 1160px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --brand: #7d92ff;
  --brand-dark: #5b6fe6;
  --brand-light: #a7b4ff;
  --brand-ink: #0b0e1f;

  --bg: #0a0c1a;
  --bg-alt: #0f1226;
  --bg-band: #131737;
  --surface: #12152c;
  --border: #232849;

  --ink: #f2f3fb;
  --ink-soft: #b6bad9;
  --ink-faint: #7d82a8;

  --hero-bg: linear-gradient(135deg, #0a0e2c 0%, #182566 55%, #2c3fa8 100%);
  --hero-ink: #f6f7ff;
  --hero-ink-soft: rgba(246, 247, 255, 0.78);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 24px -8px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.55);

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #7d92ff;
    --brand-dark: #5b6fe6;
    --brand-light: #a7b4ff;
    --brand-ink: #0b0e1f;

    --bg: #0a0c1a;
    --bg-alt: #0f1226;
    --bg-band: #131737;
    --surface: #12152c;
    --border: #232849;

    --ink: #f2f3fb;
    --ink-soft: #b6bad9;
    --ink-faint: #7d82a8;

    --hero-bg: linear-gradient(135deg, #0a0e2c 0%, #182566 55%, #2c3fa8 100%);
    --hero-ink: #f6f7ff;
    --hero-ink-soft: rgba(246, 247, 255, 0.78);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 24px -8px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.55);

    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 620px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
  background: var(--brand-dark);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-on-dark {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-on-dark.btn-primary {
  background: #fff;
  color: var(--brand-dark);
  border-color: #fff;
}

.btn-on-dark.btn-primary:hover {
  background: #eef1ff;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-word {
  white-space: nowrap;
}

.brand-word span {
  color: var(--brand);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  color: var(--ink);
  background: var(--bg-band);
}

.main-nav a.is-active {
  color: var(--brand);
  background: var(--bg-band);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
}

.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--ink);
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 20px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    box-shadow: var(--shadow-md);
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    padding: 12px 14px;
  }

  .nav-toggle {
    display: flex;
  }

  .brand-word { font-size: 1rem; }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--hero-bg);
  color: var(--hero-ink);
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.14), transparent 45%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero .eyebrow { color: var(--hero-ink-soft); }
.hero .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
}

.hero h1 { color: var(--hero-ink); max-width: 780px; }
.hero .lede { color: var(--hero-ink-soft); max-width: 560px; font-size: 1.2rem; }

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.page-hero {
  background: var(--hero-bg);
  color: var(--hero-ink);
  padding: 72px 0 84px;
}
.page-hero .eyebrow { color: var(--hero-ink-soft); }
.page-hero h1 { color: var(--hero-ink); max-width: 760px; }
.page-hero .lede { color: var(--hero-ink-soft); }

/* ---------- Sections / bands ---------- */

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

a.card:hover, .card.is-interactive:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-band);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon svg { width: 24px; height: 24px; }

.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.98rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--brand);
}

/* ---------- Value / stat rows ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

@media (max-width: 760px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

.stat {
  text-align: left;
}

.stat .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.stat .label {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 4px;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--hero-bg);
  color: var(--hero-ink);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 { color: var(--hero-ink); margin-bottom: 8px; }
.cta-band p { color: var(--hero-ink-soft); margin: 0; max-width: 480px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a, .footer-col address {
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-style: normal;
}

.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 0.86rem;
}

.footer-bottom nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-bottom a:hover { color: var(--brand); }

/* ---------- Legal / prose pages ---------- */

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 100px;
}

.prose h2 {
  font-size: 1.4rem;
  margin-top: 2.2em;
}

.prose h2:first-of-type { margin-top: 0; }

.prose p, .prose li { color: var(--ink-soft); }

.prose ul { padding-left: 1.2em; }

.prose .updated {
  color: var(--ink-faint);
  font-size: 0.9rem;
  margin-bottom: 2.4em;
}

/* ---------- 404 ---------- */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.error-page .code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.03em;
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .contact-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}

.contact-card h3 { margin-bottom: 6px; }
.contact-card p, .contact-card address { color: var(--ink-soft); font-style: normal; }

.contact-card a.value {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  color: var(--brand);
  font-size: 1.05rem;
}

.notice {
  background: var(--bg-band);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
