/* ============================================
   NOCOMMISSIONFOREX.COM — ZERO COMMISSION THEME
   Dark + Mint Green (#34d399) accent
   Fonts: Outfit headings, Plus Jakarta Sans body
   ============================================ */

/* --- CSS VARIABLES --- */
:root {
  --nc-bg: #070a0e;
  --nc-surface: #0d1117;
  --nc-card: #111820;
  --nc-border: #1c2530;
  --nc-primary: #34d399;
  --nc-primary-dark: #059669;
  --nc-primary-glow: rgba(52, 211, 153, 0.12);
  --nc-secondary: #ffffff;
  --nc-accent: #6ee7b7;
  --nc-accent-gold: #fbbf24;
  --text: #f0f4f8;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --white: #f8fafc;
  --danger: #ef4444;
  --success: #22c55e;
  --radius: 8px;
  --transition: 0.25s ease;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --max-width: 1200px;
  --article-width: 820px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  color: var(--text);
  background-color: var(--nc-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--nc-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--nc-accent);
}

ul, ol {
  padding-left: 1.5rem;
}

/* --- SUBTLE GRID BACKGROUND --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(52, 211, 153, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 211, 153, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -0.01em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

/* --- LAYOUT --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--nc-surface);
}

.section--bordered {
  border-top: 1px solid var(--nc-border);
  border-bottom: 1px solid var(--nc-border);
  padding: 2.5rem 0;
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--nc-primary);
  margin-bottom: 0.75rem;
  padding: 4px 14px;
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 20px;
  background: var(--nc-primary-glow);
}

.section__title {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.section__desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============================
   HEADER
   ============================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 10, 14, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nc-border);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header__logo:hover {
  color: var(--white);
}

.header__logo .accent {
  color: var(--nc-primary);
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--nc-primary), var(--nc-primary-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #070a0e;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--white);
  background: rgba(52, 211, 153, 0.08);
}

.nav__cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: #070a0e;
  background: var(--nc-primary);
  padding: 8px 18px;
  border-radius: var(--radius);
  margin-left: 8px;
  transition: all var(--transition);
}

.nav__cta:hover {
  background: var(--nc-accent);
  color: #070a0e;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================
   HERO
   ============================ */
.hero {
  padding: 6rem 0 5rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(52, 211, 153, 0.08) 0%, transparent 65%);
  position: relative;
}

.hero__content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--nc-primary);
  margin-bottom: 1.5rem;
  padding: 6px 16px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 20px;
  background: var(--nc-primary-glow);
}

.hero__title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero__title span {
  color: var(--nc-primary);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  gap: 8px;
}

.btn--primary {
  background: var(--nc-card);
  color: var(--white);
  border: 1px solid var(--nc-border);
}

.btn--primary:hover {
  background: var(--nc-surface);
  border-color: var(--nc-primary);
  color: var(--nc-primary);
}

.btn--accent {
  background: var(--nc-primary);
  color: #070a0e;
}

.btn--accent:hover {
  background: var(--nc-accent);
  color: #070a0e;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(52, 211, 153, 0.3);
}

.btn--large {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn--outline {
  background: transparent;
  color: var(--nc-primary);
  border: 1px solid var(--nc-primary);
}

.btn--outline:hover {
  background: var(--nc-primary-glow);
  color: var(--nc-accent);
}

/* ============================
   STATS BAR
   ============================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--nc-primary);
  margin-bottom: 0.25rem;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ============================
   SAVINGS TABLE
   ============================ */
.savings-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--nc-border);
}

.savings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.savings-table th {
  background: var(--nc-surface);
  color: var(--nc-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 2px solid var(--nc-primary);
}

.savings-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--nc-border);
  color: var(--text);
}

.savings-table tr:last-child td {
  border-bottom: none;
}

.savings-table tr:hover td {
  background: rgba(52, 211, 153, 0.04);
}

.savings-table .savings-highlight {
  color: var(--nc-primary);
  font-weight: 700;
}

.savings-table .savings-negative {
  color: var(--danger);
  font-weight: 600;
}

