/* ============================================================
   GAUNG.ai — Marketing Site Styles
   ============================================================ */

:root {
  /* Brand */
  --gm: #ea008c;
  --go: #ff8a10;
  --grad: linear-gradient(100deg, #ea008c 0%, #ff6a1f 60%, #ff8a10 100%);
  --grad-soft: linear-gradient(100deg, #ea008c1a 0%, #ff8a101a 100%);

  /* Surfaces (warm off-white system) */
  --bg: oklch(98.8% 0.004 70);
  --bg-2: oklch(96.5% 0.006 70);
  --bg-3: oklch(93% 0.008 70);
  --ink: oklch(18% 0.01 70);
  --ink-2: oklch(28% 0.01 70);
  --muted: oklch(50% 0.01 70);
  --muted-2: oklch(65% 0.008 70);
  --line: oklch(90% 0.006 70);
  --line-2: oklch(86% 0.008 70);

  /* Dark surface for contrast blocks */
  --dark: oklch(16% 0.012 70);
  --dark-2: oklch(22% 0.012 70);
  --dark-line: oklch(28% 0.012 70);
  --dark-ink: oklch(96% 0.004 70);

  /* Type */
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --max: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --radius: 14px;
  --radius-sm: 8px;
}

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

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

/* ============================================================
   Typography
   ============================================================ */
.h-display {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.h-display .serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.02em; }
.h-display .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.h-section {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.028em;
}
.h-section .serif { font-family: var(--serif); font-weight: 400; font-style: italic; }

.h-card {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.body-s { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ============================================================
   Layout
   ============================================================ */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #000; }
.btn-grad { background: var(--grad); color: #fff; }
.btn-grad:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--ink); }
.btn-link { padding: 0; background: transparent; color: var(--ink); border-bottom: 1px solid var(--line-2); border-radius: 0; padding-bottom: 2px; }
.btn-link:hover { border-color: var(--ink); }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex; align-items: center; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 2px; }
.logo-mark {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-dot { color: var(--ink); font-weight: 600; font-size: 20px; letter-spacing: -0.03em; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-link {
  font-size: 14px; font-weight: 450;
  padding: 8px 14px;
  white-space: nowrap;
  border-radius: 999px;
  color: var(--ink-2);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
@media (max-width: 1180px) {
  .nav-link { padding: 6px 8px; font-size: 12.5px; }
  .nav-inner { gap: 12px; }
}
@media (max-width: 980px) {
  .nav-links { display: none !important; }
}
.nav-link:hover, .nav-link.active { background: var(--bg-2); color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  font-size: 12px;
  font-weight: 500;
}
.lang-toggle button {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--muted);
  transition: all .15s;
  min-width: 32px;
}
.lang-toggle button.active { background: var(--ink); color: var(--bg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(60px, 10vw, 120px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.hero-badge-pill {
  background: var(--grad);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero-sub-row { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 24px; color: var(--muted); font-size: 13px; }
.hero-sub-row span { display: inline-flex; align-items: center; gap: 8px; }
.hero-sub-row svg { flex-shrink: 0; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--line-2); }
.card-dark {
  background: var(--dark);
  color: var(--dark-ink);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  padding: 28px;
}
.card-grad {
  background: var(--grad);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
}

/* Feature / engine cards */
.engine-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .2s;
}
.engine-card:hover { border-color: var(--ink); }
.engine-num {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--muted);
}
.engine-title { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }

/* ============================================================
   Placeholder imagery
   ============================================================ */
.placeholder {
  background:
    repeating-linear-gradient(135deg,
      var(--bg-2) 0 8px,
      var(--bg-3) 8px 16px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.placeholder span {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 4px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--dark);
  color: var(--dark-ink);
  padding: 72px 0 32px;
}
.footer a { color: var(--muted-2); font-size: 14px; }
.footer a:hover { color: var(--dark-ink); }
.footer h5 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: oklch(70% 0.008 70); margin-bottom: 14px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--dark-line); }
.footer-cols ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: 13px; color: oklch(60% 0.008 70); }
@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Misc
   ============================================================ */
.divider { height: 1px; background: var(--line); margin: 0; }
.chip {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 450;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--grad-soft);
  color: var(--gm);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.stat-n {
  font-family: var(--sans);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 450;
  letter-spacing: -0.035em;
  line-height: 1;
}
.stat-n .serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ============================================================
   Tweaks panel
   ============================================================ */
.tweaks-panel {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 280px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.15);
  padding: 16px;
  font-size: 13px;
  z-index: 100;
  display: none;
  flex-direction: column;
  gap: 14px;
}
.tweaks-panel.show { display: flex; }
.tweaks-panel h6 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.tweaks-row { display: flex; flex-direction: column; gap: 6px; }
.tweaks-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.tweaks-btn {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink-2);
}
.tweaks-btn.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) both; }
.reveal-1 { animation-delay: .05s; }
.reveal-2 { animation-delay: .12s; }
.reveal-3 { animation-delay: .18s; }
.reveal-4 { animation-delay: .24s; }

