/* ************************************************************************************************************************************************************************************════
   NUCLEAR WEB7 — COMPLETE REDESIGN
   Aesthetic: Sovereign-tech · Industrial-luxury · Editorial
   NO DARK MODE — Pure refined light with deep contrast
************************************************************************************************************************************************************************************════ */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900&family=Funnel+Display:wght@300..800&family=DM+Mono:wght@300;400;500&display=swap');

:root {
  --black:   #111111;
  --white:   #faf9f7;
  --cream:   #f3f0eb;
  --brown:   #5c4319;
  --gold:    #a07828;
  --gold-lt: #c9a24a;
  --warm-gray: #8a8480;
  --mid:     #d4cfc8;
  --line:    #e8e4de;
  --sidebar-w: 260px;
  --header-h:  64px;
  --radius:    14px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: "Be Vietnam Pro", sans-serif;
  background: var(--cream);
  color: var(--black);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/***************

/* ── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--mid); border-radius: 5px; }

/* ************************************************************************************************************************************************************************************
   TOP HEADER BAR
************************************************************************************************************************************************************************************ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(250,249,247,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.35s ease;
  padding: 0 32px;
  z-index: 1000;
}

.header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
}

.header-logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.header-wordmark {
  font-family: "Funnel Display", sans-serif;
  font-weight: 700;
  font-size: 30px;
  font-style: italic;
  color: var(--black);
  letter-spacing: -0.03em;
  margin-top: -5px;
}

.header-wordmark span {
  color: var(--gold);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s;
}

.header-nav:hover{
  cursor: pointer;
  gap: 6px;
}

.header-nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: rgb(87, 87, 87);
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.18s;
  letter-spacing: 0.01em;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--black);
  background: #c48f3a35;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header .loading-bar{
    position: absolute;
    width: 100%;
    height: 3px;
    background: transparent;
    overflow: hidden;
    top: 0px;
}

.site-header .loading-bar::before{
    content: "";
    width: 200px;
    height: 3px;
    background: #5c4319;
    position: absolute;
    left: -710px;
    animation: bluebar 1.5s 5 ease-in-out;
}

@keyframes bluebar{
    100%{
        left: 100%;
    }
}


.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--white);
  background: var(--black);
  border: none;
  border-radius: 30px;
  padding: 11px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.btn-primary:hover {
  background: var(--brown);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(10, 9, 8, 0.11);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--black);
  background: transparent;
  border: 1.5px solid var(--mid);
  border-radius: 30px;
  padding: 9px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.25s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ************************************************************************************************************************************************************************************
   MOBILE SIDEBAR OVERLAY
************************************************************************************************************************************************************************************ */
.mobile-sidebar {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2000;
}

.mobile-sidebar.open { display: flex; }

.sidebar-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,9,8,0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.sidebar-panel {
  position: relative;
  width: 78%;
  height: 100%;
  background: var(--white);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 1;
  animation: slideIn 0.4s cubic-bezier(0.32,0,0.2,1);
  overflow-y: auto;
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sidebar-logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.sidebar-wordmark {
  font-family: "Funnel Display", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--black);
  letter-spacing: -0.03em;
}

.sidebar-wordmark span { color: var(--gold); }

.sidebar-close {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--warm-gray);
  transition: all 0.18s;
}
.sidebar-close:hover { background: var(--cream); color: var(--black); }

.sidebar-nav {
  padding: 16px 12px;
  flex: 1;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--black);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 12px;
  border-radius: 10px;
  transition: all 0.18s;
  border-bottom: 1px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--cream);
  color: var(--brown);
}

.sidebar-nav a .nav-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: background 0.18s;
}

.sidebar-nav a:hover .nav-icon,
.sidebar-nav a.active .nav-icon {
  background: #4c3b20;
  color: white;
}

.sidebar-nav a .nav-label {
  flex: 1;
}

.sidebar-nav a .nav-arrow {
  font-size: 15px;
  color: #4c3b20;
  opacity: 1;
  transition: opacity 0.18s;
}
.sidebar-nav a:hover .nav-arrow { opacity: 1; }

