/* =========================================================
   XAUVANT — Shared Stylesheet
   ========================================================= */

/* ---------------------------------------------------------
   CSS Custom Properties
   --------------------------------------------------------- */
:root {
  --bg:          #040d1c;
  --bg-surface:  #0b1d35;
  --bg-card:     #0d2240;
  --border:      #112840;
  --border-focus:#1a3a5c;
  --cyan:        #00d4f5;
  --cyan-dim:    #00a3bf;
  --cyan-glow:   rgba(0, 212, 245, 0.18);
  --cyan-glow-sm:rgba(0, 212, 245, 0.08);
  --text:        #e2f0f8;
  --subtext:     #7a99b8;
  --green:       #10b981;
  --red:         #ef4444;
  --gold:        #f0c040;
  --white:       #ffffff;
  --nav-h:       64px;
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   18px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 32px rgba(0,212,245,0.12);
  --transition:  0.2s ease;
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea { font-family: inherit; }

/* ---------------------------------------------------------
   Typography
   --------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1rem; }

p { color: var(--subtext); line-height: 1.75; }
.text-cyan  { color: var(--cyan); }
.text-gold  { color: var(--gold); }
.text-green { color: var(--green); }
.text-red   { color: var(--red); }
.text-sub   { color: var(--subtext); }

/* ---------------------------------------------------------
   Layout Helpers
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-sm { padding: 52px 0; }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-header h2 { margin-bottom: 14px; }
.section-header p  { font-size: 1.05rem; }

.text-center { text-align: center; }
.section-header.centered { margin-left: auto; margin-right: auto; text-align: center; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ---------------------------------------------------------
   Sticky Navigation
   --------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(4, 13, 28, 0.6);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}

.nav.scrolled {
  background: rgba(4, 13, 28, 0.88);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
}

.nav-brand:hover { color: var(--cyan); }

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--subtext);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

.nav-cta { margin-left: 0; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-login {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--subtext);
  transition: color var(--transition);
}
.nav-login:hover { color: var(--text); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(4, 13, 28, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}

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

.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--subtext);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--cyan); }
.nav-mobile .btn-primary { margin-top: 12px; text-align: center; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: var(--cyan);
  color: var(--bg);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid var(--cyan);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan-dim);
  box-shadow: 0 0 24px rgba(0,212,245,0.35);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary.btn-lg {
  padding: 15px 36px;
  font-size: 1rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: transparent;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-focus);
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-1px);
}

.btn-ghost.btn-lg {
  padding: 15px 36px;
  font-size: 1rem;
}

/* ---------------------------------------------------------
   Cards
   --------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-card);
}

.card-icon {
  width: 32px;
  height: 32px;
  color: var(--cyan);
  margin-bottom: 20px;
  opacity: 0.8;
}
.card-icon svg {
  width: 100%;
  height: 100%;
}

/* ---------------------------------------------------------
   Feature Grid (3-col → 2-col → 1-col)
   --------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------
   Pricing Grid (5-col → 3-col → 2-col → 1-col)
   --------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.pricing-card.popular {
  border-color: var(--cyan);
  box-shadow: 0 0 28px rgba(0,212,245,0.14);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cyan);
  color: var(--bg);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtext);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-price .amount {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.pricing-price .dollar {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--subtext);
  align-self: flex-start;
  margin-top: 6px;
}

.pricing-save {
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 600;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.pricing-features li {
  font-size: 0.84rem;
  color: var(--subtext);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--cyan);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   Stats Strip
   --------------------------------------------------------- */
/* ── Myfxbook banner ── */
.myfxbook-banner {
  background: linear-gradient(135deg, rgba(0,212,245,0.07) 0%, rgba(0,85,128,0.07) 100%);
  border: 1px solid rgba(0,212,245,0.22);
  border-radius: 14px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.myfxbook-left { flex: 1; min-width: 220px; }
.myfxbook-right {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.myfxbook-stats { display: flex; gap: 28px; }
.myfxbook-stat-label {
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--subtext);
  margin-bottom: 4px;
}
.myfxbook-stat-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.stats-strip {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 32px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-icon {
  color: var(--cyan);
  opacity: 0.75;
  flex-shrink: 0;
}
.stat-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* ---------------------------------------------------------
   How It Works — Steps
   --------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.67% + 28px);
  right: calc(16.67% + 28px);
  height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, var(--cyan-dim) 50%, var(--border) 100%);
  z-index: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cyan);
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(0,212,245,0.2);
}

