/* HURANTEA — shared styles. Themes: auto (follows device), light, dark, glass */
:root {
  --bg: #f7f8fb; --bg2: #ffffff; --surface: #ffffff; --surface2: #f1f3f8;
  --text: #0f172a; --muted: #5b6477; --line: #e3e7ef;
  --brand: #4f46e5; --brand2: #0ea5a4; --brand-ink: #ffffff;
  --ok: #059669; --warn: #b45309; --bad: #dc2626;
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
  --radius: 16px; --blur: none;
  --hero-glow: radial-gradient(60% 60% at 70% 10%, rgba(79,70,229,.14), transparent 70%),
               radial-gradient(50% 50% at 10% 30%, rgba(14,165,164,.12), transparent 70%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --bg: #0b0f19; --bg2: #0f1422; --surface: #121829; --surface2: #182036;
    --text: #e8ecf5; --muted: #9aa4ba; --line: #232c44;
    --brand: #818cf8; --brand2: #2dd4bf; --brand-ink: #0b0f19;
    --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
    --hero-glow: radial-gradient(60% 60% at 70% 10%, rgba(129,140,248,.18), transparent 70%),
                 radial-gradient(50% 50% at 10% 30%, rgba(45,212,191,.12), transparent 70%);
    color-scheme: dark;
  }
}
html[data-theme="dark"] {
  --bg: #0b0f19; --bg2: #0f1422; --surface: #121829; --surface2: #182036;
  --text: #e8ecf5; --muted: #9aa4ba; --line: #232c44;
  --brand: #818cf8; --brand2: #2dd4bf; --brand-ink: #0b0f19;
  --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
  --hero-glow: radial-gradient(60% 60% at 70% 10%, rgba(129,140,248,.18), transparent 70%),
               radial-gradient(50% 50% at 10% 30%, rgba(45,212,191,.12), transparent 70%);
  color-scheme: dark;
}
/* Glass: see-through frosted panels floating in a dark universe */
html[data-theme="glass"] {
  --bg: #03040b; --bg2: transparent; --surface: rgba(255,255,255,.055); --surface2: rgba(255,255,255,.05);
  --text: #eef1ff; --muted: #a9b1d1; --line: rgba(255,255,255,.12);
  --brand: #a5b4fc; --brand2: #67e8f9; --brand-ink: #03040b;
  --ok: #6ee7b7; --warn: #fcd34d; --bad: #fca5a5;
  --shadow: 0 8px 40px rgba(0,0,0,.55); --blur: blur(16px) saturate(130%);
  --hero-glow: none; color-scheme: dark;
}
html[data-theme="glass"] body { background: #03040b; }
/* Living universe layer (assets/universe.js) */
.universe { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #03040b; }
.universe-img { position: absolute; inset: -6%;
  background: #03040b url("universe.jpg") center / cover no-repeat;
  transform: translate3d(calc(var(--px, 0) * -24px), calc(var(--py, 0) * -24px), 0) scale(1.06);
  animation: drift 120s ease-in-out infinite alternate; will-change: transform; }
.universe-img::after { content: ""; position: absolute; inset: 0;  /* keeps text readable */
  background: radial-gradient(120% 90% at 50% 40%, rgba(3,4,11,.25), rgba(3,4,11,.72)); }
@keyframes drift {
  0%   { background-position: 45% 50%; scale: 1.00; rotate: 0deg; }
  50%  { background-position: 55% 45%; scale: 1.06; rotate: .6deg; }
  100% { background-position: 50% 56%; scale: 1.03; rotate: -.4deg; }
}
.universe-fx { position: absolute; inset: 0; }
/* per-mode looks */
.universe[data-mode="dark"] .universe-img::after { background: radial-gradient(120% 90% at 50% 40%, rgba(11,15,25,.45), rgba(11,15,25,.86)); }
.universe[data-mode="light"] { background: #f7f8fb; }
.universe[data-mode="light"] .universe-img { background-image: url("universe-light.jpg"); background-color: #f7f8fb; }
.universe[data-mode="light"] .universe-img::after { background: radial-gradient(120% 90% at 50% 40%, rgba(247,248,251,.10), rgba(247,248,251,.55)); }
/* let the living background show through panels in every mode */
html[data-theme="light-legacy"], html[data-theme="dark"], html[data-theme="auto"] { --blur: blur(14px) saturate(140%); }
html[data-theme="light-legacy"] { --surface: rgba(255,255,255,.78); --surface2: rgba(241,243,248,.72); --bg2: transparent; }
html[data-theme="dark"] { --surface: rgba(18,24,41,.78); --surface2: rgba(24,32,54,.70); --bg2: transparent; }
@media (prefers-color-scheme: light) { html[data-theme="auto-legacy"] { --surface: rgba(255,255,255,.78); --surface2: rgba(241,243,248,.72); --bg2: transparent; } }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] { --surface: rgba(18,24,41,.78); --surface2: rgba(24,32,54,.70); --bg2: transparent; } }
html .card, html .nav, html .menu, html input, html textarea, html select, html .toast, html .modal-box { backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
html:not([data-theme="glass"]) .alt { background: color-mix(in srgb, var(--surface) 35%, transparent); }
html:not([data-theme="glass"]) .hero { background: none; }
html:not([data-theme="glass"]) body { background: transparent; }
@media (prefers-reduced-motion: reduce) { .universe-img { animation: none; } }
html[data-theme="glass"] .card, html[data-theme="glass"] .nav, html[data-theme="glass"] .panel,
html[data-theme="glass"] .menu, html[data-theme="glass"] input, html[data-theme="glass"] textarea,
html[data-theme="glass"] select, html[data-theme="glass"] .toast, html[data-theme="glass"] .modal-box {
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased;
  transition: background-color .25s, color .25s;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.grad { background: linear-gradient(90deg, var(--brand), var(--brand2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
html[data-theme="glass"] .nav { background: rgba(3,4,11,.45); }
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand2));
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 900; }
.links { display: flex; gap: 4px; margin-left: 12px; }
.links a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 550; font-size: .95rem; }
.links a:hover, .links a.on { color: var(--text); background: var(--surface2); text-decoration: none; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav .burger { display: none; }
@media (max-width: 820px) {
  .links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: 10px 16px 16px;
    background: var(--bg2); border-bottom: 1px solid var(--line); margin: 0; }
  html[data-theme="glass"] .links { background: rgba(3,4,11,.88); backdrop-filter: blur(18px); }
  .links.open { display: flex; }
  .links a { padding: 12px; }
  .nav .burger { display: inline-flex; }
  .nav-cta { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  padding: 11px 18px; border-radius: 12px; font-weight: 650; font-size: .97rem; cursor: pointer; font-family: inherit;
  transition: transform .08s, box-shadow .2s, background .2s; text-decoration: none !important; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, var(--brand2))); color: var(--brand-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 30%, transparent); }
html:not([data-theme="dark"]):not([data-theme="glass"]) .btn-primary { color: #fff; }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] .btn-primary { color: var(--brand-ink); } }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface2); }
.btn-sm { padding: 7px 12px; font-size: .88rem; border-radius: 10px; }
.btn-lg { padding: 14px 22px; font-size: 1.05rem; border-radius: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.icon-btn { width: 38px; height: 38px; padding: 0; border-radius: 10px; }

/* Theme menu */
.theme { position: relative; }
.menu { position: absolute; right: 0; top: 46px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 6px; min-width: 190px; display: none; z-index: 30; }
.menu.open { display: block; }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; background: none; border: 0; color: var(--text);
  padding: 9px 10px; border-radius: 9px; font: inherit; cursor: pointer; text-align: left; }
.menu button:hover { background: var(--surface2); }
.menu button.on::after { content: "✓"; margin-left: auto; color: var(--brand); font-weight: 800; }
.menu small { display: block; color: var(--muted); padding: 6px 10px 4px; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }

/* Sections */
section { padding: 72px 0; }
.hero { padding: 88px 0 64px; background: var(--hero-glow); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 56px; } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); color: var(--muted); font-size: .85rem; font-weight: 600; margin-bottom: 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 560px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.checks { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: .92rem; }
.checks span::before { content: "✓ "; color: var(--ok); font-weight: 800; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 820px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.step-n { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800;
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); margin-bottom: 14px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
html[data-theme="glass"] .alt { background: rgba(255,255,255,.025); }
html[data-theme="glass"] .menu { background: rgba(10,12,28,.82); }

/* Hero mock card */
.mock { position: relative; }
.mock .card { padding: 18px; }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--surface2); margin-top: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); white-space: nowrap; }
.tag.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.tag.warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.tag.bad { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
.typing { display: inline-flex; gap: 3px; } .typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: b 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes b { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* Forms */
.form { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-weight: 600; font-size: .93rem; }
label .hint { font-weight: 450; color: var(--muted); font-size: .84rem; }
input, textarea, select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: inherit; font-weight: 450; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
textarea { min-height: 150px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); }
.page { padding: 56px 0 80px; }
.page-head { margin-bottom: 28px; }
.side-list { display: grid; gap: 14px; }
.side-list div { display: flex; gap: 12px; }
.side-list b { display: block; }
.layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

/* Status / track */
.timeline { display: flex; gap: 6px; margin: 16px 0; }
.timeline span { flex: 1; height: 6px; border-radius: 6px; background: var(--surface2); }
.timeline span.on { background: linear-gradient(90deg, var(--brand), var(--brand2)); }
.price { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.req { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.req:first-child { border-top: 0; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; background: var(--surface2); padding: 3px 8px; border-radius: 8px; word-break: break-all; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; }
details summary::after { content: "+"; color: var(--muted); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a { color: var(--muted); margin-right: 16px; }

/* Toast + modal */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--surface);
  color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 18px; border-radius: 12px; z-index: 50;
  transition: all .25s; pointer-events: none; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; place-items: center; z-index: 40; padding: 20px; }
.modal.open { display: grid; }
.modal-box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; max-width: 620px; width: 100%; max-height: 85vh; overflow: auto; }
.preview-ribbon { background: color-mix(in srgb, var(--warn) 16%, var(--bg)); color: var(--text); text-align: center; font-size: .85rem; padding: 7px 12px; border-bottom: 1px solid var(--line); }
.hidden { display: none !important; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: s .7s linear infinite; }
@keyframes s { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Admin */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi .val { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.kpi .lbl { color: var(--muted); font-size: .85rem; }
.bar { height: 10px; border-radius: 10px; background: var(--surface2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand2)); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.tablewrap { overflow-x: auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 22px 0; }
.tabs button { border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 9px 14px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; }
.tabs button.on { color: var(--text); border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.log { font-family: ui-monospace, Menlo, monospace; font-size: .84rem; display: grid; gap: 6px; max-height: 420px; overflow: auto; }
.log div { padding: 8px 10px; background: var(--surface2); border-radius: 8px; }

.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Settings menu */
.menu .sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu a.mi { display: flex; align-items: center; gap: 10px; color: var(--text); padding: 9px 10px; border-radius: 9px; text-decoration: none; }
.menu a.mi:hover { background: var(--surface2); }
.menu { min-width: 230px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 2px 4px 6px; }
.seg button { flex-direction: column; justify-content: center; gap: 4px; padding: 8px 2px; font-size: .74rem; border: 1px solid var(--line); text-align: center; }
.seg button.on { border-color: var(--brand); color: var(--text); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.seg button.on::after { content: none; }

/* ===== 2026 upgrades: kinetic type, scroll story, micro-interactions ===== */
.hero-title { font-size: clamp(2.4rem, 6.2vw, 4.8rem); letter-spacing: -0.035em; line-height: 1.02; }
.rot-wrap { display: inline-block; vertical-align: bottom; }
.rot { display: inline-block; transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .32s, filter .32s; }
.rot.out { transform: translateY(-0.35em); opacity: 0; filter: blur(6px); }
.rot.in { animation: rotIn .45s cubic-bezier(.2,.8,.2,1); }
@keyframes rotIn { from { transform: translateY(0.4em); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }

html.js-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
html.js-reveal .reveal.shown { opacity: 1; transform: none; }

.story { position: relative; }
.story-line { height: 2px; background: var(--line); border-radius: 2px; margin: -8px auto 28px; max-width: 760px; overflow: hidden; }
.story-line i { display: block; height: 100%; width: calc(var(--story, 0) * 100%); background: linear-gradient(90deg, var(--brand), var(--brand2)); box-shadow: 0 0 12px var(--brand2); transition: width .1s linear; }
.story .step-n { transition: box-shadow .4s, transform .4s; }
.story .card.shown .step-n { box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 12%, transparent), 0 0 24px color-mix(in srgb, var(--brand) 35%, transparent); }

/* cursor light on cards */
.card { position: relative; isolation: isolate; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%); }
/* DIAG-048: the cursor light follows a real mouse only (a phone tap used to leave it stuck on), and it is softer */
@media (hover: hover) and (pointer: fine) { .card:hover::before { opacity: .55; } }
.magnet { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background .2s; will-change: transform; }
.btn-primary:hover { box-shadow: 0 10px 30px color-mix(in srgb, var(--brand) 45%, transparent); }
.tilt { transition: transform .35s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.academy-band { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
@media (max-width: 700px) { .academy-band { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .magnet, .tilt { transform: none !important; } }
.rot-wrap { display: block; white-space: nowrap; min-height: 1.02em; }
.hero-title { max-width: 12ch; }
.seg.seg2 { grid-template-columns: 1fr 1fr; }
.seg.seg2 button { flex-direction: row; font-size: .84rem; padding: 8px 6px; }
html[data-motion="off"] .universe-img { animation: none; }
html[data-motion="off"] .reveal { opacity: 1; transform: none; transition: none; }
html[data-motion="off"] .magnet, html[data-motion="off"] .tilt { transform: none !important; }
html[data-motion="off"] .typing i, html[data-motion="off"] .dot { animation: none; }

/* ===== Arabic / right-to-left ===== */
[dir="rtl"] body { font-family: "SF Arabic", "Geeza Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, ui-sans-serif, system-ui, sans-serif; line-height: 1.7; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .hero-title, [dir="rtl"] .eyebrow, [dir="rtl"] .price, [dir="rtl"] .kpi .val, [dir="rtl"] .menu small, [dir="rtl"] th { letter-spacing: 0; }
[dir="rtl"] .hero-title { line-height: 1.25; max-width: 14ch; }
[dir="rtl"] .links { margin-left: 0; margin-right: 12px; }
[dir="rtl"] .nav-right { margin-left: 0; margin-right: auto; }
[dir="rtl"] .menu { right: auto; left: 0; }
[dir="rtl"] .menu button, [dir="rtl"] th, [dir="rtl"] td { text-align: right; }
[dir="rtl"] .menu button.on::after { margin-left: 0; margin-right: auto; }
[dir="rtl"] ol { padding-left: 0 !important; padding-right: 20px; }
[dir="rtl"] footer a { margin-right: 0; margin-left: 16px; }
[dir="rtl"] .btn [aria-hidden="true"] { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] input[type="email"], [dir="rtl"] input[name="contact"], [dir="rtl"] input[name="payoutDetails"], [dir="rtl"] input[name="code"], [dir="rtl"] .code { direction: ltr; text-align: right; }
[dir="rtl"] .side-list div { text-align: right; }

/* lighter images: WebP, and a small one for phones */
.universe-img { background-image: image-set(url("universe.webp") type("image/webp"), url("universe.jpg") type("image/jpeg")); }
.universe[data-mode="light"] .universe-img { background-image: image-set(url("universe-light.webp") type("image/webp"), url("universe-light.jpg") type("image/jpeg")); }
@media (max-width: 700px) {
  .universe-img { background-image: url("universe-phone.webp"); animation-duration: 180s; }
  .universe[data-mode="light"] .universe-img { background-image: url("universe-light-phone.webp"); }
  .universe-img::after { background: radial-gradient(120% 90% at 50% 30%, rgba(3,4,11,.35), rgba(3,4,11,.78)); }
}
/* non-Latin scripts: no tight letter-spacing, roomier lines */
html:is([lang="ar"],[lang="ur"],[lang="bn"],[lang="hi"],[lang="zh"]) :is(h1,h2,h3,.hero-title,.eyebrow,.price,.kpi .val) { letter-spacing: 0; }
html:is([lang="bn"],[lang="hi"]) .hero-title { line-height: 1.25; max-width: 14ch; }
html[lang="zh"] .hero-title { line-height: 1.15; max-width: 11ch; }
html[lang="ur"] body { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; line-height: 1.9; }
html[lang="ur"] .hero-title { line-height: 1.45; }
html[lang="bn"] body { font-family: "Noto Sans Bengali", "Hind Siliguri", "Kohinoor Bangla", ui-sans-serif, system-ui, sans-serif; }
html[lang="hi"] body { font-family: "Noto Sans Devanagari", "Kohinoor Devanagari", ui-sans-serif, system-ui, sans-serif; }
html[lang="zh"] body { font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif; }
html:is([lang="bn"],[lang="hi"],[lang="ur"],[lang="fr"],[lang="pt"],[lang="es"],[lang="id"]) .hero-title { font-size: clamp(2rem, 4.6vw, 3.7rem); max-width: 16ch; }

/* =====================================================================
   HURANTEA OS — 2026 redesign
   ===================================================================== */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
h1, h2, h3, .os-title { font-family: "SF Pro Display", ui-sans-serif, -apple-system, "Segoe UI", Inter, system-ui, sans-serif; }
section { padding: 110px 0; }
.card { border-radius: 22px; }
main { position: relative; z-index: 1; }
.preview-ribbon { position: fixed; left: 14px; bottom: 14px; z-index: 60; border-radius: 999px; font-size: .74rem; padding: 6px 12px; border: 1px solid var(--line); backdrop-filter: blur(12px); max-width: calc(100vw - 28px); }

/* floating glass navigation */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); width: min(1160px, calc(100% - 24px)); border-radius: 22px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 58%, transparent); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 10px 40px rgba(0,0,0,.12); }
html[data-theme="glass"] .nav { background: rgba(8,10,24,.42); }
.nav .wrap { height: 58px; padding: 0 10px 0 16px; max-width: none; }
.page { padding-top: 120px; }

/* phone dock */
.dock { display: none; }
@media (max-width: 820px) {
  .nav .burger, .nav .links { display: none !important; }
  .dock { display: flex; position: fixed; z-index: 30; left: 50%; bottom: 12px; transform: translateX(-50%); gap: 2px; padding: 6px; border-radius: 24px;
    border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 62%, transparent); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
    box-shadow: 0 10px 40px rgba(0,0,0,.25); }
  .dock a { display: grid; justify-items: center; gap: 2px; min-width: 62px; padding: 7px 6px 6px; border-radius: 18px; color: var(--muted); font-size: .66rem; font-weight: 650; text-decoration: none; }
  .dock a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .dock a.on { color: var(--text); background: color-mix(in srgb, var(--brand) 16%, transparent); }
  body { padding-bottom: 92px; }
  .preview-ribbon { bottom: 92px; }
}

/* 3D stage */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; transition: opacity .3s ease; }
.stage.off { display: none; }
.core-canvas { width: 100%; height: 100%; display: block; }
.core-fallback::before { content: ""; position: absolute; width: min(60vw, 560px); aspect-ratio: 1; right: 6vw; top: 50%; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8, transparent 30%), radial-gradient(circle, var(--brand), var(--brand2) 60%, transparent 70%); filter: blur(2px); opacity: .8; }

/* hero: the homepage IS the product */
.os-hero { min-height: 100svh; display: grid; align-items: center; padding: 120px 0 80px; position: relative; }
.os-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.os-title { font-size: clamp(2.9rem, 7.2vw, 6.4rem); line-height: .98; letter-spacing: -0.048em; font-weight: 800; margin: 0 0 22px; }
.os-copy .lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 560px; }
.command { position: relative; isolation: isolate; margin-top: 30px; display: flex; align-items: flex-end; gap: 10px; padding: 10px 10px 10px 22px; border-radius: 26px;
  background: color-mix(in srgb, var(--surface) 78%, transparent); border: 1px solid var(--line); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 20px 60px rgba(0,0,0,.18); max-width: 640px; }
.cmd-glow { position: absolute; inset: -2px; border-radius: 28px; z-index: -1; filter: blur(16px); opacity: .5; transition: opacity .3s;
  background: conic-gradient(from var(--ang), var(--brand), var(--brand2), #5ee8ff, var(--brand)); animation: spinAng 6s linear infinite; }
@keyframes spinAng { to { --ang: 360deg; } }
.command:focus-within .cmd-glow { opacity: .95; }
.command textarea { flex: 1; border: 0; background: transparent; box-shadow: none !important; resize: none; min-height: 32px; padding: 12px 0; font-size: 1.18rem; line-height: 1.35; color: var(--text); }
.command textarea:focus { border: 0; }
.cmd-go { width: 52px; height: 52px; flex: none; border: 0; border-radius: 18px; cursor: pointer; color: #fff; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 40%, transparent); transition: transform .15s; }
.cmd-go:hover { transform: scale(1.06); }
[dir="rtl"] .cmd-go svg { transform: scaleX(-1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; max-width: 640px; }
.chip { border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); color: var(--muted); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; backdrop-filter: blur(10px); }
.chip:hover { color: var(--text); border-color: var(--brand); }

/* floating spatial cards (generative UI) */
.spatial { position: relative; min-height: 480px; }
.scard { position: absolute; display: grid; gap: 8px; padding: 15px 17px; border-radius: 20px; min-width: 210px; max-width: 290px; text-align: start;
  background: color-mix(in srgb, var(--surface) 72%, transparent); border: 1px solid var(--line); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 18px 50px rgba(0,0,0,.22); animation: scIn .6s cubic-bezier(.2,.8,.2,1) both, scFloat 7s ease-in-out infinite; animation-delay: calc(var(--i) * 90ms), calc(var(--i) * -1.7s); }
.scard-k { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.scard .big { font-size: 1.55rem; letter-spacing: -0.02em; }
.scard-n { font-size: .78rem; color: var(--muted); }
.scard-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.conf { height: 5px; border-radius: 5px; background: var(--surface2); overflow: hidden; } .conf i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand2)); transition: width .4s; }
.scard.idle { inset-inline-start: 50%; top: 50%; transform: translate(-50%, -50%); animation: scIn .6s both; text-align: center; justify-items: center; }
[dir="rtl"] .scard.idle { transform: translate(50%, -50%); }
.scard.s1 { top: 0; inset-inline-start: 0; } .scard.s2 { top: 34%; inset-inline-end: 0; } .scard.s3 { bottom: 16%; inset-inline-start: 4%; }
.scard.s4 { bottom: 0; inset-inline-end: 6%; min-width: 0; border: 0; color: #fff; font-weight: 750; font-size: 1rem; cursor: pointer; padding: 16px 22px; grid-auto-flow: column; align-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); }
html:is([data-theme="dark"],[data-theme="glass"]) .scard.s4 { color: var(--brand-ink); }
@keyframes scIn { from { opacity: 0; transform: translateY(18px) scale(.94); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes scFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--muted); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 900px) {
  .os-grid { grid-template-columns: 1fr; gap: 18px; }
  .os-hero { padding-top: 100px; align-items: start; }
  .spatial { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .scard, .scard.idle { position: relative; inset: auto !important; transform: none; max-width: none; min-width: 0; }
  .scard.s1, .scard.s4 { grid-column: span 2; }
  .scroll-cue { display: none; }
}

/* pinned scroll story — the same Core morphs */
.os-story { height: 420vh; padding: 0; }
.story-pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
.story-grid { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; width: 100%; }
.story-meter { order: -1; width: 3px; height: 260px; border-radius: 3px; background: var(--line); overflow: hidden; }
.story-meter i { display: block; width: 100%; height: 0; background: linear-gradient(180deg, var(--brand), var(--brand2)); box-shadow: 0 0 14px var(--brand2); }
.story-steps { position: relative; height: 320px; max-width: 480px; }
.sstep { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .55s, transform .65s cubic-bezier(.2,.8,.2,1), filter .55s; pointer-events: none; }
.sstep.on { opacity: 1; transform: none; filter: none; }
.sstep h2 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); letter-spacing: -0.035em; line-height: 1.02; }
.sstep p { font-size: 1.12rem; color: var(--muted); max-width: 420px; }
@media (max-width: 900px) { .story-pin { align-items: flex-start; padding-top: 110px; } .story-meter { height: 200px; } .story-steps { height: 260px; } }
html[data-motion="off"] .os-story { height: auto; } html[data-motion="off"] .story-pin { position: static; height: auto; padding: 60px 0; }
html[data-motion="off"] .story-steps { height: auto; display: grid; gap: 28px; } html[data-motion="off"] .sstep { position: static; opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .os-story { height: auto; } .story-pin { position: static; height: auto; padding: 60px 0; } .story-steps { height: auto; display: grid; gap: 28px; } .sstep { position: static; opacity: 1; transform: none; filter: none; } }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 214px; gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 6px; text-decoration: none !important; color: var(--text); overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,.2); }
.tile h3 { font-size: 1.45rem; margin: 10px 0 0; letter-spacing: -0.02em; } .tile p { margin: 0; }
.tile-cta { margin-top: auto; color: var(--brand); font-weight: 700; }
.t-client { grid-column: span 3; grid-row: span 2; } .t-client h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.t-talent, .t-academy { grid-column: span 3; } .t-safe, .t-pay, .t-lang { grid-column: span 2; }
.viz { position: absolute; pointer-events: none; }
.viz-bars { inset-inline-end: 26px; bottom: 26px; display: flex; align-items: flex-end; gap: 8px; height: 140px; }
.viz-bars i { width: 22px; border-radius: 8px; background: linear-gradient(180deg, var(--brand2), var(--brand)); animation: bar 3.2s ease-in-out infinite; opacity: .85; }
.viz-bars i:nth-child(1) { height: 40%; } .viz-bars i:nth-child(2) { height: 70%; animation-delay: -.6s; } .viz-bars i:nth-child(3) { height: 55%; animation-delay: -1.2s; } .viz-bars i:nth-child(4) { height: 90%; animation-delay: -1.8s; } .viz-bars i:nth-child(5) { height: 65%; animation-delay: -2.4s; }
@keyframes bar { 50% { transform: scaleY(.6); } } .viz-bars i { transform-origin: bottom; }
.viz-orbit { inset-inline-end: 22px; top: 22px; width: 110px; height: 110px; border: 1px dashed var(--line); border-radius: 50%; animation: orbit 14s linear infinite; }
.viz-orbit i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--brand2); box-shadow: 0 0 14px var(--brand2); }
.viz-orbit i:nth-child(1) { top: -6px; left: 49px; } .viz-orbit i:nth-child(2) { bottom: 8px; left: 4px; background: var(--brand); box-shadow: 0 0 14px var(--brand); } .viz-orbit i:nth-child(3) { bottom: 8px; right: 4px; background: #fbbf24; box-shadow: 0 0 14px #fbbf24; }
@keyframes orbit { to { transform: rotate(360deg); } }
.viz-shield { inset-inline-end: -30px; bottom: -30px; width: 150px; height: 150px; border-radius: 40%; background: radial-gradient(circle, color-mix(in srgb, var(--ok) 45%, transparent), transparent 70%); animation: pulseS 4s ease-in-out infinite; }
@keyframes pulseS { 50% { transform: scale(1.15); opacity: .6; } }
.viz-lang { position: static; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.viz-lang span { font-size: .78rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 820px) { .bento { grid-template-columns: 1fr; grid-auto-rows: auto; } .tile { grid-column: auto !important; grid-row: auto !important; min-height: 190px; } .t-client { min-height: 300px; } }

/* ratings */
.rate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 820px) { .rate-grid { grid-template-columns: 1fr; } }
.stars { display: flex; gap: 6px; }
.stars button { font-size: 2.4rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--line); transition: transform .15s, color .15s; padding: 0 2px; }
.stars button.on { color: #fbbf24; text-shadow: 0 0 18px rgba(251,191,36,.5); } .stars button:hover { transform: scale(1.15); }
.rate-big { font-size: 4.2rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; } .rate-big span { font-size: 1.4rem; color: var(--muted); }
.stars-static { font-size: 1.5rem; letter-spacing: 2px; background: linear-gradient(90deg, #fbbf24 calc(var(--v) * 100%), var(--line) 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rq { margin: 14px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--surface2); } .rq cite { display: block; margin-top: 6px; font-style: normal; color: var(--muted); font-size: .85rem; }
.rate-summary { margin-top: 18px; }
/* command bar: solid glass so the glow frames it instead of shining through */
.command { background: rgba(255,255,255,.9); }
html:is([data-theme="dark"],[data-theme="glass"]) .command { background: rgba(10,12,28,.82); }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] .command { background: rgba(10,12,28,.82); } }
.command textarea { background: transparent !important; backdrop-filter: none !important; }
/* calmer backdrop on the homepage so the AI Core is the hero object */
body[data-route="home"] .universe-img::after { background: radial-gradient(120% 90% at 65% 45%, rgba(3,4,11,.45), rgba(3,4,11,.88)); }
body[data-route="home"] .universe[data-mode="light"] .universe-img::after { background: radial-gradient(120% 90% at 65% 45%, rgba(247,248,251,.35), rgba(247,248,251,.8)); }
.command { --cmd-bg: rgba(255,255,255,.92); background: transparent !important; }
html:is([data-theme="dark"],[data-theme="glass"]) .command { --cmd-bg: rgba(10,12,28,.86); }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] .command { --cmd-bg: rgba(10,12,28,.86); } }
.command::after { content: ""; position: absolute; inset: 0; border-radius: 26px; background: var(--cmd-bg); z-index: -1; border: 1px solid var(--line); }
.brief { display: flex; flex-wrap: wrap; gap: 6px; }
.node { font: inherit; font-size: .8rem; font-weight: 650; padding: 6px 10px; border-radius: 999px; cursor: pointer; border: 1px dashed var(--line); background: transparent; color: var(--muted); transition: all .2s; }
.node.on { border-style: solid; border-color: color-mix(in srgb, var(--brand2) 60%, transparent); color: var(--text); background: color-mix(in srgb, var(--brand2) 14%, transparent); box-shadow: 0 0 16px color-mix(in srgb, var(--brand2) 25%, transparent); }
.node:hover { border-color: var(--brand); color: var(--text); }
.scard.s1 { max-width: 330px; }
.spatial.refresh .scard { animation: none; }
/* restraint: bento visuals animate only on hover */
.tile .viz, .tile .viz * { animation-play-state: paused; } .tile:hover .viz, .tile:hover .viz * { animation-play-state: running; }
.scard.s1 { top: 0; inset-inline-start: 0; }
.scard.s2 { top: 6%; inset-inline-end: 0; bottom: auto; }
.scard.s3 { top: 58%; inset-inline-end: 2%; inset-inline-start: auto; bottom: auto; }
.scard.s4 { bottom: 4%; inset-inline-start: 6%; inset-inline-end: auto; }
.spatial { min-height: 520px; }
/* Safari / iPhone compatibility */
.chip, .preview-ribbon { -webkit-backdrop-filter: blur(10px); }
@media (max-width: 820px) { input, textarea, select, #langSel { font-size: 16px !important; } } /* stops iPhone zooming into fields */
.command textarea { font-size: max(16px, 1.18rem); }
/* visitor walkthrough fixes */
html.js-reveal .reveal { transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.ex-offer { margin: 18px 0 6px; padding: 14px 16px; border-radius: 16px; background: var(--surface2); border: 1px solid var(--line); display: grid; gap: 8px; max-width: 320px; }
.ex-row { display: flex; align-items: center; gap: 8px; } .ex-price { justify-content: space-between; } .ex-price b { font-size: 1.3rem; }
@media (max-width: 900px) {
  .command textarea { min-height: 52px; }         /* full placeholder fits on phones */
  .scard.idle { display: none; }                  /* no empty box before typing */
  .preview-ribbon { font-size: .66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 78vw; padding: 5px 10px; }
  .os-hero { padding-bottom: 300px; }             /* room for the AI Core under the chips */
}

.cmd-label { display: block; margin-top: 26px; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cmd-label + .command { margin-top: 10px; }
[dir="rtl"] .cmd-label, html:is([lang="zh"],[lang="bn"],[lang="hi"]) .cmd-label { letter-spacing: 0; }
@media (max-width: 820px) { .dock { bottom: calc(12px + env(safe-area-inset-bottom)); } body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); } .preview-ribbon { bottom: calc(92px + env(safe-area-inset-bottom)); } }
/* command bar: box always fits its example text; calmer violet–teal glow (no pink haze) */
.cmd-mirror { position: absolute; visibility: hidden; pointer-events: none; white-space: pre-wrap; word-wrap: break-word; top: 0; left: 0; }
.command textarea { min-height: 0; overflow: hidden; }
@media (max-width: 900px) { .command textarea { min-height: 0; } }
.cmd-glow { background: conic-gradient(from var(--ang), var(--brand), var(--brand2), color-mix(in srgb, var(--brand) 60%, var(--brand2)), var(--brand)); opacity: .32; filter: blur(12px); }
.command:focus-within .cmd-glow { opacity: .7; }

/* ===== Living Cosmos background (dark themes) ===== */
.cosmos { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: auto; }
.universe.has-cosmos .universe-img { display: none; }
.universe.has-cosmos { background: #020308; }
.cosmos-hud { position: fixed; z-index: 2; right: 18px; bottom: 16px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(200,215,255,.55); pointer-events: none; transition: opacity .6s; }
.cosmos-hud span { color: rgba(140,200,255,.85); margin-inline-end: 6px; }
.cosmos-hud::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #5ee8ff; box-shadow: 0 0 10px #5ee8ff; margin-inline-end: 8px; vertical-align: 1px; animation: hudPulse 2s infinite; }
@keyframes hudPulse { 50% { opacity: .3; } }
@media (max-width: 820px) { .cosmos-hud { display: none !important; } }
[dir="rtl"] .cosmos-hud { right: auto; left: 18px; }
/* no pink anywhere */
.viz-orbit i:nth-child(3) { background: #fbbf24; box-shadow: 0 0 14px #fbbf24; }
html[data-theme="glass"] { --brand: #8fb4ff; --brand2: #5ee8ff; }
