/* TOVANOWORLD — public website. Black, midnight blue and restrained metallic gold. */
:root {
  --bg: #07090d;
  --panel: #0b1424;
  --card: #111a2a;
  --line: #233046;
  --gold: #d4af37;
  --gold-soft: #f1d98a;
  --text: #ece6d2;
  --muted: #9aa3b1;
  --radius: 14px;
  --max: 1160px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
img, video { max-width: 100%; display: block; }
a { color: var(--gold-soft); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #111; padding: 8px 14px; z-index: 99; }
.skip:focus { left: 12px; }
.wrap { width: min(var(--max), 100% - 32px); margin: 0 auto; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(7, 9, 13, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.05; }
.brand b { font: 700 20px/1 Georgia, "Times New Roman", serif; letter-spacing: 3px; color: var(--gold-soft); }
.brand span { font-size: 10px; letter-spacing: 4px; color: var(--gold); margin-top: 4px; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { display: block; padding: 8px 12px; border-radius: 9px; text-decoration: none; color: var(--text); font-size: 14px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-soft); background: #1a1608; box-shadow: inset 0 0 0 1px var(--gold); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 9px;
  padding: 8px 12px; font: inherit; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; width: 100%; }
  .nav.open { display: block; }
  .site-head .wrap { flex-wrap: wrap; padding: 8px 0; }
  .nav ul { flex-direction: column; padding-bottom: 10px; }
}

/* hero */
.hero { position: relative; min-height: 64vh; display: grid; align-items: end; overflow: hidden;
  border-bottom: 1px solid var(--line); }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; opacity: .6; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7, 9, 13, .96) 0%, rgba(10, 16, 32, .72) 45%, rgba(7, 9, 13, .2) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 40%); }
