/* ============================================
   RUPEETRADING.COM — INDIAN SAFFRON FINTECH
   Font: Clash Display + General Sans
   ============================================ */

:root {
  --bg: #0d0906;
  --surface: #15100c;
  --card: #1c1510;
  --border: #2e241c;
  --primary: #f97316;
  --primary-light: #fb923c;
  --primary-glow: rgba(249, 115, 22, 0.12);
  --accent: #fdba74;
  --accent-dark: #ea580c;
  --text: #f0e8e2;
  --text-muted: #a89888;
  --text-dim: #706050;
  --white: #faf5f0;
  --danger: #ef4444;
  --success: #22c55e;
  --radius: 12px;
  --border-thick: 3px;
  --transition: 0.25s ease;
  --font-heading: 'Clash Display', 'Inter', sans-serif;
  --font-body: 'General Sans', 'Inter', 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; }

/* --- WARM NOISE TEXTURE --- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(249, 115, 22, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(249, 115, 22, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.18;
  color: var(--white);
  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: rgba(21, 16, 12, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.5px;
}

.header__logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}

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

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

.nav__link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav__link:hover, .nav__link--active {
  color: var(--white);
  background: var(--primary-glow);
}

.nav__cta {
  background: var(--primary);
  color: var(--white) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.55rem 1.25rem;
  margin-left: 0.75rem;
  border-radius: var(--radius);
  border: none;
  transition: all var(--transition);
}
.nav__cta:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* 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: 26px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

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

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -200px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

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

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primary-light);
  background: var(--primary-glow);
  padding: 0.4rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 100px;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.hero__title {
  font-size: 3rem;
  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.75;
}

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

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

.btn--primary {
  background: transparent;
  color: var(--primary);
  border-color: rgba(249, 115, 22, 0.4);
}
.btn--primary:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary-light);
}

.btn--accent, .btn.btn--accent.btn--large {
  display: inline-block;
  padding: 16px 40px;
  background: var(--primary) !important;
  color: var(--white) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--radius);
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
}
.btn--accent:hover, .btn.btn--accent.btn--large:hover {
  background: var(--primary-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px 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: 2rem;
  font-weight: 600;
  color: var(--primary);
}

.stat__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  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-body);
  font-size: 0.82rem;
  font-weight: 500;
  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);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}

.feature:hover {
  border-color: rgba(249, 115, 22, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.06);
}

.feature__icon {
  width: 44px;
  height: 44px;
  background: var(--primary-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.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);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
}

.card:hover {
  border-color: rgba(249, 115, 22, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.06);
}

.card__rank { margin-bottom: 0.75rem; }

.rank-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
}

.rank-badge--gold { background: var(--primary-glow); color: var(--primary); border: 1px solid rgba(249, 115, 22, 0.3); }
.rank-badge--steel { background: rgba(168, 152, 136, 0.1); color: var(--text-muted); }
.rank-badge--blue { background: rgba(112, 96, 80, 0.15); color: var(--text-dim); }

.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: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}

.cta-box:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 40px 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: 1px solid var(--border);
  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: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.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.85rem;
  font-weight: 600;
  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(249, 115, 22, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  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(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1.1rem;
  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(--primary-light); transform: translateY(-3px); }

/* --- ARTICLE PAGE --- */
.article-hero {
  background: linear-gradient(170deg, var(--bg), var(--surface));
  border-bottom: 1px 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: 3px solid var(--primary); padding-left: 1rem; }
.article-body h3 { color: var(--primary-light); }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-body th {
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
}

.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: 3px solid var(--primary);
  background: var(--card);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 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: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: var(--radius);
  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; border-radius: 0; }
  .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; }
}