.sidebar-divider {
  height: 1px;
  background: var(--line);
  margin: 8px 12px;
}

.sidebar-footer {
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}

.sidebar-footer .btn-primary {
  width: 100%;
  justify-content: center;
  font-size: 14px;
  padding: 12px 20px;
}

/* ************************************************************************************************************************************************************************************
   PAGE LAYOUT — CONTENT WRAPPER
************************************************************************************************************************************************************************************ */
.page-body {
  padding-top: var(--header-h);
  min-height: 100vh;
}

/* ************************************************************************************************************************************************************************************
   SECTION WRAPPER
************************************************************************************************************************************************************************************ */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 40px 40px;
}

/* ************************************************************************************************************************************************************************************
   HERO — INDEX PAGE
************************************************************************************************************************************************************************************ */
.hero {
  max-width: 100%;
  padding: 80px 40px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(160,120,40,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 72px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(160,120,40,0.08);
  border: 1px solid rgba(160,120,40,0.22);
  border-radius: 20px;
  padding: 5px 12px;
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { opacity:1; transform: scale(1); }
  50% { opacity:0.5; transform: scale(0.7); }
}

.hero-title {
  font-family: "Funnel Display", sans-serif;
  font-size: clamp(40px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--black);
  margin-bottom: 20px;
}

.hero-title .gold { color: var(--gold); }

.hero-desc {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--warm-gray);
  margin-bottom: 32px;
  max-width: 420px;
}

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

.hero-actions .btn-primary {
  font-size: 17px;
  padding: 15px 26px;
}

.hero-actions .btn-outline {
  font-size: 17px;
  padding: 15px 26px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 350px;
}

.hero-img-wrap img {
  width: 100%;
  border-radius: 20px;
  filter: drop-shadow(0 24px 48px rgba(10, 9, 8, 0.052));
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-badge {
  position: absolute;
  bottom: -18px; left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.425);
  backdrop-filter: blur(10px);
  border: 1px solid silver;
  border-radius: 7px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 0px 3px rgba(28, 26, 25, 0.036);
  transition: all 0.3s;
}

.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4c3b20;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

.hero-badge-text {
  font-size: 17px;
  font-weight: 500;
  color: var(--black);
}

/* Stats bar */
.stats-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.stats-inner {
  max-width: 840px;
  margin: 0 auto;
  padding: 28px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  border-right: 1px solid var(--line);
  padding: 0 20px;
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: "Funnel Display", sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 11.5px;
  color: var(--warm-gray);
  font-weight: 500;
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* ************************************************************************************************************************************************************************************
   FEATURE CARDS
************************************************************************************************************************************************************************************ */
.features-grid {
  max-width: 840px;
  margin: 0 auto;
  padding: 64px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.24s;
  cursor: default;
}

.feature-card:hover {
  border-color: var(--gold-lt);
  box-shadow: 0 8px 32px rgba(10,9,8,0.07);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  transition: background 0.2s;
  color: #a07828;
}

.feature-card:hover .feature-icon { background: rgba(160,120,40,0.1); }

.feature-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--warm-gray);
}

/* ************************************************************************************************************************************************************************************
   CONTENT SECTION TITLE
************************************************************************************************************************************************************************************ */
.section-label {
  font-family: "DM Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-title {
  font-family: "Funnel Display", sans-serif;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 15px;
  line-height: 1.72;
  color: var(--warm-gray);
  max-width: 560px;
  margin-bottom: 48px;
}

/* ************************************************************************************************************************************************************************************
   NUMBERED LIST SECTION (Benefits, Problems, etc.)
************************************************************************************************************************************************************************************ */
.num-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.num-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s;
}
.num-item:last-child { border-bottom: none; }
.num-item:hover { background: var(--cream); }

.num-badge {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}

.num-text {
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--black);
}