/* ============================
   FEATURE GRID
   ============================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  background: var(--nc-card);
  border: 1px solid var(--nc-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}

.feature:hover {
  border-color: rgba(52, 211, 153, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(52, 211, 153, 0.08);
}

.feature__icon {
  width: 48px;
  height: 48px;
  background: var(--nc-primary-glow);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--nc-primary);
}

.feature__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================
   CARD GRID (Articles)
   ============================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--nc-card);
  border: 1px solid var(--nc-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.card:hover {
  border-color: rgba(52, 211, 153, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(52, 211, 153, 0.06);
}

.card__rank {
  margin-bottom: 0.75rem;
}

.rank-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 4px;
}

.rank-badge--green {
  background: rgba(52, 211, 153, 0.12);
  color: var(--nc-primary);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.rank-badge--gold {
  background: rgba(251, 191, 36, 0.12);
  color: var(--nc-accent-gold);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.rank-badge--steel {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.rank-badge--blue {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.card__title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.card__title a {
  color: var(--white);
  transition: color var(--transition);
}

.card__title a:hover {
  color: var(--nc-primary);
}

.card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  align-items: center;
  flex-wrap: wrap;
}

/* ============================
   CTA BOX (Broker Recommendations)
   ============================ */
.cta-box {
  background: var(--nc-card);
  border: 1px solid var(--nc-border);
  border-left: 4px solid var(--nc-primary);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition);
}

.cta-box:hover {
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 4px 20px rgba(52, 211, 153, 0.06);
}

.cta-box__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cta-box__title {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.cta-box__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

/* ============================
   INLINE CTA (Article body)
   ============================ */
.inline-cta {
  background: linear-gradient(135deg, var(--nc-card), var(--nc-surface));
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}

.inline-cta h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.inline-cta p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* ============================
   CALCULATOR WIDGET
   ============================ */
.calc-widget {
  background: var(--nc-card);
  border: 1px solid var(--nc-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}

.calc-widget__title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--nc-primary);
  font-family: var(--font-heading);
}

.calc-widget__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--nc-border);
  font-size: 0.92rem;
}

.calc-widget__row:last-child {
  border-bottom: none;
  padding-top: 1rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.calc-widget__label {
  color: var(--text-muted);
}

.calc-widget__value {
  color: var(--white);
  font-weight: 600;
}

.calc-widget__value--green {
  color: var(--nc-primary);
}

.calc-widget__value--red {
  color: var(--danger);
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--nc-surface);
  border-top: 1px solid var(--nc-border);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 1;
}

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

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer__brand-name span {
  color: var(--nc-primary);
}

.footer__brand-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 320px;
}

.footer__heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--nc-primary);
}

.footer__bottom {
  border-top: 1px solid var(--nc-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal a {
  font-size: 0.82rem;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer__legal a:hover {
  color: var(--nc-primary);
}

.footer__disclaimer {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: var(--radius);
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.footer__disclaimer strong {
  color: var(--danger);
}

/* ============================
   BACK TO TOP
   ============================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--nc-primary);
  color: #070a0e;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--nc-accent);
  transform: translateY(-3px);
}

/* ============================
   ARTICLE PAGE STYLES
   ============================ */
.article-header {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--nc-border);
  background: radial-gradient(ellipse at 50% 100%, rgba(52, 211, 153, 0.05) 0%, transparent 65%);
}

.article-header .container {
  max-width: var(--article-width);
}

.article-header__breadcrumb {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.article-header__breadcrumb a {
  color: var(--text-dim);
}

.article-header__breadcrumb a:hover {
  color: var(--nc-primary);
}

.article-header h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.article-header__meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-body {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.article-body h2 {
  font-size: 1.7rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--nc-border);
}

.article-body h3 {
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
}

.article-body p {
  margin-bottom: 1.25rem;
  color: var(--text);
  line-height: 1.78;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.25rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: var(--text);
}

.article-body blockquote {
  border-left: 3px solid var(--nc-primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--nc-primary-glow);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}

.article-body strong {
  color: var(--white);
}

/* TOC */
.toc {
  background: var(--nc-card);
  border: 1px solid var(--nc-border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.toc__title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--nc-primary);
  margin-bottom: 0.75rem;
}

.toc ol {
  padding-left: 1.25rem;
}

.toc li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.toc a {
  color: var(--text-muted);
}

.toc a:hover {
  color: var(--nc-primary);
}

/* FAQ */
.faq-item {
  border: 1px solid var(--nc-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-q {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--nc-card);
  transition: background var(--transition);
  font-size: 0.95rem;
}

.faq-q:hover {
  background: rgba(52, 211, 153, 0.05);
}

.faq-q::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--nc-primary);
  transition: transform 0.3s;
}

.faq-item.active .faq-q::after {
  content: '-';
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.active .faq-a {
  max-height: 500px;
}

.faq-a__inner {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .section__title {
    font-size: 1.8rem;
  }

  .article-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nc-surface);
    border-bottom: 1px solid var(--nc-border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
  }

  .nav.active {
    display: flex;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }

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

  .hero {
    padding: 4rem 0 3rem;
  }

  .hero__title {
    font-size: 2rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}

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

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

  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

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