/* ══════════════════════════════════════════════════════════════════
   Baraati site — shared design system (Dusk). Every page loads this.
   Tokens, type, buttons, nav, footer, chip, aurora, confetti, reveal.
   Homepage-only sections live in home.css; inner pages in pages.css.
   ══════════════════════════════════════════════════════════════════ */

:root {
  /* Dusk: the site's saffron → pink → violet, deepened just enough that white
     text stays readable on every part of it. */
  --maroon: #1F1226; --maroon-2: #2C1A35; --deep: #140B19; --phone: #0E0812;
  --ivory: #FBF7F1; --ivory-2: #F4ECE0; --ink: #1F1226; --muted: #6B5F73;
  --rose: #C2185B; --gold: #FF9A5A; --gold-ink: #9C4210; --muted-d: #C9BED0; --soft: #F2DFD6; --gold-hover: #FFB07C;
  --dark-rgb: 31,18,38; --deep-rgb: 20,11,25; --gold-rgb: 255,154,90; --rose-rgb: 236,72,153; --ivory-rgb: 251,247,241;
  --g1: #E0552B; --g2: #D6337E; --g3: #5B47E8;
  --grad: linear-gradient(135deg, var(--g1) 0%, var(--g2) 52%, var(--g3) 100%);
  --grad-btn: linear-gradient(135deg, #FF8A3D 0%, #FF4D6D 100%);
  --grad-text-dark: linear-gradient(90deg, #FF8A3D, #FF4D6D 50%, #B57BFF);
  --grad-text-light: linear-gradient(90deg, #D24A1F, #C93A6E 50%, #5B47E8);
  --line: rgba(var(--dark-rgb),0.12); --line-d: rgba(255,255,255,0.12);
  --display: 'Abril Fatface', Georgia, serif;
  --accent: 'Bodoni Moda', Georgia, serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --body: 'Josefin Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body { font-family: var(--body); font-size: 18px; line-height: 1.6; background: var(--ivory); color: var(--ink); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: #FF4D6D; color: #fff; }
:focus-visible { outline: 2px solid #FF8A3D; outline-offset: 4px; border-radius: 6px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
section { position: relative; }
.eyebrow { font: 400 12px/1.4 var(--mono); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.dark .eyebrow { color: var(--muted-d); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.02; }
h2 { font-size: clamp(42px, 6.2vw, 88px); }
.it { font-family: var(--accent); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.dark { background: var(--maroon); color: var(--ivory); }
.dark .it { color: var(--gold); }
.light .it { color: var(--rose); }
.rule { width: 64px; height: 1px; background: var(--gold); opacity: .8; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer; border: 0;
  font: 400 12.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase;
  padding: 17px 26px; border-radius: 999px; transition: background .3s, color .3s, box-shadow .3s; will-change: transform; }
.btn-gold { background: var(--gold); color: var(--maroon); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-ivory { background: var(--ivory); color: var(--maroon); }
.btn-ivory:hover { background: #fff; }
.btn-line { color: inherit; box-shadow: inset 0 0 0 1px currentColor; background: transparent; }
.btn-line:hover { background: rgba(var(--gold-rgb),0.12); }
.btn-maroon { background: var(--maroon); color: var(--ivory); }
.btn-maroon:hover { background: var(--maroon-2); }
.btn svg { flex: none; }
.store { padding: 13px 22px 13px 18px; gap: 11px; letter-spacing: .02em; text-transform: none; font: 600 15px/1 var(--body); }
.store small { display: block; font: 400 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin-bottom: 4px; }
.link-arrow { font: 400 12.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; padding: 8px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.link-arrow:hover { background-size: 100% 1px; }

/* ── Nav (keeps nav.top / .nav-toggle / .nav-mobile for nav.js + site.css) ── */
nav.top { position: sticky; top: 0; z-index: 80; background: rgba(var(--dark-rgb),0.86); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); color: var(--ivory); border-bottom: 1px solid var(--line-d); }
.nav-row { display: flex; align-items: center; justify-content: space-between; max-width: 1320px; margin: 0 auto; padding: 14px 40px; gap: 20px; }
.nav-logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 400 24px/1 var(--display); letter-spacing: .01em; }
.nav-logo img { width: 34px; height: 34px; object-fit: contain; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { font: 400 11.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding: 10px 14px; border-radius: 999px; color: var(--muted-d); transition: color .25s; }
.nav-links a:hover { color: var(--ivory); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 12px 18px; font-size: 11px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ivory); cursor: pointer; padding: 6px; }
.nav-mobile { display: none; flex-direction: column; padding: 4px 24px 24px; }
.nav-mobile > a { padding: 15px 2px; text-decoration: none; font: 400 26px/1.1 var(--display); border-bottom: 1px solid var(--line-d); }
.nav-mobile-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.nav-mobile-cta .btn { justify-content: center; }
nav.top.open .nav-mobile { display: flex; }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 768px) { .nav-toggle { display: inline-flex; } .nav-cta { display: none; } .nav-row { padding: 12px 20px; } }

/* ── Footer ── */
footer { background: var(--deep); color: var(--muted-d); padding: 90px 0 40px; font-size: 15.5px; }
.f-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.f-brand .nav-logo { color: var(--ivory); }
.f-brand p { margin-top: 18px; max-width: 280px; line-height: 1.6; }
footer h4 { font: 400 11px/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; font-weight: 400; }
footer ul { list-style: none; display: grid; gap: 11px; }
footer ul a { text-decoration: none; transition: color .2s; }
footer ul a:hover { color: var(--ivory); }
.f-guides ul { grid-template-columns: 1fr; }
.f-bottom { margin-top: 70px; padding-top: 26px; border-top: 1px solid var(--line-d); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; }
.f-bottom a { color: inherit; }

/* ── Reveal (only with .motion) ── */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.motion [data-reveal].in { opacity: 1; transform: none; }
.motion .no-anim, .motion .no-anim .wd > span { transition: none; }
.split .wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .wd > span { display: inline-block; }
.motion .split .wd > span { transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms + var(--d, 0s)); }
.motion .split.in .wd > span { transform: none; }

.dark .it, .light .it { background-image: var(--grad-text-light); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.dark .it { background-image: var(--grad-text-dark); }
.statement .end { background-image: var(--grad-text-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn-gold { background: var(--grad-btn); color: var(--ink); }
.btn-gold:hover { background: linear-gradient(135deg, #FF9D5C 0%, #FF6680 100%); }

.aurora { position: absolute; inset: -20%; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); opacity: .55; }
.aurora i:nth-child(1) { background: #FF8A3D; left: -10%; top: -10%; }
.aurora i:nth-child(2) { background: #FF4D8A; right: -5%; top: 10%; }
.aurora i:nth-child(3) { background: #6D5BFF; right: 10%; bottom: -25%; }
.motion .aurora i:nth-child(1) { animation: drift1 22s ease-in-out infinite alternate; }
.motion .aurora i:nth-child(2) { animation: drift2 26s ease-in-out infinite alternate; }
.motion .aurora i:nth-child(3) { animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vw, 12vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vw, 16vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(-12vw, -14vh) scale(1.1); } }

/* Glass chip (replaces the hero / CTA eyebrow) */
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 999px;
  background: rgba(31,18,38,0.28); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 400 11.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.chip i { width: 8px; height: 8px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.25); }
.motion .chip i { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255,255,255,0.08); } }

/* Footer: gradient hairline + gradient column titles */
footer { position: relative; }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); }
footer h4 { color: #FF9A5A; }

/* Confetti in the closing section (motion only; added by home.js) */
.confetti { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.confetti b { position: absolute; top: -20px; width: 9px; height: 13px; border-radius: 2px; opacity: .85; animation: fall linear infinite; }
@keyframes fall { to { transform: translate3d(var(--x, 30px), 110vh, 0) rotate(540deg); } }

@media (max-width: 480px) { .chip { letter-spacing: .06em; font-size: 10.5px; padding: 8px 13px 8px 10px; gap: 8px; } }

@media (max-width: 1060px) {
  .f-top { grid-template-columns: repeat(2, 1fr); }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  body { font-size: 17px; }
  .wrap { padding: 0 22px; }
  .f-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .f-top { grid-template-columns: 1fr; } .store { padding: 12px 16px; } }