/* ************************************************************************************************************************************************************************************
   SPEC TABLE
************************************************************************************************************************************************************************************ */
.spec-table {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.spec-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.spec-row:last-child { border-bottom: none; }
.spec-row:hover { background: var(--cream); }

.spec-key {
  padding: 16px 22px;
  font-family: "DM Mono", monospace;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--warm-gray);
  letter-spacing: 0.04em;
  border-right: 1px solid var(--line);
  background: var(--cream);
  display: flex; align-items: center;
}

.spec-val {
  padding: 16px 22px;
  font-size: 14px;
  color: var(--black);
  line-height: 1.6;
  display: flex; align-items: center;
}

/* ************************************************************************************************************************************************************************************
   DOWNLOAD PAGE — APP STORE STYLE
************************************************************************************************************************************************************************************ */
.dl-hero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 72px 40px 64px;
}

.dl-hero-inner {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: center;
}

.dl-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.stars {
  display: flex; gap: 2px;
  color: var(--gold);
  font-size: 14px;
}

.rating-text {
  font-size: 12.5px;
  color: var(--warm-gray);
  font-weight: 500;
}

.dl-visual {
  position: relative;
  text-align: center;
}

.dl-app-icon {
  width: 120px; height: 120.7px;
  border-radius: 22.05%;
  object-fit: cover;
  box-shadow: 0 16px 48px rgba(10,9,8,0.18);
  display: block;
  margin: 0 auto 16px;
}

.dl-version-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 12px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--warm-gray);
  letter-spacing: 0.05em;
}

/* Platform cards */
.platform-section {
  max-width: 840px;
  margin: 0 auto;
  padding: 56px 40px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.platform-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: all 0.24s;
  position: relative;
  overflow: hidden;
}

.platform-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.platform-card:hover { 
  border-color: var(--gold-lt);
  box-shadow: 0 12px 40px rgba(10,9,8,0.08);
  transform: translateY(-3px);
}
.platform-card:hover::before { transform: scaleX(1); }

.platform-icon {
  font-size: 45px;
  line-height: 1;
}

.platform-name {
  font-family: "Funnel Display", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.03em;
}

.platform-meta {
  font-size: 12px;
  color: var(--warm-gray);
  font-weight: 500;
}

.platform-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.platform-spec {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--warm-gray);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.platform-spec:last-child { border-bottom: none; padding-bottom: 0; }
.platform-spec strong { color: var(--black); font-weight: 600; }

.platform-card .btn-primary {
  width: 100%;
  justify-content: center;
  font-size: 14px;
  padding: 15px 20px;
  margin-top: auto;
}

.platform-release {
  font-family: "DM Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--warm-gray);
  text-transform: uppercase;
}

/* Download info card */
.dl-info-card {
  background: var(--black);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.dl-info-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255, 170, 0, 0.434) 0%, transparent 70%);
  pointer-events: none;
}

.dl-info-card h3 {
  font-family: "Funnel Display", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.dl-info-card p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(250,249,247,0.6);
}

/* ************************************************************************************************************************************************************************************
   EXCHANGE RATE CARDS
************************************************************************************************************************************************************************************ */
.ex-section {
  max-width: 840px;
  margin: 0 auto;
  padding: 56px 40px;
}

.ex-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 2px 16px rgba(10,9,8,0.04);
  transition: box-shadow 0.24s;
}

.ex-card:hover { box-shadow: 0 8px 32px rgba(10,9,8,0.08); }

.ex-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  flex-wrap: wrap;
  gap: 12px;
}

.ex-card-left { display: flex; align-items: center; gap: 10px; }

.ex-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(160,120,40,0.5);
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

.ex-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--black);
  letter-spacing: -0.02em;
}

.ex-badge {
  font-family: "DM Mono", monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(160,120,40,0.08);
  border: 1px solid rgba(160,120,40,0.2);
  border-radius: 20px;
  padding: 3px 10px;
}

.ex-card-right { text-align: right; }

.ex-val {
  display: block;
  font-family: "DM Mono", monospace;
  font-size: 20px;
  font-weight: 500;
  color: var(--black);
  letter-spacing: -0.02em;
}

