/* ═══════════════════════════════════════════════════
   NEXALTA AI — Professional Premium Design
   Design: refined, dark-accent, glass-morphism
═══════════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #fafbfc;
  --bg-alt:    #f0f2f5;
  --bg-card:   #ffffff;
  --text:      #0f172a;
  --text-mid:  #334155;
  --text-muted:#64748b;
  --accent:    #20465d;
  --accent-hover: #183649;
  --accent-light: #e8f0f5;
  --accent-glow: rgba(32,70,93,.2);
  --accent-sub: #b5c932;
  --accent-sub-light: #f0f5d0;
  --border:    #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.07), 0 2px 8px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.1), 0 4px 16px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.12);
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --section-pad: 6rem;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }
::selection { background: var(--accent); color: #fff; }

/* ── CONTAINER ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

#hero .container {
  min-width: 0;
  width: 100%;
}

/* ═══════════════════════════════════════════════════
   DECORATIVE ELEMENTS (global pseudo-elements)
═══════════════════════════════════════════════════ */
section { position: relative; padding: var(--section-pad) 0; }
.section-alt { background: var(--bg-alt); }

section::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* ── NAVBAR ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250,251,252,.88);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(226,232,240,.6);
  transition: box-shadow .3s, border-color .3s;
}
#navbar.scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.5rem;
}
.nav-inner > * { min-width: 0; }

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #20465d;
}
.nav-logo span { color: var(--accent-sub); }
.nav-logo .nx { color: var(--accent-sub); }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-mid);
  font-size: .88rem;
  font-weight: 500;
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  border: none;
  padding: .55rem 1.4rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 2px 8px var(--accent-glow);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.6rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
  border: none;
  line-height: 1.3;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.15);
  transform: translateX(-100%);
  transition: transform .4s ease;
}
.btn:hover::before { transform: translateX(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  box-shadow: 0 2px 12px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
  color: #fff;
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-mid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-full { width: 100%; justify-content: center; }

/* ── SECTION COMMON ── */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}
.section-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent-light), #d4e3ed);
  padding: .3rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(32,70,93,.12);
}
.section-header h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}
.section-header p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  font-size: .95rem;
  line-height: 1.7;
}
.accent { 
  background: linear-gradient(135deg, var(--accent), var(--accent-sub));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── HERO ── */
#hero {
  padding: 9rem 0 6rem;
  text-align: center;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--bg);
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle at 30% 20%, rgba(32,70,93,.08) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  border-radius: 50%;
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at 70% 80%, rgba(181,201,50,.06) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  border-radius: 50%;
  pointer-events: none;
}
#hero .container { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: #20465d;
  margin-bottom: .5rem;
}
.hero-title .nx { color: var(--accent-sub); }
.hero-title .reg { font-size: .5em; vertical-align: super; color: var(--accent-sub); }
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 400;
  color: var(--text-mid);
  margin-top: .6rem;
}
.hero-desc {
  color: var(--text-muted);
  max-width: 680px;
  margin: 1.2rem auto 2.2rem;
  font-size: .95rem;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.hero-buttons {
  display: flex;
  gap: .9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* ── TICKER ── */
.hero-ticker {
  max-width: 680px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  padding: .5rem .1rem;
  box-shadow: var(--shadow-sm);
}
.ticker-move {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item-up  { color: #059669; }
.ticker-item-down{ color: #dc2626; }

/* ── FEATURES ── */
#features::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(32,70,93,.04) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  border-radius: 50%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  cursor: default;
  transition: all .35s cubic-bezier(.25,.1,.25,1);
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-sub), transparent);
  opacity: 0;
  transition: opacity .35s;
}
.feature-card.visible {
  animation: fadeInUp .6s cubic-bezier(.25,.1,.25,1) forwards;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(32,70,93,.2);
}
.feature-card:hover::before { opacity: 1; }

.card-icon {
  width: 48px; height: 48px;
  color: var(--accent-sub);
  margin-bottom: 1.2rem;
  background: var(--accent-light);
  border-radius: 12px;
  padding: 8px;
  transition: transform .3s, background .3s;
}
.feature-card:hover .card-icon {
  transform: scale(1.05);
  background: var(--accent-sub-light);
}
.card-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .6rem;
}
.feature-card p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
}

