/* ============================================================
   SwaRaksha — style.css
   swaraksha.art · Nimbus9
   ============================================================ */

/* === VARIABLES === */
:root {
  --ink: #1A1423;
  --saffron: #E87722;
  --gold: #D4A017;
  --sandal: #F5EDE0;
  --ivory: #FAFAF7;
  --deep-red: #8B1E3F;
  --jade: #2D5F3F;
  --teal: #0B6E7A;
  --muted: #6B5D54;
}

/* === RESET === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
}
::selection { background: #E8772230; }
a { text-decoration: none; color: inherit; }

/* === ANIMATIONS === */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === UTILITY === */
.pf { font-family: 'Playfair Display', Georgia, serif; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.eyebrow {
  font-size: 12px; color: var(--saffron); letter-spacing: 6px;
  text-transform: uppercase; font-weight: 600; margin-bottom: 16px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 52px);
  color: var(--ink); font-weight: 900;
  line-height: 1.15; max-width: 700px; margin-bottom: 16px;
}
.section-title span { color: var(--saffron); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0; transition: all 0.4s;
}
.nav.scrolled {
  background: rgba(26, 20, 35, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(232, 119, 34, 0.15);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; text-decoration: none;
}
.nav-logo-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--saffron); display: flex;
  align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
}
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700; color: #fff; letter-spacing: 1px;
}
.nav-domain { font-size: 9px; color: var(--gold); letter-spacing: 3px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 13px; color: var(--sandal); cursor: pointer;
  letter-spacing: 1px; font-weight: 500; transition: color 0.3s;
  background: none; border: none; font-family: inherit;
}
.nav-link:hover { color: var(--saffron); }
.btn-login {
  padding: 10px 24px; background: transparent;
  border: 1px solid var(--saffron); color: var(--saffron);
  border-radius: 2px; font-size: 13px; font-weight: 600;
  cursor: pointer; letter-spacing: 1px; transition: all 0.3s;
  font-family: inherit;
}
.btn-login:hover { background: var(--saffron); color: #fff; }
.hamburger {
  display: none; background: none; border: none;
  color: var(--saffron); font-size: 28px; cursor: pointer;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh; background: var(--ink);
  position: relative; overflow: hidden; display: flex; align-items: center;
}
.hero-circle1 {
  position: absolute; right: -100px; top: -150px;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(232, 119, 34, 0.07);
  animation: float 8s ease-in-out infinite;
}
.hero-circle2 {
  position: absolute; right: -50px; top: -50px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(212, 160, 23, 0.09);
  animation: float 6s ease-in-out infinite 1s;
}
.hero-circle3 {
  position: absolute; left: -200px; bottom: -200px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(232, 119, 34, 0.05);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 120px 32px 80px; position: relative; z-index: 2;
}
.hero-accent { width: 60px; height: 4px; background: var(--saffron); margin-bottom: 24px; }
.hero-eyebrow {
  font-size: 14px; color: var(--saffron); letter-spacing: 6px;
  text-transform: uppercase; margin-bottom: 20px; font-weight: 600;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 80px); color: #fff;
  font-weight: 900; line-height: 1.05; max-width: 800px; margin-bottom: 16px;
}
.hero h1 span { color: var(--gold); font-style: italic; }
.hero-sanskrit { font-size: 13px; color: var(--gold); letter-spacing: 3px; margin-bottom: 32px; font-style: italic; }
.hero-desc { font-size: 18px; color: var(--sandal); max-width: 620px; line-height: 1.7; margin-bottom: 48px; opacity: 0.85; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  padding: 18px 40px; background: var(--saffron); color: #fff; border: none;
  border-radius: 2px; font-size: 15px; font-weight: 600; cursor: pointer;
  letter-spacing: 1px; transition: transform 0.3s, box-shadow 0.3s; font-family: inherit;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(232, 119, 34, 0.4); }
