/* REGNAVYR — landing. Tokeni copiați din DESIGN.md („Tabla visteriei"). */

@font-face { font-family: "Alegreya SC"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/alegreya-sc-700.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/alegreya-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/assets/fonts/alegreya-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/alegreya-sans-700.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("/assets/fonts/alegreya-sans-800.woff2") format("woff2"); }

:root {
  --cloth-0: rgb(15, 27, 21);
  --cloth-1: rgb(20, 35, 28);
  --cloth-2: rgb(24, 42, 33);
  --cloth-3: rgb(29, 50, 39);
  --cloth-4: rgb(34, 57, 44);
  --cloth-5: rgb(44, 70, 54);
  --rule: rgb(44, 70, 54);
  --rule-soft: rgb(36, 64, 47);
  --ivory: rgb(236, 230, 214);
  --ivory-hover: rgb(255, 248, 230);
  --text-muted: rgb(189, 182, 162);
  --text-faint: rgb(175, 178, 157);
  --brass: rgb(201, 154, 69);
  --brass-hi: rgb(226, 189, 114);
  --brass-lo: rgb(138, 106, 47);
  --wax-hi: rgb(255, 139, 119);
  --sage: rgb(143, 196, 138);
  --sage-surface: rgb(43, 74, 55);
  --hud-overlay: rgba(20, 35, 28, 0.94);

  --font-display: "Alegreya SC", "Iowan Old Style", Georgia, serif;
  --font-body: "Alegreya Sans", "Gill Sans", "Trebuchet MS", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1240px;
  --radius-button: 4px;
  --radius-panel: 6px;
  --radius-sheet: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--cloth-5) var(--cloth-0); }
body {
  margin: 0; background: var(--cloth-0); color: var(--ivory);
  font-family: var(--font-body); font-size: 1.1875rem; line-height: 1.55; font-weight: 400;
  font-feature-settings: "lnum", "kern";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brass-hi); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ivory-hover); }
::selection { background: var(--brass); color: var(--cloth-1); }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 2px; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--cloth-0); }
::-webkit-scrollbar-thumb { background: var(--cloth-5); border: 3px solid var(--cloth-0); border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 50; background: var(--ivory); color: var(--cloth-1); padding: 10px 16px; border-radius: var(--radius-button); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.08; letter-spacing: 0.01em; }
h3 { font-size: 1.35rem; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
.measure { max-width: 34rem; }
.muted { color: var(--text-muted); }
b, strong { font-weight: 700; }
.num { font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }

/* ——— Buttons ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px; border-radius: var(--radius-button);
  font: 700 1.0625rem/1 var(--font-body); text-decoration: none; cursor: pointer; border: 0;
  transition: background-color 0.18s var(--ease-out), color 0.18s, transform 0.18s var(--ease-out);
}
.btn-primary { background: var(--ivory); color: var(--cloth-1); box-shadow: 0 0 0 2px var(--brass); }
.btn-primary:hover, a.btn-primary:hover { background: var(--ivory-hover); color: var(--cloth-1); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: var(--cloth-3); color: var(--ivory); min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn-secondary:hover { background: var(--cloth-4); color: var(--ivory-hover); }
.btn[disabled] { opacity: 1; background: var(--cloth-2); color: var(--text-muted); box-shadow: 0 0 0 1px var(--rule); cursor: progress; }

/* ——— Header ——— */
.top { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ivory); text-decoration: none; font: 700 1.4rem/1 var(--font-display); letter-spacing: 0.06em; }
.brand img { width: 30px; height: 36px; object-fit: contain; }
.brand:hover { color: var(--ivory-hover); }
.top nav { display: flex; gap: 6px; margin-left: auto; }
.top nav a { color: var(--text-muted); text-decoration: none; font-weight: 700; font-size: 1rem; padding: 10px 14px; border-radius: var(--radius-button); }
.top nav a:hover { color: var(--ivory-hover); background: rgba(29, 50, 39, 0.7); }
.top .tools { display: flex; align-items: center; gap: 10px; }
.lang { color: var(--text-muted); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.08em; text-decoration: none; padding: 10px 12px; border-radius: var(--radius-button); }
.lang:hover { color: var(--ivory-hover); background: rgba(29, 50, 39, 0.7); }

