/* ============================================================
   RAWLY v2 — shared design system
   Used by: index.html + all subpages (about, features, for-creators,
   jeton-explained, press, privacy, terms, withdraw, 404, etc.)
   ============================================================ */

:root {
  --bg: #F5F2EC;
  --bg-2: #EDE9DF;
  --bg-dark: #0F0E0C;
  --bg-dark-2: #1A1815;
  --text: #0A0A0A;
  --text-inv: #F5F2EC;
  --muted: #6F6A60;
  --muted-inv: #A8A29E;
  --accent: #FF4D29;
  --accent-2: #FF6B35;
  --accent-soft: rgba(255, 77, 41, 0.08);

  --c-coral: #FF4D29;
  --c-blue: #2B7FFF;
  --c-yellow: #FFD400;
  --c-pink: #FF3D8C;
  --c-purple: #7C3AED;
  --c-lime: #84CC16;
  --c-teal: #06B6D4;
  --c-amber: #F59E0B;

  --line: rgba(10, 10, 10, 0.10);
  --line-2: rgba(10, 10, 10, 0.06);
  --line-strong: rgba(10, 10, 10, 0.18);
  --line-inv: rgba(245, 242, 236, 0.10);

  --radius: 6px;
  --radius-lg: 14px;
  --max: 1240px;
  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Monaco, monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.5; font-size: 16px; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* ============================ NAV ============================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav.nav-scrolled,
.nav.nav-solid {
  background: rgba(237, 233, 223, 0.82);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  border-bottom: 1px solid rgba(10, 10, 10, 0.14);
  box-shadow: 0 1px 0 rgba(10,10,10,0.04), 0 8px 24px -12px rgba(10,10,10,0.12);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; max-width: var(--max); margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 8px; line-height: 1; text-decoration: none; }
.brand .brand-mark { display: block; height: 52px; width: auto; object-fit: contain; }
.brand .wordmark-dark, .brand .wordmark-light { display: block; height: 52px; width: auto; object-fit: contain; transition: height .2s ease; }
/* Default (transparent nav, dark hero behind): show white wordmark + black-square logo */
.brand .wordmark-light { display: none; }
/* Scrolled or solid nav (cream bg): swap to dark wordmark, hide logo, scale up */
.nav-scrolled .brand .wordmark-dark, .nav-solid .brand .wordmark-dark { display: none; }
.nav-scrolled .brand .wordmark-light, .nav-solid .brand .wordmark-light { display: block; height: 52px; filter: brightness(0); }
.nav-scrolled .brand .brand-mark, .nav-solid .brand .brand-mark { display: none; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; transition: color .2s; color: rgba(245, 242, 236, 0.75); }
.nav-links a:hover { color: #fff; }
.nav-scrolled .nav-links a, .nav-solid .nav-links a { color: var(--muted); }
.nav-scrolled .nav-links a:hover, .nav-solid .nav-links a:hover { color: var(--text); }

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

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 100px;
  font-size: 14px; font-weight: 600;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.nav .btn-primary {
  background: rgba(245, 242, 236, 0.12);
  color: #F5F2EC;
  border: 1px solid rgba(245, 242, 236, 0.28);
}
.nav .btn-primary:hover { background: rgba(245, 242, 236, 0.22); }
.nav-scrolled .btn-primary, .nav-solid .btn-primary {
  background: var(--text); color: var(--bg); border-color: transparent;
}
.nav-scrolled .btn-primary:hover, .nav-solid .btn-primary:hover {
  transform: translateY(-1px); background: var(--accent);
}
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.btn-primary-solid { background: var(--text); color: var(--bg); border: 0; }
.btn-primary-solid:hover { background: var(--accent); transform: translateY(-1px); }

/* ============================ TYPE ============================ */
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.h1 {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
  font-family: var(--sans);
}
.h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.h2 {
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  font-family: var(--sans);
}
.h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}
.eyebrow-yellow { color: var(--c-amber); }

/* ============================ SECTIONS ============================ */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-dark); color: var(--text-inv); }
.section-dark .lead { color: var(--muted-inv); }
.section-dark .eyebrow { color: var(--accent-2); }

.page-hero {
  padding: 160px 0 80px;
  text-align: center;
}
.page-hero .container { max-width: 880px; }
.page-hero .h1 { margin: 0 auto 22px; }
.page-hero .lead { margin: 0 auto; }

/* Cards / surfaces on light bg */
.surface-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* ============================ FOOTER ============================ */
.footer {
  background: var(--bg-dark);
  color: var(--muted-inv);
  padding: 80px 0 36px;
  border-top: 1px solid var(--line-inv);
}
.footer .container { display: flex; flex-direction: column; gap: 52px; }
.footer .ft-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .footer .ft-top { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 520px) { .footer .ft-top { grid-template-columns: 1fr; } }
.footer .ft-brand {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.footer .ft-brand img { height: 28px; width: auto; display: block; }
.footer .ft-tagline { font-size: 14px; color: var(--muted-inv); line-height: 1.55; max-width: 36ch; }
.footer .ft-col h4 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245, 242, 236, 0.55);
  margin-bottom: 14px; font-weight: 600;
}
.footer .ft-col a {
  display: block; font-size: 14px; padding: 4px 0;
  color: rgba(245, 242, 236, 0.75); transition: color .15s;
}
.footer .ft-col a:hover { color: var(--accent); }
.footer .ft-bottom {
  border-top: 1px solid var(--line-inv);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px;
  color: rgba(245, 242, 236, 0.45);
}

/* ============================ REVEAL ============================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
