/* Privado Hub — Privado Sim landing */
:root {
  --navy-deep: #0a1628;
  --navy-mid: #0f2744;
  --navy-card: #132a46;
  --blue-bright: #2563eb;
  --blue-neon: #38bdf8;
  --cyan-glow: #22d3ee;
  --gold: #e8b923;
  --gold-soft: #f5d547;
  --white: #f8fafc;
  --muted: #94a3b8;
  --danger: #f43f5e;
  --success: #34d399;
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Cabinet Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--navy-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.35), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(232, 185, 35, 0.08), transparent);
  overflow-x: hidden;
}

@media (max-width: 960px) {
  body {
    padding-bottom: 80px;
  }
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue-neon);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-soft);
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 185, 35, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
}

.logo svg {
  width: 42px;
  height: 42px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-desktop a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-desktop a:hover {
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: var(--navy-deep);
  box-shadow: 0 4px 24px rgba(232, 185, 35, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 185, 35, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--blue-neon);
}

.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.12);
}

.btn-sell {
  background: rgba(244, 63, 94, 0.2);
  color: var(--danger);
  border: 1px solid var(--danger);
  padding: 8px 16px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

.btn-buy {
  background: rgba(52, 211, 153, 0.2);
  color: var(--success);
  border: 1px solid var(--success);
  padding: 8px 16px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 56px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-neon);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 36ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.xp-bar-wrap {
  width: 100%;
  max-width: 320px;
}

.xp-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.xp-bar {
  height: 10px;
  background: var(--navy-card);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(232, 185, 35, 0.25);
}

.xp-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-bright), var(--gold));
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.xp-fill.is-visible {
  width: 72%;
}

.disclaimer-strip {
  font-size: 0.78rem;
  color: var(--muted);
  border-left: 3px solid var(--gold);
  padding-left: 12px;
  max-width: 420px;
}

.disclaimer-strip strong {
  color: var(--white);
}

/* Mini demo widget */
.demo-widget {
  background: linear-gradient(145deg, var(--navy-mid), #0d1f36);
  border-radius: var(--radius);
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: var(--shadow-glow), 0 24px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  position: relative;
}

.demo-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.demo-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
}

.demo-live-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.demo-body {
  padding: 16px;
  position: relative;
}

.portfolio-float {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 22, 40, 0.92);
  border: 1px solid rgba(232, 185, 35, 0.35);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.7rem;
  z-index: 2;
}

.portfolio-float .label {
  color: var(--muted);
  display: block;
}

.portfolio-float .value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--gold-soft);
}

.chart-area {
  height: 140px;
  margin: 32px 0 16px;
  position: relative;
}

.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-line {
  fill: none;
  stroke: url(#chartGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw-chart 4s ease-in-out infinite alternate;
}

@keyframes draw-chart {
  0% {
    stroke-dashoffset: 350;
    transform: translateX(0);
  }
  100% {
    stroke-dashoffset: 50;
    transform: translateX(-8px);
  }
}

.chart-area::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 22, 40, 0.85));
  pointer-events: none;
}

.demo-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

.demo-actions button {
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.demo-actions button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.demo-actions button:active {
  transform: scale(0.98);
}

.demo-footer-hint {
  text-align: center;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Sections */
section {
  padding: 72px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 12px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 1.02rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.how-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--navy-card);
  border-radius: var(--radius);
  border: 1px solid rgba(56, 189, 248, 0.12);
  position: relative;
}

.how-card::after {
  content: "→";
  position: absolute;
  right: -22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 700;
}

.how-card:nth-child(3)::after {
  display: none;
}

.how-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.35), rgba(232, 185, 35, 0.2));
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.how-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 10px;
}

.how-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.bento-cell {
  background: var(--navy-card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.bento-cell:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-4px);
}

.bento-cell:nth-child(1) {
  grid-column: span 2;
}

.bento-cell:nth-child(4) {
  grid-column: span 2;
}

