/* ─── TriFreedom — style.css ─────────────────────────────────────────────────
   Theme: "freedom ki subah" — deep night sky rising into dawn gold.
   Time = gold · Health = green · Wealth = violet-blue
──────────────────────────────────────────────────────────────────────────── */

:root {
  --bg:        #0b1026;
  --bg-2:      #101735;
  --card:      #141c3f;
  --ink:       #eef1fb;
  --ink-dim:   #aab3d6;
  --gold:      #f5b942;
  --gold-2:    #ff8a3d;
  --green:     #3ddc97;
  --violet:    #7c9bff;
  --line:      rgba(170, 179, 214, 0.16);
  --radius:    18px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Mukta', 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Tiro Devanagari Hindi', 'Mukta', serif; font-weight: 400; }

/* ─── Language toggle ───
   Every bilingual text lives twice: <span class="en"> + <span class="hi">.
   body[data-lang] decides which one exists. Default: en. */
body[data-lang="en"] .hi { display: none !important; }
body[data-lang="hi"] .en { display: none !important; }

/* English typography: strong grotesque headings; Hindi keeps Tiro serif */
body[data-lang="en"] h1,
body[data-lang="en"] h2,
body[data-lang="en"] h3,
body[data-lang="en"] h4 { font-family: 'Inter', 'Mukta', sans-serif; font-weight: 800; letter-spacing: -0.01em; }
body[data-lang="en"] .intro-big,
body[data-lang="en"] .card-shair,
body[data-lang="en"] .judaav-strong,
body[data-lang="en"] .safar-note,
body[data-lang="en"] .footer-big { font-family: 'Inter', 'Mukta', sans-serif; }
body[data-lang="en"] .intro-big,
body[data-lang="en"] .footer-big { font-weight: 600; }

.lang-btn {
  padding: 7px 18px; border-radius: 999px; cursor: pointer;
  background: rgba(245, 185, 66, 0.1); color: var(--gold);
  border: 1px solid rgba(245, 185, 66, 0.45);
  font-family: 'Mukta', sans-serif; font-size: 15px; font-weight: 500;
  transition: background 0.25s, transform 0.2s;
}
.lang-btn:hover { background: rgba(245, 185, 66, 0.22); transform: translateY(-1px); }
.nav-right { display: flex; align-items: center; gap: clamp(12px, 3vw, 26px); }
b { font-weight: 700; }
.grad {
  background: linear-gradient(100deg, var(--gold), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─── Nav ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 5vw, 56px);
  background: rgba(11, 16, 38, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: 'Inter', sans-serif; font-size: 20px; letter-spacing: 0.3px;
}
.brand b { color: var(--gold); font-weight: 800; }
.brand-tri { width: 22px; height: 22px; }
.brand-tri polygon { fill: none; stroke: var(--gold); stroke-width: 10; stroke-linejoin: round; }
.nav-links { display: flex; gap: clamp(12px, 3vw, 28px); }
.nav-links a {
  color: var(--ink-dim); text-decoration: none; font-size: 15px;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold); }