/* ── SOVEREIGN AI ── */
#sovereign::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(32,70,93,.05) 0%, transparent 70%);
  top: -50px;
  right: -50px;
  border-radius: 50%;
}

/* ── SECTORS ── */
#sectors { padding: 4rem 0; }

.sectors-overview {
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.so-bars {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.so-tags {
  display: flex;
  gap: .6rem;
  justify-content: center;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}
.so-tag {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-sub);
  background: linear-gradient(135deg, var(--accent-light), #d4e3ed);
  padding: .25rem .9rem;
  border-radius: 20px;
  border: 1px solid rgba(32,70,93,.1);
}

.sector-card {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all .25s ease;
}
.sector-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(32,70,93,.2);
  transform: translateX(4px);
}

.sc-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-alt);
  border-radius: 4px;
  overflow: hidden;
}
.sc-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-sub));
  border-radius: 4px;
  transition: width .6s ease;
  box-shadow: 0 0 8px rgba(181,201,50,.3);
}

.sc-name {
  min-width: 130px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-mid);
}
.sc-pct {
  min-width: 36px;
  text-align: right;
  font-size: .85rem;
  font-weight: 700;
  color: var(--accent);
}

.sectors-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
  max-width: 1000px;
  margin: 0 auto 2.5rem;
}

.sd-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.sd-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-sub));
  transition: height .35s ease;
  border-radius: 0 2px 2px 0;
}
.sd-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(32,70,93,.15);
}
.sd-card:hover::before { height: 100%; }

.sd-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sd-pct {
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: .15rem .55rem;
  border-radius: 4px;
}
.sd-desc {
  font-size: .88rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: .8rem;
}
.sd-focus {
  list-style: none;
  padding: 0;
}
.sd-focus li {
  font-size: .8rem;
  color: var(--text-muted);
  padding: .25rem 0 .25rem 1.2rem;
  position: relative;
  line-height: 1.5;
}
.sd-focus li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.sectors-philosophy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.sectors-philosophy p {
  font-size: .92rem;
  color: var(--text-mid);
  line-height: 1.8;
  font-style: italic;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.sectors-philosophy p::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--accent);
  opacity: .15;
  position: absolute;
  top: -.2rem;
  left: .5rem;
  line-height: 1;
  font-style: normal;
}

/* ── STATS ── */
#stats {
  background: linear-gradient(135deg, #0d2b3a 0%, #183649 40%, var(--accent-hover) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
#stats::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(181,201,50,.1) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  border-radius: 50%;
}
#stats::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(32,70,93,.08) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  border-radius: 50%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-item {
  padding: 1rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
  transition: transform .3s, background .3s;
}
.stat-item:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.08);
}

.stat-number {
  display: block;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff 60%, rgba(255,255,255,.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  display: block;
  font-size: .85rem;
  margin-top: .6rem;
  opacity: .8;
  font-weight: 400;
  line-height: 1.4;
}

/* ── CHART ── */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s;
}
.chart-container:hover { box-shadow: var(--shadow-md); }

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.chart-title {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  flex-wrap: wrap;
}
.asset-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.asset-price {
  font-size: 1.3rem;
  font-weight: 700;
}
.asset-change {
  font-size: .85rem;
  font-weight: 600;
}
.positive { color: #059669; }
.negative { color: #dc2626; }

.chart-controls { display: flex; gap: .35rem; }
.time-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: .25rem .65rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 500;
  transition: all .2s;
}
.time-btn.active,
.time-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

#priceChart {
  width: 100%; height: 240px;
  display: block;
  border-radius: 8px;
}