.ex-meta {
  display: block;
  font-size: 11px;
  color: var(--warm-gray);
  margin-top: 3px;
}

.ex-card-body {
  display: flex;
  height: 220px;
}

.ex-chart-wrap {
  flex: 1;
  min-width: 0;
  padding: 14px 14px 14px 10px;
}

.ex-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.ex-sidebar {
  width: 185px;
  flex-shrink: 0;
  border-left: 1px solid var(--line);
  overflow-y: auto;
  padding: 6px 0;
  background: var(--cream);
}

.ex-sb-head {
  font-family: "DM Mono", monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-gray);
  padding: 8px 14px 10px;
}

.sb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 14px;
  font-size: 11.5px;
  color: var(--black);
  transition: background 0.15s;
}

.sb-row:hover { background: var(--line); }
.sb-row.sb-pri { color: var(--gold); font-weight: 700; }

.ex-sidebar::-webkit-scrollbar { width: 3px; }
.ex-sidebar::-webkit-scrollbar-thumb { background: var(--mid); }

#status-bar {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--warm-gray);
  margin-top: 8px;
  padding: 0 2px;
}

/* ************************************************************************************************************************************************************************************
   STICKERS PAGE
************************************************************************************************************************************************************************************ */
.stickers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.stick {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.24s;
  padding: 28px;
  gap: 16px;
}

.stick:hover {
  border-color: var(--gold-lt);
  box-shadow: 0 8px 28px rgba(10,9,8,0.07);
  transform: translateY(-2px);
}

.stick-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--warm-gray);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: "DM Mono", monospace;
}

#stick-img {
  width: 55%;
  height: auto;
  transition: transform 0.3s;
}

#stick-img:hover { transform: scale(1.06); }

.stick-download {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--warm-gray);
  font-size: 15px;
  transition: all 0.18s;
  text-decoration: none;
}

.stick-download:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ************************************************************************************************************************************************************************************
   HELP PAGE
************************************************************************************************************************************************************************************ */
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: all 0.24s;
  text-decoration: none;
}

.contact-card:hover {
  border-color: var(--gold-lt);
  box-shadow: 0 8px 28px rgba(10,9,8,0.07);
  transform: translateY(-2px);
}

.contact-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.contact-info h3 {
  font-weight: 700;
  font-size: 15px;
  color: var(--black);
  margin-bottom: 4px;
}

.contact-info p {
  font-size: 13.5px;
  color: var(--warm-gray);
}

/* ************************************************************************************************************************************************************************************
   INFO PROSE BLOCK (generic content paragraphs)
************************************************************************************************************************************************************************************ */
.prose {
  font-size: 15px;
  line-height: 1.75;
  color: var(--warm-gray);
  max-width: 680px;
}

.prose + .prose { margin-top: 20px; }

.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.18s;
}

.prose a:hover { color: var(--brown); }

.prose strong, .prose k {
  color: var(--black);
  font-weight: 600;
}

/* ************************************************************************************************************************************************************************************
   INLINE TAG / BADGE
************************************************************************************************************************************************************************************ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--black);
}

/* ************************************************************************************************************************************************************************************
   PAGE SECTION DIVIDER
************************************************************************************************************************************************************************************ */
.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ************************************************************************************************************************************************************************************
   FOOTER NAV (bottom links)
************************************************************************************************************************************************************************************ */
.page-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 32px 40px;
}

.footer-inner {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-family: "Funnel Display", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--black);
  letter-spacing: -0.02em;
}

.footer-brand span { color: var(--gold); }

.footer-copy {
  font-size: 12px;
  color: var(--warm-gray);
}

.footer-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--warm-gray);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 7px;
  transition: all 0.18s;
  border: 1px solid transparent;
}

.footer-links a:hover {
  color: var(--black);
  background: var(--cream);
  border-color: var(--line);
}

.reload-link {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--warm-gray) !important;
  letter-spacing: 0.05em;
}