.step-item h3 { color: var(--text); }
.step-item p  { font-size: 0.9rem; }

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .steps-grid::before { display: none; }
  .step-item { flex-direction: row; text-align: left; }
  .step-item .step-text { flex: 1; }
}

/* ---------------------------------------------------------
   FAQ Accordion
   --------------------------------------------------------- */
.faq-section { margin-bottom: 48px; }
.faq-category {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  gap: 16px;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--cyan); }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--subtext);
  transition: transform var(--transition);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-item.open .faq-question { color: var(--cyan); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, padding var(--transition);
}

.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer-inner {
  padding-bottom: 18px;
  font-size: 0.92rem;
  color: var(--subtext);
  line-height: 1.75;
}

/* ---------------------------------------------------------
   Feature Comparison Table
   --------------------------------------------------------- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 40px;
}

.comparison-table th {
  background: var(--bg-surface);
  color: var(--subtext);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.comparison-table th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }

.comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--subtext);
  vertical-align: middle;
}

.comparison-table td:first-child { color: var(--text); font-weight: 500; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: rgba(13,34,64,0.35); }

.check-yes { color: var(--cyan); font-weight: 700; font-size: 1rem; }
.check-no  { color: var(--border-focus); }

/* ---------------------------------------------------------
   Guarantee Banner
   --------------------------------------------------------- */
.guarantee-banner {
  background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(0,212,245,0.06) 100%);
  border: 1px solid rgba(16,185,129,0.22);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.guarantee-icon {
  font-size: 2.8rem;
  flex-shrink: 0;
}

.guarantee-text h3 { color: var(--green); margin-bottom: 6px; }
.guarantee-text p  { margin: 0; font-size: 0.95rem; }

/* ---------------------------------------------------------
   CTA Banner
   --------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(0,212,245,0.05) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
}

.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p  { margin-bottom: 32px; font-size: 1.05rem; }
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------
   Hero Dashboard Mock
   --------------------------------------------------------- */
.hero-dashboard {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), var(--shadow-glow);
  max-width: 480px;
  width: 100%;
}

.dashboard-titlebar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 0 0 14px;
  display: flex;
  align-items: center;
  height: 36px;
}

.titlebar-title {
  flex: 1;
  font-size: 0.75rem;
  color: var(--subtext);
  font-weight: 500;
}

.titlebar-winbtns {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.win-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  font-size: 0.68rem;
  color: var(--subtext);
  cursor: default;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.win-btn:hover { background: rgba(255,255,255,0.09); }
.win-close:hover { background: #c42b1c; color: #fff; }

.dashboard-body {
  display: flex;
  height: 280px;
}

.dashboard-sidebar {
  width: 52px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 18px;
}

.sidebar-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.sidebar-icon.active {
  background: var(--cyan-glow);
  border-color: rgba(0,212,245,0.35);
  color: var(--cyan);
}

.dashboard-main {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.dash-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
}

.dash-stat-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtext);
  margin-bottom: 3px;
}

.dash-stat-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.dash-stat-value.green { color: var(--green); }
.dash-stat-value.cyan  { color: var(--cyan); }

