/* ============================================================
   Forex Master Pro EA — v4.0
   Design system: dark glass UI, gold/emerald/azure accents
   Fonts: Space Grotesk (display) + Inter (body) + Playfair (gold)
   ============================================================ */

:root {
  --bg-primary: #030508;
  --bg-secondary: #080d1a;
  --card-bg: rgba(12, 18, 36, 0.65);
  --card-bg-solid: #0a1020;
  --border-color: rgba(148, 163, 184, 0.1);
  --border-strong: rgba(148, 163, 184, 0.2);
  --accent: #10b981;
  --accent-2: #38bdf8;
  --gold: #d4a843;
  --gold-light: #f0c96a;
  --gold-soft: rgba(212, 168, 67, 0.12);
  --gold-glow: rgba(212, 168, 67, 0.35);
  --orange: #f97316;
  --orange-soft: rgba(249, 115, 22, 0.12);
  --accent-soft: rgba(16, 185, 129, 0.12);
  --accent-glow: rgba(16, 185, 129, 0.35);
  --text-primary: #f4f7fb;
  --text-secondary: #9aa7bd;
  --text-muted: #5b6884;
  --gradient-primary: linear-gradient(120deg, #d4a843 0%, #10b981 50%, #0ea5e9 100%);
  --gradient-gold: linear-gradient(135deg, #f0c96a 0%, #d4a843 50%, #b8922e 100%);
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-gold: 'Playfair Display', Georgia, serif;
  --radius: 16px;
  --ticker-height: 32px;
  --news-panel-height: 0px;
  --header-pad: 1rem;
  --header-inner: 3.25rem;
  --header-top: var(--ticker-height);
  --header-total: calc(var(--header-top) + var(--header-pad) * 2 + var(--header-inner));
  --container-pad: clamp(1rem, 4vw, 2rem);
  --section-pad-y: clamp(3.5rem, 8vw, 7rem);
  --touch-min: 44px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-total) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 8, 0.65);
  z-index: 85;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.icon {
  flex-shrink: 0;
  vertical-align: middle;
}

/* ---------- Background layers ---------- */

#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 168, 67, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 168, 67, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.bg-circuit {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a843' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.glow-orb {
  position: fixed;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: float 22s infinite alternate ease-in-out;
}

.orb-1 {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.35) 0%, transparent 70%);
  top: -15%;
  right: -12%;
}

.orb-2 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, transparent 70%);
  top: 45%;
  left: -18%;
  animation-duration: 28s;
  animation-delay: -6s;
}

.orb-3 {
  background: radial-gradient(circle, rgba(212, 168, 67, 0.22) 0%, transparent 70%);
  bottom: -10%;
  right: 20%;
  width: 500px;
  height: 500px;
  animation-duration: 32s;
  animation-delay: -12s;
}

@keyframes float {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(70px, 45px) scale(1.08); }
}

/* ---------- Ticker bar ---------- */

.ticker-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background: rgba(3, 5, 8, 0.92);
  border-bottom: 1px solid rgba(212, 168, 67, 0.15);
  overflow: hidden;
  height: 32px;
  display: flex;
  align-items: stretch;
}

.ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-news-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.85rem;
  border: none;
  border-left: 1px solid rgba(212, 168, 67, 0.15);
  background: rgba(212, 168, 67, 0.08);
  color: var(--accent-gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.ticker-news-btn:hover,
.ticker-news-btn[aria-expanded="true"] {
  background: rgba(212, 168, 67, 0.18);
  color: #f0d48a;
}

.ticker-track {
  display: flex;
  gap: 3rem;
  animation: ticker 55s linear infinite;
  white-space: nowrap;
}

.ticker-track.is-paused {
  animation-play-state: paused;
}

.ticker-track span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ticker-track .ticker-price {
  color: var(--text-primary);
  margin-left: 0.45rem;
  font-variant-numeric: tabular-nums;
}

.ticker-track em {
  font-style: normal;
  margin-left: 0.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ticker-track em.up { color: var(--accent); }
.ticker-track em.down { color: #ef4444; }
.ticker-track em.flat { color: var(--text-muted); }

.ticker-status {
  color: var(--text-muted);
  font-size: 0.72rem;
  animation: none !important;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Live news panel ---------- */

.news-panel {
  position: fixed;
  top: var(--ticker-height);
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(3, 5, 8, 0.97);
  border-bottom: 1px solid rgba(212, 168, 67, 0.2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  max-height: min(420px, 55vh);
  overflow: hidden;
}

.news-panel[hidden] {
  display: none;
}

.news-panel-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem 1rem;
}

.news-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.news-panel-header h2 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin: 0;
}

.news-close-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.news-close-btn:hover { color: var(--text-primary); }

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: calc(min(420px, 55vh) - 3.5rem);
  overflow-y: auto;
}

.news-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  line-height: 1.45;
}

.news-list li:last-child { border-bottom: none; }

.news-list a {
  color: var(--text-primary);
  text-decoration: none;
}

.news-list a:hover { color: var(--accent-2); }

.news-list .news-time {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.news-loading,
.news-empty {
  color: var(--text-muted);
  font-size: 0.8rem;
}

body.news-open {
  --news-panel-height: min(420px, 55vh);
}

/* ---------- Scrollbar ---------- */

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: #1a2440;
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

::selection {
  background: var(--accent);
  color: #04120c;
}

/* ---------- Layout utilities ---------- */

.container {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-pad);
  position: relative;
  z-index: 1;
}

section {
  padding: var(--section-pad-y) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .glow-orb { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons & badges ---------- */

.glow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--gradient-primary);
  color: #ffffff;
  padding: 0.9rem 2.1rem;
  border-radius: 100px;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.25);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-height: var(--touch-min);
  text-align: center;
  max-width: 100%;
}

.glow-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.glow-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.45);
}

.glow-btn:hover::after { left: 130%; }

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(148, 163, 184, 0.06);
  color: var(--text-primary);
  padding: 0.9rem 2.1rem;
  border-radius: 100px;
  font-weight: 500;
  text-decoration: none;
  font-size: 1rem;
  border: 1px solid var(--border-strong);
  transition: var(--transition);
}

.secondary-btn:hover {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.35);
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-soft);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent);
  padding: 0.4rem clamp(0.75rem, 3vw, 1.1rem);
  border-radius: 100px;
  font-size: clamp(0.68rem, 2vw, 0.78rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  max-width: 100%;
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Header / nav ---------- */

#site-header {
  position: fixed;
  top: calc(var(--header-top) + var(--news-panel-height));
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--header-pad) 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease, top 0.25s ease;
}

#site-header.scrolled {
  background: rgba(5, 7, 15, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border-color);
  padding: 0.65rem 0;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  min-width: 0;
}

.logo-img {
  border-radius: 8px;
  box-shadow: 0 0 16px var(--gold-glow);
  width: clamp(30px, 8vw, 36px);
  height: clamp(30px, 8vw, 36px);
  flex-shrink: 0;
}

.logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a:not(.nav-cta) {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

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

.nav-cta {
  padding: 0.6rem 1.5rem;
  font-size: 0.92rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */

.hero {
  padding: calc(var(--header-total) + 3rem) 0 var(--section-pad-y);
  overflow: hidden;
}

.pulse-badge {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3); }
  50%      { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.author-trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

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

.author-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
}

.hero-tagline {
  font-family: var(--font-gold);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.hero-price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding: 0.6rem 1.25rem;
  background: var(--gold-soft);
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: 12px;
}

.hero-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
}

.hero-price-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--accent-2);
  padding: 0.9rem 2.1rem;
  border-radius: 100px;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  border: 2px solid rgba(56, 189, 248, 0.5);
  cursor: pointer;
  transition: var(--transition);
  min-height: var(--touch-min);
  max-width: 100%;
  text-align: center;
}

.demo-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-2);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.2);
}


.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin-bottom: 1.4rem;
}

.grad-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2.8vw, 1.1rem);
  max-width: 520px;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 3.25rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 3rem);
}

.stat-item {
  min-width: 0;
}

.stat-item h3 {
  font-size: clamp(1.45rem, 4vw, 2rem);
  color: var(--accent);
  word-break: break-word;
}

