:root {
  --accent: #3264FA;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --border: #e5e7eb;
  --device-bg: #111111;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.1);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --max-w: 1200px;
  --nav-h: 60px;
  --toggle-h: 41px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

/* Nav */
nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 1rem;
}
.nav-inner {
  max-width: var(--max-w); width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; font-weight: 700; font-size: 1.1rem; color: var(--text); letter-spacing: -.02em; }
.nav-logo img { max-height: calc(var(--nav-h) - 0.5rem); vertical-align: center; }
.nav-logo span { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-link { color: var(--text-muted); font-size: .9rem; font-weight: 500; }
.nav-link:hover { color: var(--text); text-decoration: none; }
.lang-toggle {
  background: none; border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 4px 10px; font-size: .8rem; font-weight: 600; cursor: pointer;
  color: var(--text-muted); font-family: var(--font);
  transition: border-color .2s, color .2s;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* Layout helpers */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1rem; }
section { padding: 5rem 1rem; }
section.alt { background: var(--bg-alt); }
.section-title { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; margin-bottom: .5rem; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 3rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r-sm);
  font-weight: 600; font-size: .95rem; font-family: var(--font);
  cursor: pointer; border: none; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--accent); color: white; box-shadow: 0 4px 14px rgba(50,100,250,.35); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(50,100,250,.45); }
.btn-secondary { background: white; color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Hero */
.hero-image {
  margin-top: -2rem;
  margin-bottom: 2rem;
}
.hero-image img {
  max-width: 440px;
  width: 100%; height: auto; display: block;
  margin: auto;
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(50,100,250,.08); color: var(--accent);
  border: 1px solid rgba(50,100,250,.2); border-radius: 999px;
  padding: 4px 12px; font-size: .8rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  letter-spacing: -.04em; line-height: 1.1; margin-bottom: 1.25rem;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 480px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-photo-placeholder {
  background: var(--bg-alt); border: 2px dashed var(--border);
  border-radius: var(--r-lg); aspect-ratio: 4/3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .9rem; gap: 8px; margin-bottom: 1.5rem;
}
.hero-screens { display: flex; gap: 1rem; }
.hero-screen {
  background: #000; border-radius: var(--r-sm); overflow: hidden;
  box-shadow: var(--shadow-md); flex: 1;
}
.hero-screen img { display: block; width: 100%; height: auto; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
  background: var(--bg-alt); border-radius: var(--r-md);
  padding: 1.75rem; border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 44px; height: 44px; background: rgba(50,100,250,.1);
  border-radius: var(--r-sm); display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; margin-bottom: 1rem;
}
.feature-title { font-weight: 700; font-size: 1rem; margin-bottom: .4rem; }
.feature-desc { font-size: .9rem; color: var(--text-muted); }

/* Screen gallery */
.screens-section { background: var(--device-bg); padding: 4rem 0; }
.screens-section .section-title { color: #f8f9fa; }
.screens-section .section-subtitle { color: #9ca3af; }
.screens-scroll {
  display: flex; gap: 1.5rem;
  overflow-x: auto; padding: 1rem 0 2rem;
  scrollbar-width: thin; scrollbar-color: var(--accent) #222;
  -webkit-overflow-scrolling: touch;
}
.screens-scroll::-webkit-scrollbar { height: 4px; }
.screens-scroll::-webkit-scrollbar-track { background: #222; border-radius: 2px; }
.screens-scroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }
.screen-item { flex-shrink: 0; text-align: center; }
.screen-item img { width: 160px; height: 160px; display: block; border-radius: var(--r-sm); }
.screen-caption { color: #9ca3af; font-size: .75rem; margin-top: .5rem; }

/* Distributors */
.distributors-grid { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.distributor-card {
  background: white; border: 1.5px solid var(--border); border-radius: var(--r-md);
  padding: 1.75rem 2rem; display: flex; align-items: center; gap: 1.25rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  text-decoration: none; color: var(--text);
}
.distributor-card:hover {
  border-color: var(--accent); box-shadow: var(--shadow-md);
  transform: translateY(-2px); text-decoration: none; color: var(--text);
}
.distributor-icon {
  max-width: 88px;
  /* width: 44px; */
  height: 44px; background: rgba(50,100,250,.1);
  display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; flex-shrink: 0;
}
.distributor-name { font-weight: 700; }
.distributor-region { font-size: .85rem; color: var(--text-muted); }
.distributors-note { margin-top: 1.5rem; color: var(--text-muted); font-size: .9rem; }

/* Discord banner */
.discord-banner {
  background: #5865F2; border-radius: var(--r-md);
  padding: 1.5rem 2rem; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 4rem;
}
.discord-banner p { color: rgba(255,255,255,.9); font-size: .95rem; }
.discord-banner strong { color: white; }
.btn-discord {
  background: white; color: #5865F2; font-weight: 700;
  padding: 10px 20px; border-radius: var(--r-sm);
  white-space: nowrap; text-decoration: none; font-size: .9rem;
  transition: opacity .2s;
}
.btn-discord:hover { opacity: .9; text-decoration: none; }

/* Footer */
footer {
  background: var(--text); color: rgba(255,255,255,.7);
  padding: 2rem 1rem;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .footer-payments { align-items: flex-start; }
}
footer a { color: rgba(255,255,255,.7); }
footer a:hover { color: white; text-decoration: none; }
.footer-logo { font-weight: 700; color: white; font-size: 1rem; }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; }
.footer-copy { font-size: .8rem; }
.footer-social {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: .75rem; padding-top: .75rem;
}
.footer-social a { display: flex; opacity: .7; transition: opacity .15s; }
.footer-social a:hover { opacity: 1; }
.footer-social img { height: 20px; width: auto; }
.footer-payments {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: .75rem; padding-top: .75rem;
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; flex-wrap: wrap;
}
.footer-payments a { font-size: .85rem; }
.footer-payment-icons { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.footer-payment-icons img { height: 22px; width: auto; }

/* Docs layout */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--nav-h));
}
.docs-sidebar {
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h)); overflow-y: auto;
  background: var(--bg-alt); border-right: 1px solid var(--border);
  padding: 2rem 1rem;
}
.docs-sidebar-title {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-muted); margin-bottom: .75rem;
}
.docs-nav { list-style: none; }
.docs-nav li { margin-bottom: 2px; }
.docs-nav a {
  display: block; padding: 6px 10px; border-radius: var(--r-sm);
  color: var(--text-muted); font-size: .875rem;
  transition: background .15s, color .15s;
}
.docs-nav a:hover { background: white; color: var(--text); text-decoration: none; }
.docs-nav a.active { background: rgba(50,100,250,.1); color: var(--accent); font-weight: 600; }