.btn-secondary {
  padding: 18px 40px; background: transparent; color: var(--sandal);
  border: 1px solid rgba(245, 237, 224, 0.3); border-radius: 2px;
  font-size: 15px; font-weight: 500; cursor: pointer; letter-spacing: 1px;
  font-family: inherit; transition: border-color 0.3s;
}
.btn-secondary:hover { border-color: var(--sandal); }
.hero-stats {
  display: flex; gap: 48px; margin-top: 80px; padding-top: 40px;
  border-top: 1px solid rgba(232, 119, 34, 0.15); flex-wrap: wrap;
}
.hero-stat-n { font-size: 28px; font-weight: 700; color: #fff; }
.hero-stat-l { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ============================================================
   WHY THIS IDEA
   ============================================================ */
.why { background: var(--sandal); padding: 120px 0; position: relative; }
.why-bar {
  position: absolute; right: 0; top: 0; width: 6px; height: 100%;
  background: linear-gradient(to bottom, var(--saffron), var(--gold), transparent);
}
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 48px; }
.why-text { line-height: 1.9; font-size: 16px; color: var(--ink); opacity: 0.85; }
.why-text p { margin-bottom: 24px; }
.why-quote { margin-top: 40px; padding: 24px 32px; background: var(--ink); border-left: 4px solid var(--gold); }
.why-quote p { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--gold); font-style: italic; line-height: 1.6; }
.why-card {
  padding: 24px 28px; background: var(--ivory); border: 1px solid rgba(26, 20, 35, 0.06);
  transition: transform 0.3s, box-shadow 0.3s; margin-bottom: 16px; cursor: default;
}
.why-card:hover { transform: translateX(8px); box-shadow: 0 4px 20px rgba(26, 20, 35, 0.06); }
.why-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.why-card-icon { font-size: 22px; }
.why-card-title { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--ink); }
.why-card-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.products { background: var(--ink); padding: 120px 0; }
.products .eyebrow { color: var(--saffron); }
.products-sub { font-size: 16px; color: var(--sandal); opacity: 0.7; max-width: 500px; margin-bottom: 64px; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tier-card {
  background: var(--ink); border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 32px; position: relative; transition: transform 0.4s, border-color 0.4s;
  display: flex; flex-direction: column; height: 100%;
}
.tier-card:hover { transform: translateY(-8px); }
.tier-card.popular { background: linear-gradient(135deg, var(--ink), #2A1F10); border-color: rgba(232, 119, 34, 0.4); }
.tier-card.popular:hover { border-color: var(--saffron); }
.tier-card.teal:hover { border-color: var(--teal); }
.tier-card.jade:hover { border-color: var(--jade); }
.tier-badge { position: absolute; top: -1px; left: 0; right: 0; height: 3px; }
.popular-tag {
  position: absolute; top: 16px; right: 16px; font-size: 10px;
  background: var(--saffron); color: #fff; padding: 4px 12px;
  letter-spacing: 2px; font-weight: 600;
}
.tier-label { font-size: 11px; letter-spacing: 4px; font-weight: 600; margin-bottom: 8px; }
.tier-name { font-size: 32px; color: #fff; font-weight: 700; margin-bottom: 8px; }
.tier-tagline { font-size: 13px; font-style: italic; margin-bottom: 24px; }
.tier-price-wrap {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}
.tier-price { font-size: 24px; font-weight: 700; color: #fff; }
.tier-features { flex: 1; }
.tier-feature { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.03); font-size: 13.5px; line-height: 1.5; }
.tier-feature.yes { color: var(--sandal); }
.tier-feature.no { color: rgba(245, 237, 224, 0.3); }
.tier-feature.up { color: var(--saffron); }
.tier-btn {
  margin-top: 32px; width: 100%; padding: 16px; border: 1px solid;
  border-radius: 2px; font-size: 14px; font-weight: 600; cursor: pointer;
  letter-spacing: 1px; transition: all 0.3s; font-family: inherit; background: transparent;
}
.tier-btn:hover { color: #fff !important; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how { background: var(--ivory); padding: 120px 0; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 48px; }
.how-step { padding: 40px 32px; border-right: 1px solid rgba(26, 20, 35, 0.06); position: relative; }
.how-step:last-child { border-right: none; }
.how-step-icon { font-size: 40px; margin-bottom: 20px; display: block; }
.how-step-num {
  font-size: 48px; font-weight: 900; color: rgba(232, 119, 34, 0.08);
  position: absolute; top: 32px; right: 24px;
}
.how-step-title { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.how-step-desc { font-size: 14px; color: var(--muted); line-height: 1.8; }
.hub-bar {
  margin-top: 80px; padding: 48px 56px; background: var(--ink);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 32px;
}
.hub-bar-eyebrow { font-size: 12px; color: var(--saffron); letter-spacing: 4px; font-weight: 600; margin-bottom: 8px; }
.hub-bar-title { font-size: 24px; color: #fff; font-weight: 700; }
.hub-bar-desc { font-size: 14px; color: var(--sandal); opacity: 0.7; margin-top: 8px; }
.hub-bar-big { font-size: 48px; font-weight: 900; color: var(--gold); }

/* ============================================================
   ABOUT US
   ============================================================ */
.about { background: var(--sandal); padding: 120px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 40px; }
.about-text { line-height: 1.9; font-size: 16px; color: var(--ink); opacity: 0.85; }
.about-text p { margin-bottom: 24px; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.team-card {
  padding: 28px 24px; background: var(--ivory);
  border: 1px solid rgba(26, 20, 35, 0.05); transition: border-color 0.3s;
}
.team-card:hover { border-color: var(--saffron); }
.team-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(232, 119, 34, 0.1); display: flex;
  align-items: center; justify-content: center; margin-bottom: 16px;
}
.team-avatar span { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--saffron); }
.team-role { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.team-desc { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ============================================================
   CTA
   ============================================================ */
.cta { background: var(--ink); padding: 80px 0; text-align: center; }
.cta-title { font-size: clamp(28px, 4vw, 44px); color: #fff; font-weight: 700; max-width: 700px; margin: 0 auto 12px; }
.cta-title span { color: var(--gold); font-style: italic; }
.cta-sub { font-size: 15px; color: var(--sandal); opacity: 0.6; margin-bottom: 40px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0F0D15; padding: 60px 0 40px; }
.footer-grid { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-desc { font-size: 13px; color: var(--muted); line-height: 1.7; max-width: 280px; }
.footer-email { font-size: 12px; color: var(--muted); margin-top: 16px; }
.footer-col-title { font-size: 11px; color: var(--saffron); letter-spacing: 3px; font-weight: 600; margin-bottom: 16px; }
.footer-link { font-size: 13px; color: var(--muted); margin-bottom: 10px; cursor: pointer; transition: color 0.2s; }
.footer-link:hover { color: var(--sandal); }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding: 24px 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 12px; color: var(--muted); }

/* ============================================================
   LOGIN MODAL
   ============================================================ */
.modal-bg {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(26, 20, 35, 0.85); display: none;
  align-items: center; justify-content: center;
}
.modal-bg.open { display: flex; }
.modal-box { background: var(--sandal); width: 420px; max-width: 90vw; border-radius: 2px; padding: 48px 40px; position: relative; }
.modal-close { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--muted); }
.modal-accent { width: 40px; height: 4px; background: var(--saffron); margin-bottom: 16px; }
.modal-title { font-size: 28px; color: var(--ink); margin-bottom: 8px; }
.modal-sub { font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.modal-label { font-size: 12px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 6px; }
.modal-input {
  width: 100%; padding: 14px 16px; border: 1px solid rgba(107, 93, 84, 0.25);
  border-radius: 2px; font-size: 15px; font-family: 'DM Sans', sans-serif;
  margin-bottom: 20px; background: var(--ivory);
}
.modal-btn {
  width: 100%; padding: 16px; background: var(--saffron); color: #fff;
  border: none; border-radius: 2px; font-size: 15px; font-weight: 600;
  cursor: pointer; letter-spacing: 1px; font-family: inherit;
}
.modal-btn:hover { opacity: 0.9; }
.modal-footer { font-size: 13px; color: var(--muted); text-align: center; margin-top: 20px; }
.modal-footer span { color: var(--saffron); cursor: pointer; font-weight: 600; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .why-grid, .about-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .how-step { border-right: none; border-bottom: 1px solid rgba(26, 20, 35, 0.06); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; }
  .hub-bar { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .how-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .section-title { font-size: 28px; }
}
