@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   SITE31 — PREMIUM DARK FINTECH / GLASSMORPHISM
   ==========================================================================
   Design language:
   - Glassmorphism cards (backdrop-blur, translucent borders)
   - Bento grid layouts (mixed-size tiles)
   - Centered hero with floating stat cards
   - Mesh gradient backgrounds
   - Premium spacing & micro-interactions
   ========================================================================== */

/* ── CSS VARIABLES ──────────────────────────────────────────────────────── */
:root {
  --primary:       #F0B429;
  --primary-dark:  #C99A1F;
  --primary-light: #FFF8E1;
  --secondary:     #0A1628;
  --accent:        #00C896;
  --accent-light:  #E6F9F4;

  --white:         #FFFFFF;
  --gray-50:       #F8FAFC;
  --gray-100:      #F1F5F9;
  --gray-200:      #E2E8F0;
  --gray-300:      #CBD5E1;
  --gray-400:      #94A3B8;
  --gray-500:      #64748B;
  --gray-600:      #475569;
  --gray-700:      #334155;
  --gray-800:      #1E293B;
  --gray-900:      #0F172A;

  --font:          'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --radius-2xl:    32px;
  --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm:     0 1px 2px rgba(0,0,0,0.05);
  --shadow:        0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:     0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl:     0 20px 60px rgba(0,0,0,0.15);

  --max-width:     1200px;
  --header-h:      72px;
  --topbar-h:      38px;

  /* Glass effect */
  --glass-bg:      rgba(15, 23, 42, 0.6);
  --glass-border:  rgba(255, 255, 255, 0.08);
  --glass-blur:    20px;
  --glass-shine:   linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 50%);

  /* Mesh gradients */
  --mesh-1:        radial-gradient(ellipse at 20% 50%, rgba(240,180,41,0.08) 0%, transparent 50%);
  --mesh-2:        radial-gradient(ellipse at 80% 20%, rgba(0,200,150,0.06) 0%, transparent 50%);
  --mesh-3:        radial-gradient(ellipse at 50% 80%, rgba(99,102,241,0.05) 0%, transparent 50%);

  /* Semantic aliases for inner pages */
  --light:         #FFFFFF;
  --dark:          #0A1628;
  --muted:         #94A3B8;
  --border:        rgba(255,255,255,0.08);
  --card-bg:       rgba(15, 23, 42, 0.6);
  --bg:            #060B16;
  --text:          #E2E8F0;
}

/* ── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: #060B16;
  color: #E2E8F0;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ── GLASS UTILITY ──────────────────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-shine);
  pointer-events: none;
}

/* ── LAYOUT ─────────────────────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.section-alt {
  background: #060B16;
  background-image: var(--mesh-1), var(--mesh-3);
}
.section-dark {
  background: #0A0F1E;
  background-image: var(--mesh-2), var(--mesh-3);
  color: var(--white);
}

/* Section headers */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
  font-size: 2.4rem; font-weight: 800; color: #F1F5F9;
  margin-bottom: 14px; line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-header p {
  font-size: 1.05rem; color: #94A3B8;
  max-width: 540px; margin: 0 auto; line-height: 1.6;
}

.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: 2.4rem; font-weight: 800; color: #E2E8F0; margin: 12px 0; line-height: 1.2; }
.section-head p  { font-size: 1.1rem; color: #94A3B8; max-width: 560px; margin: 0 auto; }
.section-head-light h2,
.section-head-light p { color: var(--white); }

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(240,180,41,0.12);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(240,180,41,0.15);
}
.section-tag-light { background: rgba(240,180,41,0.2); color: var(--primary); }
.section-cta { text-align: center; margin-top: 48px; }
.cta-note { display: block; margin-top: 12px; font-size: 0.82rem; color: var(--gray-400); }

/* ── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius); font-size: 0.88rem;
  font-weight: 600; transition: all var(--transition); white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
  opacity: 0; transition: opacity var(--transition);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #D4A020 100%);
  color: #0A1628;
  box-shadow: 0 4px 20px rgba(240,180,41,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(240,180,41,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: #CBD5E1;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #F1F5F9;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent; color: #CBD5E1;
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-outline:hover {
  border-color: var(--primary); color: var(--primary);
  background: rgba(240,180,41,0.08);
}

.btn-sm { padding: 8px 18px; font-size: 0.82rem; border-radius: var(--radius-sm); }
.btn-xl { padding: 16px 40px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-lg { padding: 14px 32px; font-size: 0.95rem; border-radius: var(--radius); }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ── TICKER BAR ─────────────────────────────────────────────────────────── */
.ticker {
  overflow: hidden;
  background: rgba(10,22,40,0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 10px 0;
}
.ticker-inner {
  display: flex; gap: 48px; white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-item { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ticker-pair  { font-weight: 700; color: var(--white); font-size: 0.8rem; letter-spacing: 0.02em; }
.ticker-price { font-weight: 500; color: var(--gray-300); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.ticker-change { font-size: 0.76rem; font-weight: 600; }
.ticker-change.up { color: var(--accent); }
.ticker-change.down { color: #F87171; }

/* ── HEADER — Floating Glass Navbar ─────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(6,11,22,0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center;
}
.header-inner,
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; gap: 32px;
}
.logo { font-size: 1.4rem; font-weight: 900; color: #F1F5F9; flex-shrink: 0; letter-spacing: -0.02em; }
.logo span { color: var(--primary); }
.logo img { height: 36px; width: auto; }

.nav-main { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; font-size: 0.82rem; font-weight: 600;
  color: #94A3B8; letter-spacing: 0.02em;
  transition: all var(--transition); white-space: nowrap;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}
.nav-link:hover { color: #F1F5F9; background: rgba(255,255,255,0.05); }
.nav-link .chevron { font-size: 0.5rem; transition: transform var(--transition); margin-top: 1px; }
.nav-item:hover .chevron { transform: rotate(180deg); }

/* Dropdown — glass panels */
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 10px 6px; min-width: 220px; opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; font-size: 0.84rem; font-weight: 500; color: #94A3B8;
  border-radius: var(--radius-sm); transition: all var(--transition);
}
.nav-dropdown a:hover {
  color: var(--primary); background: rgba(240,180,41,0.08);
}

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 1100; }
.nav-toggle span { display: block; width: 22px; height: 2.5px; background: #94A3B8; border-radius: 2px; transition: all var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO — Centered with Floating Glass Stats ──────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: #060B16;
  padding: 80px 0 60px;
  min-height: 85vh;
  display: flex; align-items: center;
}
/* Mesh gradient background */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(240,180,41,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(0,200,150,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(99,102,241,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-shape { position: absolute; border-radius: 50%; opacity: 0.4; }
.hero-shape--1 {
  width: 600px; height: 600px; top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(240,180,41,0.1) 0%, transparent 60%);
  animation: hero-pulse 10s ease-in-out infinite;
}
.hero-shape--2 {
  width: 400px; height: 400px; bottom: -100px; left: -50px;
  background: radial-gradient(circle, rgba(0,200,150,0.06) 0%, transparent 60%);
  animation: hero-pulse 8s ease-in-out infinite reverse;
}
@keyframes hero-pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.1); opacity: 0.6; }
}

.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 48px;
}
.hero-text { max-width: 720px; }
.hero-regs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px;
  justify-content: center;
}