.stat-item p {
  color: var(--text-muted);
  font-size: clamp(0.72rem, 2vw, 0.85rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
  line-height: 1.35;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-glow {
  position: absolute;
  inset: 8%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
}

.hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(2, 6, 18, 0.7);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image:hover { transform: translateY(-6px) scale(1.01); }

/* ---------- Features ---------- */

.features { background: var(--bg-secondary); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(2, 6, 18, 0.5);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.feature-icon.gold {
  background: var(--gold-soft);
  border-color: rgba(212, 168, 67, 0.3);
  color: var(--gold);
}

.feature-icon.red {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

.feature-icon.blue {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
  color: var(--accent-2);
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.arch-card {
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 1.6rem;
  background: rgba(148, 163, 184, 0.03);
}

.arch-card h4 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.arch-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ---------- Recommendations ---------- */

.rec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.rec-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.rec-card:hover {
  border-color: rgba(212, 168, 67, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(2, 6, 18, 0.5);
}

.rec-card.highlight-rec {
  border-color: rgba(212, 168, 67, 0.4);
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--card-bg) 60%);
}

.rec-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gold-soft);
  border: 1px solid rgba(212, 168, 67, 0.25);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.rec-card h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.rec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.pill {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

.pill.gold-pill {
  background: var(--gold-soft);
  border-color: rgba(212, 168, 67, 0.3);
  color: var(--gold-light);
}

.rec-detail {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.rec-highlight {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

.rec-balance {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}

/* ---------- How it works ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.step-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.step-card code {
  background: rgba(148, 163, 184, 0.1);
  padding: 0.1em 0.4em;
  border-radius: 5px;
  font-size: 0.85em;
  color: var(--accent-2);
}

.vps-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(14, 165, 233, 0.08), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent);
}

.vps-banner h5 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.vps-banner p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ---------- Performance ---------- */

.performance { background: var(--bg-secondary); }

.performance-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
}

.performance-chart {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.performance-chart img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px rgba(2, 6, 18, 0.6);
}

.performance-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.metric-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.metric-card.highlight {
  border-color: rgba(16, 185, 129, 0.4);
  background: var(--accent-soft);
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
}

.accent { color: var(--accent); }

/* ---------- Calculator ---------- */

.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.calc-box,
.projection-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.25rem;
}

.calc-group { margin-bottom: 1.75rem; }
.calc-group:last-child { margin-bottom: 0; }

.calc-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.calc-group label span { color: var(--accent); }

.calc-input {
  width: 100%;
  background: rgba(5, 7, 15, 0.6);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: max(16px, 1.05rem);
  padding: 0.8rem 1.1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  min-height: var(--touch-min);
}

.calc-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.profile-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.profile-btn {
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.7rem 0.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.profile-btn:hover { border-color: var(--border-strong); color: var(--text-primary); }

.profile-btn.active {
  background: var(--accent-soft);
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--accent);
}

.range-slider {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.15);
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #04120c;
  box-shadow: 0 0 12px var(--accent-glow);
}

.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #04120c;
  box-shadow: 0 0 12px var(--accent-glow);
}

.projection-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.projection-box h4 {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.projection-val {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.projection-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.breakdown-item p:first-child {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.breakdown-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

/* ---------- Pricing ---------- */

.pricing { background: var(--bg-secondary); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: stretch;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  min-width: 0;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 48px rgba(2, 6, 18, 0.55);
}

.pricing-card.popular {
  border-color: rgba(16, 185, 129, 0.45);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.07) 0%, var(--card-bg) 45%);
  box-shadow: 0 12px 48px rgba(16, 185, 129, 0.12);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 1.2rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-header {
  text-align: center;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.75rem;
}

.pricing-header h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.pricing-header > p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

.price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  word-break: break-word;
}

.price .currency {
  font-size: 1.4rem;
  vertical-align: super;
  color: var(--text-secondary);
}

.price .period {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.price-link {
  cursor: pointer;
  transition: var(--transition);
}

.price-link:hover {
  color: var(--accent);
  transform: scale(1.04);
}

.pricing-features {
  list-style: none;
  flex-grow: 1;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.pricing-features li .icon { color: var(--accent); }

.pricing-features li.disabled-feature {
  color: var(--text-muted);
  opacity: 0.6;
}

.pricing-features li.disabled-feature .icon { color: var(--text-muted); }

.buy-btn { width: 100%; }

.plan-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.buy-icon {
  background: var(--accent-soft);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent);
}

.rent-icon {
  background: var(--orange-soft);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--orange);
}

.demo-icon {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-2);
}

.pricing-card.buy-card {
  border-color: rgba(16, 185, 129, 0.45);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, var(--card-bg) 50%);
}

.pricing-card.rent-card {
  border-color: rgba(249, 115, 22, 0.25);
}

.pricing-card.demo-card {
  border-color: rgba(56, 189, 248, 0.25);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.05) 0%, var(--card-bg) 50%);
}

.buy-price { color: var(--accent); }
.rent-price { color: var(--orange); }
.demo-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-2);
}

