/* Layout: single column of full-bleed bands; each band pads its own inner wrapper.
   Motif: soft brand washes on the deep bands, one thin gradient rule, a gradient edge on each card. */

:root {
  --bg: #FBF9FE;
  --surface: #FFFFFF;
  --surface-2: #F5F0FC;
  --ink: #1C1326;
  --muted: #5F5571;
  --line: #E6DFF0;
  --brand: #6B21A8;
  --brand-deep: #3B0764;
  --brand-soft: #F3EBFC;
  --on-brand: #FFFFFF;
  --accent: #D81017;
  --shadow: 0 1px 2px rgba(28, 19, 38, .06), 0 12px 32px -18px rgba(59, 7, 100, .45);

  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Source Sans 3", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(.82rem, .79rem + .14vw, .89rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.12rem + .4vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.34rem + .8vw, 2.05rem);
  --step-3: clamp(1.95rem, 1.6rem + 1.7vw, 3.1rem);
  --step-4: clamp(2.4rem, 1.8rem + 3vw, 4.2rem);

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #140F1C;
    --surface: #1E172A;
    --surface-2: #251D35;
    --ink: #F2EDF9;
    --muted: #B3A7C6;
    --line: #322745;
    --brand: #C89BFA;
    --brand-deep: #0E0916;
    --brand-soft: #251938;
    --on-brand: #1A0F2A;
    --accent: #FF7A7F;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 16px 40px -20px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #140F1C;
  --surface: #1E172A;
  --surface-2: #251D35;
  --ink: #F2EDF9;
  --muted: #B3A7C6;
  --line: #322745;
  --brand: #C89BFA;
  --brand-deep: #0E0916;
  --brand-soft: #251938;
  --on-brand: #1A0F2A;
  --accent: #FF7A7F;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 16px 40px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* Scripts without Latin coverage get their own faces. */
[lang="bn"] { --font-display: "Noto Sans Bengali", var(--font-body); --font-body: "Noto Sans Bengali", "Source Sans 3", sans-serif; }
[lang="hi"] { --font-display: "Noto Sans Devanagari", var(--font-body); --font-body: "Noto Sans Devanagari", "Source Sans 3", sans-serif; }
[lang="ur"] { --font-display: "Noto Nastaliq Urdu", serif; --font-body: "Noto Nastaliq Urdu", "Source Sans 3", serif; line-height: 2.1; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 60; font: inherit; border: 0; cursor: pointer; background: var(--brand); color: var(--on-brand); padding: .7rem 1rem; }
.skip:focus { left: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band--tint { background: var(--surface-2); }
.band--deep { background: var(--brand-deep); color: #F6F0FF; }
.band--deep h2, .band--deep h3 { color: #FFF; }

.rule { height: 3px; background: linear-gradient(90deg, var(--brand), var(--accent) 55%, transparent); }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--surface); }
#siteheader { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.hdr { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; margin-inline-end: auto; min-width: 0; }
.brand img { width: 46px; height: auto; border-radius: 6px; }
.brand b { font-family: var(--font-display); font-size: clamp(.92rem, .78rem + .7vw, 1.12rem); font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); }
.brand span { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a, .nav button.navbtn {
  font: inherit; font-size: var(--step--1); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: none; border: 0; padding: .55rem .6rem; border-radius: 6px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.nav a:hover, .nav button.navbtn:hover { background: var(--brand-soft); color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -3px 0 var(--accent); }

.drop { position: relative; }
.drop > div {
  position: absolute; inset-inline-start: 0; top: calc(100% + .4rem); min-width: 250px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: .4rem; display: grid; gap: 1px; z-index: 5;
}
.drop > div a { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: var(--step-0); padding: .5rem .7rem; }

.langwrap { display: flex; align-items: center; gap: .4rem; }
.langwrap svg { flex: none; color: var(--muted); }
select#lang {
  font: inherit; font-size: var(--step--1); padding: .45rem 1.8rem .45rem .6rem; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer;
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 51%, calc(100% - 10px) 51%; background-size: 5px 5px; background-repeat: no-repeat;
}
.menubtn { display: none; font: inherit; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; color: var(--ink); cursor: pointer; }

@media (max-width: 920px) {
  .menubtn { display: block; }
  .nav {
    display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--surface);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter-r) 1.1rem var(--gutter); box-shadow: var(--shadow); max-height: 76vh; overflow-y: auto;
  }
  .nav.open { display: flex; }
  .drop > div { position: static; border: 0; box-shadow: none; padding: 0 0 .4rem .9rem; min-width: 0; }
  .nav a, .nav button.navbtn { padding: .6rem .2rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--brand-deep); color: #FFF; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 95% at 88% -10%, rgba(200, 155, 250, .34), transparent 58%),
    radial-gradient(95% 85% at -5% 105%, rgba(216, 16, 23, .18), transparent 60%); }
