/* ============================================================
   KESHO FUSION — Brand system (from logo)
   Navy + gold → teal → purple → magenta gradient ribbon.
   Light by default, dark as a toggled variant.
   Display: Space Grotesk · Body: Manrope
   ============================================================ */

:root {
  /* Brand constants (theme-independent) */
  --navy:     #16275c;
  --navy-2:   #0f1c46;
  --gold:     #cba24a;
  --gold-lt:  #e2c06a;
  --teal:     #169a72;
  --purple:   #6a2b8a;
  --magenta:  #c0288f;
  --white:    #ffffff;

  --brand-grad: linear-gradient(115deg, #a97b2a 0%, #cba24a 28%, #f3e3a3 52%, #d8b35c 80%);
  --brand-grad-soft: linear-gradient(115deg, rgba(169,123,42,0.16), rgba(203,162,74,0.16) 40%, rgba(216,179,92,0.16) 70%, rgba(243,227,163,0.16));

  /* Type */
  --display: "Space Grotesk", system-ui, sans-serif;
  --body:    "Manrope", system-ui, sans-serif;

  /* Geometry */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Accent (overridable by tweaks) */
  --accent: var(--magenta);
  --accent-on: var(--white);
}

/* ---------- LIGHT THEME (default) ---------- */
:root,
[data-theme="light"] {
  --bg:        #ffffff;
  --bg-2:      #f7f5fb;
  --surface:   #ffffff;
  --surface-2: #f3f0f8;
  --text:      #161a2e;
  --text-dim:  #5a5a72;
  --text-mute: #8b8ba2;
  --line:      rgba(22, 39, 92, 0.14);
  --line-soft: rgba(22, 39, 92, 0.09);
  --card-shadow: 0 30px 60px -34px rgba(22, 39, 92, 0.34);
  --glow-1: rgba(192, 40, 143, 0.07);
  --glow-2: rgba(203, 162, 74, 0.12);
  --grain-op: 0;
  --logo-text: var(--navy);
}

/* ---------- DARK THEME ---------- */
[data-theme="dark"] {
  --bg:        #0a0f24;
  --bg-2:      #0e1530;
  --surface:   #121a38;
  --surface-2: #18224a;
  --text:      #eef0f8;
  --text-dim:  #aab0c8;
  --text-mute: #757c98;
  --line:      rgba(203, 162, 74, 0.22);
  --line-soft: rgba(255, 255, 255, 0.10);
  --card-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  --glow-1: rgba(192, 40, 143, 0.20);
  --glow-2: rgba(203, 162, 74, 0.16);
  --grain-op: 0.05;
  --logo-text: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg) !important;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}

/* Atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(58% 44% at 50% -8%, var(--glow-1), transparent 70%),
    radial-gradient(42% 40% at 100% 2%, var(--glow-2), transparent 72%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: var(--grain-op);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMjAnIGhlaWdodD0nMTIwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC44NScgbnVtT2N0YXZlcz0nMicvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPScxMDAlJyBoZWlnaHQ9JzEwMCUnIGZpbHRlcj0ndXJsKCNuKScvPjwvc3ZnPg==");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 3;
}
section { position: relative; z-index: 3; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.eyebrow:has(.live-dot)::before { display: none; }

/* Live pulse dot */
.live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--teal); position: relative; flex: 0 0 auto;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal) 70%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: livepulse 2s var(--ease) infinite; }
}
body.no-motion .live-dot { animation: none; }
@keyframes livepulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal) 60%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

/* Gradient text accent */
.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lede {
  color: var(--text-dim);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  max-width: 56ch;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 100px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s, color .25s, filter .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--brand-grad);
  background-size: 115% 115%;
  background-position: center;
  color: var(--white);
  box-shadow: 0 14px 34px -14px rgba(106, 43, 138, 0.7);
}
.btn-primary:hover { box-shadow: 0 20px 46px -12px rgba(192, 40, 143, 0.7); filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); box-shadow: 0 14px 30px -14px rgba(15,28,70,0.6); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 8px 15px;
  border: 1.5px solid var(--line);
  border-radius: 100px;
}
.chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
body.no-motion .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line-soft); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; object-fit: contain; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; display: block; color: var(--logo-text); line-height: 1; }
.brand-sub { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-family: var(--display); font-weight: 700; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--text-dim); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-login { padding-inline: 22px; }

.lang { display: flex; border: 1.5px solid var(--line); border-radius: 100px; padding: 3px; gap: 2px; }
.lang button { background: none; border: none; color: var(--text-mute); font-family: var(--display); font-weight: 600; font-size: 12.5px; letter-spacing: 0.06em; padding: 6px 12px; border-radius: 100px; transition: color .2s, background .2s; }
.lang button.active { color: var(--white); background: var(--navy); }
.lang button:not(.active):hover { color: var(--text); }

/* Theme toggle */
.theme-toggle {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--text);
  display: grid; place-items: center;
  transition: background .25s, border-color .25s, transform .4s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

@media (max-width: 940px) { .nav-links { display: none; } }
@media (max-width: 760px) {
  .nav-actions { display: none; }
  .brand-sub { display: none; }
}