.hero h1 {
  font-size: 3.8rem; font-weight: 900; line-height: 1.08; color: #F1F5F9;
  margin-bottom: 24px; letter-spacing: -0.03em;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.15rem; color: #94A3B8; margin-bottom: 36px;
  line-height: 1.7; max-width: 580px; margin-left: auto; margin-right: auto;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Floating Stats Row */
.hero-stats-float {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  width: 100%; max-width: 900px;
}
.hero-stat-card {
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 20px 12px; text-align: center;
  position: relative; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-stat-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240,180,41,0.2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 20px rgba(240,180,41,0.05);
}
.hs-val {
  display: block; font-size: 1.3rem; font-weight: 800; color: #F1F5F9;
  line-height: 1; margin-bottom: 6px;
}
.hs-lbl {
  display: block; font-size: 0.65rem; font-weight: 600; color: #64748B;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* Hero Trading Card — glass terminal */
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 480px;
}
.hero-card {
  width: 100%;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-2xl);
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03);
  position: relative; overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 40%);
  pointer-events: none;
}
.hc-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hc-dots { display: flex; gap: 6px; }
.hc-dots span { width: 10px; height: 10px; border-radius: 50%; }
.hc-dots span:nth-child(1) { background: #FF5F57; }
.hc-dots span:nth-child(2) { background: #FFBD2E; }
.hc-dots span:nth-child(3) { background: #27C93F; }
.hc-title { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; color: var(--gray-500); }
.hc-live { display: flex; align-items: center; gap: 6px; font-size: 0.68rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1; box-shadow: 0 0 8px var(--accent)} 50%{opacity:0.3; box-shadow: none} }

.hc-pairs { position: relative; z-index: 1; margin-bottom: 16px; }

/* Terminal Pair Rows */
.terminal-pair-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,0.05);
  gap: 12px; border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.terminal-pair-row:hover { background: rgba(255,255,255,0.03); }
.terminal-pair-row:last-child { border-bottom: none; }
.pair-name { font-weight: 700; font-size: 0.85rem; color: #CBD5E1; min-width: 75px; }
.pair-price { font-weight: 700; font-size: 0.9rem; color: #F1F5F9; font-variant-numeric: tabular-nums; min-width: 70px; text-align: center; }
.pair-change { font-size: 0.76rem; font-weight: 600; min-width: 70px; text-align: center; }
.pair-change.up { color: var(--accent); }
.pair-change.down { color: #EF4444; }
.pair-spread { font-size: 0.73rem; color: var(--gray-500); min-width: 50px; text-align: right; }

.hc-actions { position: relative; z-index: 1; display: flex; gap: 10px; }
.terminal-buy {
  flex: 1; padding: 12px 16px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent) 0%, #00A87A 100%);
  color: var(--white); font-weight: 700; font-size: 0.82rem; text-align: center;
  cursor: pointer; transition: all var(--transition); border: none;
  box-shadow: 0 4px 16px rgba(0,200,150,0.25);
}
.terminal-buy:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,200,150,0.35); }
.terminal-sell {
  flex: 1; padding: 12px 16px; border-radius: var(--radius);
  background: rgba(239,68,68,0.9); color: var(--white); font-weight: 700; font-size: 0.82rem;
  text-align: center; cursor: pointer; transition: all var(--transition); border: none;
}
.terminal-sell:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(239,68,68,0.3); }
.terminal-buy-sub, .terminal-sell-sub { display: block; font-size: 0.6rem; font-weight: 400; opacity: 0.8; margin-top: 2px; }

/* ── REG BADGES ─────────────────────────────────────────────────────────── */
.reg-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 14px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  font-size: 0.73rem; font-weight: 600; color: #CBD5E1;
}

/* ── STATS BAND ─────────────────────────────────────────────────────────── */
.stats-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 48px 0; color: var(--white);
}
.counter-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.counter-num { display: block; font-size: 2.8rem; font-weight: 900; line-height: 1; margin-bottom: 8px; }
.counter-label { font-size: 0.88rem; font-weight: 500; opacity: 0.85; }

