/* ===============================================
   Cobalt Labs — Design System
   =============================================== */

:root {
  /* Palette */
  --cream: #F2EEE3;
  --cream-2: #ECE6D6;
  --paper: #FAF7EE;
  --ink: #0B0D14;
  --ink-soft: #1A1D28;
  --ink-60: rgba(11, 13, 20, 0.6);
  --ink-40: rgba(11, 13, 20, 0.4);
  --ink-20: rgba(11, 13, 20, 0.16);
  --ink-10: rgba(11, 13, 20, 0.08);

  --cobalt: #1B3CFF;
  --cobalt-deep: #0F1FC4;
  --cobalt-light: #4A6BFF;

  --lime: #D6FF3D;
  --lime-bright: #C8FF1F;
  --lime-deep: #ABDB1F;

  --violet: #7B3DFF;
  --violet-deep: #5B22D9;
  --violet-light: #A47BFF;

  /* Type */
  --font-display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Spacing */
  --pad-page: clamp(24px, 4vw, 64px);
  --maxw: 1440px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

::selection { background: var(--lime); color: var(--ink); }

/* ============ Type system ============ */

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.92;
  font-variation-settings: "wdth" 100, "wght" 700;
  text-wrap: balance;
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "wdth" 110, "wght" 700;
  letter-spacing: -0.035em;
  line-height: 0.88;
  font-size: clamp(48px, 9vw, 156px);
  text-wrap: balance;
}

.display-l {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "wdth" 110, "wght" 700;
  letter-spacing: -0.03em;
  line-height: 0.92;
  font-size: clamp(40px, 6vw, 96px);
  text-wrap: balance;
}

.display-m {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "wdth" 110, "wght" 700;
  letter-spacing: -0.025em;
  line-height: 0.95;
  font-size: clamp(32px, 4vw, 56px);
  text-wrap: balance;
}

.display-s {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "wdth" 105, "wght" 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(24px, 2.4vw, 36px);
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 500;
}

.body-lg {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.005em;
}

/* ============ Layout primitives ============ */

.page {
  width: 100%;
  margin: 0 auto;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-page);
}

section { position: relative; }

/* ============ Top nav ============ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: color-mix(in oklab, var(--cream) 78%, transparent);
  border-bottom: 1px solid var(--ink-10);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px var(--pad-page);
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "wdth" 110;
  letter-spacing: -0.02em;
  font-size: 20px;
}

.brand-dot {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--cobalt);
  position: relative;
  overflow: hidden;
}
.brand-dot::before {
  content: "";
  position: absolute;
  inset: 6px 2px 2px 6px;
  border-radius: 50%;
  background: var(--lime);
  mix-blend-mode: screen;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  opacity: 0.85;
  transition: opacity .15s ease;
}
.nav-links a.btn {
  padding: 14px 26px;
  opacity: 1;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.is-active {
  opacity: 1;
}
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--cobalt);
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover { background: var(--cobalt); }

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

.btn-lime {
  background: var(--lime);
  color: var(--ink);
}
.btn-lime:hover { background: var(--lime-bright); }

.btn-icon {
  width: 18px; height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============ Color blocks ============ */

.block {
  position: relative;
  padding: clamp(64px, 9vw, 140px) 0;
  overflow: hidden;
}

.block-cobalt { background: var(--cobalt); color: var(--cream); }
.block-lime { background: var(--lime); color: var(--ink); }
.block-violet { background: var(--violet); color: white; }
.block-ink { background: var(--ink); color: var(--cream); }
.block-cream { background: var(--cream); color: var(--ink); }
.block-paper { background: var(--paper); color: var(--ink); }

/* Halo */
.halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.7;
  pointer-events: none;
}

/* ============ Cards ============ */

.card {
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}

/* ============ Marquee ============ */

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 60s linear infinite;
}

/* ============ Misc ============ */

.divider {
  height: 1px;
  background: var(--ink-10);
  width: 100%;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  opacity: 0.85;
}

.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime-bright);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--lime-bright) 30%, transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============ Footer ============ */

footer.foot {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0 32px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.foot-grid h4 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.55;
  margin: 0 0 16px;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-grid a { opacity: 0.85; }
.foot-grid a:hover { color: var(--lime); opacity: 1; }
.foot-bot {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.5;
}

/* ============ Utilities ============ */
.muted { opacity: 0.6; }
.flex { display: flex; }
.col { flex-direction: column; }
.center { align-items: center; justify-content: center; }
.between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* ============ Image utility ============ */
.img-block {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 18px; font-size: 14px; }
}
@media (max-width: 600px) {
  .nav-links a:not(.btn) { display: none; }
}
