/* i46 — dark, technical, quantum-trust */
:root {
  --bg: #0a0908;
  --bg-1: #111110;
  --bg-2: #181715;
  --bg-3: #1f1d1b;
  --line: #2a2724;
  --line-2: #3a3430;
  --fg: #f2ede6;
  --fg-2: #c9c1b6;
  --fg-3: #8a8178;
  --fg-4: #5a534c;
  --accent: #c62b3f;       /* i46 red from logo */
  --accent-2: #e05467;
  --maroon: #5a2323;       /* i46 deep from logo */
  --maroon-2: #7a3030;
  --ok: #6fbf8b;
  --warn: #d9a83a;

  --radius: 6px;
  --radius-lg: 10px;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

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

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

::selection { background: var(--accent); color: #fff; }

/* ---------- Layout ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.wrap-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 9, 8, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 28px;
  height: 60px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--fg);
}
.nav-brand .mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.nav-brand strong { font-weight: 600; letter-spacing: 0.01em; }
.nav-brand .tld { color: var(--fg-3); }

.nav-links {
  display: flex; gap: 4px; margin-left: 12px; flex: 1;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--fg-2);
  font-size: 13.5px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { color: var(--fg); background: var(--bg-2); }
.nav-links a.active { color: var(--fg); }

.nav-cta {
  display: flex; gap: 8px; align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 0 0 1px rgba(198,43,63,0.3);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bg-2); border-color: var(--fg-4); color: var(--fg); }
.btn-link {
  background: transparent; color: var(--fg-2);
  padding: 8px 0;
}
.btn-link:hover { color: var(--accent-2); }
.btn-sm { padding: 6px 10px; font-size: 12.5px; }

.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(2px); }

/* SpaceBox CTA button : pulsing dot to flag the new product line */
.btn-spacebox { display: inline-flex; align-items: center; gap: 8px; }
.btn-spacebox .sb-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.65);
  animation: sbBtnPulse 2.2s ease-in-out infinite;
}
@keyframes sbBtnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.65); }
  50%      { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.015em; margin: 0; }
.display {
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.display em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.h1 { font-size: clamp(36px, 4.5vw, 56px); line-height: 1.02; letter-spacing: -0.025em; }
.h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -0.02em; }
.h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.012em; }
.h4 { font-size: 17px; line-height: 1.3; }

.lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 60ch;
}
.muted { color: var(--fg-3); }
.mono { font-family: var(--font-mono); font-size: 0.9em; }
.serif-it { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.section-sm { padding: 64px 0; }
.section-label {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap; gap: 16px;
}
.section-label .eyebrow { }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 70%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  left: 50%; top: -180px;
  width: 900px; height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(198,43,63,0.15), transparent 60%);
  pointer-events: none;
  filter: blur(20px);
}

/* ---------- Hero effects (reusable backdrops) ---------------- */
.hero-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  mask-image: radial-gradient(ellipse at 50% 40%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 0%, transparent 80%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-fx, .hero-fx * { animation: none !important; }
}

/* Slow aurora (about / company hero) */
.hero-fx-aurora::before,
.hero-fx-aurora::after {
  content: "";
  position: absolute; inset: -20%;
  filter: blur(60px);
  pointer-events: none;
}
.hero-fx-aurora::before {
  background:
    radial-gradient(ellipse 50% 40% at 25% 30%, rgba(198,43,63,0.18), transparent 70%),
    radial-gradient(ellipse 40% 35% at 75% 60%, rgba(109,168,216,0.10), transparent 70%);
  animation: heroAuroraA 24s ease-in-out infinite alternate;
}
.hero-fx-aurora::after {
  background:
    radial-gradient(ellipse 35% 30% at 60% 25%, rgba(224,84,103,0.12), transparent 70%),
    radial-gradient(ellipse 40% 35% at 20% 75%, rgba(228,162,58,0.07), transparent 70%);
  animation: heroAuroraB 32s ease-in-out infinite alternate;
}
@keyframes heroAuroraA {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6%, 4%) scale(1.08); }
}
@keyframes heroAuroraB {
  0%   { transform: translate(0, 0) scale(1.06); }
  100% { transform: translate(-5%, -3%) scale(1); }
}