.save-badge {
  position: absolute;
  top: -12px;
  right: 1rem;
  background: var(--orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
}

.rent-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--orange);
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: 100px;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  font-size: clamp(0.82rem, 2.4vw, 0.95rem);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
  min-height: var(--touch-min);
  text-align: center;
  line-height: 1.3;
}

.rent-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(249, 115, 22, 0.45);
  background: #fb923c;
}

.buy-green {
  background: linear-gradient(120deg, #059669 0%, #10b981 100%);
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.35);
}

.pricing-card .demo-btn {
  width: 100%;
  text-align: center;
}

/* ---------- CTA Banner ---------- */

.cta-banner {
  padding: 0;
  margin-bottom: 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3.5rem 3rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.12) 0%, rgba(16, 185, 129, 0.08) 50%, rgba(14, 165, 233, 0.08) 100%);
  border: 1px solid rgba(212, 168, 67, 0.25);
  box-shadow: 0 24px 60px rgba(2, 6, 18, 0.5);
}

.cta-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.cta-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 480px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex-shrink: 0;
}

.pricing-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 2.5rem;
}

.pricing-note a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.pricing-note a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item[open] { border-color: rgba(16, 185, 129, 0.35); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  transition: color 0.25s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--accent); }

.faq-item summary .icon {
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-item[open] summary .icon { transform: rotate(180deg); color: var(--accent); }

.faq-item p {
  padding: 0 1.5rem 1.4rem;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border-color);
  padding: 4.5rem 0 2.5rem;
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about .logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-about p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 340px;
  margin-bottom: 1.25rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}

.social-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-2px);
}

.footer-social-inline {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-social-inline a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-social-inline a:hover { color: var(--accent); }

.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.25s ease;
}

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

