/* ═══════════════════════════════════════════════
   Design Tokens
═══════════════════════════════════════════════ */
:root {
  --bg-primary:     #0A1628;
  --bg-surface:     #142037;
  --bg-hover:       #1B2940;
  --accent:         #F5B72F;
  --accent-hover:   #FFCB47;
  --text-primary:   #F5F5F0;
  --text-secondary: #8B95A8;
  --success:        #16C098;
  --danger:         #E74C3C;
  --border:         rgba(255, 255, 255, 0.08);

  --banner-height:  40px;
  --header-height:  70px;
  --topnav-height:  56px;
  --footer-height:  36px;
}

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

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ═══════════════════════════════════════════════
   Top Banner
═══════════════════════════════════════════════ */
.banner {
  min-height: var(--banner-height);
  background: linear-gradient(90deg, #1D4ED8 0%, #3B82F6 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 48px 6px 16px;
  position: relative;
  flex-shrink: 0;
}

.banner.hidden { display: none; }

.banner-text {
  font-size: 13px;
  color: #FFFFFF;
  text-align: center;
  line-height: 1.4;
}

.banner-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.banner-close:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
}

/* ═══════════════════════════════════════════════
   Header
═══════════════════════════════════════════════ */
.header {
  height: var(--header-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.3px;
  cursor: default;
  user-select: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ═══════════════════════════════════════════════
   Buttons
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  line-height: 1;
}

.btn-filled {
  background: var(--accent);
  color: var(--bg-primary);
  border: 2px solid var(--accent);
  font-weight: 700;
}

.btn-filled:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-outlined {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outlined:hover {
  background: rgba(245, 183, 47, 0.1);
  border-color: var(--accent-hover);
  color: var(--accent-hover);
}

.btn-text {
  background: none;
  border: 2px solid transparent;
  color: var(--text-primary);
}

.btn-text:hover { color: var(--accent); }

.btn-large {
  font-size: 15px;
  padding: 11px 26px;
}

/* ═══════════════════════════════════════════════
   Top Navigation Bar
═══════════════════════════════════════════════ */
.top-nav {
  height: var(--topnav-height);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar { display: none; }

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--accent);
}

.nav-item.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-icon {
  font-size: 16px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   Content Area
═══════════════════════════════════════════════ */
.content {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

/* All sections share absolute fill; only one is visible */
.section {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
}

.section.visible { display: flex; }

/* ─── Section A: Home ─────────────────────────── */
.section-home { overflow-y: auto; }

.home-inner {
  padding: 48px 40px 64px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero {
  text-align: center;
  margin-bottom: 64px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.features-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.tag-available {
  background: rgba(22, 192, 152, 0.14);
  color: var(--success);
}

.tag-soon {
  background: rgba(139, 149, 168, 0.12);
  color: var(--text-secondary);
}

/* ─── Section B: Iframe ───────────────────────── */
.section-iframe { overflow: hidden; }

#platform-iframe {
  flex: 1;
  width: 100%;
  border: none;
  display: block;
}

/* ─── Section C: Coming Soon ──────────────────── */
.section-soon {
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.soon-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 52px 44px;
  text-align: center;
  max-width: 480px;
  width: calc(100% - 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.soon-icon {
  font-size: 64px;
  line-height: 1;
}

.soon-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.soon-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════
   Footer
═══════════════════════════════════════════════ */
.footer {
  min-height: var(--footer-height);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  flex-shrink: 0;
}

.footer-left,
.footer-center,
.footer-right { flex: 1; }

.footer-link {
  font-size: 12px;
  color: var(--text-secondary);
  transition: color 0.15s;
}

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

.footer-center {
  text-align: center;
  font-size: 11px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}

.footer-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.footer-icon { font-size: 14px; cursor: default; }

.footer-lang {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════
   Scrollbar (webkit)
═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); }

/* ═══════════════════════════════════════════════
   Responsive — Mobile (≤ 768px)
═══════════════════════════════════════════════ */
@media (max-width: 768px) {

  .hero-title    { font-size: 30px; }
  .hero-subtitle { font-size: 15px; }

  .home-inner { padding: 32px 20px 52px; }

  .feature-grid { grid-template-columns: 1fr; }

  .soon-card {
    padding: 36px 24px;
    width: calc(100% - 32px);
  }

  .soon-title { font-size: 22px; }
  .soon-icon  { font-size: 48px; }
}
