/* ===== Tokens ===== */
:root {
  --ink: #0b1a2e;
  --ink-2: #33455c;
  --muted: #56677c;
  --paper: #f5f8f7;
  --tint: #e7f0ec;
  --card: #ffffff;
  --line: #d3e1dc;
  --accent: #166534;
  --accent-hover: #14532d;
  --accent-bright: #4ade80;
  --accent-2: #15803d;
  --accent-2-hover: #166534;
  --accent-2-text: #166534;
  --web: #1d4ed8;
  --web-tint: #e0eaff;
  --data: #0369a1;
  --data-tint: #e0f0fb;
  --data-bright: #60a5fa;
  --asist: #475569;
  --asist-tint: #eef2f6;
  --dark: #0b1a2e;
  --dark-2: #11253f;
  --dark-line: #233d5c;
  --on-dark: #eaf1f6;
  --on-dark-muted: #a5b6c9;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 26, 46, 0.06), 0 8px 24px rgba(11, 26, 46, 0.07);
  --shadow-lg: 0 2px 6px rgba(11, 26, 46, 0.08), 0 24px 60px rgba(11, 26, 46, 0.14);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

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

.ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 700 16px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

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

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn-ghost-dark {
  border-color: var(--dark-line);
  color: var(--on-dark);
  background: transparent;
}

.btn-ghost-dark:hover:not(:disabled) {
  border-color: var(--on-dark);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 248, 247, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark svg {
  width: 34px;
  height: 34px;
}

.brand-mark circle {
  fill: var(--accent);
}

.brand-mark path {
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Shooting star: a filled glint, not an outline like the peaks */
.brand-mark .spark {
  fill: #fff;
  stroke: none;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-sub {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  margin-left: 4px;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav a:not(.btn):hover,
.site-nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Shared section bits ===== */
.section {
  padding: 104px 0;
}

.section-tint {
  background: var(--tint);
}

.section-dark {
  background: var(--dark);
  color: var(--on-dark);
}

.section-head {
  max-width: 760px;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 800;
}

.section-lead {
  margin-top: 18px;
  font-size: 18.5px;
  color: var(--ink-2);
}

.section-dark .section-lead {
  color: var(--on-dark-muted);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2-text);
}

.kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.kicker-on-dark {
  color: var(--accent-bright);
}

.kicker-web {
  color: var(--web);
}

.kicker-asist {
  color: var(--asist);
}

/* ===== Hero ===== */
.hero {
  overflow: hidden;
}

/* Dark stage with a looping background video behind the hero content (see script.js) */
.hero-stage {
  position: relative;
  isolation: isolate;
  padding: 80px 0 96px;
  background: var(--dark);
  color: var(--on-dark);
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Tone the video down so the lines stay in the background; raise towards 1 for a stronger effect */
  opacity: 0.95;
  /* Slight lift so the blue sky and green firs read through; keep it subtle */
  filter: brightness(1.15) saturate(1.15);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Dark fade on the left keeps the text readable; under it, a faint blue sky at the top and green forest at the bottom */
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--dark) 80%, transparent) 0%, color-mix(in srgb, var(--dark) 38%, transparent) 55%, transparent 100%),
    linear-gradient(180deg, rgb(77 140 217 / 0.1) 0%, transparent 55%),
    linear-gradient(0deg, rgb(34 160 90 / 0.1) 0%, transparent 45%);
}

.hero-stage .hero-grid {
  position: relative;
  z-index: 2;
}

.hero-stage h1 {
  color: #fff;
}

.hero-stage .kicker {
  color: var(--accent-bright);
}

/* Glacier blue for the hero highlight: the mountain tone of the brand */
.hero-stage .hl-word {
  color: #7dd3fc;
}

.hero-stage .hero-copy .lead,
.hero-stage .trust-row {
  color: var(--on-dark-muted);
}

.hero-stage .trust-row .ico {
  color: var(--accent-bright);
}

.hero-stage .btn-ghost {
  border-color: var(--on-dark);
  color: var(--on-dark);
}

.hero-stage .btn-ghost:hover {
  background: var(--on-dark);
  color: var(--dark);
}

.hero-stage .win,
.hero-stage .done-chip {
  color: var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(42px, 6.2vw, 76px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hl-word {
  color: var(--accent);
}

.nowrap {
  white-space: nowrap;
}

.hero .lead {
  margin-top: 24px;
  max-width: 560px;
  font-size: 19px;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-row .ico {
  width: 18px;
  height: 18px;
  color: var(--data);
  stroke-width: 2.4;
}

/* Hero visual: document -> table */
.hero-visual {
  position: relative;
  min-height: 520px;
}

.win {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #f8fafd;
  font: 600 12.5px/1 var(--font-mono);
  color: var(--muted);
}

.win-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d3dcea;
}

.win-bar span {
  margin-left: 8px;
}

.win-bar .url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-bar .url svg {
  flex: none;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--data);
  stroke-width: 2.2;
}

/* Mock web page being scraped */
.site-win {
  top: 0;
  left: 0;
  width: 78%;
}

.page-mock {
  padding: 14px;
}

.pm-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.pm-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--web);
}

