/*
Theme Name: Virtual Blend
Theme URI: https://virtualblend.ro/
Author: Virtual Blend S.R.L.
Description: Temă de prezentare, o singură pagină, bilingvă (RO/EN). Rapidă, fără dependințe externe, fără cookie-uri. Comutarea limbii se face prin ?lang=en.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: virtual-blend
*/

/* ==========================================================================
   Virtual Blend — foaie de stil unica.
   Fara framework, fara dependinte externe, fara cereri catre terti.
   ========================================================================== */

/* --- Fonturi gazduite local (nimic de la Google) --------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Simboluri ------------------------------------------------------------ */
:root {
  --bg:        #0a0c0f;
  --bg-soft:   #0e1116;
  --surface:   #12161d;
  --line:      #1e2430;
  --line-soft: #171c25;

  --text:      #e9ecf1;   /* 15.6:1 pe --bg  */
  --text-dim:  #a7b0bd;   /*  8.4:1 pe --bg  */
  --text-mute: #7b8797;   /*  5.2:1 pe --bg  */

  --mint:      #6ee7c0;
  --azure:     #7aa2f7;
  --mint-ink:  #063a2c;

  --radius:    14px;
  --radius-sm: 10px;

  --measure:   64ch;
  --gutter:    clamp(1.25rem, 5vw, 2.5rem);
  --shell:     1120px;

  --ease:      cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'cv05' 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* Firul de gradient din capul paginii: singurul loc unde "blend" e literal. */
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mint), var(--azure) 55%, var(--mint));
  z-index: 100;
}

/* --- Accesibilitate ------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.skip {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -150%;
  z-index: 200;
  padding: 0.7rem 1.2rem;
  background: var(--mint);
  color: var(--mint-ink);
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: translate 0.2s var(--ease);
}
.skip:focus { translate: -50% 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Structura ------------------------------------------------------------ */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: clamp(4.5rem, 10vw, 8rem); }

.rule { border-top: 1px solid var(--line-soft); }

/* --- Tipografie ----------------------------------------------------------- */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 1.4rem + 4.2vw, 4.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.6rem); }
h3 { font-size: 1.1875rem; letter-spacing: -0.015em; line-height: 1.35; }

p { text-wrap: pretty; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem); line-height: 1.6; color: var(--text-dim); }
.measure { max-width: var(--measure); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, var(--mint), transparent);
}

/* --- Antet ---------------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.masthead[data-stuck='true'] {
  border-bottom-color: var(--line-soft);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: 1.0625rem;
  white-space: nowrap;
}
.brand__mark { width: 26px; height: 26px; flex: none; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__links { display: flex; gap: 1.75rem; list-style: none; padding: 0; }
.nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  color: var(--text-dim);
  transition: color 0.18s var(--ease);
}
.nav a:hover { color: var(--text); }

@media (max-width: 860px) {
  .nav__links { display: none; }
}

/* --- Comutator de limba RO / EN -------------------------------------------- */
.langswitch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.langswitch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 34px;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--text-mute);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.langswitch a:hover { color: var(--text); }
.langswitch a[aria-current="page"] {
  background: var(--mint);
  color: var(--mint-ink);
}

/* Marcaj pentru date care trebuie completate inainte de publicare. */
.todo {
  color: var(--text-mute);
  border-bottom: 1px dashed var(--text-mute);
  cursor: help;
  font-style: italic;
}

/* --- Butoane -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
              transform 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--mint);
  color: var(--mint-ink);
  font-weight: 600;
}
.btn--primary:hover { background: #86f0d0; }

.btn--ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover { border-color: #38404f; background: var(--surface); }

.btn--lg { min-height: 52px; padding: 0.9rem 1.6rem; font-size: 1rem; }

/* --- Erou ----------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(5rem, 12vw, 9.5rem) clamp(4.5rem, 10vw, 8rem);
  isolation: isolate;
  overflow: hidden;
}

/* Aura: doua pete difuze care se amesteca. Discret, nu decorativ-agresiv. */
.hero__aura {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 130%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46rem 28rem at 18% 28%, rgba(110, 231, 192, 0.11), transparent 62%),
    radial-gradient(40rem 26rem at 76% 12%, rgba(122, 162, 247, 0.13), transparent 60%);
  filter: blur(6px);
}
/* Grila fina peste aura — sugereaza "tehnic", nu "crypto". */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(closest-side at 50% 35%, #000 20%, transparent 100%);
}

.hero h1 { margin-top: 1.5rem; max-width: 17ch; }
.hero .lead { margin-top: 1.75rem; max-width: 56ch; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
  margin-top: 2.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(110, 231, 192, 0.55);
  animation: pulse 2.6s var(--ease) infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(110, 231, 192, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(110, 231, 192, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 231, 192, 0); }
}

/* --- Sectiuni cu titlu ---------------------------------------------------- */
.section__head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section__head h2 { margin-top: 1.25rem; }
.section__head p  { margin-top: 1.125rem; }

/* --- Ce facem: doua coloane ----------------------------------------------- */
.pillars {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
}

