/* ===== Custom Properties ===== */
:root {
  --bg: #171517;
  --surface: #1E1C1E;
  --surface-variant: #2A282A;
  --gold: #DBB028;
  --gold-light: #F4C42D;
  --gold-dark: #B8941F;
  --text: #E6E1E5;
  --text-muted: #CAC4D0;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1100px;
  --nav-height: 64px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Utility ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 48px;
  color: var(--text);
}

/* ===== Mouse Glow ===== */
.mouse-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219, 176, 40, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  will-change: top, left;
  opacity: 0;
}

.mouse-glow--visible {
  opacity: 1;
}

/* ===== Scroll Animations ===== */
.animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(23, 21, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--surface-variant);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.nav-icon {
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--gold-light);
}

.lang-toggle {
  background: var(--surface-variant);
  border: 1px solid var(--gold-dark);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  letter-spacing: 0.5px;
}

.lang-toggle:hover {
  background: var(--gold-dark);
  color: var(--bg);
  border-color: var(--gold);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + 64px) 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: calc(var(--nav-height) + 20px);
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219, 176, 40, 0.18) 0%, rgba(219, 176, 40, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-icon {
  margin: 0 auto 32px;
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(219, 176, 40, 0.15);
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Play Badge ===== */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--gold-dark);
  border-radius: var(--radius);
  padding: 10px 24px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.play-badge:hover {
  background: var(--surface-variant);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.play-badge-icon {
  color: var(--gold-light);
  flex-shrink: 0;
}

.play-badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.play-badge-small {
  font-size: 0.6rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.play-badge-big {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.play-badge--large {
  padding: 14px 32px;
}

.play-badge--large .play-badge-big {
  font-size: 1.25rem;
}

/* ===== Features ===== */
.features {
  padding: 80px 0;
  background: var(--surface);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--surface-variant);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-4px);
}

.feature-icon-wrap {
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gold-light);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 80px 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-bottom: 64px;
}

.step:last-child {
  margin-bottom: 0;
}

.step-text {
  max-width: 420px;
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.step-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Phone Frame ===== */
.phone-frame {
  background: #000;
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  max-width: 270px;
  margin: 0 auto;
}

.phone-frame img {
  border-radius: 20px;
  width: 100%;
  height: auto;
}

/* ===== CTA ===== */
.cta {
  padding: 80px 0;
  background: var(--surface);
  text-align: center;
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}

.cta-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--surface-variant);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--gold-light);
}

.footer-sep {
  color: var(--surface-variant);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ===== Legal Pages ===== */
.legal-page {
  padding: calc(var(--nav-height) + 48px) 0 64px;
}

.legal-page .container {
  max-width: 800px;
}

.legal-content h1,
.legal-content h2,
.legal-content h3 {
  color: var(--text);
}

.legal-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--gold-light) !important;
}

.legal-updated {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 28px;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gold-dark);
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.legal-content p {
  margin-bottom: 14px;
  color: var(--text);
  line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 14px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.6;
}

.legal-content a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--gold);
}

.legal-content strong {
  color: var(--text);
}

.legal-divider {
  border: none;
  border-top: 1px solid var(--surface-variant);
  margin: 56px 0;
}

.legal-agreement {
  margin-top: 32px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--gold);
}

.legal-callout {
  margin: 20px 0;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--gold);
}

.legal-callout ol {
  margin-bottom: 0;
}

.legal-warning {
  margin: 20px 0;
  padding: 16px 20px;
  background: rgba(219, 176, 40, 0.08);
  border-left: 4px solid var(--gold-light);
  border-radius: var(--radius-sm);
}

.legal-contact {
  margin-top: 32px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius-sm);
}

.legal-contact h3 {
  margin-top: 0;
}

/* Legal table */
.legal-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--surface-variant);
  padding: 10px 12px;
  text-align: left;
  font-size: 0.9rem;
}

.legal-table th {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.legal-table td {
  color: var(--text-muted);
}

.legal-table tr:nth-child(even) td {
  background: var(--surface);
}

.legal-deleted {
  color: #4caf50 !important;
  font-weight: 600;
}

/* Legal page lang switch */
.legal-lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
}

.legal-lang-btn {
  font-weight: 700;
  font-size: 0.85rem !important;
}

.legal-lang-sep {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== Tablet (768px+) ===== */
@media (min-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .step {
    flex-direction: row;
    gap: 48px;
    text-align: left;
  }

  .step-text {
    text-align: left;
    flex: 1;
  }

  .step-image {
    flex: 0 0 auto;
  }

  .step--right {
    flex-direction: row-reverse;
  }

  .step--right .step-text {
    text-align: right;
  }
}

/* ===== Desktop (1024px+) ===== */
@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }

  .hero {
    padding: calc(var(--nav-height) + 96px) 0 112px;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .features {
    padding: 100px 0;
  }

  .how-it-works {
    padding: 100px 0;
  }

  .step {
    gap: 72px;
    margin-bottom: 80px;
  }

  .cta {
    padding: 100px 0;
  }

  .cta-title {
    font-size: 2.25rem;
  }
}