.hero .wrap { padding-block: clamp(3.2rem, 9vw, 6.5rem); display: grid; gap: 1.4rem; max-width: 980px; }
.kicker { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .22em; text-transform: uppercase; color: var(--brand); }
.hero .kicker { color: #D9BBFF; }
.hero h1 { font-size: var(--step-4); color: #FFF; max-width: 20ch; }
.hero p { font-size: var(--step-1); color: #E4D7F5; max-width: 60ch; }
.hero .btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }

.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 700; font-size: var(--step-0);
  padding: .8rem 1.4rem; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn--solid { background: var(--brand); color: var(--on-brand); }
.btn--solid:hover { background: var(--accent); }
.hero .btn--solid { background: #FFF; color: var(--brand-deep); }
.hero .btn--solid:hover { background: var(--accent); color: #FFF; }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.band:not(.hero) .btn--ghost { color: var(--brand); }
.band:not(.hero) .btn--ghost:hover { background: var(--brand-soft); }

/* ---------- page head (inner pages) ---------- */
.phead { background: var(--brand-deep); color: #FFF; position: relative; overflow: hidden; }
.phead::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(100% 150% at 92% -20%, rgba(200, 155, 250, .28), transparent 60%); }
.phead .wrap { position: relative; padding-block: clamp(2.2rem, 5vw, 3.6rem); display: grid; gap: .5rem; }
.phead h1 { font-size: var(--step-3); color: #FFF; }

/* ---------- prose + grids ---------- */
.prose { display: grid; gap: 1.15rem; max-width: 68ch; }
.prose p { color: var(--muted); }
.prose h2 { font-size: var(--step-2); color: var(--ink); margin-top: .6rem; }
.lead { font-size: var(--step-1); color: var(--ink) !important; font-weight: 600; }
.sechead { display: grid; gap: .5rem; margin-bottom: 2rem; max-width: 62ch; }
.sechead h2 { font-size: var(--step-2); }
.sechead p { color: var(--muted); }

.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem; display: grid; gap: .7rem; align-content: start; min-width: 0; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--accent)); }
.card h3 { font-size: var(--step-1); padding-inline-start: .55rem; }
.card ul { margin: 0; padding-inline-start: 1.15rem; display: grid; gap: .4rem; color: var(--muted); }
.card .more { font-size: var(--step--1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding-inline-start: .55rem; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.checks li { display: flex; gap: .7rem; align-items: start; min-width: 0; }
.checks svg { flex: none; margin-top: .3rem; color: var(--brand); }

.steps { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); counter-reset: s; }
.steps li { list-style: none; display: grid; gap: .55rem; align-content: start; min-width: 0; }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--step-1); color: var(--accent); }
.band--deep .steps p { color: #D9CCEB; }

.split { display: grid; gap: 2.4rem; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- contact ---------- */
.form { display: grid; gap: .95rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.2rem, 3vw, 1.9rem); box-shadow: var(--shadow); }
.field { display: grid; gap: .3rem; min-width: 0; }
.field label { font-size: var(--step--1); font-weight: 600; letter-spacing: .04em; }
.field input, .field textarea, .field select {
  font: inherit; width: 100%; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--ink);
}
.field textarea { min-height: 128px; resize: vertical; }
.consent { font-size: var(--step--1); color: var(--muted); }
.consent a { color: var(--brand); }
.ready { border: 1px solid var(--brand); background: var(--brand-soft); border-radius: 10px; padding: 1rem; display: grid; gap: .7rem; }
.ready pre { font-family: var(--font-mono); font-size: var(--step--1); white-space: pre-wrap; word-break: break-word; margin: 0; max-height: 220px; overflow: auto; }
.ready .row { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn--small { font-size: var(--step--1); padding: .55rem 1rem; }
.err { color: var(--accent); font-size: var(--step--1); }

/* ---------- footer ---------- */
#sitefooter { background: var(--brand-deep); color: #D9CCEB; }
.foot { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); padding-block: 3rem 1.5rem; }
.foot h4 { font-size: var(--step--1); letter-spacing: .18em; text-transform: uppercase; color: #FFF; margin-bottom: .9rem; }
.foot a { color: #E8DCF8; text-decoration: none; }
.foot a:hover { color: #FFF; text-decoration: underline; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: var(--step--1); }
.foot .addr { display: grid; gap: .45rem; font-size: var(--step--1); }
.social { display: flex; gap: .6rem; margin-top: .9rem; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; }
.social a:hover { background: var(--accent); border-color: var(--accent); }
.legal { border-top: 1px solid rgba(255, 255, 255, .15); padding-block: 1.1rem 2rem; font-size: var(--step--1); display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
