/* Zwings — shared design system */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --bg: #08090B;
  --bg-2: #0D0F13;
  --bg-3: #13161C;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
  --fg: #F6F5F2;
  --fg-dim: #A7AAB3;
  --fg-mute: #6B6F78;
  --accent: #c4ff5c;
  --accent-ink: #0A0F00;
  --danger: #FF6B5B;
  --good: #6EE7B7;

  /* Brand gradient palette (violet → cyan → lime) */
  --brand-1: #7c5cff;
  --brand-2: #00d4ff;
  --brand-3: #ff5cf0;
  --grad-brand: linear-gradient(135deg, #7c5cff 0%, #00d4ff 50%, #c4ff5c 100%);
  --grad-text: linear-gradient(120deg, #c4b5fd 0%, #67e8f9 50%, #a7f3d0 100%);
  --grad-cta: linear-gradient(135deg, #7c5cff 0%, #00d4ff 100%);
  --grad-cta-hover: linear-gradient(135deg, #8a6bff 0%, #22dfff 100%);
  --glow-violet: 0 10px 30px rgba(124, 92, 255, 0.35);
  --glow-cyan: 0 10px 30px rgba(0, 212, 255, 0.30);

  --radius: 10px;
  --radius-lg: 18px;
  --maxw: 1280px;
  --pad: clamp(20px, 4vw, 48px);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --serif: 'Instrument Serif', Georgia, serif;
}

[data-theme="light"] {
  --bg: #F6F5F2;
  --bg-2: #ECEBE6;
  --bg-3: #E2E0DA;
  --line: rgba(8,9,11,0.10);
  --line-strong: rgba(8,9,11,0.18);
  --fg: #0A0B0E;
  --fg-dim: #555862;
  --fg-mute: #8A8D95;
  --accent: #5a48d4;
  --accent-ink: #F6F5F2;
  --grad-text: linear-gradient(120deg, #6b4ad6 0%, #0891b2 50%, #2d8f66 100%);
  --glow-violet: 0 10px 30px rgba(124, 92, 255, 0.20);
  --glow-cyan: 0 10px 30px rgba(0, 212, 255, 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  transition: background 0.3s ease, color 0.3s ease;
  isolation: isolate;
}

/* ===== Hero brand orbs (violet top-left, cyan right) ===== */
body::before,
body::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}
body::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--brand-1), transparent 70%);
  top: -160px;
  left: -140px;
  animation: orb-float 14s ease-in-out infinite;
}
body::after {
  width: 560px; height: 560px;
  background: radial-gradient(circle, var(--brand-2), transparent 70%);
  top: 60px;
  right: -180px;
  animation: orb-float 14s ease-in-out infinite -7s;
}
[data-theme="light"] body::before,
[data-theme="light"] body::after { opacity: 0.28; }

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(24px, -28px); }
}

@media (max-width: 720px) {
  body::before { width: 360px; height: 360px; top: -120px; left: -120px; }
  body::after  { width: 380px; height: 380px; top: 40px; right: -140px; }
}

@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
}

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

/* Layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(60px, 10vw, 140px) 0; }
.section-sm { padding: clamp(40px, 6vw, 80px) 0; }

/* Type */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}
h1 { font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.5vw, 56px); letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
h4 { font-size: 18px; line-height: 1.3; }

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); }
.dim { color: var(--fg-dim); }
.mute { color: var(--fg-mute); }
.accent { color: var(--accent); }

/* Gradient text — violet → cyan → mint. Applied to .serif.accent highlights and opt-in .grad-text */
.grad-text,
.serif.accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

p { color: var(--fg-dim); margin: 0; line-height: 1.6; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--fg-dim); max-width: 60ch; line-height: 1.5; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--grad-cta);
  background-size: 160% 160%;
  background-position: 0% 50%;
  color: #ffffff;
  box-shadow: var(--glow-violet);
  transition: transform 0.15s ease, background-position 0.4s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.btn-primary:hover {
  background: var(--grad-cta-hover);
  background-position: 100% 50%;
  box-shadow: 0 14px 36px rgba(0, 212, 255, 0.38);
  color: #ffffff;
}
.btn-ghost { border-color: var(--line-strong); color: var(--fg); }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--fg-dim); }
.btn-dark { background: var(--fg); color: var(--bg); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translate(3px, -3px); }

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--grad-cta);
  color: #ffffff;
  border-radius: 7px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.35);
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 14px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--fg-dim);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); background: var(--bg-2); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--fg-dim); font-size: 14px; transition: color 0.15s; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--fg-mute);
  font-family: var(--mono);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 14px 14px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.05) inset;
  transition: transform 0.2s ease, background 0.2s;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float .wa-ico {
  width: 28px; height: 28px;
  background: #25D366;
  border-radius: 50%;
  display: grid; place-items: center;
  color: white;
}
@media (max-width: 520px) {
  .wa-float .wa-text { display: none; }
  .wa-float { padding: 10px; }
}

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--fg-dim);
  transition: color 0.15s, border-color 0.15s;
}
.theme-toggle:hover { color: var(--fg); border-color: var(--fg-dim); }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }

/* Grid BG utility */
.grid-bg {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}

/* Card */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.card:hover { border-color: var(--line-strong); }

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

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Pill tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  background: var(--bg-2);
}

/* Scroll ticker */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  gap: 64px;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.ticker-track {
  display: inline-flex;
  gap: 64px;
  animation: ticker 40s linear infinite;
  align-items: center;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 500;
  color: var(--fg-dim);
  letter-spacing: -0.02em;
}
.ticker-item svg { opacity: 0.6; }

/* Utility */
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.stack { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.center { text-align: center; }

/* Tweaks panel */
.tweaks-panel {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 70;
  width: 280px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 16px;
  font-size: 13px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  display: none;
}
.tweaks-panel.on { display: block; }
.tweaks-panel h6 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
  font-weight: 500;
}
.tweak-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.tweak-row label { color: var(--fg-dim); font-size: 12px; }
.tweak-row .swatches { display: flex; gap: 6px; }
.tweak-row .sw {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line);
  cursor: pointer;
  transition: transform 0.15s;
}
.tweak-row .sw:hover { transform: scale(1.1); }
.tweak-row .sw.active { border-color: var(--fg); }