/* ── ACCOUNTS — Glass Bento Grid ────────────────────────────────────────── */
.accounts-grid-v2 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: stretch;
}
.acct-card-v2 {
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 28px 18px 22px;
  text-align: center;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.3s ease;
}
.acct-card-v2::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 40%);
  pointer-events: none;
}
.acct-card-v2:hover {
  border-color: rgba(240,180,41,0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 24px rgba(240,180,41,0.05);
}
.acct-card-v2.acct-featured {
  border-color: rgba(240,180,41,0.3);
  background: rgba(240,180,41,0.06);
  box-shadow: 0 0 0 1px rgba(240,180,41,0.1), 0 8px 32px rgba(0,0,0,0.2);
}
.acct-card-v2.acct-featured::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.acct-ribbon {
  position: absolute; top: 12px; right: -6px;
  background: var(--accent); color: #0A1628;
  padding: 4px 16px 4px 12px; font-size: 0.68rem; font-weight: 800;
  border-radius: 4px 0 0 4px; text-transform: uppercase; letter-spacing: 0.05em;
}
.acct-ribbon::after {
  content: ''; position: absolute; bottom: -5px; right: 0;
  border-left: 6px solid #00A87A; border-bottom: 5px solid transparent;
}
.acct-header { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px; position: relative; z-index: 1; }
.acct-icon-v2 { font-size: 2rem; line-height: 1; }
.acct-name-v2 { font-size: 1rem; font-weight: 800; color: #F1F5F9; }
.acct-price { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); position: relative; z-index: 1; }
.acct-deposit-v2 { display: block; font-size: 1.8rem; font-weight: 900; color: #F1F5F9; line-height: 1; }
.acct-deposit-label { display: block; font-size: 0.7rem; font-weight: 500; color: #64748B; margin-top: 6px; }
.acct-specs-v2 { margin-bottom: 18px; flex: 1; position: relative; z-index: 1; }
.acct-spec { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.8rem; }
.acct-spec span:first-child { color: #64748B; }
.acct-spec span:last-child { font-weight: 600; color: #CBD5E1; }

/* ── MARKETS — Bento Grid Cards ─────────────────────────────────────────── */
.markets-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mkt-row {
  display: flex; flex-direction: column; gap: 14px;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative; overflow: hidden;
  transition: all 0.3s ease;
}
.mkt-row::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,0.03) 0%, transparent 40%);
  pointer-events: none;
}
.mkt-row:hover {
  border-color: rgba(240,180,41,0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
/* Make first two market cards span more space */
.mkt-row:nth-child(1) { grid-column: span 2; }
.mkt-row:nth-child(1) { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
.mkt-row:nth-child(1) .mkt-stats { flex-direction: row; }
.mkt-icon-col {
  flex-shrink: 0; width: 52px; height: 52px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.mkt-emoji { font-size: 1.5rem; }
.mkt-info { flex: 1; min-width: 0; }
.mkt-name {
  font-weight: 700; font-size: 0.95rem; color: #F1F5F9;
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.mkt-count-tag {
  font-size: 0.68rem; font-weight: 600; color: var(--primary);
  background: rgba(240,180,41,0.1); border: 1px solid rgba(240,180,41,0.12);
  padding: 2px 8px; border-radius: 100px;
}
.mkt-desc { font-size: 0.82rem; color: #94A3B8; line-height: 1.4; }
.mkt-stats { display: flex; align-items: center; gap: 16px; flex-shrink: 0; margin-top: auto; }
.mkt-stat { text-align: center; }
.mkt-stat-val { display: block; font-size: 0.85rem; font-weight: 700; color: #F1F5F9; line-height: 1; }
.mkt-stat-lbl { display: block; font-size: 0.62rem; font-weight: 500; color: #64748B; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 3px; }
.mkt-trade-btn {
  padding: 8px 18px; border-radius: var(--radius);
  background: rgba(240,180,41,0.12); border: 1px solid rgba(240,180,41,0.15);
  color: var(--primary); font-weight: 600; font-size: 0.8rem; white-space: nowrap;
  transition: all var(--transition);
}
.mkt-trade-btn:hover {
  background: var(--primary); color: #0A1628;
  box-shadow: 0 4px 16px rgba(240,180,41,0.25);
}

/* ── PLATFORMS — Wide Glass Panels ──────────────────────────────────────── */
.platforms-grid-v2 {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.plat-panel-v2 {
  display: flex; gap: 20px;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative; overflow: hidden;
  transition: all 0.3s ease;
}
.plat-panel-v2::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}
.plat-panel-v2:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.plat-visual { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.plat-emoji { font-size: 2.6rem; line-height: 1; }
.plat-badge {
  font-size: 0.6rem; font-weight: 700; color: var(--accent);
  background: rgba(0,200,150,0.1); border: 1px solid rgba(0,200,150,0.12);
  padding: 3px 10px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.plat-body { flex: 1; position: relative; z-index: 1; }
.plat-name-v2 { font-size: 1.1rem; font-weight: 700; color: #F1F5F9; margin-bottom: 6px; }
.plat-desc-v2 { font-size: 0.85rem; color: #94A3B8; line-height: 1.5; margin-bottom: 14px; }
.plat-features-v2 { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.plat-chip {
  font-size: 0.73rem; font-weight: 500; color: #94A3B8;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  padding: 4px 10px; border-radius: var(--radius-sm);
}
.plat-dl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.dl-chip {
  padding: 6px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  font-size: 0.74rem; font-weight: 500; color: #94A3B8;
  transition: all var(--transition);
}
.dl-chip:hover { border-color: var(--primary); color: var(--primary); background: rgba(240,180,41,0.08); }

/* ── WHY US — Bento Grid (mixed sizes) ──────────────────────────────────── */
.why-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 14px;
}
.why-row-v2 {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative; overflow: hidden;
  transition: all 0.3s ease;
}
.why-row-v2::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,0.02) 0%, transparent 50%);
  pointer-events: none;
}
.why-row-v2:hover {
  border-color: rgba(240,180,41,0.15);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}
/* Make first and last cards span 2 columns for bento effect */
.why-row-v2:nth-child(1) { grid-column: span 2; }
.why-row-v2:nth-child(6) { grid-column: span 2; }
.why-num {
  font-size: 1.8rem; font-weight: 900;
  background: linear-gradient(135deg, rgba(240,180,41,0.3), rgba(240,180,41,0.1));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0; min-width: 32px; line-height: 1;
}
.why-icon-v2 { font-size: 1.4rem; flex-shrink: 0; line-height: 1; }
.why-title-v2 { font-weight: 700; font-size: 0.95rem; color: #F1F5F9; margin-bottom: 4px; }
.why-text-v2 { font-size: 0.82rem; color: rgba(255,255,255,0.55); line-height: 1.5; }

/* ── FUNDING — Glass Row Items ──────────────────────────────────────────── */
.funding-grid-v2 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.fund-item-v2 {
  display: flex; align-items: center; gap: 12px;
  background: rgba(15,23,42,0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  transition: all var(--transition);
}
.fund-item-v2:hover {
  border-color: rgba(255,255,255,0.1);
  background: rgba(15,23,42,0.6);
  transform: translateY(-2px);
}
.fund-icon-v2 { font-size: 1.4rem; flex-shrink: 0; }
.fund-name-v2 { font-weight: 600; color: #CBD5E1; font-size: 0.86rem; flex: 1; }
.fund-time, .fund-fee { font-size: 0.76rem; color: var(--gray-500); white-space: nowrap; }
.fund-time::before { content: '⏱ '; }
.fund-fee::before { content: '💲 '; }

/* ── REGULATION — Glass Shield Cards ────────────────────────────────────── */
.reg-grid-v2 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.reg-item-v2 {
  display: flex; align-items: center; gap: 14px;
  background: rgba(15,23,42,0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-xl);
  padding: 22px;
  transition: all 0.3s ease;
}
.reg-item-v2:hover {
  border-color: rgba(240,180,41,0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.reg-shield { font-size: 1.8rem; flex-shrink: 0; }
.reg-auth { font-weight: 700; color: #F1F5F9; font-size: 0.92rem; }
.reg-sub { font-size: 0.78rem; color: #94A3B8; margin-top: 2px; }

/* ── AWARDS — Glass Star Cards ──────────────────────────────────────────── */
.awards-grid-v2 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.award-item-v2 {
  background: rgba(15,23,42,0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-xl);
  padding: 24px; text-align: center;
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.award-item-v2::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 50%);
  pointer-events: none;
}
.award-item-v2:hover {
  border-color: rgba(240,180,41,0.15);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}
.award-star { font-size: 0.9rem; margin-bottom: 10px; }
.award-title-v2 { font-weight: 700; color: #F1F5F9; font-size: 0.9rem; margin-bottom: 4px; }
.award-meta-v2 { font-size: 0.76rem; color: #64748B; }

/* ── STEPS — Glass Step Cards ───────────────────────────────────────────── */
.steps-row {
  display: flex; align-items: flex-start; justify-content: center; gap: 0;
  max-width: 960px; margin: 0 auto;
}
.step-item,
.step-card {
  text-align: center; padding: 32px 24px; flex: 1; position: relative;
  background: rgba(15,23,42,0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #0A1628; font-weight: 800; font-size: 0.9rem; margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(240,180,41,0.25);
}
.step-icon { font-size: 2.2rem; margin-bottom: 12px; }
.step-item h4, .step-card h3 { font-weight: 700; font-size: 1.05rem; color: #F1F5F9; margin-bottom: 8px; }
.step-item p, .step-card p   { font-size: 0.84rem; color: #94A3B8; line-height: 1.6; }
.step-arrow {
  font-size: 1.6rem; color: var(--primary); padding-top: 48px; flex-shrink: 0; opacity: 0.4;
}

/* ── CTA SECTION ────────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #0A1628 0%, #0F1F3A 100%);
  background-image: var(--mesh-1), var(--mesh-2);
  padding: 80px 0; text-align: center;
}
.cta-actions {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.cta-actions .btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #0A1628; }
.cta-actions .btn-secondary {
  background: rgba(255,255,255,0.06); color: var(--white);
  border: 1px solid rgba(255,255,255,0.12);
}
.cta-actions .btn-secondary:hover {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, #0F1F3A 100%);
  padding: 64px 0; color: var(--white);
}
.cta-banner-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-banner-inner h2 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.cta-banner-inner p  { font-size: 1.05rem; opacity: 0.7; }
.cta-buttons { display: flex; gap: 14px; flex-shrink: 0; }

/* ── CHART BOX ──────────────────────────────────────────────────────────── */
.chart-box {
  background: rgba(15,23,42,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* ── FOOTER — Premium Glass ─────────────────────────────────────────────── */
.site-footer {
  background: #050910;
  border-top: 1px solid rgba(255,255,255,0.04);
  color: var(--gray-400); padding: 72px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px;
}
.footer-brand .logo { font-size: 1.4rem; font-weight: 800; color: #F1F5F9; margin-bottom: 12px; }
.footer-brand .logo span { color: var(--primary); }
.footer-brand p { font-size: 0.84rem; line-height: 1.6; color: #64748B; }
.footer-col h4 {
  font-size: 0.78rem; font-weight: 700; color: #94A3B8; margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.84rem; color: #64748B; transition: color var(--transition); }
.footer-col a:hover { color: var(--primary); }

.footer-risk {
  font-size: 0.73rem; color: #475569; line-height: 1.7;
  padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 24px;
}

.footer-bottom { font-size: 0.76rem; color: var(--gray-600); }
.footer-legal-info { margin-bottom: 8px; }
.footer-legal-links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-legal-links a { color: #475569; transition: color var(--transition); }
.footer-legal-links a:hover { color: var(--primary); }
.footer-copyright { color: #334155; }

/* ── BADGE ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.badge-accent { background: rgba(240,180,41,0.1); color: var(--primary); border: 1px solid rgba(240,180,41,0.12); }

/* ── TOPBAR ─────────────────────────────────────────────────────────────── */
.topbar {
  background: var(--secondary); color: var(--gray-400);
  font-size: 0.78rem; font-weight: 500; height: var(--topbar-h);
  display: flex; align-items: center;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }

/* ── SECTION WHITE / GRAY / GREEN ───────────────────────────────────────── */
.section-white { background: rgba(15,23,42,0.4); }
.section-gray  { background: #060B16; }
.section-green { background: linear-gradient(135deg, var(--secondary) 0%, #0F1F3A 100%); }

/* ── COOKIE BANNER ──────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 18px 24px; display: flex; align-items: center; gap: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5); z-index: 9999;
  max-width: 560px; width: calc(100% - 40px);
  font-size: 0.82rem; color: #94A3B8;
}
.cookie-banner p { flex: 1; }
.cookie-banner a { color: var(--primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-banner.hidden { display: none; }

/* ── SCROLL REVEAL ──────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.8rem; }
  .hero-stats-float { grid-template-columns: repeat(3, 1fr); }
  .hero-visual { max-width: 420px; }
  .markets-grid-v2 { grid-template-columns: repeat(2, 1fr); }
  .mkt-row:nth-child(1) { grid-column: span 2; display: grid; grid-template-columns: auto 1fr auto; }
  .accounts-grid-v2 { grid-template-columns: repeat(3, 1fr); }
  .platforms-grid-v2 { grid-template-columns: 1fr; }
  .why-grid-v2 { grid-template-columns: repeat(2, 1fr); }
  .why-row-v2:nth-child(1) { grid-column: span 2; }
  .why-row-v2:nth-child(6) { grid-column: span 2; }
  .funding-grid-v2 { grid-template-columns: repeat(2, 1fr); }
  .reg-grid-v2 { grid-template-columns: repeat(2, 1fr); }
  .awards-grid-v2 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .steps-row { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 8px 0; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-header h2 { font-size: 1.8rem; }
  .hero { padding: 60px 0 40px; min-height: auto; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats-float { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero-stat-card { padding: 14px 8px; }
  .hs-val { font-size: 1.1rem; }
  .topbar { display: none; }

  /* Mobile: hide nav links, show toggle */
  .nav-links { display: none; }
  #nav-cta { display: none; }
  .nav-actions { display: flex; }
  .nav-toggle { display: flex; }

  /* Mobile nav — glass overlay */
  .nav-links.mobile-open {
    display: flex; flex-direction: column; position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: rgba(6,11,22,0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 16px 0; gap: 0;
    overflow-y: auto; z-index: 1050;
  }
  .nav-links.mobile-open .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .nav-links.mobile-open .nav-item:last-child { border-bottom: none; }
  .nav-links.mobile-open .nav-link {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 24px; font-size: 1rem; font-weight: 600;
    color: #CBD5E1; border-radius: 0;
    text-transform: uppercase; letter-spacing: 0.03em;
  }
  .nav-links.mobile-open .nav-link::after { display: none; }
  .nav-links.mobile-open .nav-link:active { background: rgba(255,255,255,0.05); }
  .nav-links.mobile-open .nav-link .chevron {
    font-size: 0.7rem; transition: transform 0.2s ease;
  }
  .nav-links.mobile-open .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-radius: 0;
    padding: 0; max-height: 0; overflow: hidden;
    background: rgba(255,255,255,0.02);
    backdrop-filter: none;
    transition: max-height 0.3s ease;
  }
  .nav-links.mobile-open .nav-item.mobile-expanded .nav-dropdown {
    max-height: 400px;
  }
  .nav-links.mobile-open .nav-item.mobile-expanded .chevron {
    transform: rotate(180deg);
  }
  .nav-links.mobile-open .nav-dropdown a {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 40px; font-size: 0.9rem; font-weight: 500;
    color: #94A3B8; border-radius: 0;
    border-left: 2px solid transparent;
    border-bottom: 1px solid rgba(255,255,255,0.03);
  }
  .nav-links.mobile-open .nav-dropdown a:last-child { border-bottom: none; }
  .nav-links.mobile-open .nav-dropdown a:active {
    background: rgba(240,180,41,0.06);
    border-left-color: var(--primary);
  }
  .nav-links.mobile-open .nav-item:hover .nav-dropdown { max-height: 0; }
  .nav-links.mobile-open .nav-item.mobile-expanded:hover .nav-dropdown { max-height: 400px; }
  .mobile-nav-cta {
    display: flex; flex-direction: column; gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 8px;
  }
  .mobile-nav-cta .btn { width: 100%; justify-content: center; }

  .markets-grid-v2 { grid-template-columns: 1fr; }
  .mkt-row:nth-child(1) { grid-column: span 1; display: flex; }
  .mkt-row:nth-child(1) .mkt-stats { flex-direction: column; }
  .mkt-stats { flex-direction: column; gap: 8px; width: 100%; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.05); }
  .accounts-grid-v2 { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .why-grid-v2 { grid-template-columns: 1fr; }
  .why-row-v2:nth-child(1),
  .why-row-v2:nth-child(6) { grid-column: span 1; }
  .funding-grid-v2 { grid-template-columns: 1fr; }
  .reg-grid-v2 { grid-template-columns: 1fr; }
  .awards-grid-v2 { grid-template-columns: 1fr 1fr; }
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── SUBPAGE HEADER BUTTONS ──────────────────────────────────────────────
   #nav-cta / #nav-login are plain divs filled by main.js; without a layout
   rule their buttons stacked vertically and pushed out of the header. */
.nav-inner .nav-cta,
.nav-inner .nav-login {
  display: flex; align-items: center; gap: 8px; flex: none;
}
.nav-inner .nav-cta .btn,
.nav-inner .nav-login .btn { white-space: nowrap; }
.nav-inner .nav-links { min-width: 0; }

@media (max-width: 1024px) {
  .nav-inner .nav-cta, .nav-inner .nav-login { display: none; }
  .nav-inner .nav-toggle { display: flex; margin-left: auto; }
}

/* ── SUBPAGE HEADER FIT ──────────────────────────────────────────────────
   Italian labels are noticeably longer than English (Piattaforme,
   Formazione, Chi siamo), which pushed the nav over the language switcher.
   Tighten the row so both languages fit, and collapse to the hamburger
   before they cannot. */
.nav-inner { gap: 18px; }
.nav-inner .nav-links { gap: 2px; flex-wrap: nowrap; min-width: 0; }
.nav-inner .nav-links > .nav-item > .nav-link { padding-left: 8px; padding-right: 8px; }

@media (max-width: 1280px) {
  .nav-inner { gap: 12px; }
  .nav-inner .nav-links > .nav-item > .nav-link { padding-left: 6px; padding-right: 6px; font-size: 0.86rem; }
}

@media (max-width: 1180px) {
  .nav-inner > .nav-links { display: none; }
  .nav-inner .nav-cta, .nav-inner .nav-login { display: none; }
  .nav-inner .nav-toggle { display: flex; margin-left: auto; }
  .nav-inner > .nav-links.mobile-open { display: flex; }
}

/* ── HOMEPAGE HEADER FIT ─────────────────────────────────────────────────
   .header-inner carries logo + 6 nav items + up to 3 buttons + the language
   switcher. Italian labels are longer than English, which pushed the row
   past the viewport, so tighten it and collapse before it can overflow. */
.header-inner { gap: 16px; }
.header-inner .nav-main { min-width: 0; }
.header-inner .nav-links { gap: 0; flex-wrap: nowrap; min-width: 0; }
.header-inner .nav-links > .nav-item > .nav-link { padding-left: 5px; padding-right: 5px; font-size: 0.8rem; }
.header-inner .nav-actions { flex: none; }

@media (max-width: 1180px) {
  .header-inner > .nav-main { display: none; }
  .header-inner .nav-actions { display: none; }
  .header-inner .nav-toggle { display: flex; margin-left: auto; }
}
