@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tiro Devanagari";
  src: url("/fonts/tiro-devanagari.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

:root {
  --bg: #FBF6EC;
  --bg-2: #F5EDDC;
  --surface: #FFFDF8;
  --ink: #1A1C33;
  --muted: #5A5C71;
  --line: #E6DCC7;
  --saffron: #E8891A;
  --saffron-ink: #A65600;
  --red: #C2362F;
  --indigo: #23275E;
  --on-accent: #FFFDF8;
  --glow: rgba(232, 137, 26, 0.16);
  --yantra: #C9781A;
  --yantra-soft: rgba(201, 120, 26, 0.45);
  --tri-fill: rgba(232, 137, 26, 0.06);
  --mark-bg: #23275E;
  --mark-line: #F4A024;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --deva: "Tiro Devanagari", "Kohinoor Devanagari", "Noto Serif Devanagari", serif;
  --radius: 18px;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D0F1E;
    --bg-2: #12152A;
    --surface: #151832;
    --ink: #F4EEE2;
    --muted: #A9AAC0;
    --line: #272B4C;
    --saffron: #F4A024;
    --saffron-ink: #F6B04A;
    --red: #F06A5B;
    --indigo: #F4A024;
    --on-accent: #14162C;
    --glow: rgba(244, 160, 36, 0.13);
    --yantra: #F4A024;
    --yantra-soft: rgba(244, 160, 36, 0.4);
    --tri-fill: rgba(244, 160, 36, 0.05);
    --mark-bg: #1E2250;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2.5px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sprite { position: absolute; }
.skip { position: absolute; left: -999px; top: 12px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* Brand mark */
.mark__bg { fill: var(--mark-bg); }
.mark__line { fill: none; stroke: var(--mark-line); stroke-width: 4; stroke-linejoin: round; }
.mark__bindu { fill: #E5484D; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--saffron); border-color: var(--saffron); color: var(--on-accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--small { min-height: 38px; padding: 8px 16px; font-size: 14.5px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; }
.brand__name { font: 600 22px/1 var(--display); letter-spacing: -0.01em; }
.brand--small .brand__mark { width: 26px; height: 26px; }
.brand--small .brand__name { font-size: 18px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav__links a:not(.btn):hover { color: var(--ink); }

/* Hero */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 auto 30%; height: 120%;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 500; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 4px var(--glow); animation: pulse 2.4s ease-in-out infinite; }
h1 { font-size: clamp(44px, 7.4vw, 92px); margin: 22px 0 22px; font-variation-settings: "opsz" 144, "SOFT" 50; }
h1 em { font-style: italic; color: var(--saffron-ink); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.lede { font-size: clamp(18px, 1.6vw, 20.5px); color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__art { margin: 0; justify-self: center; width: min(100%, 470px); }

/* Yantra drawing */
.yantra { width: 100%; height: auto; overflow: visible; }
.y-line { fill: none; stroke: var(--yantra); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s cubic-bezier(.6,.05,.25,1) forwards; }
.y-thin { stroke: var(--yantra-soft); stroke-width: 1; }
.y-tri { fill: var(--tri-fill); }
.y-petals { transform-origin: 200px 200px; animation: spin 140s linear infinite; }
.y-1 { animation-delay: .1s; }
.y-2 { animation-delay: .35s; }
.y-3 { animation-delay: .6s; stroke: var(--yantra-soft); }
.y-4 { animation-delay: .8s; }
.y-5 { animation-delay: 1.05s; }
.y-6 { animation-delay: 1.3s; }
.y-7 { animation-delay: 1.55s; }
.y-bindu { fill: var(--red); transform-origin: 200px 207px; transform: scale(0); animation: pop .6s 2.3s cubic-bezier(.3,1.6,.5,1) forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { to { transform: scale(1); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }

/* Name band */
.name { background: var(--bg-2); border-block: 1px solid var(--line); padding: clamp(48px, 7vw, 88px) 0; text-align: center; }
.name__title { max-width: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.name__title .deva { font-size: clamp(56px, 9vw, 104px); line-height: 1.25; color: var(--saffron-ink); }
.name__gloss { font: 500 14px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.name__text { max-width: 36em; margin: 18px auto 0; color: var(--muted); }
.deva { font-family: var(--deva); font-weight: 400; }
.scripts { display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; margin-top: 36px; }
.scripts li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; padding: 14px 6px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.scripts span { font-size: clamp(19px, 2.1vw, 26px); line-height: 1.5; white-space: nowrap; }
.scripts small { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Sections */
.features, .download { padding: clamp(64px, 9vw, 120px) 0; }
.kicker { font-size: 13.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron-ink); margin-bottom: 14px; }
h2 { font-size: clamp(32px, 4.6vw, 54px); max-width: 16em; letter-spacing: -0.005em; font-variation-settings: "opsz" 72; }
.section-lede { margin-top: 18px; color: var(--muted); max-width: 36em; font-size: 18px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.card { padding: 28px 26px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: var(--yantra-soft); transform: translateY(-2px); }
.card h3 { font-size: 23px; margin: 18px 0 10px; font-variation-settings: "opsz" 48; }
.card p { color: var(--muted); font-size: 16px; }
.icon { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--glow); fill: none; stroke: var(--saffron-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.download { border-top: 1px solid var(--line); }
.platforms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 44px; }
.platform { display: flex; flex-direction: column; gap: 4px; padding: 22px 20px; border: 1px dashed var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.platform__name { font: 500 22px/1.2 var(--display); }
.platform__meta { font-size: 14px; color: var(--muted); }
.badge { align-self: flex-start; margin-top: 16px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--saffron-ink); background: var(--glow); }

/* Notify */
.notify { padding: 0 0 clamp(64px, 9vw, 120px); }
.notify__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px; padding: clamp(32px, 5vw, 56px); border-radius: 28px; background: var(--indigo); color: #FBF6EC; position: relative; overflow: hidden; }
.notify__inner::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 1px solid rgba(244,160,36,.35); box-shadow: 0 0 0 28px rgba(244,160,36,.06), 0 0 0 60px rgba(244,160,36,.04); pointer-events: none; }
.notify h2 { font-size: clamp(28px, 3.6vw, 42px); }
.notify p { margin-top: 12px; color: rgba(251,246,236,.75); max-width: 30em; }
.notify__actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.notify .btn { background: #F4A024; border-color: #F4A024; color: #1A1C33; }
.notify .btn:hover { background: #FBF6EC; border-color: #FBF6EC; }
.notify .btn--ghost { background: transparent; color: #FBF6EC; border-color: rgba(251,246,236,.35); }
.notify .btn--ghost:hover { background: transparent; border-color: #FBF6EC; color: #FBF6EC; }
@media (prefers-color-scheme: dark) {
  .notify__inner { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
  .notify p { color: var(--muted); }
}

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14.5px; color: var(--muted); }
.footer__inner { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; }
.footer__inner .brand { color: var(--ink); margin-right: auto; }
.footer__note { width: 100%; font-size: 13px; opacity: .85; }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.lost h1 { font-size: clamp(40px, 6vw, 72px); margin: 18px 0; }
.lost p { color: var(--muted); margin-bottom: 28px; }
.lost .deva { font-size: 64px; color: var(--saffron-ink); }

/* Responsive */
@media (max-width: 1000px) {
  .scripts { grid-template-columns: repeat(3, 1fr); max-width: 560px; margin-inline: auto; }
  .scripts span { font-size: 24px; }
  .platforms { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; width: min(72%, 340px); }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav__links a:not(.btn) { display: none; }
  .hero__art { width: min(64%, 260px); }
  .grid { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: repeat(2, 1fr); }
  .scripts span { font-size: 20px; }
  .hero__actions .btn, .notify__actions .btn { width: 100%; }
  .notify__actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .y-line { animation: none; stroke-dashoffset: 0; }
  .y-petals, .dot { animation: none; }
  .y-bindu { animation: none; transform: none; }
  .btn, .card { transition: none; }
}
