/* ==========================================================
   PIN.SYSTEMS — stylesheet
   1. Tokens        4. Layout        7. Sections
   2. Reset         5. Header        8. Footer
   3. Typography    6. Components    9. Motion & responsive
   ========================================================== */

/* ── 1. Tokens ─────────────────────────────────────────── */
:root {
  --accent:        #7c9cff;
  --accent-soft:   #a3b8ff;
  --accent-2:      #35d6b0;

  --bg:            #07090c;
  --bg-alt:        #0a0d12;
  --surface:       rgba(255, 255, 255, .028);
  --surface-2:     rgba(255, 255, 255, .05);
  --line:          rgba(255, 255, 255, .09);
  --line-strong:   rgba(255, 255, 255, .16);

  --text:          #eef1f6;
  --text-muted:    #9aa4b5;
  --text-dim:      #6e7889;

  --glow-1:        rgba(124, 156, 255, .28);
  --glow-2:        rgba(53, 214, 176, .16);
  --shadow:        0 24px 60px -24px rgba(0, 0, 0, .8);

  --radius:        18px;
  --radius-sm:     12px;
  --maxw:          1180px;
  --pad:           clamp(20px, 5vw, 40px);

  --ease:          cubic-bezier(.22, .8, .26, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  color-scheme: dark;
}

[data-theme="light"] {
  --accent:        #3f5fd6;
  --accent-soft:   #2f49ad;
  --accent-2:      #0f9c7c;

  --bg:            #fbfbfd;
  --bg-alt:        #f2f4f8;
  --surface:       rgba(14, 20, 34, .022);
  --surface-2:     rgba(14, 20, 34, .045);
  --line:          rgba(14, 20, 34, .1);
  --line-strong:   rgba(14, 20, 34, .2);

  --text:          #0e1422;
  --text-muted:    #55607a;
  --text-dim:      #7b8496;

  --glow-1:        rgba(63, 95, 214, .16);
  --glow-2:        rgba(15, 156, 124, .12);
  --shadow:        0 20px 50px -26px rgba(14, 20, 34, .35);

  color-scheme: light;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .35s var(--ease), color .35s var(--ease);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

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

::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  z-index: 200; padding: 10px 18px; border-radius: 0 0 10px 10px;
  background: var(--accent); color: #fff; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ── 3. Typography ─────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.14; letter-spacing: -.032em; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.35rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.09rem; letter-spacing: -.02em; }
p  { color: var(--text-muted); }

.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .795rem; font-weight: 500; letter-spacing: .02em;
  color: var(--text-muted);
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(10px);
}

.dot-live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 var(--accent-2);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(53, 214, 176, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(53, 214, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 214, 176, 0); }
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: .715rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

/* ── 4. Layout ─────────────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.container--narrow { max-width: 820px; }

.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--slim { padding: clamp(56px, 7vw, 84px) 0; }

.section__head { max-width: 680px; margin-bottom: clamp(38px, 5vw, 60px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { margin-bottom: 16px; }
.section__title--sm { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.section__lead { font-size: 1.055rem; }

.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--tight { gap: 14px; }

/* ── 5. Header ─────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.header__inner { display: flex; align-items: center; gap: 22px; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark { width: 30px; height: 30px; }
.logo__frame { fill: none; stroke: var(--line-strong); stroke-width: 1.4; }
.logo__rays  { fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; opacity: .75; }
.logo__core  { fill: var(--accent); }
.logo__text {
  font-weight: 600; font-size: 1.03rem; letter-spacing: -.03em;
  color: var(--text);
}
.logo__dot { color: var(--accent); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 13px; border-radius: 9px;
  font-size: .905rem; font-weight: 450; color: var(--text-muted);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--text); background: var(--surface-2); }
.nav a.nav__cta { display: none; } /* vizibil doar în meniul mobil */

.header__actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  transition: color .2s, border-color .2s, background .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.lang {
  display: inline-flex; align-items: stretch;
  height: 38px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.lang a {
  display: grid; place-items: center; padding: 0 10px;
  font-size: .755rem; font-weight: 600; letter-spacing: .05em;
  color: var(--text-dim);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.lang a + a { border-left: 1px solid var(--line); }
.lang a:hover { color: var(--text); background: var(--surface-2); }
.lang a.is-active { color: var(--text); background: color-mix(in srgb, var(--accent) 16%, transparent); }

.menu-btn { display: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; }
.menu-btn span {
  display: block; width: 16px; height: 1.6px; margin: 3.4px auto;
  background: var(--text); border-radius: 2px;
  transition: transform .28s var(--ease), opacity .2s;
}
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child  { transform: translateY(-5px) rotate(-45deg); }

/* ── 6. Components ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 11px;
  font-size: .935rem; font-weight: 550; letter-spacing: -.012em;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .25s, color .2s;
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: linear-gradient(180deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 82%, #000) 100%);
  color: #fff;
  box-shadow: 0 10px 26px -12px var(--glow-1), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px var(--glow-1), inset 0 1px 0 rgba(255,255,255,.28); }

.btn--ghost { border-color: var(--line-strong); color: var(--text); background: var(--surface); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--text-dim); transform: translateY(-2px); }

.btn--sm { padding: 9px 17px; font-size: .875rem; border-radius: 10px; }
.btn--lg { padding: 16px 30px; font-size: 1.045rem; border-radius: 13px; }

.btn--copy:hover svg { transform: none; }
.btn--copy.is-copied {
  color: var(--accent-2);
  border-color: color-mix(in srgb, var(--accent-2) 45%, transparent);
  background: color-mix(in srgb, var(--accent-2) 10%, transparent);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 550; font-size: .95rem;
  margin-top: 26px;
}
.link-arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Cards */
.card {
  position: relative; overflow: hidden;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 12%, transparent), transparent 62%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-2); }
.card:hover::after { opacity: 1; }

.card__icon {
  display: grid; place-items: center;
  width: 42px; height: 42px; margin-bottom: 18px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}
.card__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.card h3 { margin-bottom: 9px; }
.card p { font-size: .945rem; }

.card__list { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); display: grid; gap: 7px; }
.card__list li {
  position: relative; padding-left: 16px;
  font-size: .87rem; color: var(--text-dim);
}
.card__list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: .65;
}