/* ——— Hero ——— */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: min(100svh, 960px); min-height: min(100dvh, 960px); background: var(--cloth-0); overflow: clip; }
.hero-map { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: min(66%, 1000px); }
.hero-map img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 46%; animation: map-in 1.8s var(--ease-out) 0.1s backwards;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.28) 16%, rgba(0, 0, 0, 0.8) 36%, #000 52%);
          mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.28) 16%, rgba(0, 0, 0, 0.8) 36%, #000 52%); }
.hero-map::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--cloth-0) 0%, rgba(15, 27, 21, 0.88) 9%, rgba(15, 27, 21, 0.3) 22%, rgba(15, 27, 21, 0) 34%),
    linear-gradient(to top, var(--cloth-0) 0%, rgba(15, 27, 21, 0) 24%); }
@keyframes map-in { from { opacity: 0; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }

.hero-copy { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 26px; padding-top: 112px; padding-bottom: 44px; }
.hero-copy h1 { font-size: clamp(2.7rem, 5.4vw, 5.1rem); line-height: 1.01; letter-spacing: 0.005em; max-width: 11.5em; }
.hero-copy .lead { font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.5; color: var(--ivory); max-width: 31rem; text-shadow: 0 1px 14px var(--cloth-0); }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.cta-row .hint { color: var(--text-muted); font-size: 1rem; text-shadow: 0 1px 10px var(--cloth-0); }
.link-quiet { font-weight: 700; }

/* ——— Visteria (hero board) ——— */
.board { background: var(--hud-overlay); border-top: 2px solid var(--brass-lo); border-bottom: 1px solid var(--rule); backdrop-filter: blur(6px); }
.board-head { display: grid; grid-template-columns: auto minmax(160px, 1fr) auto; align-items: center; gap: 12px 28px; padding-block: 14px 8px; }
.board-title { font: 700 1.15rem/1.2 var(--font-display); letter-spacing: 0.01em; }
.board-title span { font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; color: var(--text-muted); letter-spacing: 0; margin-left: 10px; }
.clock { display: flex; align-items: center; gap: 16px; min-width: 0; }
.clock label { color: var(--text-muted); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.day { font-weight: 800; font-size: 1.35rem; font-variant-numeric: lining-nums tabular-nums; min-width: 5.6em; text-align: right; }
.day small { font-size: 0.875rem; font-weight: 700; color: var(--text-muted); }

input[type="range"] { -webkit-appearance: none; appearance: none; flex: 1; min-width: 120px; height: 44px; background: transparent; cursor: pointer; margin: 0; --fill: 0%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--brass) var(--fill), var(--cloth-4) var(--fill)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--cloth-4); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--brass); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--ivory); border: 3px solid var(--brass); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--ivory); border: 3px solid var(--brass); }
input[type="range"]:focus-visible { outline-offset: 0; }

