/* Nayan — nayan.tulx.app
   Brand: seed teal #1F6F6B, deep #0F2E2B, mint #5BD6A8, paper #E8FBF4, scan #9BF5D2 */

:root {
  --deep: #0F2E2B;
  --deeper: #06201F;
  --teal: #1F6F6B;
  --teal-soft: #14524F;
  --mint: #5BD6A8;
  --mint-bright: #9BF5D2;
  --paper: #E8FBF4;

  --bg: #F6FBF9;
  --surface: #FFFFFF;
  --surface-2: #EAF5F1;
  --text: #10201E;
  --muted: #4E6663;
  --line: #D3E5E0;
  --accent: var(--teal);
  --accent-ink: #FFFFFF;
  --link: #176762;
  --radius: 16px;
  --max: 1080px;
  --prose: 760px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1F1D;
    --surface: #112B28;
    --surface-2: #163531;
    --text: #E8FBF4;
    --muted: #9EBDB6;
    --line: #234641;
    --accent: var(--mint);
    --accent-ink: #06201F;
    --link: #8FE6C4;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1F1D;
  --surface: #112B28;
  --surface-2: #163531;
  --text: #E8FBF4;
  --muted: #9EBDB6;
  --line: #234641;
  --accent: var(--mint);
  --accent-ink: #06201F;
  --link: #8FE6C4;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans", "Noto Sans Bengali", "Noto Sans Devanagari", "Noto Naskh Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; margin-top: 2.2em; }
h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.6em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.4em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.prose { max-width: var(--prose); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 100; }

/* ---- header ---- */
.site-header {
  background: var(--deep);
  color: var(--paper);
  border-bottom: 1px solid rgba(232, 251, 244, 0.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.95rem; }
.nav a { color: rgba(232, 251, 244, 0.82); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--mint-bright); }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--mint); }
@media (max-width: 640px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
}

/* ---- hero ---- */
.hero {
  background:
    radial-gradient(1200px 500px at 20% -10%, rgba(91, 214, 168, 0.18), transparent 60%),
    radial-gradient(800px 400px at 90% 110%, rgba(31, 111, 107, 0.45), transparent 60%),
    var(--deep);
  color: var(--paper);
  padding: 72px 0 64px;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 0.4em; }
.hero .lede { font-size: 1.2rem; color: rgba(232, 251, 244, 0.85); max-width: 34em; }
.hero .mark { width: min(300px, 70vw); margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35)); }
.scripts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 30px; font-size: 1.05rem; color: var(--mint-bright); }
.scripts span { white-space: nowrap; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 14px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--mint); color: var(--deeper); }
.btn-primary:hover { background: var(--mint-bright); }
.btn-ghost { color: var(--paper); border-color: rgba(232, 251, 244, 0.35); }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint-bright); }
.badge-soon { font-size: 0.85rem; color: rgba(232, 251, 244, 0.7); }
@media (max-width: 800px) {
  .hero { padding: 48px 0 44px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .mark { order: -1; width: min(200px, 55vw); }
}

/* ---- sections ---- */
section.block { padding: 56px 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; color: var(--muted); }
.card .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; margin-bottom: 14px; color: var(--accent); }
.card .ic svg { width: 22px; height: 22px; }

table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.97rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; }
.table-wrap { overflow-x: auto; }

.callout { background: var(--surface-2); border-left: 4px solid var(--accent); border-radius: 12px; padding: 16px 18px; margin: 20px 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---- document pages ---- */
.doc-head { padding: 48px 0 8px; }
.doc-head h1 { margin-bottom: 0.3em; }
.doc-meta { color: var(--muted); font-size: 0.95rem; }
.doc-body { padding-bottom: 64px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0 32px; }
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; columns: 2; column-gap: 24px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; margin-bottom: 16px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 700; font-size: 0.95rem;
}

/* ---- footer ---- */
.site-footer { background: var(--deep); color: rgba(232, 251, 244, 0.75); padding: 36px 0; font-size: 0.93rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer a { color: rgba(232, 251, 244, 0.85); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