.card--accent { border-color: color-mix(in srgb, var(--accent) 34%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }

/* Mini cards */
.mini {
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color .3s, transform .3s var(--ease);
}
.mini:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.mini h3 { font-size: 1rem; margin-bottom: 7px; }
.mini p { font-size: .91rem; }

/* Checklist */
.checks { display: grid; gap: 15px; margin-top: 30px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li > span {
  flex-shrink: 0; display: grid; place-items: center;
  width: 22px; height: 22px; margin-top: 2px; border-radius: 7px;
  font-size: .72rem; font-weight: 700;
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-2) 28%, transparent);
}
.checks div { font-size: .955rem; color: var(--text-muted); }
.checks strong { color: var(--text); font-weight: 600; }

/* Stack pills */
.stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.stack li {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-family: var(--mono); font-size: .795rem; color: var(--text-muted);
  transition: color .25s, border-color .25s, transform .25s var(--ease);
}
.stack li:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-2px); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq__item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); overflow: hidden;
  transition: border-color .25s, background .25s;
}
.faq__item[open] { border-color: var(--line-strong); background: var(--surface-2); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 17px 20px; cursor: pointer; list-style: none;
  font-weight: 550; font-size: 1rem; letter-spacing: -.015em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex-shrink: 0;
  width: 9px; height: 9px; margin-right: 4px;
  border-right: 1.8px solid var(--text-dim);
  border-bottom: 1.8px solid var(--text-dim);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .3s var(--ease), border-color .25s;
}
.faq__item[open] summary::after { transform: rotate(-135deg) translateY(-2px); border-color: var(--accent); }
.faq__body { padding: 0 20px 19px; }
.faq__body p { font-size: .95rem; }

