/* evershell.dev — un singur fişier de stil, fără build. Culorile vin din docs/brand/cursor/colors.css;
   tema întunecată urmează sistemul vizitatorului, la fel ca şi capturile (<picture> dark/light). */
:root {
  --petrol: #0D3640;
  --petrol-2: #0A2A32;
  --petrol-line: #2A5560;
  --cream: #F6F4EE;
  --phosphor: #F2A33A;
  --muted: #BACACB;

  --bg: var(--cream);
  --bg-alt: #EEEBE2;
  --card: #FFFFFF;
  --line: #DCD7CA;
  --text: var(--petrol);
  --text-2: #3F5F66;          /* 6.6:1 pe cream */
  --accent-text: #8A5A12;     /* phosphor închis: 5.6:1 pe cream, pentru etichete mici */
  --code-bg: var(--petrol);
  --code-text: var(--cream);
  --shadow: 0 24px 64px rgba(13, 54, 64, .18);

  --sans: "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1160px;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #082229;
    --bg-alt: #0B2C34;
    --card: #0D3640;
    --line: #1F4A54;
    --text: var(--cream);
    --text-2: var(--muted);
    --accent-text: var(--phosphor);
    --code-bg: #04161B;
    --shadow: 0 24px 64px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--phosphor); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--phosphor); color: var(--petrol); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── header ─────────────────────────────────────────────────────────── */