/* ─── Hero ─── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 110px 20px 80px;
}
.hero-sky {
  position: absolute; inset: 0; overflow: hidden; z-index: -1;
  background:
    radial-gradient(120% 85% at 50% 115%, rgba(255, 138, 61, 0.28) 0%, rgba(245, 185, 66, 0.12) 34%, transparent 62%),
    linear-gradient(180deg, #070b1d 0%, var(--bg) 55%, #1a1330 100%);
}
.sun {
  position: absolute; left: 50%; bottom: -140px; transform: translateX(-50%);
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 66, 0.55), rgba(255, 138, 61, 0.12) 55%, transparent 72%);
  animation: sunrise 3.2s ease-out both;
}
@keyframes sunrise { from { bottom: -320px; opacity: 0; } to { bottom: -140px; opacity: 1; } }
.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, #ffffffb0 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 28% 9%,  #ffffff80 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 44% 30%, #ffffff90 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 61% 12%, #ffffff70 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 76% 26%, #ffffffa0 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 89% 15%, #ffffff80 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 8% 48%,  #ffffff60 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 93% 44%, #ffffff60 50%, transparent 51%);
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.55; } to { opacity: 1; } }

.hero-inner { max-width: 780px; }
.hero-tri { width: clamp(90px, 14vw, 130px); margin-bottom: 26px; }
.tri-line {
  fill: none; stroke: var(--gold); stroke-width: 3.5; stroke-linejoin: round;
  stroke-dasharray: 560; stroke-dashoffset: 560;
  animation: draw 2.2s 0.3s ease-out forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.tri-dot { opacity: 0; animation: pop 0.5s ease-out forwards; }
.dot-time   { fill: var(--gold);   animation-delay: 2.1s; }
.dot-health { fill: var(--green);  animation-delay: 2.35s; }
.dot-wealth { fill: var(--violet); animation-delay: 2.6s; }
@keyframes pop { from { opacity: 0; r: 0; } to { opacity: 1; } }

.hero h1 { font-size: clamp(42px, 8vw, 84px); line-height: 1.18; }
.hero-sub { margin: 26px 0 18px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pill {
  padding: 7px 22px; border-radius: 999px; font-size: 17px; font-weight: 500;
  border: 1px solid; background: rgba(255, 255, 255, 0.03);
}
.pill-time   { color: var(--gold);   border-color: rgba(245, 185, 66, 0.45); }
.pill-health { color: var(--green);  border-color: rgba(61, 220, 151, 0.45); }
.pill-wealth { color: var(--violet); border-color: rgba(124, 155, 255, 0.5); }
.hero-line { color: var(--ink-dim); font-size: clamp(17px, 2.4vw, 21px); margin-bottom: 38px; }
.hero-line b { color: var(--ink); }

.cta {
  display: inline-block; padding: 15px 44px; border-radius: 999px;
  background: linear-gradient(100deg, var(--gold), var(--gold-2));
  color: #221503; font-weight: 700; font-size: 18px; text-decoration: none;
  box-shadow: 0 8px 32px rgba(245, 185, 66, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}
.cta:hover { transform: translateY(-3px); box-shadow: 0 14px 44px rgba(245, 185, 66, 0.5); }

/* ─── Sections ─── */
.section { max-width: 1080px; margin: 0 auto; padding: clamp(64px, 9vw, 110px) 22px; }
.sec-title {
  text-align: center; font-size: clamp(30px, 5vw, 46px); margin-bottom: clamp(36px, 6vw, 64px);
}
.sec-title::after {
  content: ""; display: block; width: 64px; height: 3px; margin: 18px auto 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 2px;
}

/* intro */
.intro { text-align: center; max-width: 860px; }
.intro-big {
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: clamp(22px, 3.6vw, 32px); line-height: 1.6; margin-bottom: 26px;
}
.intro-body { color: var(--ink-dim); font-size: clamp(17px, 2.2vw, 19px); }
.intro-body em { color: var(--gold); font-style: normal; font-weight: 600; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 26px; }
.card {
  background: linear-gradient(170deg, var(--card), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; position: relative; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-6px); }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--accent, var(--gold));
}
.card-time   { --accent: var(--gold); }
.card-health { --accent: var(--green); }
.card-wealth { --accent: var(--violet); }
.card:hover  { border-color: var(--accent); }
.card-icon { width: 52px; height: 52px; color: var(--accent); margin-bottom: 18px; }
.card-icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 26px; margin-bottom: 12px; color: var(--accent); }
.card-shair {
  font-family: 'Tiro Devanagari Hindi', serif; font-style: italic;
  color: var(--ink-dim); border-left: 3px solid var(--accent);
  padding-left: 14px; margin-bottom: 16px; line-height: 1.6;
}
.card p { margin-bottom: 16px; }
.card ul { list-style: none; }
.card li {
  padding: 7px 0 7px 28px; position: relative; color: var(--ink-dim); font-size: 15.5px;
}
.card li::before {
  content: "▸"; position: absolute; left: 6px; color: var(--accent);
}

/* judaav */
.judaav-grid {
  display: grid; grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(28px, 6vw, 64px); align-items: center;
}
.judaav-tri { width: 100%; overflow: visible; }
.judaav-tri .tri-line { animation: none; stroke-dashoffset: 0; stroke-width: 2.5; }
.tri-label { font-family: 'Mukta', sans-serif; font-size: 15px; }
.tri-label.time   { fill: var(--gold); }
.tri-label.health { fill: var(--green); }
.tri-label.wealth { fill: var(--violet); }
.judaav-text p { margin-bottom: 18px; color: var(--ink-dim); }
.judaav-text b { color: var(--ink); }
.judaav-strong {
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: clamp(19px, 2.6vw, 24px); color: var(--ink) !important; line-height: 1.6;
}
@media (max-width: 720px) {
  .judaav-grid { grid-template-columns: 1fr; }
  .judaav-tri { max-width: 240px; margin: 0 auto; }
}