.pm-bar {
  height: 8px;
  width: 38%;
  border-radius: 4px;
  background: #e2e9f4;
}

.pm-short {
  width: 18%;
  margin-left: auto;
}

.pm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pm-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  padding: 8px 8px 10px;
  border: 1px solid #e2e9f4;
  border-radius: 10px;
  font-size: 11.5px;
  line-height: 1.3;
}

.pm-img {
  align-self: stretch;
  height: 52px;
  margin-bottom: 4px;
  border-radius: 6px;
  background:
    linear-gradient(#d6deeb, #d6deeb) center 58% / 54% 30% no-repeat,
    linear-gradient(#c2cde0, #c2cde0) center 82% / 70% 6% no-repeat,
    #eef2f8;
}

.pm-title {
  font-weight: 700;
  color: var(--ink);
}

.pm-price {
  font-weight: 800;
  color: var(--accent);
}

.pm-stock {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--data);
}

.pm-out {
  color: var(--muted);
}

.mark {
  border-radius: 4px;
  padding: 1px 3px;
  margin: -1px -3px;
  animation: mark 7s ease-in-out infinite;
}

.m2 { animation-delay: 0.5s; }
.m3 { animation-delay: 1s; }
.m4 { animation-delay: 1.5s; }

@keyframes mark {
  0%, 12% { background: transparent; }
  20%, 70% { background: var(--data-tint); box-shadow: inset 0 -2px 0 var(--data); }
  85%, 100% { background: transparent; }
}

.scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 36px;
  height: 46px;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0) 0%, rgba(96, 165, 250, 0.22) 85%, rgba(29, 78, 216, 0.55) 100%);
  animation: scan 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scan {
  0% { transform: translateY(-50px); opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(200px); opacity: 0; }
}

.table-win {
  right: 0;
  bottom: 0;
  width: 80%;
}

.table-win table {
  width: 100%;
  border-collapse: collapse;
  font: 400 13px/1 var(--font-mono);
}

.table-win th,
.table-win td {
  text-align: left;
  padding: 10px 10px;
  border-bottom: 1px solid #e8edf6;
  white-space: nowrap;
}

.table-win th:first-child,
.table-win td:first-child {
  padding-left: 14px;
}

.table-win th:last-child,
.table-win td:last-child {
  padding-right: 14px;
}

.table-win tfoot td:last-child {
  padding-bottom: 22px;
  border-bottom: 0;
  text-align: left;
  color: var(--muted);
}

.table-win th {
  font-weight: 600;
  color: var(--data);
  background: var(--data-tint);
}

.table-win td:last-child,
.table-win th:last-child {
  text-align: right;
}

.table-win tbody tr {
  animation: row-in 0.5s ease-out both;
}

.table-win tbody tr:nth-child(1) { animation-delay: 0.6s; }
.table-win tbody tr:nth-child(2) { animation-delay: 0.9s; }
.table-win tbody tr:nth-child(3) { animation-delay: 1.2s; }
.table-win tbody tr:nth-child(4) { animation-delay: 1.5s; }

@keyframes row-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.done-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}