.chart-loading-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-lg);
  z-index: 5;
  font-size: .85rem;
  color: var(--text-muted);
  transition: opacity .4s, visibility .4s;
}
.chart-container.loaded .chart-loading-overlay {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.chart-spinner {
  width: 30px; height: 30px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.chart-overlay-ai {
  position: absolute;
  top: 4.1rem;
  right: 1.5rem;
}
.ai-signal {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid rgba(5,150,105,.2);
  border-radius: 10px;
  padding: .5rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 500;
  color: #059669;
  flex-direction: column;
  text-align: center;
  box-shadow: 0 2px 8px rgba(5,150,105,.1);
}
.signal-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #059669;
  animation: signalPulse 1.5s infinite;
  position: absolute;
  top: .5rem;
  left: .5rem;
}
@keyframes signalPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(5,150,105,.4); }
  50%     { box-shadow: 0 0 0 8px rgba(5,150,105,0); }
}
.signal-confidence { color: var(--text-muted); font-size: .7rem; }

.market-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .8rem;
}
.market-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  transition: all .25s ease;
  cursor: default;
}
.market-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(32,70,93,.15);
}
.mc-name  { font-size: .75rem; color: var(--text-muted); font-weight: 500; }
.mc-price { font-size: 1rem; font-weight: 700; }
.mc-change{ font-size: .8rem; font-weight: 600; }

/* ── AI BRAIN ── */
#ai-brain { position: relative; }
#ai-brain::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at 80% 20%, rgba(32,70,93,.04) 0%, transparent 70%);
  top: -150px;
  right: -200px;
  border-radius: 50%;
}

.brain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.brain-text .section-header { text-align: left; margin-bottom: 1.5rem; }
.brain-text .section-header h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.brain-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.5rem; font-size: .93rem; }

.brain-list {
  list-style: none;
  margin-bottom: 2rem;
}
.brain-list li {
  padding: .7rem 0 .7rem 1.2rem;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
  color: var(--text-mid);
  position: relative;
  line-height: 1.5;
}
.brain-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.brain-list li:last-child { border-bottom: none; }

.brain-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ── ABOUT ── */
#about .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-text p {
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: .93rem;
}

.about-list {
  list-style: none;
  margin: 1rem 0 1.5rem;
}
.about-list li {
  padding: .55rem 0 .55rem 1.4rem;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  color: var(--text-mid);
  position: relative;
  line-height: 1.5;
}
.about-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: .6rem;
  top: .7rem;
}
.about-list li:last-child { border-bottom: none; }

.about-metrics {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.am-item {
  text-align: center;
  background: var(--accent-light);
  border: 1px solid rgba(32,70,93,.12);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  flex: 1;
  min-width: 100px;
  transition: transform .3s, box-shadow .3s;
}
.am-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.am-number {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}
.am-label {
  display: block;
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: .25rem;
}

.about-timeline h3 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.tl-item {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .9rem 0;
  border-left: 2px solid var(--border);
  padding-left: 1.4rem;
  position: relative;
  transition: border-color .3s;
}
.tl-item:hover { border-left-color: var(--accent); }
.tl-item:first-child { padding-top: 0; }
.tl-item:last-child { border-left-color: transparent; }

.tl-dot {
  position: absolute;
  left: -6px;
  top: 1.1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-alt);
  box-shadow: 0 0 0 3px rgba(32,70,93,.15);
}
.tl-year {
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 28px;
}
.tl-text {
  font-size: .88rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ── TESTIMONIALS ── */
#testimonials {
  overflow: hidden;
  position: relative;
}
#testimonials::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(32,70,93,.04) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  border-radius: 50%;
}

.testimonials-track {
  display: flex;
  gap: 1.2rem;
  animation: testimonialsScroll 25s linear infinite;
  width: max-content;
}
.testimonials-track:hover { animation-play-state: paused; }
@keyframes testimonialsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  width: 340px;
  flex-shrink: 0;
  transition: all .3s ease;
  position: relative;
}
.testimonial-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(32,70,93,.15);
}
.testimonial-card:hover::after { opacity: 1; }

.testimonial-card blockquote {
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.7;
  font-size: .9rem;
  margin-bottom: 1.2rem;
}
.testimonial-card blockquote::before {
  content: "\201C";
  color: var(--accent);
  font-size: 2.2rem;
  line-height: 0;
  vertical-align: -.35em;
  margin-right: .25rem;
  opacity: .6;
}

.t-author {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.t-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-sub-light));
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid rgba(32,70,93,.1);
}
.t-author strong { font-size: .88rem; }
.t-author small { color: var(--text-muted); font-size: .78rem; }