/* ************************************************************************************************************************************************************************************
   ALERTS / NOTICE BOX
************************************************************************************************************************************************************************************ */
.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(160,120,40,0.06);
  border: 1px solid rgba(160,120,40,0.2);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 28px 0;
}

.notice-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

.notice-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--black);
}

.notice-text strong { font-weight: 700; }

/* ************************************************************************************************************************************************************************************
   CUSTOM SELECT (exchange)
************************************************************************************************************************************************************************************ */
.select-selected {
  padding: 12px 16px;
  font-size: 14.5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.22s;
  display: flex;
  align-items: center;
  color: var(--gold);
  gap: 10px;
}

.select-selected:hover { border-color: var(--gold); }

.select-items {
  position: fixed;
  background: var(--white);
  backdrop-filter: blur(14px);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3000;
  height: 78%;
  width: 48%;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: none;
  box-shadow: 0 24px 80px rgba(10,9,8,0.18);
}

.select-items.show {
  display: block;
  animation: modal-in 0.22s cubic-bezier(0.32,0,0.2,1);
}

@keyframes modal-in {
  from { opacity:0; transform: translate(-50%,-48%) scale(0.96); }
  to   { opacity:1; transform: translate(-50%,-50%) scale(1); }
}

.select-overlay {
  position: fixed; inset: 0;
  background: rgba(10,9,8,0.45);
  z-index: 2999;
  display: none;
  backdrop-filter: blur(3px);
}
.select-overlay.show { display: block; }

.select-items div {
  padding: 13px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--black);
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}

.select-items div:hover { background: var(--cream); }
.select-items div.same-as-selected { background: rgba(160,120,40,0.07); color: var(--gold); font-weight: 600; }

.select-items::-webkit-scrollbar { width: 4px; }
.select-items::-webkit-scrollbar-thumb { background: var(--mid); border-radius: 4px; }

.fi { font-size: 18px; }
.country-name { flex: 1; }
.currency-symbol { color: var(--gold); font-weight: 600; margin-left: auto; font-variant-numeric: tabular-nums; }