.done-chip svg {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: var(--accent);
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.c1 { top: 22px; right: -8px; animation-delay: -1s; }
.c2 { top: 250px; left: -16px; animation-delay: -3s; }
.c3 { bottom: -20px; right: 28px; animation-delay: -4.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* Marquee */
.marquee {
  margin-top: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  -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;
  width: max-content;
  list-style: none;
  margin: 0;
  padding: 18px 0;
  animation: marquee 48s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track li {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  white-space: nowrap;
  color: var(--ink-2);
}

.marquee-track li::after {
  content: "";
  width: 7px;
  height: 7px;
  margin: 0 26px;
  border-radius: 50%;
  background: var(--accent-2);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ===== Pillars ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.pillar {
  --c: var(--web);
  --c-tint: var(--web-tint);
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.pillar-data {
  --c: var(--data);
  --c-tint: var(--data-tint);
}

.pillar-consult {
  --c: var(--accent-2);
  --c-tint: var(--tint);
}

.pillar-asist {
  --c: var(--asist);
  --c-tint: var(--asist-tint);
}

.pillar-featured {
  border: 2px solid var(--c);
  box-shadow: var(--shadow-lg);
}

.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
}

.pillar-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--c-tint);
  color: var(--c);
}

.pillar-icon .ico {
  width: 28px;
  height: 28px;
}

.pillar-tag {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c);
  text-align: right;
}

.pillar h3 {
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 800;
}

.pillar > p {
  margin-top: 10px;
  color: var(--ink-2);
}

.checks {
  list-style: none;
  padding: 0;
  margin: 22px 0 26px;
  display: grid;
  gap: 10px;
  font-size: 15.5px;
}

.checks li {
  position: relative;
  padding-left: 28px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2313212f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.more {
  margin-top: auto;
  font-weight: 700;
  color: var(--c);
  text-decoration: none;
}

.more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Secondary service: smaller, full-width strip under the two main pillars */
.extra {
  --c: var(--asist);
  --c-tint: var(--asist-tint);
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.6fr auto;
  gap: 18px 32px;
  align-items: center;
  margin-top: 22px;
  padding: 24px 28px;
  background: var(--card);
  border: 1px dashed #c3cfe2;
  border-radius: var(--radius-lg);
}

.extra-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.extra-head .pillar-icon {
  flex: none;
}

.extra .pillar-tag {
  display: block;
  text-align: left;
}

.extra h3 {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 800;
}

.extra-head p {
  margin-top: 2px;
  font-size: 15px;
  color: var(--ink-2);
}

.extra .chips li {
  padding: 6px 12px;
  font-size: 14px;
}

.extra .more {
  margin-top: 0;
  white-space: nowrap;
}

/* ===== Pagini web ===== */
.packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.package {
  --c: var(--web);
  --c-tint: var(--web-tint);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 28px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.package-featured {
  border: 2px solid var(--web);
  box-shadow: var(--shadow-lg);
}

.package-tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--web-tint);
  color: var(--web);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.package h3 {
  margin-top: 18px;
  font-size: 26px;
  font-weight: 800;
}

.package > p {
  margin-top: 8px;
  color: var(--ink-2);
}

.package .checks {
  margin-bottom: 28px;
}

.package .btn {
  margin-top: auto;
}

.combo {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px 28px;
  align-items: center;
  margin-top: 28px;
  padding: 26px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.combo-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.combo-icons .icon-web {
  background: var(--web-tint);
  color: var(--web);
}

.combo-icons .icon-data {
  background: var(--data-tint);
  color: var(--data);
}

.combo-plus {
  font: 800 22px/1 var(--font-display);
  color: var(--muted);
}

.combo h3 {
  font-size: 21px;
  font-weight: 700;
}

.combo p {
  margin-top: 6px;
  color: var(--ink-2);
}

/* ===== Parsare (dark) ===== */
.scrape-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.scrape-card {
  padding: 28px 26px;
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
}

.scrape-main {
  border-color: var(--data);
  background: linear-gradient(160deg, #132f5c 0%, var(--dark-2) 70%);
}

.scrape-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(96, 165, 250, 0.12);
  color: var(--data-bright);
}

.scrape-icon .ico {
  width: 26px;
  height: 26px;
}

.scrape-card h3 {
  font-size: 23px;
  font-weight: 800;
}

.scrape-card p {
  margin-top: 8px;
  color: var(--on-dark-muted);
  font-size: 15.5px;
}

.scrape-card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.scrape-card li {
  position: relative;
  padding-left: 18px;
}

.scrape-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--data-bright);
}

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
}

.flow-col {
  padding: 26px 26px 22px;
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
}

.flow-step {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--data-bright);
}

.flow-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  font-size: 15.5px;
}

.flow-col li {
  position: relative;
  padding-left: 18px;
}

.flow-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--data-bright);
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--data-bright);
}