.cols { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--rule-soft); }
.col { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px 14px; border-left: 1px solid var(--rule-soft); min-width: 0; }
.col:first-child { border-left: 0; }
.col img { grid-row: 1 / span 3; width: 44px; height: 44px; object-fit: contain; }
.col .name { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); line-height: 1.1; align-self: end; }
.col .stock { font-weight: 800; font-size: 1.5rem; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.col .rate { font-size: 0.78rem; font-weight: 500; color: var(--sage); line-height: 1.1; align-self: start; white-space: nowrap; }
.board-note { padding-block: 8px 12px; font-size: 0.875rem; color: var(--text-faint); border-top: 1px solid var(--rule-soft); }

/* ——— Sections ——— */
section { position: relative; }
.sec { padding-block: clamp(72px, 10vw, 140px); }
.sec + .sec { padding-top: 0; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head p { color: var(--text-muted); max-width: 36rem; }

/* Harta e ecranul */
.stage { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 clamp(16px, 2.4vw, 32px); align-items: center; }
.stage-copy { grid-column: 1 / span 4; display: grid; gap: 22px; align-self: start; padding-top: clamp(0px, 3vw, 40px); }
.stage-copy p { color: var(--text-muted); }
.stage-copy p b { color: var(--ivory); }
.stage-shots { grid-column: 5 / -1; position: relative; padding-bottom: clamp(56px, 9vw, 130px); }
.shot { border: 1px solid var(--rule); background: var(--cloth-2); border-radius: var(--radius-panel); overflow: hidden; }
.shot img { width: 100%; }
.shot-phone { position: absolute; width: clamp(150px, 21%, 250px); left: 3%; bottom: 0; border-radius: var(--radius-sheet); border-color: var(--cloth-5); box-shadow: 0 16px 28px -14px rgba(0, 0, 0, 0.7); }
.caption { margin-top: 12px; font-size: 0.9375rem; color: var(--text-faint); }

/* Ritmul unei sesiuni */
.rhythm { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.beat { display: grid; gap: 14px; }
.beat:nth-child(2) { margin-top: clamp(24px, 5vw, 72px); }
.beat:nth-child(3) { margin-top: clamp(48px, 10vw, 144px); }
.beat .shot { border-radius: var(--radius-sheet); max-width: 320px; }
.beat p { color: var(--text-muted); max-width: 22rem; }
.beat h3 { color: var(--ivory); }

/* Registrul: ce conduci */
.ledger-wrap { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.ledger-wrap .sec-head { position: sticky; top: 32px; margin: 0; }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ledger li { display: grid; grid-template-columns: 9.5rem 1fr auto; align-items: center; gap: 8px 24px; padding: 16px 4px; border-bottom: 1px solid var(--rule); min-height: 72px; }
.ledger h3 { font-size: 1.3rem; }
.ledger p { color: var(--text-muted); font-size: 1.0625rem; line-height: 1.45; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 3px; background: var(--cloth-4); color: var(--ivory); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.03em; white-space: nowrap; }

/* Campania */
.campaign { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.campaign .shot { grid-column: 1 / span 7; }
.campaign-copy { grid-column: 8 / -1; display: grid; gap: 28px; }
.facts { margin: 0; display: grid; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
.facts dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-faint); padding-top: 4px; }
.facts dd { margin: 0; line-height: 1.4; }

/* Acces */
.access { background: var(--cloth-1); border-top: 2px solid var(--brass-lo); padding-block: clamp(64px, 9vw, 120px); }
.access-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.access-copy { grid-column: 1 / span 6; display: grid; gap: 20px; }
.access-copy p { color: var(--text-muted); max-width: 32rem; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.access-form { grid-column: 8 / -1; display: grid; gap: 14px; background: var(--cloth-2); border: 1px solid var(--rule); border-radius: var(--radius-panel); padding: clamp(20px, 3vw, 32px); }
.access-form label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-faint); }
.access-form input[type="email"] { width: 100%; min-height: 50px; padding: 0 14px; border-radius: var(--radius-button); border: 1px solid var(--rule); background: var(--cloth-1); color: var(--ivory); font: 400 1.125rem var(--font-body); }
.access-form input[type="email"]::placeholder { color: var(--text-faint); }
.access-form input[type="email"]:hover { border-color: var(--brass-lo); }
.access-form input[type="email"]:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 2px; border-color: var(--brass); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: 0.9375rem; color: var(--text-faint); line-height: 1.45; }
.status { min-height: 1.5em; font-weight: 700; font-size: 1rem; }
.status.ok { color: var(--sage); }
.status.err { color: var(--wax-hi); }
.thanks { display: none; gap: 8px; padding: 6px 0; }
.fields { display: grid; gap: 14px; }
.access-form.done .thanks { display: grid; }
.access-form.done .fields { display: none; }
.thanks h3 { font-size: 1.5rem; }
.thanks p { color: var(--text-muted); }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding-block: 36px 48px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.foot .motto { font: 700 1.2rem/1.2 var(--font-display); letter-spacing: 0.03em; }
.foot small { font-size: 0.9375rem; color: var(--text-faint); }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a { color: var(--text-muted); text-decoration: none; font-weight: 700; font-size: 0.9375rem; }
.foot nav a:hover { color: var(--ivory-hover); text-decoration: underline; }

/* Pagina de confidențialitate */
.doc { padding-block: 150px 96px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 20px; }
.doc h2 { font-size: 1.6rem; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--text-muted); margin-bottom: 12px; }
.doc ul { padding-left: 1.2em; }
.doc strong { color: var(--ivory); }

/* ——— Responsive ——— */
@media (max-width: 1100px) {
  .stage-copy { grid-column: 1 / span 5; }
  .stage-shots { grid-column: 6 / -1; }
  .ledger-wrap { grid-template-columns: 1fr; }
  .ledger-wrap .sec-head { position: static; }
  .col { grid-template-columns: 1fr; justify-items: start; row-gap: 2px; padding: 10px 12px 12px; }
  .col img { grid-row: auto; width: 34px; height: 34px; margin-bottom: 4px; }
  .col .stock { font-size: 1.3rem; }
}
@media (max-width: 900px) {
  .top nav { display: none; }
  .top .tools { margin-left: auto; }
  .hero-map { width: 100%; }
  .hero-map::before { background: linear-gradient(to bottom, rgba(15, 27, 21, 0.55) 0%, rgba(15, 27, 21, 0.82) 46%, var(--cloth-0) 92%); }
  .hero-map img { object-position: 50% 30%; -webkit-mask-image: none; mask-image: none; }
  .hero-copy { padding-top: 104px; }
  .board-head { grid-template-columns: 1fr auto; }
  .board-head .clock { grid-column: 1 / -1; grid-row: 2; }
  .stage, .campaign, .access-grid { display: block; }
  .stage-copy { margin-bottom: 40px; }
  .stage-shots { padding-bottom: 0; }
  .shot-phone { position: relative; left: auto; bottom: auto; width: min(52%, 230px); margin: -64px 0 0 12px; }
  .rhythm { grid-template-columns: 1fr; gap: 56px; }
  .beat, .beat:nth-child(2), .beat:nth-child(3) { margin-top: 0; grid-template-columns: minmax(140px, 220px) 1fr; align-items: start; gap: 20px; }
  .campaign-copy { margin-top: 36px; }
  .access-form { margin-top: 36px; }
}
@media (max-width: 680px) {
  body { font-size: 1.125rem; }
  .brand { font-size: 1.2rem; }
  .btn-secondary.access-top { display: none; }
  .hero { min-height: 0; }
  .hero-copy { gap: 20px; padding-top: 96px; padding-bottom: 32px; }
  .cta-row .btn { width: 100%; }
  .board-title span { display: block; margin: 2px 0 0; }
  .cols { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .col { padding: 10px 0 10px 0; justify-items: center; border-left: 0; }
  .col img { width: 26px; height: 26px; }
  .col .name, .col .rate { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .col .stock { font-size: 0.86rem; font-weight: 800; }
  .day { font-size: 1.2rem; }
  .clock label { display: none; }
  .ledger li { grid-template-columns: 1fr auto; padding-block: 14px; }
  .ledger li p { grid-column: 1 / -1; grid-row: 2; }
  .facts div { grid-template-columns: 6.6rem 1fr; }
  .beat, .beat:nth-child(2), .beat:nth-child(3) { grid-template-columns: 1fr; }
  .beat .shot { max-width: 260px; }
  .shot-phone { width: min(58%, 230px); }
  .foot .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-map img { animation: none; }
  .btn { transition: none; }
}