.dash-chart-area {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.dash-chart-label {
  font-size: 0.62rem;
  color: var(--subtext);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-chart-label span { color: var(--green); font-weight: 700; }

.dash-chart-svg {
  width: 100%;
  height: calc(100% - 20px);
}

/* ---------------------------------------------------------
   Download Page
   --------------------------------------------------------- */
.download-hero {
  padding: 120px 0 80px;
  text-align: center;
}

.download-hero h1 { margin-bottom: 18px; }
.download-hero p   { margin-bottom: 32px; font-size: 1.1rem; }
.download-meta {
  font-size: 0.8rem;
  color: var(--subtext);
  margin-top: 14px;
}

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

.sysreq-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.sysreq-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 1rem;
}

.sysreq-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sysreq-card li {
  font-size: 0.88rem;
  color: var(--subtext);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.sysreq-card li::before {
  content: '→';
  color: var(--cyan);
  flex-shrink: 0;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}

.install-step {
  display: flex;
  gap: 24px;
  position: relative;
  padding-bottom: 32px;
}

.install-step:last-child { padding-bottom: 0; }

.install-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--cyan);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.install-step-line {
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.install-step:last-child .install-step-line { display: none; }

.install-step-content { padding-top: 8px; }
.install-step-content h4 { color: var(--text); margin-bottom: 4px; }
.install-step-content p  { font-size: 0.9rem; margin: 0; }

.release-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 720px;
  margin: 0 auto;
}

.release-card h3 { margin-bottom: 20px; }
.release-card ul { display: flex; flex-direction: column; gap: 10px; }
.release-card li {
  font-size: 0.9rem;
  color: var(--subtext);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.release-card li::before { content: '◆'; color: var(--cyan); font-size: 0.5rem; margin-top: 5px; flex-shrink: 0; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.88rem;
  margin-top: 12px;
  max-width: 260px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtext);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col li a {
  font-size: 0.88rem;
  color: var(--subtext);
  transition: color var(--transition);
}

.footer-col li a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--subtext);
  margin: 0;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--subtext);
  opacity: 0.65;
  margin-top: 6px;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   Risk Disclaimer
   --------------------------------------------------------- */
.risk-disclaimer {
  background: rgba(239,68,68,0.04);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: var(--radius);
  padding: 22px 26px;
  font-size: 0.8rem;
  color: var(--subtext);
  line-height: 1.7;
}

.risk-disclaimer strong { color: var(--red); }

/* ---------------------------------------------------------
   Hero Section
   --------------------------------------------------------- */
.hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 64px) 0 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0,212,245,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,212,245,0.04) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,212,245,0.08);
  border: 1px solid rgba(0,212,245,0.22);
  border-radius: 20px;
  padding: 5px 14px 5px 7px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-badge-tag { display: none; }

.hero h1 {
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  max-width: 460px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* ---------------------------------------------------------
   Inline Pricing (index page preview)
   --------------------------------------------------------- */
.pricing-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.pricing-see-all {
  text-align: center;
}

.pricing-see-all a {
  font-size: 0.9rem;
  color: var(--cyan);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.pricing-see-all a:hover { border-bottom-color: var(--cyan); }

/* ---------------------------------------------------------
   404 Page
   --------------------------------------------------------- */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.not-found-code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--border-focus);
  line-height: 1;
  margin-bottom: 16px;
}

.not-found h2 { margin-bottom: 14px; color: var(--subtext); font-weight: 500; }
.not-found p  { margin-bottom: 32px; }

/* ---------------------------------------------------------
   Responsive Adjustments
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero p { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-badge { display: inline-flex; }

  .hero-dashboard {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }

  .nav-links,
  .nav-right { display: none; }

  .nav-hamburger { display: flex; }

  .stats-inner { flex-direction: column; gap: 0; }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    width: 100%;
    justify-content: center;
    padding: 16px;
  }
  .stat-item:last-child { border-bottom: none; }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner { padding: 40px 24px; }

  .guarantee-banner { flex-direction: column; text-align: center; }

  .pricing-preview-grid {
    grid-template-columns: 1fr;
  }

  .dash-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-sm { padding: 36px 0; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }

  .btn-primary.btn-lg,
  .btn-ghost.btn-lg {
    padding: 13px 24px;
    font-size: 0.95rem;
  }
}

/* ---------------------------------------------------------
   Utility Animations
   --------------------------------------------------------- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 16px rgba(0,212,245,0.15); }
  50%       { box-shadow: 0 0 32px rgba(0,212,245,0.35); }
}

.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }

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

.dot-live {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
  animation: pulse-glow 2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--green);
}

/* ---------------------------------------------------------
  Visual Revamp Layer (non-breaking overrides)
   --------------------------------------------------------- */
:root {
  --shadow-card: 0 10px 35px rgba(0, 0, 0, 0.38);
  --shadow-glow: 0 0 48px rgba(0, 212, 245, 0.14);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -2;
  border-radius: 50%;
  filter: blur(6px);
}

body::before {
  width: 680px;
  height: 680px;
  top: -280px;
  left: -180px;
  background: radial-gradient(circle, rgba(0, 212, 245, 0.12) 0%, rgba(0, 212, 245, 0.02) 45%, transparent 72%);
}

