/* ============================================================
   ZORVO DIGITAL — BASE.CSS
   Design tokens, reset, typography, utilities, animations
   Brand gradient: #f79868 (coral) → #ee3968 (rose)
============================================================ */

/* ============================================================
   DESIGN TOKENS — Dark theme (default)
============================================================ */
:root {
  --bg:        #07090c;
  --bg-2:      #0c1018;
  --bg-card:   #101720;
  --bg-card-h: #141e2b;
  --coral:     #f79868;
  --rose:      #ee3968;
  --grad:      linear-gradient(135deg, #f79868 0%, #ee3968 100%);
  --grad-h:    linear-gradient(90deg,  #f79868 0%, #ee3968 100%);
  --text:      #e6ecf2;
  --text-2:    #768899;
  --text-3:    #384858;
  --border:    rgba(255,255,255,0.07);
  --border-b:  rgba(255,255,255,0.13);
  --green:     #3ddc84;
  --green-light: rgba(61,220,132,0.09);
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'DM Mono', ui-monospace, monospace;
  --red-soft:     #ff6b6b;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.3);
  --shadow-md:    0 8px 24px rgba(0,0,0,.35);
  --max-w: 1200px;
  --nav-h: 64px;
}

/* ============================================================
   LIGHT THEME
============================================================ */
[data-theme="light"] {
  --bg:        #ffffff;
  --bg-2:      #f7f4f1;
  --bg-card:   #f0ede9;
  --bg-card-h: #e9e5e1;
  --text:      #0f1823;
  --text-2:    #4a5a6a;
  --text-3:    #8a9aaa;
  --border:    rgba(0,0,0,0.08);
  --border-b:  rgba(0,0,0,0.14);
}

/* System preference — applied when data-theme="system" */
@media (prefers-color-scheme: light) {
  [data-theme="system"] {
    --bg:        #ffffff;
    --bg-2:      #f7f4f1;
    --bg-card:   #f0ede9;
    --bg-card-h: #e9e5e1;
    --text:      #0f1823;
    --text-2:    #4a5a6a;
    --text-3:    #8a9aaa;
    --border:    rgba(0,0,0,0.08);
    --border-b:  rgba(0,0,0,0.14);
  }
}

/* ============================================================
   RESET + BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.25s, color 0.25s;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font-body); }

/* Background grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(247,152,104,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,152,104,0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.25s;
}
[data-theme="light"] body::before { opacity: 0; }

/* ============================================================
   LAYOUT
============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   TYPOGRAPHY
============================================================ */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
}
.tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--grad-h);
  flex-shrink: 0;
}

.section-header { text-align: center; margin-bottom: 56px; }
.section-header .tag { justify-content: center; }

.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 14px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.72;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   CARDS
============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-h);
}
.card:hover {
  background: var(--bg-card-h);
  border-color: var(--border-b);
  transform: translateY(-3px);
}

/* ============================================================
   SCROLL REVEAL
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.56s ease, transform 0.56s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes wordFade {
  0%       { opacity: 0; transform: translateY(6px); }
  8%, 28%  { opacity: 1; transform: translateY(0); }
  36%      { opacity: 0; transform: translateY(-6px); }
  100%     { opacity: 0; transform: translateY(-6px); }
}

/* ============================================================
   PAGE HERO (shared)
============================================================ */
.page-hero {
  padding: calc(var(--nav-h) + 72px) 0 72px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -60px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(238,57,104,0.06) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 18px;
  max-width: 760px;
}
.page-hero-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.72;
  max-width: 600px;
  margin-bottom: 32px;
}
.page-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Stats panel */
.stats-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.stats-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-h);
}
.stat-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.stat-row:last-child { border-bottom: none; padding-bottom: 0; }
.stat-row:first-child { padding-top: 0; }
.stat-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 12px; color: var(--text-2); }

/* ============================================================
   FAQ ACCORDION
============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
  transition: color 0.15s;
}
.faq-q:hover { color: var(--coral); }
.faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1px solid var(--border-b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
}
.faq-icon svg { width: 10px; height: 10px; fill: var(--coral); transition: transform 0.25s; }
.faq-item.open .faq-icon { border-color: var(--coral); }
.faq-item.open .faq-icon svg { transform: rotate(45deg); }
.faq-a {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, padding 0.32s ease;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 20px; }

/* ============================================================
   LEGAL PAGES
============================================================ */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-block { padding: 32px 0; border-bottom: 1px solid var(--border); }
.legal-block:last-child { border-bottom: none; }
.legal-block h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.legal-block p, .legal-block li {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.78;
  margin-bottom: 10px;
}
.legal-block ul { padding-left: 20px; list-style: disc; }
.legal-block a { color: var(--coral); text-decoration: underline; }

/* ============================================================
   RESPONSIVE BASE
============================================================ */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .container { padding: 0 20px; }
  .page-hero { padding: calc(var(--nav-h) + 48px) 0 56px; }
  .page-hero h1 { font-size: clamp(24px, 8vw, 34px); }
  .page-hero-actions { flex-direction: column; }
  .page-hero-actions .btn { width: 100%; justify-content: center; }
  .section-header { margin-bottom: 40px; }
  .faq-q { font-size: 15px; padding: 16px 0; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
}
