/* ==========================================================================
   RC Design — main stylesheet
   Paleta: ink #0B0F1A · paper #F6F4EF · accent #FF5B23
   ========================================================================== */

:root {
  --ink: #0B0F1A;
  --ink-2: #141A2A;
  --ink-3: #1E2638;
  --paper: #F6F4EF;
  --paper-2: #EDEAE2;
  --white: #FFFFFF;
  --line: #E2DED3;
  --line-dark: rgba(255, 255, 255, .1);
  --text: #1A1F2C;
  --muted: #5A6072;
  --muted-dark: #A3AABB;
  --accent: #FF5B23;
  --accent-ink: #D9430F;
  --accent-soft: #FFE4D8;
  --ok: #1F9D6B;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 15, 26, .04), 0 8px 24px -8px rgba(11, 15, 26, .12);
  --shadow-lg: 0 30px 60px -20px rgba(11, 15, 26, .35);
  --container: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.025em; font-weight: 700; color: var(--ink); }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 18px; height: 18px; flex: none; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn .icon-sm { transition: transform .2s ease; }
.btn:hover .icon-sm { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(255, 91, 35, .7); }
.btn-primary:hover { background: #FF7240; transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.on-dark .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { padding: 11px 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(246, 244, 239, .82);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(246, 244, 239, .94); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.03em; color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.brand small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.brand-text { line-height: 1.05; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { padding: 9px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--text); transition: background-color .2s ease; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { background: rgba(11, 15, 26, .06); }
.nav .nav-ai { display: inline-flex; align-items: center; gap: 6px; }
.nav .nav-ai::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.nav .btn { margin-left: 10px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, top .25s ease, opacity .2s ease; content: "";
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 16px 24px 28px; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(0,0,0,.3);
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none; transition: all .25s ease;
  }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 17px; border-radius: 12px; }
  .nav .btn { margin: 12px 0 0; }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-open .subnav { visibility: visible; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-tight { padding: clamp(56px, 7vw, 88px) 0; }
.section-dark { background: var(--ink); color: #D8DCE6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-white { background: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-dark .eyebrow { color: var(--accent); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 56px); }
.section-head p { margin-top: 20px; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); }
.section-dark .section-head p { color: var(--muted-dark); }
.split-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; max-width: none; }
.split-head > div { max-width: 720px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(11,15,26,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(11,15,26,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 5vw, 72px); align-items: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; margin-bottom: 26px;
  border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 14px; font-weight: 500; box-shadow: var(--shadow);
}
.hero-badge b { background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; }
.hero h1 { font-size: clamp(42px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -.04em; }
.hero h1 .serif { color: var(--accent-ink); font-size: 1.06em; }
.hero-lead { margin: 26px 0 36px; font-size: clamp(18px, 1.8vw, 21px); color: var(--muted); max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px; font-size: 15px; color: var(--muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon-sm { color: var(--ok); }

/* Hero visual — "flux de automatizare" */
.flow {
  position: relative; background: var(--ink); color: #fff; border-radius: 28px; padding: 28px;
  box-shadow: var(--shadow-lg); overflow: hidden; isolation: isolate;
}
.flow::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -180px; z-index: -1;
  background: radial-gradient(circle, rgba(255, 91, 35, .45), transparent 65%);
}
.flow-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; font-size: 13px; color: var(--muted-dark); }
.flow-top .live { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.flow-top .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); animation: pulse 2s infinite; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.flow-steps { display: grid; gap: 10px; position: relative; }
.flow-step {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center;
  padding: 14px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line-dark);
  opacity: 0; transform: translateY(10px); animation: stepIn .6s ease forwards;
}
.flow-step:nth-child(1) { animation-delay: .2s; }
.flow-step:nth-child(2) { animation-delay: .5s; }
.flow-step:nth-child(3) { animation-delay: .8s; }
.flow-step:nth-child(4) { animation-delay: 1.1s; }
.flow-step .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink-3); color: #fff; }
.flow-step.is-ai { border-color: rgba(255, 91, 35, .5); background: linear-gradient(135deg, rgba(255, 91, 35, .18), rgba(255, 91, 35, .04)); }
.flow-step.is-ai .ic { background: var(--accent); color: var(--ink); }
.flow-step strong { display: block; font-size: 15px; color: #fff; font-weight: 600; }
.flow-step span { font-size: 13px; color: var(--muted-dark); }
.flow-step .tag { font-style: normal; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(52, 211, 153, .14); color: #6EE7B7; }
.flow-step.is-ai .tag { background: rgba(255, 91, 35, .2); color: #FFB08F; }
.flow-foot { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted-dark); }
.flow-foot b { display: block; color: #fff; font-size: 20px; letter-spacing: -.02em; }
@keyframes stepIn { to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } }

/* ---------- Marquee / tehnologii ---------- */
.tech { border-block: 1px solid var(--line); background: var(--white); padding: 22px 0; overflow: hidden; }
.tech-inner { display: flex; align-items: center; gap: 40px; }
.tech-label { flex: none; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.marquee { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-weight: 700; font-size: 18px; color: #8A8F9C; letter-spacing: -.01em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D3CEC1; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); color: var(--ink); margin-bottom: 24px; border: 1px solid var(--line); }
.card h3 { font-size: 22px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 16px; }
.card ul { margin-top: auto; padding-top: 8px; display: grid; gap: 9px; }
.card li { display: flex; gap: 10px; font-size: 15px; color: var(--text); }
.card li .icon-sm { color: var(--accent-ink); margin-top: 3px; width: 16px; height: 16px; }
.card .card-link { margin-top: 26px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink); }
.card .card-link .icon-sm { transition: transform .2s ease; }
.card:hover .card-link .icon-sm { transform: translateX(4px); }

.card-featured { grid-column: span 2; background: var(--ink); color: #D8DCE6; border-color: var(--ink); overflow: hidden; isolation: isolate; }
.card-featured::after { content: ""; position: absolute; z-index: -1; width: 480px; height: 480px; right: -180px; bottom: -260px; background: radial-gradient(circle, rgba(255, 91, 35, .5), transparent 65%); }
.card-featured h3 { color: #fff; font-size: clamp(26px, 2.6vw, 32px); }
.card-featured p { color: var(--muted-dark); max-width: 560px; }
.card-featured .card-icon { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.card-featured ul { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.card-featured li { color: #E5E8EF; }
.card-featured li .icon-sm { color: var(--accent); }
.card-featured .card-link { color: var(--accent); }
.card-featured:hover { border-color: var(--ink); }
.pill { position: absolute; top: 28px; right: 28px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255, 91, 35, .16); color: #FFB08F; }

.card-cta { background: var(--accent); border-color: var(--accent); color: var(--ink); justify-content: space-between; }
.card-cta h3 { font-size: 26px; }
.card-cta p { color: rgba(11, 15, 26, .78); }
.card-cta:hover { border-color: var(--accent); }

/* ---------- AI section ---------- */
.ai-section { overflow: hidden; isolation: isolate; }
.ai-section::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 0%, rgba(255, 91, 35, .22), transparent 70%),
    radial-gradient(500px 400px at 0% 100%, rgba(99, 102, 241, .14), transparent 70%);
}
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.ai-item { background: var(--ink); padding: 34px 30px; transition: background-color .25s ease; }
.ai-item:hover { background: var(--ink-2); }
.ai-item .num { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.ai-item .ai-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--ink-3); color: #fff; margin: 18px 0 22px; border: 1px solid var(--line-dark); }
.ai-item h3 { font-size: 21px; margin-bottom: 10px; }
.ai-item p { font-size: 15.5px; color: var(--muted-dark); margin: 0; }
.ai-item .ex { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-dark); font-size: 14px; color: #C9CEDA; }
.ai-item .ex b { color: #FFB08F; font-weight: 600; }

.ai-cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark); }
.ai-cta p { margin: 0; font-size: 18px; color: #fff; font-weight: 500; max-width: 640px; }
.ai-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px; }
.benefit { padding: 24px; border-radius: var(--radius-sm); border: 1px solid var(--line-dark); background: rgba(255,255,255,.02); }
.benefit .icon { color: var(--accent); margin-bottom: 14px; }
.benefit strong { display: block; color: #fff; font-size: 17px; margin-bottom: 6px; }
.benefit span { font-size: 14.5px; color: var(--muted-dark); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--serif); font-style: italic; font-size: 52px; line-height: 1; color: var(--accent); margin-bottom: 20px;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }
.step .dur { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--paper); padding: 6px 10px; border-radius: 999px; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.why-list { display: grid; gap: 0; }
.why-item { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-item .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.why-item h3 { font-size: 20px; margin-bottom: 6px; }
.why-item p { margin: 0; color: var(--muted); font-size: 16px; }
.why-quote { position: sticky; top: calc(var(--header-h) + 32px); }
.why-quote blockquote { margin: 32px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.25; color: var(--ink); padding-left: 24px; border-left: 3px solid var(--accent); }

/* ---------- Portfolio ---------- */
.portfolio { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.work { grid-column: span 2; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.work.work-lg { grid-column: span 3; }
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work figure { margin: 0; overflow: hidden; background: #ECEAE4; padding: 14px 14px 0; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #D8D4CA; }
.browser-bar span { margin-left: 10px; flex: 1; font-size: 12px; color: var(--muted); background: var(--paper); border-radius: 6px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work figure img { width: 100%; aspect-ratio: 1200 / 567; object-fit: cover; object-position: top center; border: 1px solid var(--line); border-top: 0; transition: transform .5s ease; transform-origin: top center; }
.work:hover figure img { transform: scale(1.03); }
.work-body { padding: 20px 22px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; flex: 1; }
.work-body span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.work-body h3 { font-size: 21px; margin-top: 6px; }
.work-body p { margin: 8px 0 16px; font-size: 15px; color: var(--muted); }
.work-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-style: normal; font-weight: 600; font-size: 14px; color: var(--ink); }
.work-link .icon-sm { width: 16px; height: 16px; transition: transform .2s ease; }
.work:hover .work-link .icon-sm { transform: translateX(4px); }

.apps { margin-top: 72px; padding: clamp(28px, 4vw, 44px); border-radius: 24px; background: var(--ink); color: #D8DCE6; position: relative; overflow: hidden; isolation: isolate; }
.apps::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -200px; top: -280px; background: radial-gradient(circle, rgba(255, 91, 35, .35), transparent 65%); }
.apps-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.apps-head h3 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.apps-head h3 .serif { color: var(--accent); }
.apps-head p { margin: 0; max-width: 460px; color: var(--muted-dark); font-size: 16px; }
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app-card { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; padding: 22px; border-radius: 18px; background: var(--ink-2); border: 1px solid var(--line-dark); }
.app-card > img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.6); }
.app-card h4 { margin: 0; color: #fff; font-size: 18px; letter-spacing: -.02em; }
.app-card p { margin: 6px 0 16px; font-size: 14.5px; color: var(--muted-dark); line-height: 1.5; }
.store-links { display: flex; flex-wrap: wrap; gap: 8px; }
.store-btn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 10px; border-radius: 10px; background: #000; border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.1; transition: border-color .2s ease, background-color .2s ease; }
.store-btn small { display: block; font-size: 10px; font-weight: 500; color: #B9BFCC; }
.store-btn .icon-sm { width: 20px; height: 20px; }
.store-btn:hover { border-color: var(--accent); background: #111; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; font-size: 18px; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat;
  transition: transform .25s ease, background-color .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--accent-soft); border-color: var(--accent-soft); }
.faq .answer { padding: 0 56px 24px 0; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-info h2 { font-size: clamp(36px, 4.6vw, 56px); }
.contact-info > p { margin-top: 20px; font-size: 18px; color: var(--muted-dark); }
.contact-list { margin-top: 36px; display: grid; gap: 14px; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.03); color: #fff; transition: border-color .2s ease, background-color .2s ease; }
.contact-list a:hover { border-color: rgba(255, 91, 35, .6); background: rgba(255, 91, 35, .06); }
.contact-list .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink-3); color: var(--accent); flex: none; }
.contact-list small { display: block; font-size: 13px; color: var(--muted-dark); }
.contact-list strong { font-weight: 600; font-size: 16px; }

.form { background: var(--white); color: var(--text); border-radius: 24px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); }
.form h3 { font-size: 24px; margin-bottom: 6px; }
.form > p { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper);
  font-size: 16px; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230B0F1A' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(255, 91, 35, .15); }
.checkbox { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.checkbox a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; display: none; padding: 14px 16px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.form-status.ok { display: block; background: #E3F6EE; color: #0F6B47; }
.form-status.err { display: block; background: #FDE8E4; color: #A12A0C; }
.form .btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- CTA band ---------- */
.cta-band { border-radius: 28px; padding: clamp(40px, 6vw, 72px); background: var(--accent); color: var(--ink); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -140px; top: -260px; border-radius: 50%; border: 80px solid rgba(255,255,255,.14); }
.cta-band h2 { font-size: clamp(32px, 4vw, 48px); }
.cta-band p { margin: 14px 0 0; font-size: 18px; color: rgba(11, 15, 26, .8); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); padding: 80px 0 32px; font-size: 15px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: var(--muted-dark); }
.footer-about { margin-top: 18px; max-width: 340px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-dark); color: #fff; transition: background-color .2s ease, border-color .2s ease; }
.social a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero.dark { background: var(--ink); color: #D8DCE6; }
.page-hero.dark h1 { color: #fff; }
.page-hero.dark::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(700px 480px at 90% 10%, rgba(255, 91, 35, .28), transparent 70%), radial-gradient(500px 400px at 0% 100%, rgba(99, 102, 241, .14), transparent 70%); }
.page-hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.03; letter-spacing: -.04em; max-width: 980px; }
.page-hero h1 .serif { color: var(--accent); }
.page-hero .lead { margin: 26px 0 36px; font-size: clamp(18px, 1.8vw, 21px); max-width: 720px; color: var(--muted-dark); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted-dark); margin-bottom: 28px; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.page-hero:not(.dark) .breadcrumbs { color: var(--muted); }
.page-hero:not(.dark) .breadcrumbs a:hover { color: var(--ink); }

/* industries */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.industry { padding: 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.industry h3 { font-size: 20px; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.industry h3 .icon { color: var(--accent-ink); }
.industry ul { display: grid; gap: 9px; }
.industry li { display: flex; gap: 10px; font-size: 15.5px; color: var(--muted); }
.industry li .icon-sm { width: 16px; height: 16px; margin-top: 4px; color: var(--accent-ink); }

/* packages */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.package { display: flex; flex-direction: column; padding: 36px 32px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.package.popular { background: var(--ink); color: #D8DCE6; border-color: var(--ink); position: relative; }
.package.popular h3 { color: #fff; }
.package .tagline { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.package.popular .tagline { color: var(--accent); }
.package h3 { font-size: 26px; margin: 10px 0 12px; }
.package > p { color: var(--muted); font-size: 15.5px; }
.package.popular > p { color: var(--muted-dark); }
.package ul { display: grid; gap: 11px; margin: 10px 0 30px; }
.package li { display: flex; gap: 10px; font-size: 15.5px; }
.package li .icon-sm { width: 18px; height: 18px; margin-top: 3px; color: var(--ok); }
.package.popular li .icon-sm { color: var(--accent); }
.package .btn { margin-top: auto; }

/* compliance strip */
.compliance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.compliance div { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.compliance .icon { color: var(--accent-ink); margin-bottom: 14px; }
.compliance h3 { font-size: 19px; margin-bottom: 8px; }
.compliance p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* legal / prose */
.prose { max-width: 780px; }
.prose h2 { font-size: 26px; margin: 48px 0 14px; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; }
.prose p, .prose li { color: #3A4050; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .work, .work.work-lg { grid-column: span 3; }
  .apps-grid { grid-template-columns: 1fr; }
  .steps, .benefits { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .hero-grid, .why, .faq-wrap, .contact { grid-template-columns: 1fr; }
  .services-grid, .ai-grid, .industries, .packages, .compliance { grid-template-columns: 1fr 1fr; }
  .card-featured { grid-column: 1 / -1; }
  .why-quote { position: static; }
  .cta-band { grid-template-columns: 1fr; }
  .flow { max-width: 560px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .services-grid, .ai-grid, .industries, .packages, .compliance, .steps, .benefits, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .card-featured ul { grid-template-columns: 1fr; }
  .card, .industry, .package { padding: 26px 22px; }
  .pill { position: static; align-self: flex-start; margin-bottom: 16px; }
  .tech-label { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .faq .answer { padding-right: 0; }
  .flow { padding: 18px; border-radius: 22px; }
  .flow-step { grid-template-columns: 40px 1fr; }
  .flow-step .tag { display: none; }
  .ai-cta { padding: 24px; }
}

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

@media (max-width: 420px) { .flow-foot { font-size: 12px; } .flow-foot b { font-size: 16px; } }
@media (max-width: 680px) { .portfolio { grid-template-columns: 1fr; } .work, .work.work-lg { grid-column: auto; } .app-card { grid-template-columns: 56px 1fr; padding: 18px; } .app-card > img { width: 56px; height: 56px; border-radius: 14px; } }

/* ==========================================================================
   v4 — dropdown servicii, pagini de servicii, blog, articole
   ========================================================================== */
.has-sub { position: relative; }
.nav .sub-trigger { display: inline-flex; align-items: center; gap: 4px; }
.chev { width: 14px; height: 14px; transition: transform .2s ease; }
.has-sub:hover .chev, .has-sub:focus-within .chev { transform: rotate(180deg); }
.subnav {
  position: absolute; top: calc(100% + 10px); left: -16px; width: 600px; z-index: 110;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-sub:hover .subnav, .has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: none; }
.nav .subnav a { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; }
.nav .subnav a:hover, .nav .subnav a[aria-current="page"] { background: var(--paper); }
.subnav .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--accent-ink); }
.subnav strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.subnav small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
@media (max-width: 980px) {
  .nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .subnav { position: static; width: auto; opacity: 1; visibility: inherit; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 8px; grid-template-columns: 1fr; background: transparent; }
  .subnav::before, .chev, .subnav small { display: none; }
  .nav .subnav a { grid-template-columns: 30px 1fr; padding: 8px 10px; }
  .subnav .ic { width: 30px; height: 30px; }
  .subnav strong { font-weight: 500; font-size: 16px; }
}

.footer-grid-5 { grid-template-columns: 1.4fr 1fr 1.2fr .8fr 1.1fr; }
@media (max-width: 1100px) { .footer-grid-5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .footer-grid-5 { grid-template-columns: 1fr; } }

/* Service page */
.split { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.split .prose h2 { font-size: clamp(28px, 3.2vw, 40px); margin: 0 0 22px; }
.split .prose p { font-size: 17.5px; }
.checklist { position: sticky; top: calc(var(--header-h) + 24px); padding: 30px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); }
.checklist h3 { font-size: 20px; margin-bottom: 18px; }
.checklist ul { display: grid; gap: 11px; margin-bottom: 26px; }
.checklist li { display: flex; gap: 10px; font-size: 15.5px; }
.checklist li .icon-sm { color: var(--ok); margin-top: 3px; }
.checklist-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.other-services { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; }
.tag-link { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-weight: 500; transition: border-color .2s ease, background-color .2s ease; }
.tag-link:hover { border-color: var(--ink); }
.card-cta.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; }
.card-cta.wide h3 { margin-bottom: 6px; }
.card-cta.wide p { margin: 0; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } .checklist { position: static; } }
@media (max-width: 680px) { .card-cta.wide { flex-direction: column; align-items: flex-start; } }

/* Blog */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { display: inline-flex; align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.chip-outline { background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post figure { margin: 0; aspect-ratio: 800 / 420; overflow: hidden; background: var(--ink); }
.post figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post:hover figure img { transform: scale(1.04); }
.post-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; flex: 1; }
.post-body h2, .post-body h3 { font-size: 20px; line-height: 1.25; }
.post-body p { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { margin-top: auto; padding-top: 6px; font-size: 13.5px; color: var(--muted); }
.post-featured { display: grid; grid-template-columns: 1.1fr .9fr; margin-bottom: 20px; }
.post-featured figure { aspect-ratio: auto; min-height: 100%; }
.post-featured .post-body { padding: clamp(24px, 4vw, 48px); justify-content: center; }
.post-featured h2 { font-size: clamp(24px, 2.8vw, 34px); }
.post-featured p { -webkit-line-clamp: 4; font-size: 16.5px; }
@media (max-width: 980px) { .posts { grid-template-columns: 1fr 1fr; } .post-featured { grid-template-columns: 1fr; } .post-featured figure { aspect-ratio: 800/420; } }
@media (max-width: 680px) { .posts { grid-template-columns: 1fr; } }

/* Article */
.article-hero { padding-bottom: 40px; }
.article-hero h1 { font-size: clamp(34px, 4.8vw, 60px); margin-top: 18px; max-width: 900px; }
.article-hero .lead { max-width: 760px; margin: 20px 0 28px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; font-size: 14.5px; color: var(--muted); }
.article-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta .author img { width: 36px; height: 36px; }
.article-meta .author strong { display: block; color: var(--ink); font-size: 14.5px; }
.article-meta .author small { display: block; font-size: 12px; }
.article-cover { width: 100%; border-radius: 24px; margin-bottom: clamp(40px, 5vw, 64px); box-shadow: var(--shadow); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 6vw, 80px); align-items: start; padding-bottom: clamp(56px, 7vw, 96px); }
.article-body { max-width: 740px; }
.article-body > p:first-child { font-size: 19px; color: var(--ink); }
.prose { font-size: 17.5px; line-height: 1.75; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 48px 0 16px; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { margin: 32px 0 10px; }
.prose ol { padding-left: 22px; margin-bottom: 1em; }
.prose strong { color: var(--ink); }
.callout { margin: 30px 0; padding: 20px 24px; border-radius: 16px; background: var(--accent-soft); border-left: 4px solid var(--accent); color: #3A2A22; font-size: 16.5px; }
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--white); }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { background: var(--paper); color: var(--ink); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.toc { padding: 22px 24px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.toc strong { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14.5px; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--accent-ink); }
.aside-cta { padding: 24px; border-radius: 18px; background: var(--ink); color: var(--muted-dark); }
.aside-cta .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--ink); margin-bottom: 14px; }
.aside-cta strong { display: block; color: #fff; font-size: 18px; margin-bottom: 6px; }
.aside-cta p { font-size: 14.5px; margin-bottom: 16px; }
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; } .article-aside { position: static; } .toc { display: none; } }

/* fixes */
.steps { list-style: none; padding: 0; margin: 0; }
.section-dark .form h3, .form h3 { color: var(--ink); }
.breadcrumbs { list-style: none; padding: 0; margin-top: 0; }

/* v6 — homepage focus: AI, mobile, web apps */
.hero-proof { display: inline-flex; align-items: center; gap: 14px; margin-top: 34px; padding: 10px 18px 10px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s ease; }
.hero-proof:hover { transform: translateY(-2px); }
.hero-proof-icons { display: flex; }
.hero-proof-icons img { width: 40px; height: 40px; border-radius: 11px; border: 2px solid #fff; margin-left: -10px; box-shadow: 0 4px 10px -4px rgba(0,0,0,.4); }
.hero-proof-icons img:first-child { margin-left: 0; }
.hero-proof strong { display: block; font-size: 15px; color: var(--ink); line-height: 1.2; }
.hero-proof small { display: block; font-size: 13px; color: var(--muted); }

.core-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.core-card { position: relative; display: flex; flex-direction: column; padding: 34px 30px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; overflow: hidden; isolation: isolate; }
.core-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.core-card .card-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 24px; }
.core-card h3 { font-size: clamp(22px, 2.1vw, 26px); margin-bottom: 12px; }
.core-card > p { color: var(--muted); font-size: 16px; }
.core-card ul { display: grid; gap: 10px; margin: 6px 0 24px; }
.core-card li { display: flex; gap: 10px; font-size: 15.5px; }
.core-card li .icon-sm { color: var(--accent-ink); margin-top: 3px; width: 16px; height: 16px; }
.core-card .card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink); }
.core-card:hover .card-link .icon-sm { transform: translateX(4px); }
.core-card .card-link .icon-sm { transition: transform .2s ease; }
.core-dark { background: var(--ink); border-color: var(--ink); color: #D8DCE6; }
.core-dark::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -180px; bottom: -220px; background: radial-gradient(circle, rgba(255, 91, 35, .5), transparent 65%); }
.core-dark h3, .core-dark h3 a { color: #fff; }
.core-dark > p { color: var(--muted-dark); }
.core-dark .card-icon { background: var(--accent); color: var(--ink); }
.core-dark li { color: #E5E8EF; }
.core-dark li .icon-sm { color: var(--accent); }
.core-dark .card-link { color: var(--accent); }
.core-dark .pill { top: 30px; right: 26px; }
.core-proof { display: flex; align-items: center; gap: 6px; margin: -6px 0 22px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.core-proof img { width: 30px; height: 30px; border-radius: 8px; }
.core-proof span { margin-left: 6px; }
.core-tags { display: flex; gap: 6px; margin-left: 0 !important; }
.core-tags i { font-style: normal; font-weight: 600; font-size: 12.5px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }

.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini-card { display: grid; grid-template-columns: 48px 1fr 20px; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease, background-color .2s ease; }
.mini-card:hover { border-color: var(--ink); background: #fff; transform: translateY(-2px); }
.mini-card .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--accent-ink); }
.mini-card strong { display: block; font-size: 16.5px; color: var(--ink); }
.mini-card small { display: block; font-size: 14px; color: var(--muted); }
.mini-card > .icon-sm { color: var(--muted); transition: transform .2s ease; }
.mini-card:hover > .icon-sm { transform: translateX(3px); color: var(--ink); }
@media (max-width: 1100px) { .core-grid { grid-template-columns: 1fr 1fr; } .core-dark { grid-column: 1 / -1; } .mini-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .core-grid, .mini-grid { grid-template-columns: 1fr; } .core-dark .pill { position: static; align-self: flex-start; margin-bottom: 16px; } .hero-proof { border-radius: 18px; } }

/* v7 — hero canvas, cookie consent, reCAPTCHA */
.hero-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent), radial-gradient(ellipse 80% 90% at 60% 40%, #000 40%, transparent 85%);
          mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.hero.has-canvas::before { opacity: .45; }
.hero.has-canvas .hero-grid { z-index: 1; }
.hero.has-canvas .hero-lead, .hero.has-canvas h1 { text-shadow: 0 0 24px var(--paper), 0 0 2px var(--paper); }

.captcha { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.captcha a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.captcha a:hover { color: var(--accent); }
.grecaptcha-badge { visibility: hidden !important; }

.cookie-banner { position: fixed; z-index: 300; left: 20px; bottom: 20px; width: min(440px, calc(100vw - 40px));
  background: var(--ink); color: var(--muted-dark); border: 1px solid var(--line-dark); border-radius: 20px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); opacity: 0; transform: translateY(16px); visibility: hidden;
  transition: opacity .3s ease, transform .3s ease, visibility .3s; }
.cookie-banner.is-open { opacity: 1; transform: none; visibility: visible; }
.cookie-inner { padding: 22px 22px 20px; max-height: calc(100vh - 40px); overflow-y: auto; }
.cookie-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cookie-head strong { color: #fff; font-size: 17px; }
.cookie-ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,91,35,.15); color: var(--accent); }
.cookie-ic .icon { width: 18px; height: 18px; }
.cookie-banner p { font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
.cookie-banner a { color: #FFB08F; text-decoration: underline; text-underline-offset: 2px; }
.cookie-prefs { display: grid; gap: 8px; margin-bottom: 16px; }
.cookie-prefs[hidden] { display: none; }
.cookie-opt { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line-dark); cursor: pointer; }
.cookie-opt strong { display: block; color: #fff; font-size: 14px; }
.cookie-opt small { display: block; font-size: 12.5px; line-height: 1.4; }
.cookie-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cookie-opt i { position: relative; width: 40px; height: 22px; border-radius: 999px; background: #3A4256; transition: background-color .2s ease; }
.cookie-opt i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.cookie-opt input:checked + i { background: var(--accent); }
.cookie-opt input:checked + i::after { transform: translateX(18px); }
.cookie-opt input:disabled + i { opacity: .6; }
.cookie-opt input:focus-visible + i { outline: 3px solid var(--accent); outline-offset: 2px; }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cookie-actions [hidden] { display: none; }
.cookie-banner .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cookie-banner .btn-ghost:hover { background: #fff; color: var(--ink); }
.cookie-link { background: none; border: 0; padding: 8px 6px; color: var(--muted-dark); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cookie-link:hover { color: #fff; }
@media (max-width: 520px) { .cookie-banner { left: 10px; right: 10px; bottom: 10px; width: auto; } .cookie-actions .btn { flex: 1 1 auto; } }

/* v10 — fundal animat pe toate paginile + tranziții între pagini */
.page-hero.has-canvas > .container { position: relative; z-index: 1; }
.page-hero.has-canvas .hero-canvas { -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
.page-hero.has-canvas:not(.dark) h1, .page-hero.has-canvas:not(.dark) .lead { text-shadow: 0 0 22px var(--paper), 0 0 2px var(--paper); }
.page-hero.dark.has-canvas h1, .page-hero.dark.has-canvas .lead { text-shadow: 0 0 22px var(--ink), 0 0 2px var(--ink); }

@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-group(site-header) { animation: none; }
::view-transition-old(root) { animation: rc-page-out .2s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: rc-page-in .38s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes rc-page-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes rc-page-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* v11 — hero întunecat pe toate paginile */
.hero.dark { background: var(--ink); color: #D8DCE6; isolation: isolate; }
.hero.dark::before { z-index: -1; opacity: 1; background-image: radial-gradient(700px 480px at 85% 15%, rgba(255, 91, 35, .26), transparent 70%), radial-gradient(520px 420px at 0% 100%, rgba(99, 102, 241, .14), transparent 70%); background-size: auto; -webkit-mask-image: none; mask-image: none; }
.hero.dark h1 { color: #fff; }
.hero.dark h1 .serif { color: var(--accent); }
.hero.dark .hero-lead { color: var(--muted-dark); }
.hero.dark.has-canvas h1, .hero.dark.has-canvas .hero-lead { text-shadow: 0 0 24px var(--ink), 0 0 2px var(--ink); }
.hero.dark .hero-badge { background: rgba(255,255,255,.06); border-color: var(--line-dark); color: #E6E9F0; box-shadow: none; }
.hero.dark .hero-badge b { background: var(--accent); color: var(--ink); }
.hero.dark .hero-proof { background: rgba(255,255,255,.06); border-color: var(--line-dark); box-shadow: none; }
.hero.dark .hero-proof strong { color: #fff; }
.hero.dark .hero-proof small { color: var(--muted-dark); }
.hero.dark .hero-proof-icons img { border-color: var(--ink); }
.hero.dark .flow { background: var(--ink-2); border: 1px solid var(--line-dark); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,91,35,.08); }
.page-hero.dark .chip { background: rgba(255, 91, 35, .16); color: #FFB08F; }
.page-hero.dark .chip-outline { background: transparent; border-color: var(--line-dark); color: var(--muted-dark); }
.page-hero.dark .article-meta { color: var(--muted-dark); }
.page-hero.dark .article-meta .author strong { color: #fff; }
.article-hero.dark { padding-bottom: clamp(56px, 6vw, 80px); margin-bottom: clamp(32px, 4vw, 56px); }