.hero .wrap { position: relative; z-index: 1; padding: 120px 0 64px; }
.kicker { font-size: 12px; letter-spacing: 5px; color: var(--gold); text-transform: uppercase; margin: 0 0 8px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(38px, 7vw, 76px); letter-spacing: 2px;
  background: linear-gradient(180deg, #f4df9e, #c9971f); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(26px, 3.6vw, 38px); color: var(--gold-soft); }
h3 { font-size: 21px; color: var(--text); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text); max-width: 680px; }
.tag { letter-spacing: 6px; color: var(--gold); font-size: 13px; text-transform: uppercase; }

/* sections and cards */
section { padding: 64px 0; }
section + section { border-top: 1px solid #141b29; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: linear-gradient(180deg, var(--card), var(--panel)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; }
.card h3 { color: var(--gold-soft); }
.card p { color: var(--muted); margin: 0; }
.figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.figure img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; }
.figure figcaption { padding: 12px 14px; font-size: 13px; color: var(--muted); }
.btn { display: inline-block; padding: 12px 20px; border-radius: 10px; text-decoration: none; font-weight: 600;
  border: 1px solid var(--gold); color: #14100a; background: var(--gold); }
.btn.ghost { background: transparent; color: var(--gold-soft); }
.btn:hover { filter: brightness(1.08); color: #14100a; }
.btn.ghost:hover { color: #fff; }
.row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--gold); padding: 6px 0 6px 14px; }
.player { border: 1px solid var(--gold); border-radius: var(--radius); overflow: hidden; background: #000; }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 14px 58px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 13px; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold-soft); display: grid; place-items: center; font-weight: 700; font-size: 14px; }

/* legal pages */
.legal { max-width: 820px; }
.legal h2 { font-size: 24px; margin-top: 1.6em; }
.legal h3 { font-size: 18px; margin-top: 1.2em; color: var(--gold-soft); }
.legal p, .legal li { color: var(--text); }
.missing { background: #2a1d07; border: 1px dashed var(--gold); color: var(--gold-soft); padding: 2px 8px; border-radius: 6px; font-size: .92em; }

/* form */
form.inquiry { display: grid; gap: 14px; max-width: 640px; }
label { font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
input, select, textarea { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; font: inherit; }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -5000px; }
.status { min-height: 1.5em; font-weight: 600; }
.status.ok { color: #7fd69a; }
.status.err { color: #ff9b86; }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: #05070b; padding: 40px 0 28px; margin-top: 40px; font-size: 14px; color: var(--muted); }
.site-foot .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-foot h4 { color: var(--gold); letter-spacing: 3px; font-size: 12px; text-transform: uppercase; margin: 0 0 10px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--text); text-decoration: none; }
.site-foot a:hover { color: var(--gold-soft); }
.legal-links { margin-top: 26px; padding-top: 16px; border-top: 1px solid #141b29; display: flex; gap: 18px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* packages, samples and players (commercial launch) */
.packages .package { display: flex; flex-direction: column; gap: 8px; }
.packages .package .btn { margin-top: auto; align-self: flex-start; }
.package .price { font: 700 40px/1 Georgia, "Times New Roman", serif; color: var(--gold); margin: 4px 0 6px; }
.package.featured { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(212, 175, 55, .35) inset; }
.card.link { text-decoration: none; color: inherit; }
.card.link:hover { border-color: var(--gold); }
.ticks { list-style: none; padding: 0; margin: 4px 0 14px; display: grid; gap: 6px; color: var(--text); }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 5px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.split { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; }
.player.vertical { max-width: 360px; justify-self: center; width: 100%; }
.player.vertical video { aspect-ratio: 9 / 16; }
.videos { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.videos .player { border: 0; border-radius: 0; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 10px; }
.faq summary { cursor: pointer; color: var(--gold-soft); font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--text); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* AI Video Studio (staging): library, create, account and admin */
.studio-hero { padding: 72px 0 48px; background: radial-gradient(1200px 400px at 80% 0%, #1a2440 0%, transparent 60%); }
.studio-facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); color: var(--muted); font-size: 14px; }
.studio-facts b { display: block; color: var(--gold-soft); font: 700 22px/1.2 Georgia, "Times New Roman", serif; }
.lib-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.muted-line { color: var(--muted); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 22px; }
.chip { background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  font: inherit; font-size: 14px; cursor: pointer; }
.chip.on, .chip:hover { border-color: var(--gold); color: var(--gold-soft); background: #1a1608; }
.tpl-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tpl { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.tpl:hover, .tpl:focus-visible { border-color: var(--gold); }
.tpl-body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.tpl-body h3 { font-size: 18px; margin: 0; color: var(--gold-soft); }
.tpl-body p { margin: 0; color: var(--muted); font-size: 14px; }
.tpl-body p.tpl-meta, .tpl-meta { font-size: 12.5px; letter-spacing: .3px; }
.tpl-meta b { color: var(--gold); }
.tpl-visual { position: relative; aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px; overflow: hidden; }
.tpl-visual video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tpl-visual::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(7, 9, 13, .85) 0%, transparent 55%); }
.create-info .tpl-visual { aspect-ratio: 9 / 16; max-width: 320px; border-radius: var(--radius); border: 1px solid var(--line);
  margin: 14px 0; }
.create-info .tpl-visual.wide { aspect-ratio: 16 / 9; max-width: 100%; }
.v-aspect { position: absolute; top: 10px; right: 10px; z-index: 1; font-size: 11px; letter-spacing: 1px; color: var(--text);
  border: 1px solid rgba(236, 230, 210, .4); border-radius: 6px; padding: 2px 6px; background: rgba(7, 9, 13, .5); }
.v-title { position: relative; z-index: 1; font: 700 20px/1.1 Georgia, "Times New Roman", serif; color: #fff; }
.cat-action { background: linear-gradient(160deg, #3b1d12, #a3461d 55%, #e8a33d); }
.cat-romance { background: linear-gradient(160deg, #2a1028, #8c2f5a 55%, #f0a6a0); }
.cat-luxury { background: linear-gradient(160deg, #0f0d08, #5c4716 55%, #d4af37); }
.cat-fantasy { background: linear-gradient(160deg, #0d1233, #3d2a7a 55%, #64c8d8); }
.cat-business { background: linear-gradient(160deg, #0b1424, #24476e 55%, #a9c2d9); }
.cat-celebrations { background: linear-gradient(160deg, #1e0f2e, #b2365c 55%, #f5c55a); }
.cat-music { background: linear-gradient(160deg, #07090d, #1f2d6b 50%, #d23a8c); }
.cat-social { background: linear-gradient(160deg, #10221f, #2f7f73 55%, #f0d39a); }
.back { display: inline-block; margin-bottom: 16px; color: var(--muted); text-decoration: none; }
.create-grid { display: grid; gap: 36px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
.create-form { display: grid; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; min-width: 0; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 0; display: grid; gap: 10px; min-width: 0; }
legend { color: var(--gold-soft); padding: 0 6px; font-weight: 600; }
.opts { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
label.check { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
label.check input { margin-top: .3em; flex: none; width: 18px; height: 18px; accent-color: var(--gold); }
.photo-preview img { max-height: 260px; width: auto; border-radius: 10px; border: 1px solid var(--line); }
.cost { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cost div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.cost span { display: block; font-size: 12px; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }
.cost b { font-size: 18px; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.narrow { max-width: 620px; }
.auth-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 18px; }
form.auth, form.settings { display: grid; gap: 12px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; min-width: 0; }
form.auth h3 { margin: 0; color: var(--gold-soft); }
.linkish { background: none; border: 0; color: var(--gold-soft); text-decoration: underline; cursor: pointer; font: inherit;
  padding: 0; justify-self: start; }
.acct-head { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: end; }
.acct-head h2 { margin: 0; overflow-wrap: anywhere; }
.balance { background: var(--panel); border: 1px solid var(--gold); border-radius: var(--radius); padding: 12px 18px; text-align: right; }
.balance span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.balance b { font: 700 34px/1.1 Georgia, "Times New Roman", serif; color: var(--gold); font-variant-numeric: tabular-nums; }
h3.sec { margin-top: 2em; color: var(--gold-soft); }
.jobs { display: grid; gap: 12px; }
.job { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) auto; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.job h4 { margin: 0 0 4px; font-size: 17px; color: var(--text); }
.job p { margin: 0 0 4px; color: var(--muted); }
.job video { width: 200px; max-width: 100%; border-radius: 10px; background: #000; }
.job.st-done { border-color: #2f5f3f; }
.job.st-failed, .job.st-rejected { border-color: #5f2f2a; }
progress.bar { width: 100%; height: 8px; accent-color: var(--gold); margin-top: 6px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.ledger { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 520px; }
.ledger th, .ledger td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.ledger .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .neg { color: #ff9b86; }
.ledger .pos { color: #7fd69a; }
.danger { margin-top: 22px; background: #160b0b; border: 1px solid #5f2f2a; border-radius: 12px; padding: 14px 16px; }
.danger summary { cursor: pointer; color: #ff9b86; font-weight: 600; }
.danger form { display: grid; gap: 10px; margin-top: 10px; }
.danger-btn { background: #a7392b; border-color: #a7392b; color: #fff; }
.badge { display: inline-block; min-width: 1.6em; text-align: center; background: var(--gold); color: #14100a; border-radius: 999px;
  font: 700 13px/1.6 "Segoe UI", system-ui, sans-serif; padding: 0 6px; vertical-align: middle; }
.review { display: grid; gap: 14px; }
.rev { display: grid; gap: 16px; grid-template-columns: 180px minmax(0, 1fr); background: var(--panel); border: 1px solid var(--gold);
  border-radius: var(--radius); padding: 14px; }
.rev img { width: 180px; height: 220px; object-fit: cover; border-radius: 10px; }
.rev h4 { margin: 0 0 4px; color: var(--gold-soft); }
.rev p { margin: 0 0 6px; color: var(--muted); }
.mailbox details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.mailbox pre { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); font-size: 13px; }
@media (max-width: 860px) {
  .create-grid, .job, .rev { grid-template-columns: minmax(0, 1fr); }
  .job video, .rev img { width: 100%; height: auto; }
  .cost { grid-template-columns: minmax(0, 1fr); }
}

.pill { justify-self: start; font-size: 11.5px; letter-spacing: .4px; border-radius: 999px; padding: 2px 9px; border: 1px solid; margin-top: 4px; }
.pill.pilot { color: #7fd69a; border-color: #2f5f3f; }
.pill.later { color: var(--muted); border-color: var(--line); }
.cat-supercars { background: linear-gradient(160deg, #1a0d05, #b2531a 55%, #f5a623); }
.cat-private-jets { background: linear-gradient(160deg, #0b1424, #5a6f8c 55%, #f1e3c4); }
.cat-scifi { background: linear-gradient(160deg, #050a1f, #2c3f9e 50%, #39d0ff); }
.cat-products { background: linear-gradient(160deg, #0d0d0d, #3a3a3a 55%, #d9d4c7); }