/* Animated ruler / tick marks (CRA product page) */
.hero-fx-ruler {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 100%, 16px 100%;
  background-position: 0 100%, 0 100%;
  background-repeat: repeat-x, repeat-x;
  mask-image: linear-gradient(180deg, transparent 0%, black 75%, black 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 75%, black 100%);
  opacity: 0.7;
}
.hero-fx-ruler::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 32px;
  width: 4px;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
  animation: heroRulerSlide 7s ease-in-out infinite;
}
@keyframes heroRulerSlide {
  0%, 100% { left: 0%;  }
  50%      { left: 96%; }
}

/* Soft drifting dot grid (legal pages : privacy / terms) */
.hero-fx-driftgrid {
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1.4px);
  background-size: 22px 22px;
  animation: heroDrift 30s linear infinite;
  opacity: 0.55;
}
@keyframes heroDrift {
  from { background-position: 0 0;        }
  to   { background-position: 220px 110px; }
}

/* ---------- Cards / Grids ---------- */
.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.card:hover { border-color: var(--line-2); background: var(--bg-2); }
.card-link { cursor: pointer; }
.card-link:hover { border-color: var(--maroon-2); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-grid > .feature {
  background: var(--bg-1);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 200px;
  transition: background 0.2s;
}
.feature-grid > .feature:hover { background: var(--bg-2); }
.feature h4 { font-size: 16px; font-weight: 500; }
.feature p { color: var(--fg-3); font-size: 13.5px; line-height: 1.5; margin: 0; }
.feature .icon {
  width: 28px; height: 28px; color: var(--fg-2);
}
.feature .tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: auto;
}

/* ---------- Pill / Badge ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-1);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.pill-accent { color: var(--accent-2); border-color: rgba(198,43,63,0.35); background: rgba(198,43,63,0.08); }
.pill-green { color: var(--ok); border-color: rgba(111,191,139,0.3); background: rgba(111,191,139,0.06); }
.pill-warn { color: var(--warn); border-color: rgba(217,168,58,0.3); background: rgba(217,168,58,0.06); }

/* ---------- Logo strip ---------- */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.logo-strip .lg {
  background: var(--bg);
  padding: 28px 16px;
  display: flex; align-items: center; justify-content: center;
  min-height: 96px;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--fg-2);
  letter-spacing: -0.01em;
  text-align: center;
}
.logo-strip .lg.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-2); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--fg-2);
  font-size: 13.5px;
}
.footer-col a:hover { color: var(--fg); }
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: color .12s, border-color .12s;
}
.footer-social a:hover {
  color: var(--fg);
  border-color: var(--fg-3);
}
.footer-social svg { display: block; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--fg-3);
  font-size: 12px;
  font-family: var(--font-mono);
}

/* ---------- Ascii / technical art ---------- */
.ascii-art {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.25;
  color: var(--fg-3);
  white-space: pre;
  letter-spacing: 0.05em;
}

/* ---------- Prose ---------- */
.prose { color: var(--fg-2); line-height: 1.7; font-size: 15.5px; }
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose h3 { color: var(--fg); margin: 32px 0 12px; font-size: 20px; }
.prose strong { color: var(--fg); font-weight: 500; }

/* ---------- Utilities ---------- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-48 { gap: 48px; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.grid { display: grid; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* dividers */
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  cursor: pointer;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--fg-2);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav dropdown */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 16px;
  border-top: 1px solid var(--line);
}
.nav-mobile a {
  padding: 10px 4px;
  color: var(--fg-2);
  font-size: 14px;
  border-radius: 6px;
  transition: color 0.15s;
}
.nav-mobile a:hover, .nav-mobile a.active { color: var(--fg); }
.nav-mobile.open { display: flex; }

/* Responsive */
@media (max-width: 900px) {
  .wrap, .wrap-wide { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .logo-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .logo-strip { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

/* ── Cookie consent banner ── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: calc(100% - 48px);
  max-width: 680px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  animation: cookie-slide-up 0.3s ease;
}
@keyframes cookie-slide-up {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.cookie-banner p {
  flex: 1;
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.55;
  margin: 0;
  min-width: 200px;
}
.cookie-banner p a { color: var(--accent-2); }
.cookie-banner p a:hover { text-decoration: underline; }
.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-hidden { display: none !important; }
