/* ============================================================
   RAYON ONLINE — Design System
   Dark premium. Brand: signal yellow + deep navy (from logo)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;600;700;800;900&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand */
  --brand: #F6B41E;
  --brand-2: #FFCB3D;
  --brand-deep: #E29A0A;
  --brand-ink: #141A2A;          /* navy from logo outline */
  --brand-glow: rgba(246, 180, 30, 0.30);

  /* Surfaces */
  --bg: #080B14;
  --bg-2: #0B0F1B;
  --surface: #121826;
  --surface-2: #161E2F;
  --surface-3: #1C2538;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);

  /* Text */
  --text: #EDF1FA;
  --text-2: #AEB7C9;
  --muted: #6E7892;

  /* Status */
  --online: #46D58A;
  --warn: #FFB13D;
  --busy: #FF5E5E;

  /* Type */
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  /* Radii */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  /* Shadow */
  --shadow-1: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-2: 0 18px 50px -20px rgba(0,0,0,0.7);
  --shadow-brand: 0 18px 50px -18px rgba(246,180,30,0.45);

  /* Layout */
  --maxw: 1240px;
  --gut: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient background texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(246,180,30,0.10), transparent 60%),
    radial-gradient(900px 600px at 4% 8%, rgba(60,90,180,0.10), transparent 55%);
}

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

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); position: relative; z-index: 1; }

.section { padding: 110px 0; position: relative; z-index: 1; }
.section--tight { padding: 80px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-weight: 700; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }

.h-sec {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.lead { color: var(--text-2); font-size: clamp(16px, 1.4vw, 19px); max-width: 56ch; margin: 0; }

.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.brand-y { color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--brand-2); transform: translateY(-2px); }

.btn--ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.22); transform: translateY(-2px); }

.btn--ink { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn--ink:hover { background: var(--surface-3); transform: translateY(-2px); }

.btn--white { background: #fff; color: var(--brand-ink); }
.btn--white:hover { background: #f0f0f0; transform: translateY(-2px); }

.btn--sm { padding: 11px 18px; font-size: 14.5px; }
.btn--lg { padding: 18px 32px; font-size: 17px; }

/* Store badge buttons */
.store-btn {
  display: inline-flex; align-items: center; gap: 13px;
  padding: 12px 22px 12px 18px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  transition: transform .18s ease, border-color .2s, background .2s, box-shadow .25s;
}
.store-btn:hover { transform: translateY(-3px); border-color: rgba(246,180,30,0.5); box-shadow: var(--shadow-2); }
.store-btn .ic { width: 30px; height: 30px; flex: none; color: var(--brand); }
.store-btn .txt { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn .txt b { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.store-btn .txt span { font-size: 12px; color: var(--muted); font-weight: 600; }
.store-btn.is-primary { background: var(--brand); border-color: transparent; box-shadow: var(--shadow-brand); }
.store-btn.is-primary .ic { color: var(--brand-ink); }
.store-btn.is-primary .txt b { color: var(--brand-ink); }
.store-btn.is-primary .txt span { color: rgba(20,26,42,0.7); }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line-2);
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 4px rgba(70,213,138,0.18); }
.dot.live { animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(70,213,138,0.18);} 50% { box-shadow: 0 0 0 7px rgba(70,213,138,0.04);} }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.hdr.scrolled {
  background: rgba(8,11,20,0.78);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.hdr-in { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo img { width: 40px; height: 40px; }
.logo b { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: 0.02em; white-space: nowrap; display: inline-block; line-height: 1.02; }
.logo b > span { display: block; }
.logo b span { color: var(--brand); }
.logo b span { color: var(--brand); }
.logo small { display: block; font-size: 10px; letter-spacing: 0.32em; color: var(--muted); font-weight: 700; margin-top: -2px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  padding: 9px 15px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--text-2);
  transition: color .18s, background .18s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav a.active { color: var(--text); }
.hdr-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; }

/* mobile nav drawer */
.drawer { position: fixed; inset: 0; z-index: 70; display: none; }
.drawer.open { display: block; }
.drawer-bd { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.drawer-panel {
  position: absolute; right: 0; top: 0; height: 100%; width: min(82vw, 340px);
  background: var(--bg-2); border-left: 1px solid var(--line); padding: 22px;
  display: flex; flex-direction: column; gap: 6px; transform: translateX(20px); opacity: 0;
  transition: transform .28s ease, opacity .28s;
}
.drawer.open .drawer-panel { transform: none; opacity: 1; }
.drawer-panel a { padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: 17px; color: var(--text-2); }
.drawer-panel a:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.drawer-close { align-self: flex-end; width: 42px; height: 42px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.ftr { border-top: 1px solid var(--line); background: var(--bg-2); position: relative; z-index: 1; }
.ftr-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 48px; }
/* simplified footer */
.ftr-top--simple { grid-template-columns: 1.4fr 1fr; align-items: start; gap: 48px; }
.ftr-links { display: flex; flex-wrap: wrap; gap: 10px 30px; }
.ftr-links a { color: var(--text-2); font-size: 15px; font-weight: 600; padding: 6px 0; transition: color .15s; }
.ftr-links a:hover { color: var(--brand); }
.ftr-brand p { color: var(--muted); font-size: 14.5px; max-width: 34ch; margin: 16px 0 22px; }
.ftr-col h4 { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; margin: 4px 0 18px; }
.ftr-col a { display: block; color: var(--text-2); font-size: 14.5px; padding: 6px 0; transition: color .15s; }
.ftr-col a:hover { color: var(--brand); }
.socials { display: flex; gap: 10px; }
.soc { width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--text-2); transition: all .18s; }
.soc:hover { color: var(--brand-ink); background: var(--brand); border-color: transparent; transform: translateY(-3px); }
.soc svg { width: 20px; height: 20px; }
.ftr-bot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0 34px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ftr-bot p { color: var(--muted); font-size: 13.5px; margin: 0; }
.pays { display: flex; align-items: center; gap: 10px; }
.pay { height: 30px; min-width: 50px; padding: 0 12px; border-radius: 8px; background: rgba(255,255,255,0.045); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; }
.pay svg { height: 16px; width: auto; display: block; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,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; }
.reveal.d5 { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Misc ---------- */
.kicker-band { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* image-slot default look */
image-slot { background: var(--surface-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .ftr-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .section--tight { padding: 56px 0; }
  .hdr-cta .btn--ghost { display: none; }
  .ftr-top { grid-template-columns: 1fr; }
  .ftr-top--simple { gap: 32px; }
  .ftr-bot { flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 28px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hdr-in { height: 64px; gap: 12px; }
  .logo img { width: 34px; height: 34px; }
  .logo b { font-size: 16px; }
  .logo b > span { display: inline; }
  .logo small { font-size: 9px; letter-spacing: 0.26em; }
  .hdr-cta { gap: 8px; }
  .btn { padding: 13px 20px; font-size: 15px; }
  .btn--sm { padding: 10px 14px; font-size: 14px; }
  .burger { width: 42px; height: 42px; }
  .section { padding: 60px 0; }
  .sec-head { margin-bottom: 38px; }
  .eyebrow { margin-bottom: 14px; }
  .ftr-links { flex-direction: column; gap: 4px; }
  .socials { gap: 8px; }
  .hdr-cta .btn--primary { display: none; }
}
@media (max-width: 400px) {
  :root { --gut: 18px; }
  .logo small { display: none; }
  .hdr-cta .btn--primary span:not(.txt) { }
}