/* ── CONTACT ── */
#contact {
  background: var(--bg-alt);
  position: relative;
}
#contact::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(32,70,93,.04) 0%, transparent 70%);
  top: -100px;
  right: -50px;
  border-radius: 50%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}
.contact-form-col .section-header {
  text-align: left;
  margin-bottom: 2rem;
}
.contact-form-col .section-header p {
  margin: 0;
}

.contact-info-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.ci-block {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.ci-block:last-child { border-bottom: none; padding-bottom: 0; }

.ci-block h4 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: .6rem;
}
.ci-block p {
  font-size: .88rem;
  color: var(--text-mid);
  line-height: 1.7;
}
.ci-block a { color: var(--accent); font-weight: 500; }

.contact-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { position: relative; margin-bottom: 1rem; }

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .95rem 1rem .8rem;
  color: var(--text);
  font-family: var(--font);
  font-size: .92rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-group label {
  position: absolute;
  top: .85rem;
  left: 1rem;
  color: var(--text-muted);
  font-size: .88rem;
  transition: all .2s;
  pointer-events: none;
}
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: .15rem;
  font-size: .7rem;
  color: var(--accent);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: transparent; }

/* ── CTA BANNER ── */
#cta-banner {
  background: linear-gradient(135deg, #0d2b3a 0%, #183649 40%, var(--accent-hover) 70%, #20465d 100%);
  color: #fff;
  text-align: center;
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}
#cta-banner::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(181,201,50,.12) 0%, transparent 70%);
  top: -250px;
  left: -100px;
  border-radius: 50%;
}
#cta-banner::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(32,70,93,.08) 0%, transparent 70%);
  bottom: -150px;
  right: -50px;
  border-radius: 50%;
}

.cta-inner {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cta-inner h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .8rem;
  letter-spacing: -.02em;
}
.cta-inner p {
  font-size: 1rem;
  opacity: .85;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.cta-buttons {
  display: flex;
  gap: .9rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-buttons .btn-primary {
  background: #fff;
  color: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.cta-buttons .btn-primary:hover {
  background: #f0f0ff;
  color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}
.btn-inverse {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(4px);
}
.btn-inverse:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,.08);
  transform: translateY(-2px);
}

/* ── FOOTER ── */
footer {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: #94a3b8;
  padding: 4rem 0 2rem;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(181,201,50,.3), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .nav-logo { 
  color: #fff; 
  margin-bottom: .6rem; 
  font-size: 1.15rem; 
  background: none;
  -webkit-text-fill-color: #fff;
}
.footer-brand .nav-logo span { -webkit-text-fill-color: var(--accent-sub); }
.footer-brand p { font-size: .85rem; line-height: 1.7; color: #94a3b8; }

.footer-links h4 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #e2e8f0;
  margin-bottom: .8rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer-links a {
  color: #94a3b8;
  font-size: .85rem;
  transition: color .2s, transform .2s;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--accent-sub);
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8rem;
  color: #64748b;
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
  cursor: pointer;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: min(92vw, 680px);
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  padding: 2.5rem 2.2rem;
  cursor: default;
  box-shadow: var(--shadow-xl);
  transform: translateY(16px) scale(.98);
  transition: transform .35s cubic-bezier(.25,.1,.25,1);
}
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: .8rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  transition: color .2s, transform .2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.modal-close:hover {
  color: var(--text);
  background: var(--bg-alt);
  transform: rotate(90deg);
}

.modal-content { font-size: .92rem; line-height: 1.8; }
.modal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--accent-light);
}
.modal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 .5rem;
}
.modal-content p { margin-bottom: .8rem; color: var(--text-mid); }
.modal-content strong { color: var(--text); }
.modal-content ul,
.modal-content ol {
  margin: .5rem 0 1rem 1.2rem;
  color: var(--text-mid);
}
.modal-content li { margin-bottom: .35rem; }
.modal-content em { color: var(--text-muted); }

