/* ==========================================================================
   Noventra — sistem vizual
   Paletă extrasă din materialele de brand (cristal teal-auriu pe navy adânc)
   ========================================================================== */

:root {
  /* Culoare */
  --abyss:      #04141b;
  --deep:       #071e27;
  --surface:    #0a2732;
  --facet:      #123c49;
  --teal:       #00b4b4;
  --teal-lo:    #067a7e;
  --gold:       #e9c27a;
  --gold-dim:   #a8875098;
  --mist:       #e4f0f1;
  --muted:      #8aa8b0;

  /* Tipografie */
  --display: "Archivo", system-ui, sans-serif;
  --body:    "IBM Plex Sans", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* Ritm */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --stack:  clamp(4.5rem, 9vw, 8rem);
  --max:    1180px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--abyss);
  color: var(--mist);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: var(--abyss);
  padding: .75rem 1.25rem;
  z-index: 999;
  font-weight: 600;
}
.skip:focus { left: 0; }

.wrap {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  max-width: 56ch;
}

/* -------------------------------------------------- semnătura: fațeta -- */
/* O linie aurie care se frânge într-un vârf — ecoul cristalului din brand. */

.seam {
  width: 100%;
  height: 34px;
  overflow: hidden;
  pointer-events: none;
}
.seam svg { width: 100%; height: 100%; }
.seam polyline {
  fill: none;
  stroke: var(--gold);
  stroke-opacity: .5;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.seam circle { fill: var(--gold); }

/* Colț tăiat, ca o piatră șlefuită. Stratul exterior face conturul de 1px. */
.cut {
  --notch: 34px;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}

/* ---------------------------------------------------------------- nav -- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem var(--gutter);
  transition: background .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--abyss) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--facet);
}

.mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  gap: .625rem;
}
.mark svg { width: 20px; height: 20px; flex: none; }
.mark span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .9375rem;
}
.nav-links a {
  color: var(--muted);
  transition: color .2s var(--ease);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--mist); }
.nav-links a:hover::after { transform: scaleX(1); }

/* CTA-ul din listă apare doar în meniul mobil; pe desktop e cel din dreapta. */
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--facet);
  padding: .5rem .625rem;
  cursor: pointer;
  line-height: 0;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--mist); }

/* -------------------------------------------------------------- buton -- */

.btn {
  --notch: 12px;
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  padding: .875rem 1.5rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: .005em;
  cursor: pointer;
  border: 0;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--solid {
  background: var(--teal);
  color: #032027;
}
.btn--solid:hover { background: #17cfc7; }

.btn--ghost {
  background: transparent;
  color: var(--mist);
  box-shadow: inset 0 0 0 1px var(--facet);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold); }

.btn--gold {
  background: var(--gold);
  color: #2a1e06;
}
.btn--gold:hover { background: #f4d494; }

.btn svg { width: 15px; height: 15px; flex: none; }

/* --------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  min-height: min(100svh, 860px);
  display: flex;
  align-items: center;
  padding: 9rem 0 5rem;
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .34;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 78% 42%, transparent 0%, var(--abyss) 72%),
    linear-gradient(180deg, rgba(4,20,27,.9) 0%, rgba(4,20,27,.35) 38%, var(--abyss) 96%);
}

.hero h1 {
  font-size: clamp(2.75rem, 7.4vw, 5.75rem);
  max-width: 15ch;
  margin-bottom: 1.75rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--teal);
}
.hero .lede { max-width: 52ch; margin-bottom: 2.5rem; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
}

.hero-meta {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta span { display: flex; align-items: center; gap: .5rem; }
.hero-meta span::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}

/* ----------------------------------------------------------- secțiuni -- */

.section { padding-block: var(--stack); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--surface { background: var(--deep); }

.section-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  margin-bottom: 1.25rem;
}

/* ---------------------------------------------------------- manifesto -- */

.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.manifesto h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
}
.manifesto h2 span { color: var(--gold); }
.manifesto-body p + p { margin-top: 1.25rem; }
.manifesto-body { color: var(--muted); }

/* ------------------------------------------------------------- piloni -- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1.25rem;
}

.pillar {
  background: var(--facet);
  padding: 1px;
  transition: transform .4s var(--ease), background .4s var(--ease);
}
.pillar:hover { transform: translateY(-6px); background: var(--gold-dim); }

.pillar-inner {
  background: var(--surface);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pillar-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--facet);
}
.pillar-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.pillar:hover .pillar-img img { transform: scale(1.06); }

.pillar-body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pillar-body h3 {
  font-size: 1.25rem;
  letter-spacing: -.01em;
  margin-bottom: .75rem;
}
.pillar-body p {
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.tags {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
}
.tags li {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .04em;
  color: var(--muted);
  border: 1px solid var(--facet);
  padding: .25rem .5rem;
}

/* ------------------------------------------------------------- proces -- */
/* Numerotat pentru că ordinea contează: nu poți implementa înainte de audit. */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1px;
  background: var(--facet);
  border: 1px solid var(--facet);
}
.step {
  background: var(--abyss);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.step-num {
  font-family: var(--mono);
  font-size: .8125rem;
  color: var(--gold);
  letter-spacing: .1em;
  display: block;
  margin-bottom: 1.5rem;
}
.step h3 { font-size: 1.375rem; margin-bottom: .75rem; }
.step p { color: var(--muted); font-size: .9375rem; }

/* ---------------------------------------------------------- probleme -- */

.problems {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.problems li {
  border-top: 1px solid var(--facet);
  padding-top: 1.125rem;
  display: grid;
  gap: .375rem;
}
.problems b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
}
.problems span { color: var(--muted); font-size: .9375rem; line-height: 1.6; }

/* -------------------------------------------------------------- audit -- */

.audit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.audit h2 { font-size: clamp(2rem, 4.2vw, 3.15rem); margin-bottom: 1.25rem; }

.audit-points {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: .875rem;
  font-size: .9375rem;
  color: var(--muted);
}
.audit-points li { display: flex; gap: .75rem; align-items: baseline; }
.audit-points li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--teal);
  transform: rotate(45deg);
  flex: none;
}