.disclaimer {
  background: rgba(148, 163, 184, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.disclaimer strong { color: var(--text-secondary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.75rem;
}

/* ---------- SEO content pages ---------- */

.content-page {
  padding-top: calc(var(--header-total) + 2.5rem);
  padding-bottom: 4rem;
}

.content-page .article-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.content-page .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.content-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.content-page .lead {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.content-page h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  margin: 2.25rem 0 0.85rem;
  color: var(--text-primary);
}

.content-page p,
.content-page li {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.97rem;
}

.content-page ul,
.content-page ol {
  padding-left: 1.25rem;
  margin: 0.75rem 0 1.25rem;
}

.content-page li { margin-bottom: 0.45rem; }

.content-page a { color: var(--accent-2); }

.content-page .article-cta {
  margin-top: 2.5rem;
  padding: 1.75rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  text-align: center;
}

.content-page .article-cta h2 { margin-top: 0; }

.content-page .article-cta .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.content-page .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.content-page .breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.content-page .breadcrumb a:hover { color: var(--accent); }

.content-page .article-figure {
  margin: 2rem 0;
}

.content-page .article-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 48px rgba(2, 6, 18, 0.5);
}

/* ============================================================
   Responsive — mobile-first polish across all devices
   ============================================================ */

/* Large desktop */
@media (min-width: 1280px) {
  .container { max-width: 1240px; }
  .pricing-grid { gap: 1.75rem; }
}

/* Tablet landscape / small laptop */
@media (max-width: 1100px) {
  .nav-links { gap: 1.25rem; }
  .nav-links a:not(.nav-cta) { font-size: 0.88rem; }
  .nav-cta { padding: 0.55rem 1.15rem; font-size: 0.85rem; }
}

@media (max-width: 1024px) {
  .hero-grid { gap: 2.5rem; }

  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .rec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

  .performance-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-text p { margin: 0 auto; }
  .cta-actions { justify-content: center; width: 100%; }

  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
}

/* Tablet portrait — collapse nav */
@media (max-width: 960px) {
  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    height: 100svh;
    width: min(320px, 88vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: rgba(8, 11, 24, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    padding: calc(var(--header-total) + 1rem) 1.5rem max(1.5rem, env(safe-area-inset-bottom));
    padding-top: calc(var(--header-total) + 1rem);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 90;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links li { width: 100%; }

  .nav-links a:not(.nav-cta) {
    display: block;
    padding: 0.95rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border-color);
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
  }

  .nav-cta-item { margin-top: 1rem; width: 100%; }

  .nav-cta {
    width: 100%;
    justify-content: center;
    min-height: var(--touch-min);
  }

  .menu-toggle {
    position: relative;
    z-index: 95;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 420px;
  }

  .performance-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root {
    --section-pad-y: clamp(3rem, 7vw, 5rem);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  .author-trust { justify-content: center; }

  .hero-price-tag {
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
    max-width: 420px;
  }

  .hero-stats {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }

  .hero-image-wrapper {
    max-width: min(480px, 100%);
    margin: 0 auto;
    width: 100%;
  }

  .section-header { margin-bottom: 2.75rem; }

  .projection-val { font-size: clamp(1.85rem, 7vw, 2.75rem); }

  .breakdown-num { font-size: clamp(1.05rem, 4vw, 1.3rem); }
}

@media (max-width: 640px) {
  :root {
    --ticker-height: 28px;
    --header-pad: 0.75rem;
  }

  .features-grid,
  .rec-grid,
  .steps-grid,
  .pricing-grid { grid-template-columns: 1fr; }

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

  .calc-box, .projection-box { padding: 1.5rem; }

  .profile-selector { grid-template-columns: 1fr; }

  .profile-btn { min-height: var(--touch-min); }

  .hero-actions .glow-btn,
  .hero-actions .secondary-btn,
  .hero-actions .demo-btn,
  .cta-actions .glow-btn,
  .cta-actions .demo-btn,
  .pricing-card .rent-btn,
  .pricing-card .demo-btn {
    width: 100%;
  }

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

  .pricing-card.popular { transform: none; }

  .pricing-card:hover { transform: none; }

  .feature-card:hover,
  .rec-card:hover,
  .step-card:hover,
  .metric-card:hover { transform: none; }

  .cta-inner {
    padding: 2rem 1.25rem;
    border-radius: 18px;
  }

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

  .footer-about p { max-width: 100%; }

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

  .disclaimer {
    padding: 1.15rem 1.2rem;
    font-size: 0.74rem;
  }

  .ticker-bar {
    display: flex;
    font-size: 0.68rem;
  }

  .ticker-news-btn {
    padding: 0 0.55rem;
    font-size: 0.68rem;
  }

  .glow-orb {
    width: 320px;
    height: 320px;
    filter: blur(100px);
    opacity: 0.22;
  }

  .orb-3 { width: 260px; height: 260px; }

  .popular-badge,
  .save-badge {
    font-size: 0.68rem;
    padding: 0.3rem 0.85rem;
  }

  .save-badge {
    top: -10px;
    right: 0.75rem;
  }

  .faq-item summary {
    font-size: 0.95rem;
    padding: 1.1rem 1.15rem;
  }

  .faq-item p {
    padding: 0 1.15rem 1.2rem;
    font-size: 0.9rem;
  }

  .rec-balance { font-size: clamp(2rem, 10vw, 2.5rem); }

  .hero-tagline { font-size: clamp(1rem, 4.5vw, 1.15rem); }

  .hero-price { font-size: clamp(1.65rem, 8vw, 2rem); }

  .hero-price-label { font-size: 0.8rem; }
}

/* Small phones */
@media (max-width: 400px) {
  :root { --container-pad: 0.9rem; }

  .logo { gap: 0.45rem; }

  .hero h1 { font-size: clamp(1.75rem, 8.5vw, 2.2rem); }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
  }

  .stat-item p { font-size: 0.68rem; }

  .section-header h2 { font-size: clamp(1.55rem, 7vw, 1.9rem); }

  .pricing-header h3 { font-size: 1.15rem; }

  .pricing-features li {
    font-size: 0.88rem;
    align-items: flex-start;
  }

  .pricing-features li .icon { margin-top: 0.15rem; }

  .nav-links { width: 100vw; border-left: none; }
}

/* Short viewports (landscape phones) */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    padding-top: calc(var(--header-total) + 1.5rem);
    padding-bottom: 2.5rem;
  }

  .hero-grid { gap: 1.5rem; }

  .hero-image-wrapper { max-width: 100%; }

  .nav-links {
    padding-top: calc(var(--header-total) + 0.5rem);
    padding-bottom: 1rem;
  }
}

/* Safe areas for notched devices */
@supports (padding: max(0px)) {
  .ticker-bar {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  #site-header .container,
  footer .container {
    padding-left: max(var(--container-pad), env(safe-area-inset-left));
    padding-right: max(var(--container-pad), env(safe-area-inset-right));
  }

  .footer-bottom {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ---------- FAQ Chatbot ---------- */
.fmp-chat {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 120;
  font-family: var(--font-body);
}

.fmp-chat-launcher {
  min-width: 56px;
  height: 56px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 67, 0.55);
  background: linear-gradient(145deg, #f0c96a 0%, #d4a843 55%, #b8922e 100%);
  color: #1a1205;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(212, 168, 67, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}

.fmp-chat-launcher svg { flex-shrink: 0; }

.fmp-chat-launcher-label { letter-spacing: 0.02em; }

.fmp-chat.is-open .fmp-chat-launcher-label { display: none; }
.fmp-chat.is-open .fmp-chat-launcher {
  width: 56px;
  padding: 0;
  border-radius: 50%;
}

.fmp-chat-launcher:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 24px rgba(212, 168, 67, 0.2);
}

.fmp-chat-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 67, 0.35);
  animation: fmp-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes fmp-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}

.fmp-chat-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(380px, calc(100vw - 1.5rem));
  height: min(520px, calc(100vh - 7rem));
  display: flex;
  flex-direction: column;
  background: rgba(8, 13, 26, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.fmp-chat-panel[hidden] {
  display: none !important;
}

.fmp-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(212, 168, 67, 0.08), transparent);
}

.fmp-chat-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.fmp-chat-head span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.fmp-chat-close {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.fmp-chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fmp-msg {
  max-width: 92%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.fmp-msg a { color: var(--accent-2); }

.fmp-msg-bot {
  align-self: flex-start;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.18);
  color: var(--text-primary);
}

.fmp-msg-user {
  align-self: flex-end;
  background: rgba(212, 168, 67, 0.14);
  border: 1px solid rgba(212, 168, 67, 0.28);
  color: var(--text-primary);
}

.fmp-related {
  margin-top: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fmp-related > span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fmp-related-q {
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--gold-light);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.fmp-chat-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0 0.75rem 0.55rem;
}

.fmp-chip {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(12, 18, 36, 0.9);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  cursor: pointer;
  white-space: nowrap;
}

.fmp-chip:hover { color: var(--gold-light); border-color: rgba(212, 168, 67, 0.4); }

.fmp-chat-form {
  display: flex;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.fmp-chat-form input {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #060a14;
  color: var(--text-primary);
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
}

.fmp-chat-form button {
  border: 0;
  border-radius: 10px;
  background: var(--gradient-gold);
  color: #111;
  font-weight: 700;
  padding: 0 0.9rem;
  cursor: pointer;
  font-family: var(--font-display);
}

@media (max-width: 480px) {
  .fmp-chat-panel {
    width: calc(100vw - 1rem);
    height: min(70vh, 560px);
    bottom: 64px;
  }
}

/* ---------- PayPal alternate checkout ---------- */
.paypal-alt {
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(0, 112, 186, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 112, 186, 0.1), rgba(8, 13, 26, 0.4));
}

.paypal-alt-inner h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.paypal-alt-inner > p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
}

.paypal-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.paypal-sdk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.paypal-sdk-plan {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(3, 5, 8, 0.35);
}

.paypal-sdk-plan > span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-display);
}