.status { position: absolute; top: 10px; right: 10px; font-size: 11.5px; color: var(--warm-gray); }
.status.loading { color: #667eea; }
.status.success { color: #22c55e; }
.status.error   { color: #ef4444; }

/* ************************************************************************************************************************************************************************************
   STRIKETHROUGH LIST (stickers free use)
************************************************************************************************************************************************************************************ */
kyf {
  text-decoration: line-through;
  color: var(--warm-gray);
}

/* ************************************************************************************************************************************************************************************
   PAGE-SPECIFIC INNER LAYOUTS (non-index pages)
************************************************************************************************************************************************************************************ */
.inner-page {
  max-width: 840px;
  margin: 0 auto;
  padding: 56px 40px 40px;
}

.page-hero {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.page-hero-eyebrow {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.page-hero-title {
  font-family: "Funnel Display", sans-serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 14px;
}

.page-hero-desc {
  font-size: 15px;
  line-height: 1.72;
  color: var(--warm-gray);
  max-width: 560px;
}

/* Content block */
.content-block {
  margin-bottom: 48px;
}

.content-block-title {
  font-family: "Funnel Display", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-block-title .cb-num {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--warm-gray);
  font-weight: 400;
  letter-spacing: 0.06em;
}

/* ************************************************************************************************************************************************************************************
   RESPONSIVE — TABLET
************************************************************************************************************************************************************************************ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-img-wrap { max-width: 220px; margin: 0 auto; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .stat-item:nth-child(2) { border-right: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-hero-inner { grid-template-columns: 1fr; }
  .dl-visual { display: flex; gap: 20px; align-items: center; justify-content: flex-start; }
  .spec-row { grid-template-columns: 160px 1fr; }
}

/* ************************************************************************************************************************************************************************************
   RESPONSIVE — MOBILE
************************************************************************************************************************************************************************************ */
@media (max-width: 680px) {
  /* Hide desktop nav, show hamburger */
  .header-nav,
  .header-cta { display: none; }
  .hamburger { display: flex; }

  .site-header { padding: 0 18px; }

  /* Sections */
  .section, .inner-page { padding: 36px 20px 28px; }
  .hero { padding: 48px 20px 0; }
  .hero-inner { padding-bottom: 48px; gap: 32px; }
  .hero-badge-text {font-size: 14px;}
  .hero-title { font-size: 32px; }
  .hero-desc { font-size: 14.5px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { width: 100%; justify-content: center; font-size: 15px; padding: 14px; }
  .hero-img-wrap { max-width: 180px; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); padding: 24px 20px; }
  .stat-item { padding: 0 12px; }
  .stat-num { font-size: 22px; }

  .features-grid { grid-template-columns: 1fr; padding: 36px 20px; gap: 12px; }

  .dl-hero { padding: 48px 20px 40px; }
  .dl-hero-inner { gap: 32px; }
  .platform-section { padding: 36px 20px; }
  .platform-grid { grid-template-columns: 1fr; }

  .ex-section { padding: 36px 20px; }
  .ex-card-body { flex-direction: column; height: auto; }
  .ex-chart-wrap { height: 180px; }
  .ex-sidebar { width: 100%; border-left: none; border-top: 1px solid var(--line); max-height: 180px; }

  .stickers-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0; }
  .stick { padding: 18px 12px; }
  #stick-img { width: 65%; }

  .spec-row { grid-template-columns: 1fr; }
  .spec-key { border-right: none; border-bottom: 1px solid var(--line); padding: 12px 16px 8px; }
  .spec-val { padding: 8px 16px 14px; }

  .page-footer { padding: 24px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }

  .select-items { width: 92%; height: 86%; }

  .num-item { padding: 18px 20px; gap: 14px; }

  .contact-card { flex-direction: column; text-align: center; }
  .contact-icon { margin: 0 auto; }

  .content-block-title { font-size: 18px; }
  .page-hero-title { font-size: 28px; }

  /* Inline download button mobile full width */
  .btn-primary, .btn-outline {
    font-size: 14.5px;
  }

}

/* ************************************************************************************************************************************************************************************
   LEARN PAGE — Legacy content adapter
************************************************************************************************************************************************************************************ */
.learn-content .title {
  margin-bottom: 16px;
  margin-top: 40px;
}

.learn-content .title p1 {
  font-family: "Funnel Display", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.03em;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--black);
  background-clip: unset;
  animation: none;
}

.learn-content .passage {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 24px;
  display: block;
}

.learn-content .passage p2 {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--warm-gray);
  display: block;
}

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

.learn-content .high-box {
  background: var(--black);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  width: 100%;
}

.learn-content .high-head {
  background: #1a1612;
  border-bottom: 1px solid #2a2520;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.learn-content .high-head p8 {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--warm-gray);
}

.learn-content p5 {
  display: block;
  padding: 16px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(201,162,74,0.7);
  word-break: break-all;
  white-space: pre-wrap;
}

.learn-content .links {
  margin-top: 32px;
}

/* ============================================================
   EXCHANGE GRAPHS — COMPLETE MOBILE FIX (NO OVERLAPPING)
   Paste this at the very bottom of your style.css
   Replaces any previous exchange mobile fix you added
   ============================================================ */

/* ── BASE (all screens) ────────────────────────────────── */
.ex-card-body {
  display: flex;
  height: 220px;
}

.ex-chart-wrap {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 14px 14px 14px 10px;
  box-sizing: border-box;
  overflow: hidden;
}

.ex-chart-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.ex-sidebar {
  width: 185px;
  flex-shrink: 0;
  border-left: 1px solid var(--line);
  overflow-y: auto;
  padding: 6px 0;
  background: var(--cream);
  box-sizing: border-box;
}

/* ── TABLET (≤ 900px) ──────────────────────────────────── */
@media (max-width: 900px) {
  .ex-card-body { height: 210px; }
  .ex-sidebar   { width: 165px; }
}

/* ── MOBILE (≤ 680px) ──────────────────────────────────── */
@media (max-width: 680px) {

  /* Stack vertically — chart on top, sidebar below */
  .ex-card-body {
    flex-direction: column;
    height: auto !important;
  }

  /* Chart gets its own fixed height — tall enough for Y-axis numbers */
  .ex-chart-wrap {
    width: 100%;
    height: 180px;
    flex: none;
    /* Left padding gives Y-axis labels breathing room so they don't clip */
    padding: 22px 12px 28px 68px;
  }

  /* Sidebar becomes a full-width scrollable strip below the chart */
  .ex-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--line);
    max-height: 170px;
    overflow-y: auto;
  }

  /* Sidebar rows: flag+code on left, number on right, nothing wrapping */
  .sb-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 14px;
    font-size: 11.5px;
    white-space: nowrap;
  }

  .sb-row span:last-child {
    font-family: "DM Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.02em;
  }

  /* Card header wraps cleanly on narrow screens */
  .ex-card-head {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .ex-val {
    font-size: 16px;
    letter-spacing: -0.02em;
  }

  /* Meta line allowed to wrap — prevents it overflowing the card */
  .ex-meta {
    font-size: 10px;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
  }

  .ex-badge { white-space: nowrap; }
  .ex-title { font-size: 13.5px; }

  #status-bar {
    font-size: 10px;
    word-break: break-word;
  }
}