.form {
  background: var(--facet);
  padding: 1px;
}
.form-inner {
  background: var(--surface);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.125rem;
}
.field { display: grid; gap: .5rem; }
.field label {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  background: var(--abyss);
  border: 1px solid var(--facet);
  padding: .8125rem .9375rem;
  font-size: .9375rem;
  transition: border-color .25s var(--ease);
  width: 100%;
}
.field input:focus,
.field textarea:focus { border-color: var(--teal); outline: none; }
.field textarea { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.125rem; }

.form-note {
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.55;
}
.form-status {
  font-size: .875rem;
  padding: .75rem 1rem;
  border-left: 2px solid var(--teal);
  background: rgba(0, 180, 180, .07);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-error { border-left-color: #e88f6a; background: rgba(232, 143, 106, .07); }

/* ------------------------------------------------------------- footer -- */

.footer {
  background: var(--deep);
  border-top: 1px solid var(--facet);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  /* Coloane explicite cu minim 0: un minim fix (ex. 140px) ar strivi
     prima coloană până la câțiva pixeli pe ecrane înguste. */
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-grid h4 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; }
.footer-grid li { font-size: .9375rem; color: var(--muted); }
.footer-grid a:hover { color: var(--mist); }
.footer-about p { color: var(--muted); font-size: .9375rem; margin-top: 1rem; max-width: 38ch; }

.footer-base {
  border-top: 1px solid var(--facet);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ------------------------------------------------------ consimțământ -- */

.consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  padding: var(--gutter);
  display: flex;
  justify-content: center;
}
.consent[hidden] { display: none; }

.consent-inner {
  --notch: 22px;
  width: min(100%, 940px);
  background: var(--surface);
  box-shadow: 0 -1px 0 var(--facet), 0 24px 60px rgba(0, 0, 0, .55);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 2rem;
  align-items: center;
}

.consent-text h2 {
  font-size: 1.0625rem;
  margin-bottom: .5rem;
}
.consent-text p {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.6;
  max-width: 62ch;
}
.consent-text a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Ambele opțiuni au aceeași greutate vizuală — cerință GDPR, nu preferință. */
.consent-actions {
  display: flex;
  gap: .625rem;
  flex: none;
}
.consent-actions .btn { padding: .8125rem 1.25rem; }

@media (max-width: 720px) {
  .consent-inner { grid-template-columns: 1fr; }
  .consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .consent-actions .btn { justify-content: center; }
}

/* ------------------------------------------------------ pagini legale -- */

.page { padding: 10rem 0 var(--stack); }
.page-head { margin-bottom: 3rem; }
.page-head h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}
.page-head p { color: var(--muted); font-size: .875rem; font-family: var(--mono); }

.prose { max-width: 72ch; }
.prose h2 {
  font-size: 1.375rem;
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--facet);
}
.prose h3 { font-size: 1.0625rem; margin: 2rem 0 .75rem; }
.prose p, .prose li { color: var(--muted); font-size: .9375rem; line-height: 1.75; }
.prose p + p { margin-top: 1rem; }
.prose ul { margin: 1rem 0; padding-left: 1.25rem; display: grid; gap: .5rem; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--mist); font-weight: 600; }

.notice {
  border-left: 2px solid var(--gold);
  background: rgba(233, 194, 122, .06);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
}
.notice p { color: var(--mist); font-size: .875rem; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: .875rem;
}
.prose th, .prose td {
  text-align: left;
  padding: .75rem .875rem;
  border: 1px solid var(--facet);
  color: var(--muted);
}
.prose th {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* ------------------------------------------------------------ reveal -- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------- responsive -- */

@media (max-width: 900px) {
  .manifesto, .audit { grid-template-columns: 1fr; }

  /* Subsol: descrierea ocupă rândul întreg, linkurile se așază pe două coloane. */
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 1.5rem;
  }
  .footer-about { grid-column: 1 / -1; }
  .footer-about p { max-width: 52ch; }
}

@media (max-width: 460px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .footer-base { flex-direction: column; gap: .625rem; }

  /* Tabelul din paginile legale are 3 coloane: pe ecrane mici,
     mai puțin padding și text mai mic ca să rămână lizibil. */
  .prose table { font-size: .8125rem; }
  .prose th, .prose td { padding: .5rem .5rem; }
  .prose th { font-size: .625rem; letter-spacing: .06em; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 61px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--deep);
    border-bottom: 1px solid var(--facet);
    padding: .5rem var(--gutter) 1.5rem;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--facet); }
  .nav-links a { display: block; padding: .9375rem 0; font-size: 1rem; }
  .nav-links a::after { display: none; }
  .nav-cta-mobile { display: block; border-bottom: 0; }
  .nav-links .btn { margin-top: 1.25rem; justify-content: center; }
  .nav > .btn { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding-top: 7.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