.modal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: .8rem 0 1.2rem;
  font-size: .85rem;
  border-radius: 8px;
  overflow: hidden;
}
.modal-content th {
  text-align: left;
  padding: .5rem .7rem;
  background: linear-gradient(135deg, var(--accent-light), #d4e3ed);
  font-weight: 600;
  color: var(--accent-hover);
  border-bottom: 1px solid var(--border);
}
.modal-content td {
  padding: .45rem .7rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
}
.modal-content tr:last-child td { border-bottom: none; }

/* ── DEMO FORM (inside modal) ── */
.demo-form { margin-top: 1rem; }
.demo-field { margin-bottom: 1rem; }
.demo-field label {
  display: block;
  font-size: .82rem;
  color: var(--text-mid);
  margin-bottom: .35rem;
  font-weight: 500;
}
.demo-field select,
.demo-field input {
  width: 100%;
  padding: .65rem .85rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: .9rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.demo-field select:focus,
.demo-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.demo-required { color: #dc2626; }

.demo-toggle-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}
.demo-toggle-label {
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.demo-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}
.demo-switch input { opacity: 0; width: 0; height: 0; }
.demo-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border);
  border-radius: 22px;
  transition: background .3s;
}
.demo-slider::before {
  content: '';
  position: absolute;
  height: 16px; width: 16px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .3s, box-shadow .3s;
}
.demo-switch input:checked + .demo-slider {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
}
.demo-switch input:checked + .demo-slider::before {
  transform: translateX(18px);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.demo-hidden { display: none; }

/* ── SOVEREIGN AI section ── */
#sovereign .about-text p {
  font-size: .93rem;
  line-height: 1.8;
}
#sovereign .about-text p:last-child {
  padding: 1rem 1.2rem;
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: var(--text-mid);
  margin-top: 1.5rem;
}

/* ── RESPONSIVE ── */
/* ── HAMBURGER (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1101;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--accent);
  border-radius: 3px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── MOBILE DRAWER ── */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(250,251,252,.97);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  z-index: 1099;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.mobile-nav-links a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: color .2s;
}
.mobile-nav-links a:hover { color: var(--accent); }
.mobile-cta {
  font-size: 1rem;
  padding: .7rem 2rem;
}

@keyframes mobileDrawerFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-drawer.open .mobile-nav-links a,
.mobile-drawer.open .mobile-cta {
  animation: mobileDrawerFadeIn .4s ease forwards;
  opacity: 0;
}
.mobile-drawer.open .mobile-nav-links a:nth-child(1) { animation-delay: .05s; }
.mobile-drawer.open .mobile-nav-links a:nth-child(2) { animation-delay: .10s; }
.mobile-drawer.open .mobile-nav-links a:nth-child(3) { animation-delay: .15s; }
.mobile-drawer.open .mobile-nav-links a:nth-child(4) { animation-delay: .20s; }
.mobile-drawer.open .mobile-nav-links a:nth-child(5) { animation-delay: .25s; }
.mobile-drawer.open .mobile-nav-links a:nth-child(6) { animation-delay: .30s; }
.mobile-drawer.open .mobile-cta                   { animation-delay: .35s; }

body.drawer-open { overflow: hidden; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta:not(.mobile-cta) { display: none; }
  .mobile-drawer { display: flex; }
  .nav-inner { padding: .7rem 1.2rem; }

  section { padding: 3.5rem 0; }
  :root { --section-pad: 3.5rem; }
  #hero { padding: 6rem 0 3rem; min-height: auto; }

  .brain-grid { grid-template-columns: 1fr; gap: 2rem; }
  .brain-visual { display: none; }

  #about .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-form-col .section-header { text-align: center; }
  .contact-form-col .section-header p { margin: 0 auto; }

  .sector-card { flex-wrap: wrap; gap: .4rem; }
  .sc-name { min-width: 100px; }
  .sectors-detail { grid-template-columns: 1fr; }

  .footer-content { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }

  .form-row { grid-template-columns: 1fr; }

  .hero-title { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .hero-buttons .btn { width: 100%; justify-content: center; }

  .chart-overlay-ai { position: static; margin-top: .8rem; }
  .ai-signal { flex-direction: row; }

  .chart-header { flex-direction: column; align-items: flex-start; }
  
  .stat-item { padding: .8rem; }
  .about-metrics { gap: 1rem; }
}