.site-head { background: var(--petrol); color: var(--cream); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #154550; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { width: 138px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: 16px; }
.nav a:hover { color: var(--cream); background: rgba(246, 244, 238, .06); }
.nav a[aria-current="page"] { color: var(--cream); box-shadow: inset 0 -2px 0 var(--phosphor); border-radius: 0; }
.nav .lang { font-family: var(--mono); font-size: 13px; border: 1px solid var(--petrol-line); margin-left: 8px; }
.nav .gh { color: var(--cream); border: 1px solid #3E6670; margin-left: 4px; }
.menu-btn { display: none; background: none; border: 1px solid var(--petrol-line); color: var(--cream); border-radius: 8px; min-width: 44px; min-height: 44px; font: inherit; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; background: var(--petrol); padding: 8px 16px 20px; border-bottom: 1px solid #154550; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; }
  .nav .lang, .nav .gh { margin: 8px 0 0; text-align: center; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--phosphor); }
}

/* ── hero ───────────────────────────────────────────────────────────── */
.hero { background: var(--petrol); color: var(--cream); padding: 88px 0 0; overflow: hidden; }
.eyebrow { font-family: var(--mono); font-size: 14px; letter-spacing: .04em; color: var(--accent-text); margin: 0 0 16px; text-transform: uppercase; }
.hero .eyebrow { color: var(--phosphor); text-transform: none; letter-spacing: .02em; }
.hero h1 { margin: 0; font-size: clamp(44px, 7.2vw, 96px); line-height: 1.02; font-weight: 300; letter-spacing: -.02em; }
.hero h1 b { font-weight: 700; }
.cursor { display: inline-block; width: .42em; height: .82em; margin-left: .12em; background: var(--phosphor); border-radius: 3px; vertical-align: -.04em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor, .blink { animation: none; } }
.lede { margin: 28px 0 0; max-width: 690px; font-size: clamp(19px, 2vw, 23px); line-height: 1.5; color: var(--muted); }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 8px; font-size: 17px; text-decoration: none; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--phosphor); color: var(--petrol); font-weight: 700; border: 0; }
.btn-primary:hover { background: #F5B357; }
.btn-ghost { border: 1px solid #5A8089; color: var(--cream); background: transparent; }
.btn-ghost:hover { border-color: var(--cream); }
.btn svg { width: 18px; height: 18px; flex: none; }
.hero-media { margin-top: 64px; transform: translateY(1px); }
.window { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; border: 1px solid var(--petrol-line); border-bottom: 0; background: var(--petrol-2); box-shadow: 0 -10px 60px rgba(4, 22, 27, .35); }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #1E4954; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2F5A64; }
.window-bar span { margin-left: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.video-frame { position: relative; aspect-ratio: 16 / 10; background: var(--petrol-2); }
.video-frame video, .video-frame img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; margin: auto; width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--phosphor); color: var(--petrol); display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.play svg { width: 34px; height: 34px; margin-left: 5px; }
.play:hover { transform: scale(1.04); }
.play-label { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-family: var(--mono); font-size: 14px; color: var(--cream); text-shadow: 0 1px 8px rgba(0, 0, 0, .7); pointer-events: none; }

/* ── secţiuni ───────────────────────────────────────────────────────── */
section { padding: 104px 0; }
section.tight { padding-top: 0; }
.alt { background: var(--bg-alt); }
.dark { background: var(--petrol); color: var(--cream); --text-2: var(--muted); --accent-text: var(--phosphor); --line: var(--petrol-line); --card: #0F3D48; }
h2 { margin: 0; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.12; font-weight: 300; letter-spacing: -.01em; }
h2 b { font-weight: 700; }
h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.3; }
p { margin: 0; }
.sub { margin-top: 18px; max-width: 700px; color: var(--text-2); font-size: 18px; }
.muted { color: var(--text-2); }
.grid { display: grid; gap: 24px; margin-top: 52px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--text-2); font-size: 16px; }
.step-no { font-family: var(--mono); font-size: 14px; color: var(--accent-text); margin-bottom: 10px; }
pre, code { font-family: var(--mono); }
pre { margin: 18px 0 0; padding: 14px 16px; background: var(--code-bg); color: var(--code-text); border-radius: 8px; font-size: 13.5px; line-height: 1.65; overflow-x: auto; }
code { font-size: .9em; background: rgba(13, 54, 64, .08); padding: .1em .35em; border-radius: 4px; }
pre code { background: none; padding: 0; font-size: inherit; }
.dark code { background: rgba(246, 244, 238, .1); }
.c-dim { color: var(--muted); }
.c-ok { color: #7FD1A8; }
.c-ph { color: var(--phosphor); }
.blink { animation: blink 1.1s steps(1) infinite; color: var(--phosphor); }
.rule { border-top: 1px solid var(--line); padding-top: 72px; }
.list { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 28px 36px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.list li { border-top: 1px solid var(--line); padding-top: 16px; }
.list b { font-size: 18px; display: block; }
.list p { margin-top: 6px; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.tag { display: inline-block; font-family: var(--mono); font-size: 12.5px; color: var(--accent-text); margin-left: 8px; font-weight: 400; vertical-align: 2px; }
.callout { margin-top: 40px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); color: var(--text-2); font-size: 16px; }
.callout strong { color: var(--text); }
.split2 { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split2 > * { flex: 1 1 380px; min-width: 0; }
.more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; color: var(--accent-text); font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ── turul: rânduri captură + explicaţie ───────────────────────────── */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.toc a { text-decoration: none; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; color: var(--text-2); min-height: 44px; display: inline-flex; align-items: center; }
.toc a:hover { color: var(--text); border-color: var(--text-2); }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding: 72px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.feature:nth-of-type(even) .shot { order: -1; }
.feature .points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.feature .points li { padding-left: 22px; position: relative; color: var(--text-2); font-size: 16px; }
.feature .points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 12px; background: var(--phosphor); border-radius: 1px; }
.feature .points b { color: var(--text); }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 56px 0; }
  .feature:nth-of-type(even) .shot { order: 0; }
}
.shot { margin: 0; }
.shot img { border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; }
.shot.phone img { max-width: 300px; margin: 0 auto; }
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--text-2); }
.shot a { display: block; border-radius: 10px; }