@media (max-width: 800px) {
  .paypal-sdk-grid { grid-template-columns: 1fr; }
}

.paypal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  background: #ffc439;
  color: #003087;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.paypal-btn:hover { filter: brightness(1.05); }

.paypal-hint {
  margin-top: 0.85rem !important;
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
}

.paypal-sdk-slot { min-width: 200px; max-width: 280px; }

/* ============================================================
   REVIEWS SECTION
   ============================================================ */
#reviews {
  padding: var(--section-pad-y) 0;
}

.reviews-summary {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.reviews-rating-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.rating-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stars-row {
  display: flex;
  gap: 0.15rem;
  color: var(--gold);
}

.review-count-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.reviews-carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 2.5rem -1rem 0;
  padding: 0 1rem 1rem;
}

.reviews-carousel::-webkit-scrollbar {
  display: none;
}

.reviews-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
}

.review-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
  font-size: 4rem;
  font-family: var(--font-gold);
  color: var(--gold-soft);
  line-height: 1;
  pointer-events: none;
}

.review-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(212, 168, 67, 0.08);
  transform: translateY(-4px);
}

.review-stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.review-text {
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.65;
  flex: 1;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: #0a0a0a;
  flex-shrink: 0;
}

.review-author strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
}

.review-meta {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.reviews-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.review-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--card-bg);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.review-nav-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}

@media (max-width: 768px) {
  .review-card {
    flex: 0 0 300px;
    padding: 1.25rem;
  }
  .rating-number {
    font-size: 2.5rem;
  }
}