.flow-arrow svg {
  width: 40px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Demo */
.demo {
  margin-top: 56px;
  padding: 32px;
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
}

.demo-head h3 {
  font-size: 26px;
  font-weight: 800;
}

.demo-head p {
  margin-top: 8px;
  max-width: 760px;
  color: var(--on-dark-muted);
  font-size: 15.5px;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 22px;
  margin-top: 24px;
}

.demo-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.demo textarea {
  width: 100%;
  min-height: 230px;
  resize: vertical;
  padding: 14px 16px;
  background: var(--dark);
  color: var(--on-dark);
  border: 1px solid var(--dark-line);
  border-radius: 12px;
  font: 400 13.5px/1.7 var(--font-mono);
}

.demo textarea:focus {
  outline: none;
  border-color: var(--data-bright);
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.demo-out-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.demo-out-head .demo-label {
  margin-bottom: 0;
  align-self: center;
}

.demo-table-wrap {
  max-height: 300px;
  overflow: auto;
  border: 1px solid var(--dark-line);
  border-radius: 12px;
  background: var(--dark);
}

.demo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.demo-table th,
.demo-table td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--dark-line);
  vertical-align: top;
}

.demo-table th {
  position: sticky;
  top: 0;
  background: #0f2140;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.demo-table td {
  font-family: var(--font-mono);
  font-size: 12.5px;
  word-break: break-word;
}

.demo-table td:first-child {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.demo-table td:last-child {
  color: var(--data-bright);
}

.demo-table tr:last-child td {
  border-bottom: 0;
}

.demo-empty td {
  color: var(--on-dark-muted) !important;
  font-family: var(--font-body) !important;
  font-weight: 400 !important;
}

.demo-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--on-dark-muted);
}

.usecases {
  margin-top: 56px;
}