body::after {
  width: 760px;
  height: 760px;
  right: -220px;
  bottom: -340px;
  background: radial-gradient(circle, rgba(0, 120, 180, 0.12) 0%, rgba(0, 120, 180, 0.03) 48%, transparent 75%);
}

.section,
.section-sm {
  position: relative;
}

.section::before,
.section-sm::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 245, 0.24) 50%, transparent 100%);
  opacity: 0.35;
}

.section h2 {
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  color: #87a8c7;
}

.nav {
  background: linear-gradient(180deg, rgba(4, 13, 28, 0.88) 0%, rgba(4, 13, 28, 0.52) 100%);
  border-bottom-color: rgba(17, 40, 64, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav.scrolled {
  background: linear-gradient(180deg, rgba(4, 13, 28, 0.96) 0%, rgba(5, 18, 37, 0.84) 100%);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 50%, transparent 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.btn-primary,
.btn-ghost {
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.btn-primary::before,
.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-primary::before {
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 70%);
}

.btn-ghost::before {
  background: radial-gradient(circle at top, rgba(0, 212, 245, 0.2), transparent 55%);
}

.btn-primary:hover::before,
.btn-ghost:hover::before {
  opacity: 1;
}

.hero {
  min-height: calc(100vh - 20px);
}

.hero::before {
  opacity: 0.9;
}

.hero::after {
  opacity: 0.85;
}

.hero-badge {
  box-shadow: 0 0 0 1px rgba(0, 212, 245, 0.2), 0 0 30px rgba(0, 212, 245, 0.14);
}

.hero-dashboard {
  background: linear-gradient(180deg, rgba(11, 29, 53, 0.94) 0%, rgba(13, 34, 64, 0.92) 100%);
  border-color: rgba(26, 58, 92, 0.92);
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-dashboard:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) translateY(-3px);
}

.stats-strip {
  background: linear-gradient(180deg, rgba(11, 29, 53, 0.9) 0%, rgba(11, 29, 53, 0.65) 100%);
}

.stat-item {
  transition: background var(--transition), transform var(--transition);
}

.stat-item:hover {
  background: rgba(0, 212, 245, 0.06);
  transform: translateY(-2px);
}

.card,
.pricing-card,
.sysreq-card,
.release-card,
.risk-disclaimer {
  background: linear-gradient(180deg, rgba(13, 34, 64, 0.88) 0%, rgba(10, 28, 52, 0.92) 100%);
  border-color: rgba(24, 56, 86, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.card:hover,
.pricing-card:hover {
  border-color: rgba(0, 212, 245, 0.5);
  box-shadow: var(--shadow-card), 0 0 22px rgba(0, 212, 245, 0.12);
}

.pricing-card.popular {
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35), 0 0 28px rgba(0, 212, 245, 0.2);
}

.pricing-tier {
  color: #9ab6d3;
}

.pricing-features li {
  color: #90adca;
}

.myfxbook-banner,
.guarantee-banner,
.cta-banner {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.myfxbook-banner {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.step-num {
  box-shadow: 0 0 0 1px rgba(0, 212, 245, 0.24), 0 0 24px rgba(0, 212, 245, 0.24);
}

.faq-item {
  border-bottom-color: rgba(23, 53, 82, 0.85);
}

.faq-question {
  transition: color var(--transition), transform var(--transition);
}

.faq-question:hover {
  transform: translateX(3px);
}

.comparison-table th {
  background: linear-gradient(180deg, rgba(11, 29, 53, 0.94) 0%, rgba(9, 25, 46, 0.92) 100%);
}

.comparison-table tr:hover td {
  background: rgba(0, 212, 245, 0.05);
}

.footer {
  background: linear-gradient(180deg, rgba(11, 29, 53, 0.9) 0%, rgba(8, 20, 37, 0.95) 100%);
}

.footer-bottom {
  border-top-color: rgba(23, 53, 82, 0.85);
}

.not-found-code {
  text-shadow: 0 0 28px rgba(0, 212, 245, 0.18);
}

.login-card,
.dash-card {
  box-shadow: var(--shadow-card);
}

@media (max-width: 1024px) {
  .hero-dashboard {
    transform: none;
  }
}
