:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: rgba(20, 29, 53, .78);
  --text: #f7f8fc;
  --muted: #a8b2c9;
  --accent: #8b9cff;
  --accent2: #69e0cf;
  --line: rgba(255, 255, 255, .12);

  /* Fluid spacing scale */
  --gutter: clamp(14px, 4vw, 32px);
  --radius: clamp(20px, 3.5vw, 28px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  height: 100%;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  height: 100vh;
  height: 100dvh; /* exactly the visible screen, even with mobile address bar */
  overflow: hidden; /* no scrolling: the page fits the display */
  padding:
    max(clamp(10px, 2.5vh, 28px), env(safe-area-inset-top))
    max(var(--gutter), env(safe-area-inset-right))
    max(clamp(10px, 2.5vh, 28px), env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Bengali", sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at 15% 15%, rgba(105, 224, 207, .14), transparent 38%),
    radial-gradient(ellipse at 85% 80%, rgba(139, 156, 255, .19), transparent 42%),
    var(--bg);
}

.wrap {
  width: min(100%, 920px);
  height: 100%;
  min-width: 0;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: clamp(8px, 2vh, 22px);
  flex: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  font-size: clamp(.95rem, 2.6vw, 1.05rem);
}

.mark {
  flex: none;
  width: clamp(34px, 8vw, 38px);
  height: clamp(34px, 8vw, 38px);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #09101d;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  font-weight: 900;
  letter-spacing: 0;
}

.status {
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
}

/* ---------- Main card ---------- */
main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(14px, 4vh, 76px) clamp(20px, 6vw, 76px);
  background: linear-gradient(145deg, rgba(22, 32, 59, .92), rgba(13, 19, 38, .94));
  box-shadow: 0 30px 100px rgba(0, 0, 0, .34);
  text-align: center;
}

main::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(220px, 42vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(139, 156, 255, .18);
  top: calc(clamp(220px, 42vw, 360px) * -.64);
  right: calc(clamp(220px, 42vw, 360px) * -.28);
  box-shadow: 0 0 0 35px rgba(139, 156, 255, .035), 0 0 0 70px rgba(139, 156, 255, .025);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--accent2);
  font-size: clamp(.68rem, 2.2vw, .78rem);
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 14px var(--accent2);
}

h1 {
  margin: clamp(8px, 2.5vh, 22px) 0 clamp(8px, 2vh, 16px);
  font-size: clamp(1.7rem, min(9.5vw, 11vh), 5.7rem);
  line-height: 1;
  letter-spacing: -.06em;
  font-weight: 850;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 span {
  display: block;
  background: linear-gradient(100deg, #fff 15%, #aebaff 56%, #7ce6d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* prevents clipped descenders/letters on the gradient text */
  padding-bottom: .08em;
}

.lead {
  max-width: 36em;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(.85rem, min(2.4vw, 2.4vh), 1.15rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.divider {
  width: 74px;
  height: 3px;
  border-radius: 10px;
  margin: clamp(10px, 3vh, 34px) auto clamp(8px, 2.5vh, 25px);
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.note { margin: 0; color: #dce3f4; font-size: clamp(.9rem, 2.2vw, .95rem); }

.domain {
  margin: clamp(8px, 2.5vh, 30px) 0 0;
  color: var(--muted);
  font-size: .9rem;
}
.domain strong { color: var(--text); letter-spacing: .04em; }

/* ---------- Footer ---------- */
footer {
  padding: clamp(8px, 2vh, 20px) 8px 0;
  flex: none;
  display: flex;
  justify-content: center;
  gap: 6px 12px;
  flex-wrap: wrap;
  color: #7f8aa5;
  font-size: .78rem;
}

/* ---------- Large screens ---------- */
@media (min-width: 1200px) {
  .wrap { width: min(100%, 1040px); }
}

/* ---------- Tablets & phones ---------- */
@media (max-width: 560px) {
  .top { align-items: center; }
  .status { font-size: .66rem; padding: 7px 10px; letter-spacing: .06em; }
  .eyebrow { letter-spacing: .14em; }
}

/* ---------- Small phones (≤ 380px) ---------- */
@media (max-width: 380px) {
  .top { flex-direction: column; gap: 12px; }
  .status { width: 100%; }
  h1 { letter-spacing: -.05em; }
}

/* ---------- Short screens (landscape phones): trim extras so all fits ---------- */
@media (max-height: 520px) {
  .note, .divider { display: none; }
  .status { padding: 5px 10px; }
  footer { font-size: .7rem; }
}
@media (max-height: 380px) {
  .eyebrow { display: none; }
  .lead { line-height: 1.5; }
}

/* ---------- Motion & contrast preferences ---------- */
@media (prefers-reduced-motion: no-preference) {
  main { animation: rise .7s ease-out both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

@media (forced-colors: active) {
  h1 span { -webkit-text-fill-color: currentColor; background: none; color: CanvasText; }
}

@media print {
  body { background: #fff; color: #000; }
  main { box-shadow: none; border-color: #999; background: none; }
  h1 span, .lead, .note, .domain, footer { color: #000; -webkit-text-fill-color: #000; background: none; }
}