.sidebar-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 6px 12px; font-size: .85rem;
  cursor: pointer; font-family: var(--font); margin: 1rem 1rem;
}
@media (max-width: 900px) {
  .sidebar-toggle {
    position: sticky; top: var(--nav-h); z-index: 50;
    background: var(--bg); border-radius: 0; border-width: 0 0 1px 0;
    margin: 0; padding: 10px 1rem; width: 100%;
    text-align: center;
  }
}

.docs-content { padding: 3rem 2rem; max-width: 860px; }
.docs-content h1 {
  font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .75rem;
}
.docs-content .lead { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }
.docs-content h2 {
  font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em;
  margin: 3rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.docs-content h3 { font-size: 1.05rem; font-weight: 600; margin: 2rem 0 .6rem; }
.docs-content p { margin-bottom: 1rem; }
.docs-content ul, .docs-content ol { padding-left: 1rem; margin-bottom: 1rem; }
.docs-content li { margin-bottom: .35rem; }
.docs-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .875rem; }
.docs-content th { text-align: left; padding: 9px 12px; background: var(--bg-alt); border: 1px solid var(--border); font-weight: 600; }
.docs-content td { padding: 9px 12px; border: 1px solid var(--border); }
.docs-content tr:nth-child(even) td { background: var(--bg-alt); }
.callout {
  background: rgba(50,100,250,.06); border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1rem 1.25rem; margin: 1.25rem 0; font-size: .9rem;
}
.callout strong { color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  /* .hero-visual { display: none; } */
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; height: auto; display: none; }
  .docs-sidebar.open {
    display: block; position: fixed;
    top: calc(calc(var(--nav-h) + var(--toggle-h)) - 1rem);
    left: 0; right: 0;
    z-index: 49;
    max-height: calc(100vh - var(--nav-h) - var(--toggle-h));
    overflow-y: auto; border-right: none; border-bottom: 1px solid var(--border);
  }
  .sidebar-toggle { display: block; }
  .docs-content { padding: 1rem 1rem; }
}
@media (max-width: 600px) {
  section { padding: 3rem 0; }
  .features-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero-image { margin-top: -2rem; margin-bottom: 0.5rem; }
  .nav-actions { gap: .75rem; }
  .discord-banner { flex-direction: column; }
  nav { padding: 0 0.5rem; }
}