.usecases h3,
.doc-examples h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.chips li {
  padding: 9px 16px;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

.chips-light li {
  border-color: var(--line);
  background: var(--card);
}

.fineprint {
  margin-top: 22px;
  font-size: 14px;
  color: var(--on-dark-muted);
}

/* ===== Documente ===== */
.doc-examples {
  margin-top: 0;
}

/* ===== Proiecte ===== */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.project-type {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.t-web { background: var(--web-tint); color: var(--web); }
.t-data { background: var(--data-tint); color: var(--data); }
.t-asist { background: var(--asist-tint); color: var(--asist); }

.project h3 {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 700;
}

.project p {
  margin-top: 8px;
  color: var(--ink-2);
}

/* ===== De ce ===== */
.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 36px;
}

.reason .ico {
  width: 30px;
  height: 30px;
  color: var(--accent-2);
}

.reason h3 {
  margin-top: 16px;
  font-size: 21px;
  font-weight: 700;
}

.reason p {
  margin-top: 8px;
  color: var(--ink-2);
}

/* ===== Pași ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: none;
}

.step {
  position: relative;
  padding: 26px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.step-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  font: 800 19px/1 var(--font-display);
}

.step-done .step-num {
  background: var(--accent);
  border-color: var(--accent);
}

.step-done .step-num svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step h3 {
  margin-top: 18px;
  font-size: 22px;
  font-weight: 700;
}

.step p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15.5px;
}

/* ===== FAQ ===== */
.faq-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.faq-wrap .section-head {
  margin-bottom: 0;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 40px 24px 0;
  color: var(--ink-2);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-copy h2 {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: grid;
  gap: 16px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 600;
}

.contact-list .ico {
  width: 24px;
  height: 24px;
  color: var(--accent-bright);
}

.contact-list a {
  text-decoration: none;
  border-bottom: 1px solid var(--dark-line);
}

.contact-list a:hover {
  border-bottom-color: var(--on-dark);
}

.contact-form {
  padding: 32px;
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14.5px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--dark);
  color: var(--on-dark);
  border: 1px solid var(--dark-line);
  border-radius: 12px;
  font: 500 16px/1.4 var(--font-body);
}

.field textarea {
  resize: vertical;
}

.field ::placeholder {
  color: #8193ad;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
}

.field [aria-invalid="true"] {
  border-color: #ff8a6b;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--on-dark-muted);
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.consent a {
  color: var(--on-dark);
}

.form-error {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 138, 107, 0.12);
  color: #ffb39f;
  font-size: 14.5px;
  font-weight: 600;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.form-hint {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--on-dark-muted);
}

/* ===== Footer ===== */
.site-footer {
  padding: 64px 0 28px;
  background: #071225;
  color: var(--on-dark-muted);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
}

.brand-footer {
  color: var(--on-dark);
}

.brand-footer .brand-sub {
  color: var(--on-dark-muted);
}

.footer-brand p {
  margin-top: 14px;
  max-width: 320px;
}

.site-footer h3 {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.footer-nav,
.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-nav a,
.footer-legal a {
  text-decoration: none;
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--on-dark);
  text-decoration: underline;
}

.company {
  margin-top: 8px;
  font-size: 13.5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid #1a2d4d;
  font-size: 14px;
}

.footer-bottom a {
  text-decoration: none;
}

/* ===== Reveal on scroll ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-nav {
    gap: 20px;
  }

  .extra {
    grid-template-columns: 1fr;
  }

  .scrape-grid {
    grid-template-columns: 1fr 1fr;
  }

  .scrape-main {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .hero-visual {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }

  .pillars,
  .packages {
    grid-template-columns: 1fr;
    max-width: 640px;
  }

  .extra {
    max-width: 640px;
  }

  .combo {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
    height: 28px;
  }

  .demo-grid,
  .faq-wrap,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .faq-wrap {
    gap: 32px;
  }

  .faq-wrap .section-head {
    position: static;
  }

  .contact-grid {
    gap: 40px;
  }

  .reasons {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(11, 26, 46, 0.12);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .site-nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }

  .site-nav a:not(.btn):hover,
  .site-nav a.is-active {
    border-bottom-color: var(--line);
    color: var(--accent);
  }

  .site-nav .btn {
    margin-top: 18px;
    min-height: 50px;
  }

  .projects {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 64px;
  }

  body {
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .section-lead,
  .hero .lead {
    font-size: 17px;
  }

  .hero-stage {
    padding: 48px 0 56px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-visual {
    min-height: 0;
    display: grid;
    gap: 14px;
  }

  .win {
    position: relative;
    width: 100%;
  }

  .site-win,
  .table-win {
    width: 100%;
    inset: auto;
  }

  .page-mock {
    padding: 12px;
  }

  .pm-grid {
    gap: 8px;
  }

  .table-win th,
  .table-win td {
    padding: 9px 10px;
    font-size: 11.5px;
  }

  .scrape-grid {
    grid-template-columns: 1fr;
  }

  .extra,
  .combo,
  .package,
  .scrape-card {
    padding: 22px 20px;
  }

  .extra-head {
    align-items: flex-start;
  }

  .done-chip {
    display: none;
  }


  .marquee-track li {
    font-size: 16px;
  }

  .pillar,
  .contact-form,
  .demo {
    padding: 24px 20px;
  }

  .steps,
  .reasons {
    grid-template-columns: 1fr;
  }

  .reasons {
    gap: 30px;
  }


  .faq summary {
    font-size: 17px;
  }

  .faq details p {
    padding-right: 0;
  }

  .form-actions .btn {
    flex: 1 1 100%;
  }

  .contact-list li {
    font-size: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .scan {
    display: none;
  }

  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee-track {
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    padding: 18px 16px;
    row-gap: 8px;
  }

  /* Static list: dots only between items, none after the last one */
  .marquee-track li:last-child::after,
  .marquee-track li:has(+ li[aria-hidden="true"])::after {
    display: none;
  }

  .marquee-track li[aria-hidden="true"] {
    display: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== Project cards with thumbnails ===== */
.project-thumb {
  display: block;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--tint);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-thumb:hover img {
  transform: scale(1.04);
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 22px 24px;
}

.project-body h3 {
  margin-top: 14px;
  font-size: 21px;
}

.project-body p {
  font-size: 15.5px;
}

.project-link {
  margin-top: auto;
  padding-top: 16px;
  font-weight: 700;
  font-size: 15px;
  color: var(--web);
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.t-admin {
  background: var(--asist-tint);
  color: var(--asist);
}

.project-wide {
  grid-column: 1 / -1;
}

@media (min-width: 861px) and (max-width: 1080px) {
  .projects {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Pause / play control for the hero animation */
.hero-motion {
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--dark) 70%, transparent);
  color: var(--on-dark-muted);
  font: 600 13px/1 var(--font-body);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.hero-motion:hover {
  color: var(--on-dark);
  border-color: var(--on-dark-muted);
}

.hero-motion svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-motion[data-on="true"] .hm-play,
.hero-motion[data-on="false"] .hm-pause {
  display: none;
}

@media (max-width: 600px) {
  .hero-motion {
    right: 16px;
    bottom: 14px;
  }
}

/* Navy is the primary colour; on dark sections the call-to-action switches to the complementary orange */
.hero-stage .btn-accent,
.section-dark .btn-accent {
  background: var(--accent-2);
}

.hero-stage .btn-accent:hover,
.section-dark .btn-accent:hover {
  background: var(--accent-2-hover);
}

/* ===== Hero polish: text and buttons ===== */
.hero-stage .kicker {
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(147, 197, 253, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  letter-spacing: 0.1em;
  font-size: 12.5px;
}

.hero-stage .kicker-dot {
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18), 0 0 12px rgba(74, 222, 128, 0.7);
}

.hero-stage h1 {
  text-shadow: 0 2px 24px rgba(11, 26, 46, 0.6);
}

.hero-stage .hero-copy .lead {
  color: #c9d5e8;
  font-size: 19.5px;
  line-height: 1.65;
}

.hero-stage .btn {
  min-height: 54px;
  padding: 0 26px;
  font-size: 16.5px;
}

.hero-stage .btn-cta {
  background: linear-gradient(180deg, #1a8f4a 0%, #15803d 55%, #116a32 100%);
  box-shadow: 0 10px 28px -8px rgba(34, 197, 94, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-stage .btn-cta:hover {
  background: linear-gradient(180deg, #15803d 0%, #116a32 60%, #14532d 100%);
  box-shadow: 0 14px 32px -8px rgba(34, 197, 94, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.hero-stage .btn-ghost {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
}

.hero-stage .btn-ghost:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.hero-stage .trust-row {
  gap: 10px;
  color: #c9d5e8;
}

.hero-stage .trust-row li {
  padding: 6px 12px 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13.5px;
}

.hero-stage .trust-row .ico {
  width: 16px;
  height: 16px;
}

/* ===== Consultanță & integrări ===== */
.consult-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.consult-card {
  --c: var(--web);
  --c-tint: var(--web-tint);
  padding: 28px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.consult-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.consult-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--web-tint);
  color: var(--web);
}

.consult-icon .ico {
  width: 26px;
  height: 26px;
}

.consult-card h3 {
  font-size: 22px;
  font-weight: 800;
}

.consult-card > p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15.5px;
}

.consult-card .checks {
  margin: 16px 0 0;
  font-size: 15px;
}

#consultanta .combo {
  grid-template-columns: auto 1fr auto;
}

@media (max-width: 980px) {
  .consult-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #consultanta .combo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .consult-grid {
    grid-template-columns: 1fr;
  }

  .consult-card {
    padding: 22px 20px;
  }
}

/* ===== Probleme (pain points) ===== */
.section.pain {
  padding: 72px 0;
}

.pain-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

.pain h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
}

.pain-lead {
  margin-top: 16px;
  font-size: 19px;
  color: var(--ink-2);
}

.pain-list {
  display: grid;
  gap: 4px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 18px;
}

.pain-answer {
  margin: 20px 0 24px;
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 800;
}

.pain-cards {
  display: grid;
  gap: 16px;
}

.pain-card {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.pain-card h3 {
  font-size: 20px;
  font-weight: 800;
}

.pain-card p {
  margin-top: 8px;
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .section.pain {
    padding: 64px 0;
  }

  .pain-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ===== Footer legal links ===== */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-links a:hover {
  color: var(--on-dark);
  text-decoration: underline;
}

/* ===== Cookie notice ===== */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
  padding: 14px 16px 14px 20px;
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 14.5px;
}

.cookie-bar p {
  margin: 0;
}

.cookie-bar a {
  color: var(--accent-bright);
}

.cookie-bar .btn {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* ===== Language dropdown, outside the menu ===== */
.header-inner {
  gap: 20px;
}

.site-nav {
  margin-left: auto;
}

.lang-menu {
  position: relative;
  flex-shrink: 0;
}

.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px 7px 11px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.15s, border-color 0.15s;
}

.lang-menu summary::-webkit-details-marker {
  display: none;
}

.lang-menu summary:hover,
.lang-menu[open] summary {
  color: var(--ink);
  border-color: var(--accent);
}

.lang-menu summary .ico {
  width: 16px;
  height: 16px;
}

.lang-chevron {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}

.lang-menu[open] .lang-chevron {
  transform: rotate(180deg);
}

.lang-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lang-item {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}

a.lang-item:hover,
a.lang-item:focus-visible {
  color: var(--ink);
  background: var(--tint);
}

.lang-item.is-current {
  color: var(--accent);
}

.lang-item.is-current::after {
  content: " ✓";
}

@media (max-width: 860px) {
  .lang-menu {
    order: 1;
    margin-left: auto;
  }

  .menu-toggle {
    order: 2;
  }
}