/* ── SMALL PHONES (≤ 400px) ────────────────────────────── */
@media (max-width: 400px) {

  .ex-chart-wrap {
    height: 160px;
    /* Extra left room for 6-decimal Y-axis numbers on very narrow screens */
    padding: 20px 8px 26px 70px;
  }

  .ex-val   { font-size: 14px; }
  .ex-meta  { font-size: 9.5px; }
  .ex-title { font-size: 12.5px; }

  .sb-row              { font-size: 11px;   padding: 5px 12px; }
  .sb-row span:last-child { font-size: 10.5px; }
}

/* ── PLATES ─────────────────────────────────────── */
.plates {
  position: relative;
  width: 100%;
  height: 470px;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.plates::-webkit-scrollbar { display: none; }

.plates .stock-plates {
  position: absolute;
  width: auto;
  height: 440px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  left: 0;
  padding: 0 30px;
  cursor: grab;
  user-select: none;
  will-change: transform;
  transition: none;
}

.plates .stock-plates.is-snapping {
  transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.plates .stock-plates.is-dragging { cursor: grabbing; }

.stock-plates .plate-space {
  position: relative;
  margin: 0 8px;
  width: 320px;
  height: 430px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s;
}

.plate-space .space-pit {
  position: absolute;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: transparent;
  top: 0;
}

.space-pit img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  draggable: false;
}

.space-pit img:hover { transform: scale(1.07); }

.space-pit p18 {
  position: absolute;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 20px;
  color: white;
  font-weight: 400;
  z-index: 1;
  pointer-events: none;
  left: 18px;
  top: 18px;
}

.plate-space p19 {
  position: absolute;
  font-size: 15px;
  line-height: 1.6;
  color: white;
  bottom: 14px;
  left: 15px;
  width: 80%;
  transition: all 0.3s;
}

.plate-space p19:hover{
  background: rgba(255, 255, 255, 0.738);
  border: 0.1px solid rgb(255, 255, 255);
  backdrop-filter: blur(10px);
  padding: 10px;
  border-radius: 8px;
  color: black;
}

/* tablet */
@media (max-width: 1024px) {
  .plates { height: 440px; }
  .plates .stock-plates { height: 415px; }
  .stock-plates .plate-space { width: 300px; height: 400px; }
  .space-pit p18 { font-size: 26px; }
  .plate-space p19 { font-size: 13.5px; }
}

/* mobile */
@media (max-width: 680px) {
  .plates { height: 340px; }
  .plates .stock-plates { height: 315px; padding: 0 16px; }
  .stock-plates .plate-space { width: 220px; height: 300px; margin: 0 6px; }
  .space-pit p18 { font-size: 18px; }
  .plate-space p19 { font-size: 12px; bottom: 5px; }
}