/* Accent variants (for Tweaks) */
body[data-accent="solid"] { --grad: #ea008c; --grad-soft: #ea008c14; }
body[data-accent="duo"] { --grad: linear-gradient(100deg, #ea008c 0%, #8b5cf6 100%); }

/* ============================================================
   Responsive — shared overrides
   ============================================================ */
@media (max-width: 900px) {
  body { font-size: 15px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
  .lead { font-size: 16px; }
  .hero { padding: 48px 0 56px; }
  .hero-cta-row { margin-top: 28px; }
  .hero-cta-row .btn { flex: 1; min-width: 140px; }
  .hero-sub-row { gap: 12px; font-size: 12.5px; }
  .card, .card-dark, .card-grad, .engine-card { padding: 22px; }

  /* Nav right */
  .nav-right { gap: 6px; }
  .nav-right .btn { padding: 9px 14px; font-size: 13px; }
  .lang-toggle { font-size: 11px; }
  .lang-toggle button { padding: 4px 7px; min-width: 26px; }

  /* Stacking 2-col layouts */
  .two-col { grid-template-columns: 1fr !important; gap: 32px !important; }
  .two-col-sticky > div:first-child { position: static !important; }
}
@media (max-width: 640px) {
  :root { --pad: 18px; }
  .hero-badge { font-size: 11px; padding: 5px 5px 5px 12px; margin-bottom: 20px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn { width: 100%; }
  .nav-inner { padding: 12px var(--pad); }
  .logo-mark, .logo-dot { font-size: 18px; }
  .nav-right .btn { padding: 8px 12px; font-size: 12.5px; }
  .footer-cols { grid-template-columns: 1fr !important; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* Utility */
.hidden { display: none !important; }

/* Responsive helper grids (use instead of inline gridTemplateColumns) */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.split-1-1-4 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.split-1-1-3 { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0; }
.split-220-1 { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
.split-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: center; }
.kpi-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.case-stats-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .split-2, .split-1-1-4, .split-1-1-3, .split-220-1, .split-1-2 {
    grid-template-columns: 1fr; gap: 32px;
  }
  .split-1-1-3 { gap: 0; }
  .kpi-4 { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .case-stats-3 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .split-220-1 > div:first-child { display: none; } /* hide sticky phase sidebar on narrow */
}
.dash-kpi { grid-template-columns: repeat(4, 1fr); }
.dash-chart-grid { grid-template-columns: 2fr 1fr; }
@media (max-width: 900px) {
  .dash-kpi { grid-template-columns: repeat(2, 1fr); }
  .dash-chart-grid { grid-template-columns: 1fr; }
}

.case-body { border-right: 1px solid var(--line); }
@media (max-width: 900px) {
  .case-body { border-right: none; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .case-stats-3 { grid-template-columns: 1fr 1fr; }
}
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }

/* Scroll marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 18px 0;
  background: var(--bg-2);
}
.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 40s linear infinite;
  width: max-content;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.marquee-item::after {
  content: '';
  width: 4px; height: 4px;
  background: var(--grad);
  border-radius: 50%;
  display: inline-block;
}