/* ── 7. Sections ───────────────────────────────────────── */
/* Hero */
.hero { position: relative; padding: clamp(130px, 19vw, 190px) 0 clamp(70px, 9vw, 110px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: -10% 0 auto 0; height: 120%;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 62% at 50% 22%, #000 5%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 62% at 50% 22%, #000 5%, transparent 72%);
  opacity: .8;
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.hero__glow--1 {
  width: 620px; height: 460px; top: -120px; left: 50%; translate: -60% 0;
  background: var(--glow-1);
  animation: drift1 22s ease-in-out infinite alternate;
}
.hero__glow--2 {
  width: 520px; height: 380px; top: 40px; right: 6%;
  background: var(--glow-2);
  animation: drift2 26s ease-in-out infinite alternate;
}
@keyframes drift1 { to { translate: -30% 60px; } }
@keyframes drift2 { to { transform: translate(-60px, 40px); } }

.hero__inner { position: relative; max-width: 880px; }
.hero__title { margin: 24px 0 22px; max-width: 15ch; text-wrap: balance; }
.hero__sub { font-size: clamp(1.03rem, 1.7vw, 1.16rem); max-width: 620px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__pills { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__pills li {
  position: relative; padding-left: 17px;
  font-size: .87rem; color: var(--text-dim);
}
.hero__pills li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--accent); opacity: .7;
}

/* Split (AI local) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split__text .section__title { max-width: 15ch; }

.panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); box-shadow: var(--shadow); overflow: hidden;
}
.panel__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.panel__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.panel__bar em {
  margin-left: auto; font-style: normal;
  font-family: var(--mono); font-size: .715rem; color: var(--text-dim);
}
.panel__body { padding: 24px 22px; }

.flow { display: grid; gap: 0; }
.flow__node {
  padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); display: grid; gap: 3px;
}
.flow__node--hl {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 7%, transparent);
}
.flow__label { font-weight: 600; font-size: .95rem; }
.flow__meta { font-family: var(--mono); font-size: .735rem; color: var(--text-dim); }
.flow__arrow {
  width: 1px; height: 26px; margin-left: 26px;
  background: linear-gradient(to bottom, var(--line-strong), transparent);
  position: relative;
}
.flow__arrow::after {
  content: ""; position: absolute; left: -3.5px; bottom: 1px;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg); opacity: .8;
}

.panel__note {
  display: flex; align-items: center; gap: 10px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: .845rem; color: var(--text-dim);
}
.panel__note svg { flex-shrink: 0; width: 17px; height: 17px; fill: none; stroke: var(--accent-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 30px 26px 30px 0; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: 0; }
.step:not(:first-child) { padding-left: 26px; }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 32px; height: 2px;
  background: var(--accent);
}
.step__num {
  display: block; font-family: var(--mono); font-size: .755rem;
  letter-spacing: .12em; color: var(--accent); margin-bottom: 14px;
}
.step h3 { margin-bottom: 9px; }
.step p { font-size: .92rem; }

/* CTA */
.cta-section { padding-bottom: clamp(88px, 11vw, 140px); }
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(46px, 7vw, 76px) clamp(24px, 5vw, 56px);
  border: 1px solid var(--line-strong); border-radius: 26px;
  background: linear-gradient(180deg, var(--surface-2), transparent 70%), var(--bg-alt);
}
.cta > * { position: relative; z-index: 1; }
/* după `.cta > *`, ca `position: absolute` să nu fie suprascris — altfel haloul
   intră în flux și împinge conținutul cardului în jos */
.cta__glow {
  position: absolute; z-index: 0;
  top: -180px; left: 50%; translate: -50% 0;
  width: 620px; height: 340px; border-radius: 50%;
  background: var(--glow-1); filter: blur(90px); pointer-events: none;
}
.cta h2 { max-width: 17ch; margin: 0 auto 18px; }
.cta > p { max-width: 54ch; margin: 0 auto 32px; font-size: 1.04rem; }

.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* mai specific decât `.cta > p`, altfel marginile de acolo îl suprascriu */
.cta p.cta__note {
  max-width: 48ch; margin: 26px auto 0;
  font-size: .855rem; color: var(--text-dim);
}

/* ── 8. Footer ─────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding-top: clamp(44px, 6vw, 64px); }
.footer__inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px; padding-bottom: 44px; }
.footer__brand p { margin-top: 14px; font-size: .91rem; max-width: 32ch; }
.footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.footer__nav h4 { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; font-weight: 600; }
.footer__nav a { display: block; font-size: .91rem; color: var(--text-muted); padding: 4px 0; transition: color .2s; }
.footer__nav a:hover { color: var(--accent); }

.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-block: 20px 26px; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--text-dim);
}

/* ── 9. Motion & responsive ────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}

@media (max-width: 980px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2n) { border-right: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .header__cta { display: none; }

  /* nav-ul devine fixed mai jos, deci `margin-left: auto` de pe el nu mai
     impinge nimic — butoanele au nevoie de propria marginea automata */
  .header__actions { margin-left: auto; }

  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; gap: 2px; margin: 0;
    align-items: flex-end; text-align: right; /* aliniat sub butonul de meniu */
    padding: 14px var(--pad) 24px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 13px 12px; font-size: 1rem; border-radius: 10px; }
  .nav a.nav__cta {
    display: inline-flex; justify-content: center;
    margin-top: 12px; padding: 14px 20px;
    color: #fff; font-size: .96rem;
    background: linear-gradient(180deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 82%, #000) 100%);
  }
}

@media (max-width: 620px) {
  /* pe ecrane inguste logo + butoane depaseau marginea laterala */
  .header__inner { gap: 12px; }
  .lang a { padding: 0 8px; }

  .eyebrow { font-size: .735rem; padding: 6px 13px 6px 11px; }
  .grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; padding-left: 0 !important; }
  .step:not(:first-child) { border-top: 1px solid var(--line); }
  .footer__nav { grid-template-columns: repeat(2, 1fr); }
  .hero__cta .btn { flex: 1 1 100%; }
}

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