.bento-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.bento-cell h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.bento-cell p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Leaderboard */
.leaderboard {
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(232, 185, 35, 0.2);
  overflow: hidden;
}

.lb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: rgba(232, 185, 35, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lb-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.lb-rotate-hint {
  font-size: 0.75rem;
  color: var(--cyan-glow);
}

.lb-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lb-item {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.lb-item:hover {
  background: rgba(56, 189, 248, 0.06);
}

.lb-rank {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--gold);
  font-size: 1rem;
}

.lb-name {
  font-weight: 600;
}

.lb-pnl {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--success);
  font-size: 0.92rem;
}

.badge-tier {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
}

.badge-gold {
  background: rgba(232, 185, 35, 0.25);
  color: var(--gold-soft);
}

.badge-silver {
  background: rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
}

.badge-bronze {
  background: rgba(180, 83, 9, 0.35);
  color: #fdba74;
}

/* Form */
.signup-section {
  background: var(--navy-card);
  border-radius: var(--radius);
  padding: 48px 32px;
  border: 1px solid rgba(56, 189, 248, 0.15);
}

.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.signup-section h2 {
  font-family: var(--font-display);
  margin-top: 0;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--muted);
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--navy-deep);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--blue-neon);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.checkbox-row input {
  margin-top: 4px;
}

.sound-toggle-wrap {
  margin-top: 12px;
}

/* Achievements */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.achievement-card {
  background: var(--navy-card);
  border-radius: var(--radius-sm);
  padding: 20px;
  border: 2px dashed rgba(148, 163, 184, 0.25);
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.achievement-card:hover {
  border-style: solid;
  border-color: var(--gold);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px rgba(232, 185, 35, 0.15);
}

.achievement-card .ach-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  filter: grayscale(0.8);
  transition: filter 0.3s ease;
}

.achievement-card:hover .ach-icon {
  filter: grayscale(0);
}

.achievement-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0 0 6px;
}

.achievement-card p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question:hover {
  color: var(--blue-neon);
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--gold);
  transition: transform 0.25s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding-bottom: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-item.is-open .faq-answer {
  max-height: 320px;
}

/* Footer */
.site-footer {
  background: #050d18;
  padding: 56px 0 100px;
  border-top: 1px solid rgba(232, 185, 35, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin: 0 0 16px;
  color: var(--gold);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-disclaimers {
  margin-top: 16px;
  font-size: 0.78rem;
  line-height: 1.5;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(10, 22, 40, 0.97);
  border-top: 1px solid rgba(232, 185, 35, 0.25);
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-inner {
  width: min(960px, 94vw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-text {
  flex: 1;
  min-width: 260px;
  font-size: 0.88rem;
  color: var(--muted);
}

.cookie-text a {
  text-decoration: underline;
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(10, 22, 40, 0.95));
  border-top: 1px solid rgba(56, 189, 248, 0.2);
}

.sticky-cta .btn-primary {
  width: 100%;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .chart-line {
    animation: none;
    stroke-dashoffset: 80;
  }
  .demo-live-dot {
    animation: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .how-grid {
    grid-template-columns: 1fr;
  }
  .how-card::after {
    display: none;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .bento-cell:nth-child(1),
  .bento-cell:nth-child(4) {
    grid-column: span 1;
  }
  .signup-grid {
    grid-template-columns: 1fr;
  }
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .site-header {
    position: relative;
  }
  .nav-desktop {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    padding: 20px;
    border-bottom: 1px solid rgba(232, 185, 35, 0.2);
    z-index: 99;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  }
  .site-header.nav-open .nav-desktop {
    display: flex;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .sticky-cta {
    display: block;
  }
  .cookie-banner.is-visible ~ .site-footer {
    padding-bottom: 140px;
  }
}

@media (max-width: 520px) {
  .lb-item {
    grid-template-columns: 36px 1fr auto;
    grid-template-rows: auto auto;
  }
  .badge-tier {
    grid-column: 2 / -1;
    justify-self: start;
  }
  .achievements-grid {
    grid-template-columns: 1fr;
  }
}