.card {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { border-color: var(--line); transform: translateY(-2px); }

/* Firul de gradient de sus apare doar la hover — "blend"-ul ca accent, nu ca tapet. */
.card::before {
  content: '';
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 1px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, transparent, var(--mint), var(--azure), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.card:hover::before { opacity: 0.85; }

.card__icon {
  width: 38px; height: 38px;
  margin-bottom: 1.35rem;
  color: var(--mint);
}
.card h3 { margin-bottom: 0.75rem; }
.card p  { color: var(--text-dim); font-size: 0.9688rem; }

.card__list {
  margin-top: 1.35rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 0.9063rem;
  color: var(--text-mute);
}
.card__list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  line-height: 1.5;
}
.card__list li::before {
  content: '';
  flex: none;
  width: 5px; height: 5px;
  margin-top: 0.6rem;
  border-radius: 50%;
  background: var(--line);
}

/* --- Cum lucram: pasi numerotati ------------------------------------------ */
.steps {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  counter-reset: step;
}
.step { counter-increment: step; position: relative; padding-top: 2.25rem; }
.step::before {
  content: '0' counter(step);
  position: absolute;
  top: 0; left: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}
.step::after {
  content: '';
  position: absolute;
  top: 0.55rem; left: 2.25rem; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}
.step h3 { margin-bottom: 0.6rem; }
.step p  { color: var(--text-dim); font-size: 0.9688rem; }

/* --- Contact -------------------------------------------------------------- */
.contact { position: relative; }
.contact__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2.25rem, 6vw, 4.5rem);
  border: 1px solid var(--line-soft);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(38rem 20rem at 88% -20%, rgba(122, 162, 247, 0.10), transparent 70%),
    radial-gradient(30rem 18rem at 6% 120%, rgba(110, 231, 192, 0.09), transparent 70%),
    var(--bg-soft);
}
.contact__panel h2 { max-width: 18ch; }
.contact__panel p  { margin-top: 1.25rem; max-width: 52ch; }

.mail {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
  padding: 1rem 1.5rem 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(10, 12, 15, 0.6);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  font-weight: 550;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.mail:hover { border-color: var(--mint); background: rgba(110, 231, 192, 0.06); }
.mail svg { width: 20px; height: 20px; color: var(--mint); flex: none; }

.contact__note {
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--text-mute);
  max-width: 56ch;
}

/* --- Zona legala ---------------------------------------------------------- */
.legal { padding-block: clamp(3rem, 6vw, 4.5rem); }
.legal__grid { display: grid; gap: 0.75rem; max-width: 76ch; }

details.doc {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  overflow: hidden;
}
details.doc[open] { border-color: var(--line); }

details.doc > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  min-height: 44px;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 550;
  list-style: none;
  transition: color 0.18s var(--ease);
}
details.doc > summary::-webkit-details-marker { display: none; }
details.doc > summary:hover { color: var(--mint); }
details.doc > summary::after {
  content: '';
  flex: none;
  width: 9px; height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  rotate: 45deg;
  translate: 0 -2px;
  opacity: 0.55;
  transition: rotate 0.25s var(--ease);
}
details.doc[open] > summary::after { rotate: -135deg; translate: 0 2px; }

.doc__body {
  padding: 0 1.25rem 1.5rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9063rem;
  color: var(--text-dim);
}
.doc__body > * + * { margin-top: 0.875rem; }
.doc__body h4 {
  margin-top: 1.5rem;
  font-size: 0.9063rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.doc__body ul { padding-left: 1.1rem; display: grid; gap: 0.4rem; }
.doc__body a { color: var(--mint); text-underline-offset: 3px; }
.doc__body p:first-child, .doc__body h4:first-child { margin-top: 1.25rem; }

/* --- Subsol --------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(3rem, 6vw, 4rem) 2.5rem;
  background: var(--bg-soft);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 3rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer__id { display: grid; gap: 0.5rem; font-size: 0.875rem; color: var(--text-mute); }
.footer__id .brand { margin-bottom: 0.75rem; font-size: 1rem; }
.footer__id dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.75rem; margin: 0; }
.footer__id dt { color: var(--text-mute); }
.footer__id dd { margin: 0; color: var(--text-dim); font-variant-numeric: tabular-nums; }

.footer__links { display: grid; gap: 0.6rem; font-size: 0.875rem; }
.footer__links a { color: var(--text-mute); text-decoration: none; transition: color 0.18s var(--ease); }
.footer__links a:hover { color: var(--text); }

.footer__base {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-mute);
}

/* --- Aparitie la scroll ---------------------------------------------------
   Ascunderea initiala e conditionata de clasa .js, pusa de script chiar in
   <head>. Fara JavaScript, continutul ramane pur si simplu vizibil.        */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    translate: 0 18px;
    transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
  }
  .js .reveal.is-in { opacity: 1; translate: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}

/* --- Tiparire ------------------------------------------------------------- */
@media print {
  body::before, .hero__aura, .masthead { display: none; }
  body { background: #fff; color: #000; }
  details.doc { border: none; }
  details.doc > summary { display: none; }
  .doc__body { display: block !important; padding: 0; border: none; }
}