/* ── footer ─────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 15px; color: var(--text-2); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-foot a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand i { width: 10px; height: 22px; background: var(--phosphor); border-radius: 2px; }
.foot-brand b { color: var(--text); }

/* ── adăugiri după auditul Playwright ───────────────────────────────── */
/* cuprinsul din hero stă pe petrol: culorile din tema luminoasă dădeau 2:1 (axe color-contrast) */
.hero .toc a { color: var(--muted); border-color: #2E5A64; }
.hero .toc a:hover { color: var(--cream); border-color: var(--muted); }

/* banda de valori de sub hero */
.proof { background: var(--petrol-2); color: var(--cream); padding: 0; }
.proof ul { list-style: none; margin: 0; padding: 28px 0; display: grid; gap: 20px 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.proof li { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; color: var(--muted); }
.proof b { display: block; color: var(--cream); font-size: 16.5px; margin-bottom: 2px; }
.ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(242, 163, 58, .14); color: var(--phosphor); }
.ico svg { width: 22px; height: 22px; }
.card .ico { margin-bottom: 16px; background: rgba(242, 163, 58, .16); color: var(--accent-text); }

/* galeria de pe prima pagină */
.gallery { display: grid; gap: 20px; margin-top: 48px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.gallery a { text-decoration: none; display: block; }
.gallery img { border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s; }
.gallery a:hover img { transform: translateY(-3px); }
.gallery span { display: block; margin-top: 12px; font-weight: 700; }
.gallery small { display: block; color: var(--text-2); font-size: 15px; font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }

/* comparaţia cu SSH + tmux */
.compare-wrap { margin-top: 44px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 16px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare thead th { font-size: 14px; font-family: var(--mono); font-weight: 400; color: var(--text-2); }
.compare thead th:last-child { color: var(--accent-text); }
.compare tbody th { font-weight: 700; width: 34%; }
.compare td { color: var(--text-2); }
.compare td:last-child { color: var(--text); }
.yes::before { content: "✓ "; color: #2E8B57; font-weight: 700; }
.no::before { content: "– "; color: var(--text-2); }
@media (prefers-color-scheme: dark) { .yes::before { color: #7FD1A8; } }

/* întrebări frecvente */
.faq { margin-top: 40px; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent-text); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; color: var(--text-2); font-size: 16px; }

/* captura mărită */
.zoom-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; }
.zoom-btn:hover img { box-shadow: 0 0 0 2px var(--phosphor), var(--shadow); }
.zoom-dlg { max-width: 96vw; max-height: 94vh; padding: 0; border: 0; border-radius: 12px; background: #04161B; overflow: auto; cursor: zoom-out; }
.zoom-dlg::backdrop { background: rgba(4, 22, 27, .85); }
.zoom-dlg img { display: block; width: min(1440px, 96vw); max-width: none; height: auto; }
.zoom-close { position: sticky; top: 8px; float: right; margin: 8px 8px -52px 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--phosphor); color: var(--petrol); font-size: 26px; line-height: 1; cursor: pointer; z-index: 1; }
.shot.phone .zoom-btn img { max-width: 300px; margin: 0 auto; }

/* echipa: pagina About + semnătura din footer */
.team .avatar { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--petrol); color: var(--phosphor); font: 700 18px var(--mono); margin-bottom: 16px; }
.team .role { font-family: var(--mono); font-size: 13.5px; color: var(--accent-text); margin: -2px 0 10px; }
.site-foot .crew { font-family: var(--mono); font-size: 14px; color: var(--text); text-decoration: none; }
.site-foot .crew span { color: var(--accent-text); }
.site-foot .crew:hover { text-decoration: none; color: var(--accent-text); }
.site-foot .crew span { margin: 0 .45em; }
.foot-story { max-width: var(--wrap); margin: 28px auto 0; padding: 22px 24px 0; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--text-2); }
.foot-story a { color: var(--text); text-decoration: underline; text-decoration-color: var(--phosphor); text-underline-offset: 3px; }
