/* ============================================
   NIFTYTRADINGPRO.COM — BOLD YELLOW ON CHARCOAL
   Font: Epilogue + Jost
   ============================================ */

:root {
  --bg: #0c0c0f;
  --surface: #141418;
  --card: #1a1a20;
  --border: #2a2a32;
  --primary: #eab308;
  --primary-light: #facc15;
  --primary-glow: rgba(234, 179, 8, 0.12);
  --accent: #fde047;
  --accent-dark: #ca8a04;
  --text: #ededf0;
  --text-muted: #9e9ea8;
  --text-dim: #6b6b78;
  --white: #fafafa;
  --danger: #ef4444;
  --success: #22c55e;
  --radius: 4px;
  --border-thick: 4px;
  --transition: 0.22s ease;
  --font-heading: 'Epilogue', sans-serif;
  --font-body: 'Jost', 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(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* --- DIAGONAL STRIPE PATTERN --- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 30px,
    rgba(234, 179, 8, 0.02) 30px,
    rgba(234, 179, 8, 0.02) 31px
  );
  pointer-events: none;
  z-index: 0;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; margin-top: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.45rem; margin-top: 2rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.2rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1.25rem; }

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

/* --- HEADER --- */
.header {
  background: var(--surface);
  border-bottom: var(--border-thick) solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -1px;
}

.header__logo .logo-icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: var(--bg);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

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

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

.nav__link {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem;
  position: relative;
  transition: all var(--transition);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: all var(--transition);
  transform: translateX(-50%);
}
.nav__link:hover::after, .nav__link--active::after { width: 80%; }
.nav__link:hover, .nav__link--active { color: var(--primary); }

.nav__cta {
  background: var(--primary);
  color: var(--bg) !important;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.55rem 1.25rem;
  margin-left: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  transition: all var(--transition);
}
.nav__cta:hover {
  background: var(--accent);
  transform: skewX(-2deg);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--primary);
  transition: all var(--transition);
}

/* --- HERO --- */
.hero {
  background: linear-gradient(135deg, var(--bg) 0%, #111115 50%, var(--bg) 100%);
  border-bottom: var(--border-thick) solid var(--border);
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: conic-gradient(from 0deg, transparent 0%, var(--primary-glow) 25%, transparent 50%);
  animation: heroRotate 20s linear infinite;
  pointer-events: none;
  opacity: 0.5;
}

@keyframes heroRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.hero__content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--bg);
  background: var(--primary);
  padding: 0.4rem 1.5rem;
  margin-bottom: 1.5rem;
  transform: skewX(-3deg);
}

.hero__title {
  font-size: 3.2rem;
  margin-bottom: 1.25rem;
  letter-spacing: -1.5px;
}
.hero__title span { color: var(--primary); }

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

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

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
}

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

.btn--accent, .btn.btn--accent.btn--large {
  display: inline-block;
  padding: 16px 40px;
  background: var(--primary) !important;
  color: var(--bg) !important;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
}
.btn--accent:hover, .btn.btn--accent.btn--large:hover {
  background: var(--accent) !important;
  transform: translateY(-2px) skewX(-2deg);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn--large { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* --- STATS BAR --- */
.section--bordered {
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--surface);
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 0.25rem;
}

/* --- SECTIONS --- */
.section { padding: 4.5rem 0; }
.section--alt { background: var(--surface); }

.section__header { text-align: center; margin-bottom: 3rem; }

.section__label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: 2.25rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.section__desc {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

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

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform var(--transition);
  transform-origin: top;
}

.feature:hover::before { transform: scaleY(1); }
.feature:hover { border-color: var(--primary); }

.feature__icon {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

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

.feature__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.75rem;
  transition: all var(--transition);
  border-top: 3px solid transparent;
}

.card:hover {
  border-top-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(234, 179, 8, 0.08);
}

.card__rank { margin-bottom: 0.75rem; }

.rank-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.2rem 0.65rem;
}

.rank-badge--gold { background: var(--primary); color: var(--bg); }
.rank-badge--steel { background: var(--border); color: var(--text); }
.rank-badge--blue { background: rgba(158, 158, 168, 0.15); color: var(--text-muted); }

.card__title {
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

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

.card__excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

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

/* --- CTA BOX --- */
.cta-box {
  background: var(--card);
  border: 2px solid var(--primary);
  padding: 2rem;
  transition: all var(--transition);
  border-left: 6px solid var(--primary);
}

.cta-box:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.cta-box__title { font-size: 1.4rem; margin-top: 0; margin-bottom: 0.75rem; }

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

/* --- FOOTER --- */
.footer {
  background: var(--surface);
  border-top: var(--border-thick) solid var(--primary);
  padding: 3.5rem 0 2rem;
}

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

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.footer__brand-name span { color: var(--primary); }

.footer__brand-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 1rem;
  margin-top: 0;
}

.footer__links { list-style: none; padding: 0; }
.footer__links li { margin-bottom: 0.5rem; }
.footer__links a { font-size: 0.88rem; color: var(--text-muted); transition: color var(--transition); }
.footer__links a:hover { color: var(--primary); }

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

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

.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { font-size: 0.82rem; color: var(--text-dim); }
.footer__legal a:hover { color: var(--primary); }

.footer__disclaimer {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(234, 179, 8, 0.04);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.65;
}
.footer__disclaimer strong { color: var(--danger); }

/* --- BACK TO TOP --- */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--primary);
  color: var(--bg);
  border: none;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); transform: translateY(-3px); }

/* --- ARTICLE PAGE --- */
.article-hero {
  background: linear-gradient(135deg, var(--bg), var(--surface));
  border-bottom: var(--border-thick) solid var(--border);
  padding: 4rem 0 3rem;
}

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

.article-hero__title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

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

.article-body { padding: 3rem 0 4rem; }

.article-body h2 {
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
}

.article-body h3 { color: var(--primary); }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.article-body th {
  background: var(--primary);
  color: var(--bg);
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.article-body td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.article-body tr:hover td { background: var(--primary-glow); }

.article-body blockquote {
  border-left: 4px solid var(--primary);
  background: var(--card);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.article-body ul, .article-body ol { margin-bottom: 1.25rem; }
.article-body li { margin-bottom: 0.5rem; color: var(--text-muted); }

.inline-cta {
  background: var(--card);
  border: 2px solid var(--primary);
  border-left: 6px solid var(--primary);
  padding: 1.75rem;
  margin: 2rem 0;
  text-align: center;
}
.inline-cta p { margin-bottom: 1rem; color: var(--text-muted); }

/* --- RESPONSIVE --- */
@media (max-width: 968px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; width: 100%;
    background: var(--surface);
    flex-direction: column;
    border-top: 1px solid var(--border);
    padding: 1rem 0;
  }
  .nav.active { display: flex; }
  .nav__link { padding: 0.75rem 1.5rem; }
  .nav__link::after { display: none; }
  .nav__cta { margin: 0.75rem 1.5rem; text-align: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .hero__title { font-size: 2.2rem; }
  h1 { font-size: 2rem; }
  .article-hero__title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: center; }
}