/* hero poster fan */
.hero-posters {
  display: flex; align-items: center; justify-content: center;
  margin: clamp(26px, 4.5vw, 40px) auto;
}
.poster-btn { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.hp {
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(245, 185, 66, 0.28);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  opacity: 0; animation: hpIn 0.9s ease both;
}
.hp img { display: block; width: 100%; height: auto; }
.hp-side { width: 29%; z-index: 1; }
.hp-left  { transform: rotate(-7deg) translate(9%, 5%);  animation-delay: 0.55s; }
.hp-right { transform: rotate(7deg)  translate(-9%, 5%); animation-delay: 0.75s; }
.hp-center {
  width: 42%; z-index: 2; animation-delay: 0.35s;
  border-color: rgba(245, 185, 66, 0.5);
  box-shadow: 0 10px 44px rgba(245, 185, 66, 0.16), 0 24px 80px rgba(0, 0, 0, 0.65);
}
.hp-left:hover  { transform: rotate(-7deg) translate(9%, 5%) scale(1.05); z-index: 3; }
.hp-right:hover { transform: rotate(7deg)  translate(-9%, 5%) scale(1.05); z-index: 3; }
.hp-center:hover { transform: scale(1.04); }
@keyframes hpIn { to { opacity: 1; } }

/* lightbox */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; cursor: zoom-out;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 8, 20, 0.92); backdrop-filter: blur(6px);
  padding: clamp(14px, 4vw, 48px);
}
.lightbox img {
  max-width: 100%; max-height: 100%; border-radius: 14px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7);
}

/* manifesto */
.manifesto { max-width: 820px; }
.sutra { list-style: none; counter-reset: sutra; }
.sutra li {
  counter-increment: sutra;
  padding: 22px 24px 22px 74px; margin-bottom: 14px; position: relative;
  background: linear-gradient(170deg, var(--card), var(--bg-2));
  border: 1px solid var(--line); border-radius: 14px; color: var(--ink-dim);
}
.sutra li b { color: var(--ink); display: block; font-size: 18px; margin-bottom: 2px; }
body[data-lang="hi"] .sutra li::before { content: counter(sutra, devanagari); }
.sutra li::before {
  content: counter(sutra);
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245, 185, 66, 0.12); color: var(--gold);
  font-family: 'Tiro Devanagari Hindi', serif; font-size: 19px;
}

/* safar */
.safar { text-align: center; }
.safar-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px; margin-bottom: 44px;
}
.step {
  padding: 30px 22px; border-radius: var(--radius);
  background: linear-gradient(170deg, var(--card), var(--bg-2));
  border: 1px solid var(--line);
}
.step-num {
  display: inline-flex; width: 44px; height: 44px; border-radius: 50%;
  align-items: center; justify-content: center; margin-bottom: 14px;
  background: rgba(245, 185, 66, 0.12); color: var(--gold);
  font-family: 'Tiro Devanagari Hindi', serif; font-size: 22px;
}
.step h4 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--ink-dim); font-size: 15.5px; }
.safar-note {
  color: var(--ink-dim); font-size: 16px;
  font-family: 'Tiro Devanagari Hindi', serif; font-style: italic; line-height: 1.8;
}

/* footer */
.footer {
  text-align: center; padding: clamp(70px, 10vw, 120px) 22px 46px;
  background:
    radial-gradient(90% 70% at 50% 118%, rgba(255, 138, 61, 0.22) 0%, rgba(245, 185, 66, 0.08) 40%, transparent 65%),
    linear-gradient(180deg, var(--bg), #150f2c);
  border-top: 1px solid var(--line);
}
.footer-tri { width: 40px; margin-bottom: 22px; }
.footer-tri polygon { fill: none; stroke: var(--gold); stroke-width: 8; stroke-linejoin: round; }
.footer-big {
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: clamp(24px, 4.4vw, 40px); line-height: 1.5; margin-bottom: 22px;
}
.footer-small { color: var(--ink-dim); margin-bottom: 30px; line-height: 2; }
.footer-copy { color: #5b6491; font-size: 13.5px; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .sun, .stars, .tri-line, .tri-dot, .hp { animation: none; }
  .tri-line { stroke-dashoffset: 0; }
  .tri-dot { opacity: 1; }
  .hp { opacity: 1; }
}
