:root {
  color-scheme: dark;
  --ground: #05070f;
  --ink: #e8eaf0;
  --muted: #9aa0b4;
  --line: #2a2f42;
  --kesri: #ff8a3d;
  --basanti: #f5c542;
  --surmaiee: #7b8cff;
  --brand: #37d399;
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Instrument Serif", ui-serif, Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rail: min(640px, calc(100% - 2.5rem));
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--kesri);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* —— Legal / utility pages —— */
.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.logo {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 0 1.25rem;
}

.brand {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.wrap h1 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 2rem;
}

.wrap h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
}

.wrap p {
  margin: 0 0 0.85rem;
  color: var(--ink);
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

nav.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

nav.links a {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
}

nav.links a:hover {
  border-color: var(--kesri);
  text-decoration: none;
}

.foot {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.foot a {
  color: var(--muted);
}

/* —— Home: thin vertical flow —— */
body.home {
  overflow-x: clip;
}

body.home .bloom {
  position: fixed;
  inset: 0 0 auto;
  height: 70vh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse 80% 55% at 50% -5%,
    rgba(255, 138, 61, 0.2),
    transparent 70%
  );
}

body.home > header,
body.home > main,
body.home > footer {
  position: relative;
  z-index: 1;
}

.top {
  width: var(--rail);
  margin: 0 auto;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  line-height: 1;
}

.mark img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  flex: 0 0 auto;
}

.mark-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.05;
}

.mark-pa {
  color: var(--kesri);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
}

.mark-en {
  color: var(--brand);
  letter-spacing: -0.03em;
}

.mark:hover {
  text-decoration: none;
  opacity: 0.92;
}

.wrap > .mark {
  margin: 0 0 1.75rem;
}

.site-foot .mark {
  margin: 0 0 0.35rem;
}

@media (max-width: 520px) {
  .mark {
    gap: 0.65rem;
  }

  .mark img {
    width: 72px;
    height: 72px;
  }

  .mark-text {
    font-size: 2.25rem;
    gap: 0.4rem;
  }
}

.top-nav {
  display: flex;
  gap: 1.2rem;
}

.top-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.top-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.hero {
  width: var(--rail);
  margin: 0 auto;
  padding: 2.25rem 0 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero .lede {
  margin: 0 auto 1.75rem;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 10.75rem;
  padding: 0.65rem 0.95rem;
  border-radius: 12px;
  background: #0e1220;
  border: 1px solid rgba(232, 234, 240, 0.16);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  transition: border-color 0.25s var(--ease);
}

.store:hover {
  text-decoration: none;
  border-color: rgba(255, 138, 61, 0.55);
}

.store span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store small {
  font-size: 0.66rem;
  color: var(--muted);
}

.store strong {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.store-soon {
  opacity: 0.7;
}

.store-note {
  margin: 0.8rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-device {
  margin: 2.75rem 0 0;
  width: min(100%, 280px);
}

.device-frame {
  position: relative;
  border-radius: 1.85rem;
  padding: 0.45rem;
  background: linear-gradient(165deg, #30364d 0%, #141825 42%, #090c14 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 28px 48px rgba(0, 0, 0, 0.45);
}

.device-frame::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: 50%;
  z-index: 2;
  width: 26%;
  height: 0.38rem;
  border-radius: 999px;
  transform: translateX(-50%);
  background: #05070f;
}

.device-frame img {
  width: 100%;
  border-radius: 1.45rem;
  background: var(--ground);
}

/* Tenet sections — same rhythm each time */
.tenet {
  width: var(--rail);
  margin: 0 auto;
  padding: 3.25rem 0;
  border-top: 1px solid var(--line);
}

.tenet-head {
  margin: 0 0 1.75rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.7rem;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.tenet-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-lede {
  margin: 0;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.rings {
  margin: 0 auto;
  width: 70%;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #070a14;
}

.rings img {
  width: 100%;
  display: block;
}

.tenet-device {
  margin: 0;
  display: flex;
  justify-content: center;
}

.tenet-device .device {
  width: min(100%, 280px);
}

.tick {
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 2px;
  flex: 0 0 auto;
}

.tick.naam {
  background: var(--kesri);
}
.tick.kirat {
  background: var(--surmaiee);
}
.tick.vand {
  background: var(--basanti);
}

.site-foot {
  border-top: 1px solid var(--line);
}

.site-foot-inner {
  width: var(--rail);
  margin: 0 auto;
  padding: 1.6rem 0 2.4rem;
  display: grid;
  gap: 0.8rem;
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
}

.site-foot nav a {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-foot nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