/* Quick Start */
.qs-steps {
  max-width: 640px; margin: 0 auto;
  padding: 3rem 2rem; display: flex; flex-direction: column; gap: 3rem;
}
.qs-step-num {
  font-size: 3rem; font-weight: 800; color: var(--accent);
  line-height: 1; margin-bottom: .5rem;
}
.qs-step-title { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .4rem; }
.qs-step-body { color: var(--text-muted); font-size: .95rem; }
.qs-step-img { width: 100%; height: auto; display: block; border-radius: var(--r-md); margin-top: 1rem; }
.qs-step-imgs { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
@media (min-width: 480px) {
  .qs-step-imgs { flex-direction: row; }
  .qs-step-imgs .qs-step-img { flex: 1; margin-top: 0; }
}
.qs-cta { text-align: center; padding: 1rem 2rem 3rem; }
/* Shop */
.shop-container { padding-top: 2rem; padding-bottom: 2rem; }
.shop-frame { width: 100%; height: 80vh; border: none; border-radius: var(--r-md); display: block; }
/* Legal */
.legal-links { text-align: center; font-size: .8rem; color: var(--text-muted); padding: .75rem 0 2rem; }
.legal-links a { color: var(--text-muted); margin: 0 .25rem; }
.legal-links a:hover { color: var(--accent); text-decoration: none; }

/* Hero carousel */
.hero-carousel { display: flex; flex-direction: column; gap: 1rem; }
.hero-screen-featured {
  background: #000; border-radius: var(--r-sm); overflow: hidden;
  box-shadow: var(--shadow-md); max-width: 260px; margin: 0 auto;
}
.hero-screen-featured img {
  display: block; width: 100%; height: auto;
  transition: opacity .4s;
}
.hero-screen-featured img.fading { opacity: 0; }
.hero-screen-thumbs {
  display: flex; gap: 0.5rem; overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
  margin: 0 auto;
  padding: 3px;
}
.hero-screen-thumbs::-webkit-scrollbar { height: 3px; }
.hero-screen-thumbs::-webkit-scrollbar-track { background: transparent; border-radius: 2px; }
.hero-screen-thumbs::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }
.hero-screen-thumb {
  width: 53px; height: 70px; object-fit: contain;
  background: #000; border-radius: var(--r-sm);
  cursor: pointer; flex-shrink: 0;
  border: 2px solid transparent;
  transition: border-color .2s, transform .2s;
}
.hero-screen-thumb:hover { border-color: var(--accent); }
.hero-screen-thumb.active { border-color: var(--accent); transform: scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  .hero-screen-featured img { transition: none; }
}

/* Video embeds */
#demo { scroll-margin-top: var(--nav-h); }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--r-md); }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-short-wrap { max-width: 360px; margin: 0 auto; }
.video-short-wrap .video-wrapper { padding-bottom: 177.78%; }

/* Feature card play button */
.feature-card { position: relative; cursor: pointer; }
.card-play-btn {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--accent); color: white; border: none;
  border-radius: 50%; width: 36px; height: 36px;
  font-size: .9rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  opacity: 0.3; transition: opacity .2s;
}
.feature-card:hover .card-play-btn,
.feature-card:focus-within .card-play-btn { opacity: 1; }
/* Video modal */
#video-modal { display: none; position: fixed; inset: 0; z-index: 200; align-items: center; justify-content: center; }
#video-modal.open { display: flex; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.75); }
.video-modal-box { position: relative; z-index: 1; width: 90vw; max-width: 900px; background: #000; border-radius: var(--r-md); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.video-modal-box.is-short { max-width: 360px; }
.video-modal-box.is-short .video-wrapper { padding-bottom: 177.78%; }
.video-modal-close { position: absolute; top: -2rem; right: 0; background: none; border: none; color: white; font-size: 1.4rem; cursor: pointer; line-height: 1; padding: 0; }

/* Use cases */
.use-cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 3rem; }
.use-case-icon { font-size: 1.75rem; margin-bottom: .5rem; }
.use-case-title { font-weight: 700; font-size: 1rem; margin-bottom: .4rem; }
.use-case-desc { font-size: .9rem; color: var(--text-muted); }
@media (max-width: 900px) { .use-cases-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .use-cases-grid { grid-template-columns: 1fr; } }

/* Cookie consent banner */
#cookie-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: var(--text); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 3rem 1.5rem;
  font-size: .85rem;
  border: 2px solid var(--accent);
}
#cookie-banner p { flex: 1; line-height: 1.5; }
#cookie-banner a { color: #93b4ff; }
.cookie-actions { display: flex; gap: .6rem; flex-shrink: 0; }
.cookie-actions button {
  padding: .4rem 1rem; border-radius: var(--r-sm);
  font-size: .85rem; font-weight: 600; cursor: pointer;
  font-family: var(--font); transition: opacity .15s;
  border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff;
}
.cookie-actions button:hover { background: rgba(255,255,255,.1); }
#cookie-accept { background: var(--accent); border-color: var(--accent); }
#cookie-accept:hover { opacity: .85; background: var(--accent); }
@media (max-width: 600px) {
  #cookie-banner { flex-direction: column; align-items: flex-start; gap: .75rem; }
}
