/* =========================================================
   RIPLEY — stiluri
   Fără framework. Tokenii de design sunt variabile CSS.
   ========================================================= */

/* ---------- 1. Tokeni ---------- */
:root {
  --canvas: #f7f7f5;
  --canvas-soft: #fbfbf9;
  --canvas-sunk: #efefeb;

  --ink-900: #0c1320;
  --ink-800: #141d2e;
  --ink-700: #1d283c;
  --ink-600: #2a374e;
  --ink-500: #475569;
  --ink-400: #64748b;
  --ink-300: #94a3b8;

  --brand-50: #effaf3;
  --brand-100: #d7f2e1;
  --brand-200: #aee5c6;
  --brand-300: #78d3a4;
  --brand-400: #41bc80;
  --brand-500: #1fa463;
  --brand-600: #158651;
  --brand-700: #136b43;
  --brand-800: #125438;

  --teal-400: #3ec5c1;
  --violet-400: #8e86f0;

  --red-500: #dc2626;
  --red-100: #fee2e2;

  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-display-lg: clamp(2.35rem, 1.5rem + 2.9vw, 3.5rem);
  --fs-display-md: clamp(2.1rem, 1.35rem + 2.5vw, 3.1rem);
  --fs-display-sm: clamp(1.85rem, 1.2rem + 2.1vw, 2.6rem);

  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-2xl: 2rem;
  --r-full: 999px;

  --shadow-card: 0 1px 2px rgba(12, 19, 32, 0.04), 0 12px 32px -12px rgba(12, 19, 32, 0.12);
  --shadow-lift: 0 2px 4px rgba(12, 19, 32, 0.04), 0 24px 48px -20px rgba(12, 19, 32, 0.2);

  --header-height: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset & bază ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.section--dark :focus-visible {
  outline-color: var(--brand-300);
}

::selection {
  background: var(--brand-200);
  color: var(--ink-900);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--ink-900);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-full);
  font-size: 0.9rem;
}

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section--tinted {
  background: var(--canvas-soft);
  border-top: 1px solid rgba(12, 19, 32, 0.07);
  border-bottom: 1px solid rgba(12, 19, 32, 0.07);
}

.section--dark {
  background: var(--ink-900);
  color: #fff;
  overflow: hidden;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon--sm {
  width: 1rem;
  height: 1rem;
}

.icon--xs {
  width: 0.85rem;
  height: 0.85rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-400);
}

.section--dark .eyebrow {
  color: rgba(120, 211, 164, 0.8);
}

.heading {
  max-width: 42rem;
}

.heading--center {
  margin-inline: auto;
  text-align: center;
}

.heading h2 {
  margin-top: 1rem;
  font-size: var(--fs-display-sm);
}

.heading .lead {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink-500);
}

.section--dark .heading .lead {
  color: rgba(255, 255, 255, 0.65);
}

.note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-300);
  text-align: center;
}

.section--dark .note {
  color: rgba(255, 255, 255, 0.3);
}

.grid-lines {
  background-image:
    linear-gradient(to right, rgba(12, 19, 32, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12, 19, 32, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
}

.grid-lines--dark {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
}

.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- 4. Butoane ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.1s;
  height: 2.75rem;
  padding: 0 1.25rem;
  font-size: 0.95rem;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.6;
  pointer-events: none;
}

.btn--lg {
  height: 3.25rem;
  padding: 0 1.75rem;
  font-size: 1rem;
}

.btn--sm {
  height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.875rem;
}

.btn--primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(19, 107, 67, 0.9);
}

.btn--primary:hover {
  background: var(--brand-700);
}

.btn--secondary {
  background: #fff;
  color: var(--ink-900);
  border-color: rgba(12, 19, 32, 0.12);
}

.btn--secondary:hover {
  border-color: rgba(12, 19, 32, 0.25);
  background: var(--canvas-soft);
}

.btn--ghost-dark {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn--ghost-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--quiet {
  background: transparent;
  color: var(--ink-600);
}

.btn--quiet:hover {
  color: var(--ink-900);
}

.btn--icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}

.btn--block {
  width: 100%;
}

/* ---------- 5. Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}

.header.is-scrolled {
  background: rgba(247, 247, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(12, 19, 32, 0.07);
}

.header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.logo__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--r-md);
  background: var(--ink-900);
  color: #fff;
  flex: none;
}

.logo__mark::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand-400);
}

/* Wordmark-ul folosește Inter, nu Sora: Y-ul din Sora are brațele prea
   deschise și joncțiunea joasă, ceea ce strică echilibrul cuvântului. */
.logo__text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.logo--dark .logo__mark {
  background: #fff;
  color: var(--ink-900);
}

.logo--dark .logo__text {
  color: #fff;
}

.nav {
  display: none;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  display: block;
  padding: 0.5rem 0.875rem;
  border-radius: var(--r-full);
  font-size: 0.92rem;
  color: var(--ink-500);
  transition: background-color 0.2s, color 0.2s;
}

.nav a:hover {
  background: rgba(12, 19, 32, 0.04);
  color: var(--ink-900);
}

.header__actions {
  display: none;
  align-items: center;
  gap: 0.625rem;
}

/* Drawer mobil */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(12, 19, 32, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: 86%;
  max-width: 24rem;
  padding: 1.5rem;
  background: var(--canvas-soft);
  box-shadow: var(--shadow-lift);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer__nav {
  margin-top: 2rem;
}

.drawer__nav a {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(12, 19, 32, 0.07);
}

.drawer__actions {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Indicator de progres */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  height: 2px;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(to right, var(--brand-500), var(--brand-400), var(--teal-400));
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-height) + 3rem) 0 5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__bg .grid-lines {
  position: absolute;
  inset: 0 0 auto 0;
  height: 38rem;
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(60% 50% at 50% 0%, black, transparent);
  mask-image: radial-gradient(60% 50% at 50% 0%, black, transparent);
}

.hero__glow-1 {
  left: -6rem;
  top: -6rem;
  width: 22rem;
  height: 22rem;
  background: rgba(120, 211, 164, 0.25);
  filter: blur(70px);
}

.hero__glow-2 {
  display: none;
  right: -8rem;
  top: 6rem;
  width: 26rem;
  height: 26rem;
  background: rgba(62, 197, 193, 0.15);
  filter: blur(80px);
}

.hero__grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid rgba(12, 19, 32, 0.08);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  color: var(--ink-600);
  box-shadow: 0 1px 2px rgba(12, 19, 32, 0.04);
}

.badge .icon {
  color: var(--brand-600);
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: var(--fs-display-lg);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.nowrap {
  white-space: nowrap;
}

/* Subliniere care urmărește liniile de text */
.marker {
  color: var(--brand-700);
  background-image: linear-gradient(to right, var(--brand-200), var(--brand-200));
  background-repeat: no-repeat;
  background-size: 100% 0.14em;
  background-position: 0 92%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__lead {
  margin-top: 1.75rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink-500);
}

.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero__proof {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.hero__proof li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-500);
}

.hero__proof .icon {
  color: var(--brand-500);
}

.hero__mockup {
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

.hero__mockup-glow {
  display: none;
  position: absolute;
  inset: -1.5rem;
  z-index: -1;
  border-radius: 2.5rem;
  background: linear-gradient(135deg, rgba(174, 229, 198, 0.45), rgba(62, 197, 193, 0.1), rgba(142, 134, 240, 0.15));
  filter: blur(32px);
}

.mockup-chips {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.mockup-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid rgba(12, 19, 32, 0.08);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-700);
}

.mockup-chips li::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--brand-500);
  flex: none;
}

/* ---------- 7. Fereastra de conversație ---------- */
.chat {
  border: 1px solid rgba(12, 19, 32, 0.1);
  border-radius: 1.75rem;
  background: #fff;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--ink-900);
  color: #fff;
}

.chat__avatar {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(31, 164, 99, 0.2);
  color: var(--brand-300);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  flex: none;
}

.chat__name {
  font-size: 0.875rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat__status {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.chat__status::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--brand-400);
}

.chat__tag {
  margin-left: auto;
  padding: 0.25rem 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.6);
}

.chat__thread {
  position: relative;
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: rgba(239, 239, 235, 0.7);
}

.chat__thread .grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
}

.chat__messages {
  position: relative;
  display: flex;
  flex-direction: column;
  /* Înălțimea completă e rezervată din JS; mesajele se așază de jos în sus,
     ca într-un fir real, în loc să întindă fereastra la fiecare replică. */
  justify-content: flex-end;
  gap: 0.5rem;
}

.msg {
  display: flex;
  animation: fade-up 0.32s var(--ease) both;
}

.msg--client { justify-content: flex-start; }
.msg--agent { justify-content: flex-end; }

.msg__bubble {
  max-width: 85%;
  padding: 0.625rem 0.875rem;
  border-radius: var(--r-xl);
  font-size: 0.9rem;
  line-height: 1.55;
  box-shadow: 0 1px 2px rgba(12, 19, 32, 0.05);
}

.msg--client .msg__bubble {
  border: 1px solid rgba(12, 19, 32, 0.06);
  border-bottom-left-radius: 0.375rem;
  background: #fff;
  color: var(--ink-800);
}

.msg--agent .msg__bubble {
  border-bottom-right-radius: 0.375rem;
  background: var(--brand-600);
  color: #fff;
}

.msg__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.msg--client .msg__meta { color: var(--ink-400); }
.msg--agent .msg__meta { color: rgba(255, 255, 255, 0.7); }

.typing {
  display: flex;
  justify-content: flex-end;
}

.typing__inner {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--r-xl);
  border-bottom-right-radius: 0.375rem;
  background: rgba(21, 134, 81, 0.9);
}

.typing__dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: #fff;
  animation: dot-bounce 1.2s ease-in-out infinite;
}

.typing__dot:nth-child(2) { animation-delay: 0.15s; }
.typing__dot:nth-child(3) { animation-delay: 0.3s; }

.chat__composer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(12, 19, 32, 0.06);
  background: #fff;
  color: var(--ink-300);
  font-size: 0.875rem;
}

.chat__placeholder {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat__send {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  flex: none;
}

/* ---------- 8. Bară de încredere ---------- */
.trustbar {
  padding: 3rem 0;
  background: var(--canvas-soft);
  border-top: 1px solid rgba(12, 19, 32, 0.07);
  border-bottom: 1px solid rgba(12, 19, 32, 0.07);
}

.trustbar__title {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink-700);
}

.marquee {
  position: relative;
  margin-top: 2.25rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee__group {
  display: flex;
  align-items: center;
}

.brand-chip {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0 1.5rem;
  opacity: 0.45;
  filter: grayscale(1);
}

.brand-chip span {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-700);
  white-space: nowrap;
}

/* ---------- 9. Problema ---------- */
.problem__grid {
  display: grid;
  gap: 3.5rem;
  position: relative;
}

.problem__row {
  display: grid;
  gap: 1rem;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.problem__row h3 {
  font-size: 1.125rem;
  font-weight: 500;
}

.problem__row p {
  margin-top: 0.5rem;
  max-width: 28rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
}

.problem__illustration {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.problem__disclaimer {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- 10. Cum funcționează ---------- */
.steps {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
}

.step-card {
  padding: 1.75rem;
  border: 1px solid rgba(12, 19, 32, 0.07);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.step-card__index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--brand-600);
}

.step-card h3 {
  margin-top: 1rem;
  font-size: 1.125rem;
}

.step-card p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink-500);
}

.flow {
  position: relative;
  margin-top: 2.5rem;
  padding: 1.75rem;
  border: 1px solid rgba(12, 19, 32, 0.07);
  border-radius: var(--r-2xl);
  background: var(--canvas-soft);
  overflow: hidden;
}

.flow > .grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, black, transparent);
  mask-image: radial-gradient(70% 70% at 50% 50%, black, transparent);
}

.flow__track {
  position: relative;
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.flow-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(12, 19, 32, 0.08);
  border-radius: var(--r-xl);
  background: #fff;
  color: var(--ink-700);
  box-shadow: 0 1px 2px rgba(12, 19, 32, 0.04);
}

.flow-node span:last-child {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.flow-node__icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--r-md);
  background: var(--canvas-sunk);
  color: var(--ink-600);
  flex: none;
}

.flow-node--accent {
  border-color: rgba(31, 164, 99, 0.3);
  background: var(--brand-50);
  color: var(--brand-800);
}

.flow-node--accent .flow-node__icon {
  background: var(--brand-600);
  color: #fff;
}

.flow-connector {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-connector::before {
  content: "";
  width: 1px;
  height: 1.5rem;
  background: linear-gradient(to bottom, rgba(12, 19, 32, 0.15), rgba(12, 19, 32, 0.05));
}

.flow-connector::after {
  content: "";
  position: absolute;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--brand-500);
  animation: flow-pulse 1.8s ease-in-out infinite;
  animation-delay: inherit;
}

.flow__outputs {
  display: grid;
  gap: 0.5rem;
}

/* ---------- 11. Funcționalități (bento) ---------- */
.bento {
  margin-top: 3.5rem;
  display: grid;
  gap: 1rem;
}

.feature {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid rgba(12, 19, 32, 0.07);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-lift);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-lg);
  background: var(--canvas-sunk);
  color: var(--ink-700);
  transition: background-color 0.3s, color 0.3s;
}

.feature:hover .feature__icon {
  background: var(--brand-600);
  color: #fff;
}

.feature h3 {
  margin-top: 1.25rem;
  font-size: 1.15rem;
}

.feature p {
  margin-top: 0.625rem;
  font-size: 0.95rem;
  color: var(--ink-500);
}

.feature__samples {
  margin-top: auto;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature__samples span {
  padding: 0.375rem 0.75rem;
  border-radius: var(--r-full);
  background: var(--canvas-sunk);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-500);
  transition: background-color 0.3s, color 0.3s;
}

.feature:hover .feature__samples span {
  background: var(--brand-50);
  color: var(--brand-700);
}

/* ---------- 12. Demo conversațional ---------- */
.demo__grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 2rem;
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tab {
  position: relative;
  width: 100%;
  padding: 0.875rem 1rem;
  text-align: left;
  border: 1px solid transparent;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.tab:hover {
  background: #fff;
  border-color: rgba(12, 19, 32, 0.08);
}

.tab[aria-selected="true"] {
  background: #fff;
  border-color: rgba(31, 164, 99, 0.3);
  box-shadow: var(--shadow-card);
}

.tab__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink-600);
}

.tab[aria-selected="true"] .tab__label {
  color: var(--ink-900);
}

.tab__summary {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-400);
}

.tab__arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--brand-600);
  opacity: 0;
}

.tab[aria-selected="true"] .tab__arrow {
  opacity: 1;
}

.demo__panel {
  position: relative;
}

.demo__panel > .chat {
  animation: fade-up 0.3s var(--ease) both;
}

/* ---------- 13. Industrii & integrări ---------- */
.card-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1rem;
}

.industry {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid rgba(12, 19, 32, 0.07);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}

.industry:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.industry__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-md);
  background: var(--canvas-sunk);
  color: var(--ink-700);
  transition: background-color 0.3s, color 0.3s;
}

.industry:hover .industry__icon {
  background: var(--ink-900);
  color: #fff;
}

.industry h3 {
  margin-top: 1.25rem;
  font-size: 1rem;
}

.industry p {
  margin-top: 0.625rem;
  font-size: 0.9rem;
  color: var(--ink-500);
}

.integration {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  height: 100%;
  padding: 1.25rem;
  border: 1px solid rgba(12, 19, 32, 0.07);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}

.integration:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.integration--featured {
  border-color: rgba(31, 164, 99, 0.25);
  background: rgba(239, 250, 243, 0.7);
}

.integration__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-md);
  background: var(--canvas-sunk);
  color: var(--ink-700);
  flex: none;
}

.integration--featured .integration__icon {
  background: var(--brand-600);
  color: #fff;
}

.integration h3 {
  font-size: 0.98rem;
}

.integration p {
  margin-top: 0.375rem;
  font-size: 0.87rem;
  color: var(--ink-500);
}

.callout {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem;
  border: 1px solid rgba(12, 19, 32, 0.07);
  border-radius: var(--r-2xl);
  background: var(--canvas-soft);
}

.callout h3 {
  font-size: 1.125rem;
}

.callout p {
  margin-top: 0.5rem;
  max-width: 36rem;
  font-size: 0.95rem;
  color: var(--ink-500);
}

/* ---------- 14. Control uman + dashboard ---------- */
.handoff-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 0.75rem;
  max-width: 64rem;
  margin-inline: auto;
}

.handoff-card {
  height: 100%;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.035);
}

.handoff-card__icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(31, 164, 99, 0.15);
  color: var(--brand-300);
}

.handoff-card h3 {
  margin-top: 1rem;
  font-size: 1rem;
}

.handoff-card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.dashboard {
  margin-top: 3.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-2xl);
  background: rgba(20, 29, 46, 0.7);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.dashboard__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard__dots {
  display: flex;
  gap: 0.375rem;
}

.dashboard__dots i {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.dashboard__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.4);
}

.dashboard__cols {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.dashboard__col {
  padding: 1rem;
  background: rgba(12, 19, 32, 0.7);
}

.dashboard__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
}

.conv-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.conv {
  padding: 0.625rem 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
}

.conv--active {
  border-color: rgba(65, 188, 128, 0.3);
  background: rgba(31, 164, 99, 0.1);
}

.conv__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.conv__name {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.conv__time {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.35);
}

.conv__preview {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
  padding: 0.125rem 0.5rem;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pill--ai { background: rgba(31, 164, 99, 0.15); color: var(--brand-300); }
.pill--operator { background: rgba(142, 134, 240, 0.15); color: var(--violet-400); }
.pill--done { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.4); }

.dash-thread {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dash-msg {
  max-width: 85%;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-xl);
  font-size: 0.8rem;
  line-height: 1.5;
}

.dash-msg--client {
  align-self: flex-start;
  border-bottom-left-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
}

.dash-msg--agent {
  align-self: flex-end;
  border-bottom-right-radius: 0.375rem;
  background: rgba(21, 134, 81, 0.85);
  color: #fff;
}

.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-head__user {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.dash-head__avatar {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
}

.dash-head__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.dash-head__status {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-300);
}

.dash-takeover {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--r-full);
  background: var(--brand-600);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
}

.dash-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.35);
}

.dash-dl {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.8rem;
}

.dash-dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.dash-dl dt { color: rgba(255, 255, 255, 0.4); }
.dash-dl dd { margin: 0; text-align: right; color: rgba(255, 255, 255, 0.8); }

.dash-summary {
  margin-top: 0.625rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- 15. Implementare ---------- */
.impl {
  margin-top: 3.5rem;
  display: grid;
  gap: 1px;
  border: 1px solid rgba(12, 19, 32, 0.07);
  border-radius: var(--r-2xl);
  background: rgba(12, 19, 32, 0.07);
  overflow: hidden;
}

.impl li {
  padding: 1.75rem;
  background: #fff;
}

.impl__index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--brand-600);
}

.impl h3 {
  margin-top: 1rem;
  font-size: 1.05rem;
}

.impl p {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--ink-500);
}

.assurance {
  margin-top: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid rgba(31, 164, 99, 0.2);
  border-radius: var(--r-xl);
  background: rgba(239, 250, 243, 0.6);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-700);
}

.assurance .icon {
  color: var(--brand-600);
  margin-top: 0.15rem;
}

/* ---------- 16. Securitate ---------- */
.security-grid {
  display: grid;
  gap: 3rem;
}

.security-list li {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(12, 19, 32, 0.09);
}

.security-list h3 {
  font-size: 0.98rem;
}

.security-list p {
  margin-top: 0.375rem;
  font-size: 0.9rem;
  color: var(--ink-500);
}

.security-note {
  margin-top: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid rgba(12, 19, 32, 0.07);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-600);
}

.security-note .icon {
  color: var(--ink-400);
  margin-top: 0.15rem;
}

/* ---------- 17. Testimoniale ---------- */
.testimonial {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  border: 1px solid rgba(12, 19, 32, 0.07);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.testimonial .icon {
  color: var(--brand-400);
}

.testimonial blockquote {
  flex: 1;
  margin: 1.25rem 0 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-700);
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(12, 19, 32, 0.06);
}

.avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-100), rgba(62, 197, 193, 0.25));
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-800);
  flex: none;
}

.testimonial__name {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
}

.testimonial__role {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-400);
}

/* ---------- 18. Prețuri ---------- */
.plans {
  margin-top: 3.5rem;
  display: grid;
  gap: 1rem;
}

.plan {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  border: 1px solid rgba(12, 19, 32, 0.07);
  border-radius: var(--r-2xl);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.plan--featured {
  background: var(--ink-900);
  color: #fff;
  border-color: rgba(12, 19, 32, 0.1);
  box-shadow: var(--shadow-lift);
}

.plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.plan h3 {
  font-size: 1.25rem;
}

.plan__tag {
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-full);
  background: rgba(31, 164, 99, 0.2);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand-300);
}

.plan__audience {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--ink-500);
}

.plan--featured .plan__audience {
  color: rgba(255, 255, 255, 0.6);
}

.plan__price {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(12, 19, 32, 0.07);
}

.plan--featured .plan__price {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.plan__price strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.plan__price span {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.85rem;
  color: var(--ink-400);
}

.plan--featured .plan__price span {
  color: rgba(255, 255, 255, 0.5);
}

.plan__features {
  flex: 1;
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-600);
}

.plan--featured .plan__features li {
  color: rgba(255, 255, 255, 0.75);
}

.plan__features .icon {
  margin-top: 0.2rem;
  color: var(--brand-600);
}

.plan--featured .plan__features .icon {
  color: var(--brand-300);
}

.plan .btn {
  margin-top: 2rem;
}

/* ---------- 19. Întrebări frecvente ---------- */
.faq-grid {
  display: grid;
  gap: 3rem;
}

.faq li {
  border-bottom: 1px solid rgba(12, 19, 32, 0.09);
}

.faq li:first-child {
  border-top: 1px solid rgba(12, 19, 32, 0.09);
}

.faq__button {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.faq__button:hover {
  color: var(--brand-700);
}

.faq__question {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}

.faq__toggle {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0.15rem;
  border: 1px solid rgba(12, 19, 32, 0.1);
  border-radius: 50%;
  color: var(--ink-500);
  transition: transform 0.3s, background-color 0.3s, border-color 0.3s, color 0.3s;
  flex: none;
}

.faq__button[aria-expanded="true"] .faq__toggle {
  transform: rotate(45deg);
  border-color: rgba(31, 164, 99, 0.3);
  background: var(--brand-50);
  color: var(--brand-700);
}

/* Animație de înălțime fără JavaScript pentru dimensiuni */
.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
}

.faq__panel[data-open="true"] {
  grid-template-rows: 1fr;
}

.faq__panel > div {
  overflow: hidden;
}

.faq__panel p {
  max-width: 40rem;
  padding: 0 2.5rem 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-500);
}

/* ---------- 20. CTA final ---------- */
.cta {
  position: relative;
  text-align: center;
}

.cta__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta__bg .grid-lines--dark {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, black, transparent);
  mask-image: radial-gradient(60% 60% at 50% 50%, black, transparent);
}

.cta__glow {
  left: 50%;
  top: 50%;
  width: 34rem;
  height: 24rem;
  transform: translate(-50%, -50%);
  background: rgba(21, 134, 81, 0.2);
  filter: blur(90px);
}

.cta__bubble {
  display: none;
  position: absolute;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.35);
  animation: float-soft 6s ease-in-out infinite;
}

.cta h2 {
  font-size: var(--fs-display-md);
  max-width: 48rem;
  margin-inline: auto;
}

.cta__lead {
  max-width: 34rem;
  margin: 1.5rem auto 0;
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.cta__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

/* ---------- 21. Formular ---------- */
.contact-grid {
  display: grid;
  gap: 3rem;
}

.contact-points {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink-500);
}

.contact-points li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.contact-points .icon {
  color: var(--brand-500);
}

.form-card {
  padding: 1.5rem;
  border: 1px solid rgba(12, 19, 32, 0.07);
  border-radius: var(--r-2xl);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.form {
  display: grid;
  gap: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-700);
}

.field label .optional {
  font-weight: 400;
  color: var(--ink-300);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(12, 19, 32, 0.1);
  border-radius: var(--r-xl);
  background: #fff;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-300);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-500);
}

.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea {
  border-color: #f87171;
}

.field__error {
  margin-top: 0.375rem;
  font-size: 0.8rem;
  color: var(--red-500);
  display: none;
}

.field[data-invalid="true"] .field__error {
  display: block;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-600);
}

.checkbox input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--brand-600);
  flex: none;
}

.form__status {
  margin-top: 1rem;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 1rem;
  border-radius: var(--r-xl);
  font-size: 0.9rem;
  line-height: 1.65;
}

.alert--success {
  border: 1px solid rgba(31, 164, 99, 0.25);
  background: var(--brand-50);
  color: var(--brand-800);
}

.alert--error {
  border: 1px solid #fca5a5;
  background: var(--red-100);
  color: #b91c1c;
}

.alert--muted {
  border: 1px solid rgba(12, 19, 32, 0.08);
  background: var(--canvas-soft);
  color: var(--ink-600);
}

.form__disclaimer {
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink-400);
}

.spinner {
  animation: spin 0.8s linear infinite;
}

/* ---------- 22. Footer ---------- */
.footer {
  padding: 4rem 0 2.5rem;
  background: var(--ink-900);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__grid {
  display: grid;
  gap: 3rem;
}

.footer__about p {
  margin-top: 1.25rem;
  max-width: 20rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

.footer__email {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__email:hover { color: #fff; }

.footer h2 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.35);
}

.footer nav ul {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer nav a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer nav a:hover { color: #fff; }

.footer__bottom {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer__bottom p:last-child { color: rgba(255, 255, 255, 0.35); }

/* ---------- 23. Banner cookies ---------- */
.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.25rem;
  border: 1px solid rgba(12, 19, 32, 0.08);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lift);
  animation: fade-up 0.4s var(--ease) both;
}

.cookie[hidden] { display: none; }

.cookie__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cookie__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-md);
  background: var(--canvas-sunk);
  color: var(--ink-700);
  flex: none;
}

.cookie p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-700);
}

.cookie a {
  font-weight: 500;
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cookie fieldset {
  margin-top: 1rem;
  padding: 1rem 0 0;
  border: 0;
  border-top: 1px solid rgba(12, 19, 32, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cookie fieldset label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-500);
}

.cookie fieldset strong {
  color: var(--ink-800);
  font-weight: 500;
}

.cookie fieldset input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--brand-600);
  flex: none;
}

.cookie__actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- 24. Pagini legale ---------- */
.legal {
  max-width: 46rem;
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 6rem;
}

.legal__back {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-400);
  transition: color 0.2s;
}

.legal__back:hover { color: var(--ink-700); }

.legal h1 {
  margin-top: 1.5rem;
  font-size: var(--fs-display-sm);
}

.legal__updated {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-300);
}

.legal__body {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  line-height: 1.75;
  color: var(--ink-600);
}

.legal__body h2 {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--ink-900);
}

.legal__body ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1.25rem;
}

.legal__body li {
  list-style: disc;
}

.legal__footnote {
  margin-top: 3rem;
  padding: 1.25rem;
  border: 1px solid rgba(12, 19, 32, 0.07);
  border-radius: var(--r-xl);
  background: var(--canvas-soft);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-500);
}

.auth {
  max-width: 28rem;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 6rem;
}

.auth h1 {
  margin-top: 1.5rem;
  font-size: var(--fs-display-sm);
}

.auth > p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-500);
}

.auth form {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ---------- 25. Animații ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

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

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-3px); opacity: 1; }
}

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

@keyframes flow-pulse {
  0% { opacity: 0; transform: translateY(-10px); }
  35%, 65% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

/* Varianta orizontală: pe ecrane late traseul devine rând, iar punctul
   trebuie să circule de la stânga la dreapta, nu de sus în jos. */
@keyframes flow-pulse-x {
  0% { opacity: 0; transform: translateX(-1.25rem); }
  35%, 65% { opacity: 1; }
  100% { opacity: 0; transform: translateX(1.25rem); }
}

@keyframes float-soft {
  0%, 100% { opacity: 0.15; transform: translateY(0); }
  50% { opacity: 0.45; transform: translateY(-10px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- 26. Responsive ---------- */
@media (min-width: 480px) {
  .hero__actions,
  .cta__actions {
    flex-direction: row;
  }
}

@media (min-width: 640px) {
  .container { padding: 0 2rem; }
  .section { padding: 7rem 0; }
  .hero { padding: calc(var(--header-height) + 4rem) 0 6rem; }
  .hero__glow-2 { display: block; }
  .hero__mockup-glow { display: block; }
  .cta__bubble { display: grid; }
  .form { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
  .bento,
  .card-grid,
  .plans { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .impl { grid-template-columns: repeat(2, 1fr); }
  .handoff-grid { grid-template-columns: repeat(2, 1fr); }
  .security-list { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; }
  .problem__row { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; gap: 2rem; }
  .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
  .cookie { padding: 1.5rem; }
  .cookie__inner { flex-direction: row; align-items: flex-start; }
  .form-card { padding: 2rem; }
  .flow { padding: 2.5rem; }
  .callout { flex-direction: row; align-items: center; justify-content: space-between; }
  .flow__outputs { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .nav { display: block; }
  .header__actions { display: flex; }
  .header__toggle { display: none; }
  .hero__grid { grid-template-columns: 1.05fr 0.85fr; gap: 4rem; }
  .hero__mockup { margin: 0; }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento .feature--wide { grid-column: span 2; }
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .impl { grid-template-columns: repeat(4, 1fr); }
  .handoff-grid { grid-template-columns: repeat(3, 1fr); }
  .problem__grid { grid-template-columns: 0.85fr 1fr; gap: 5rem; }
  .demo__grid { grid-template-columns: 0.62fr 1fr; gap: 3rem; }
  .faq-grid { grid-template-columns: 0.7fr 1fr; gap: 4rem; }
  .contact-grid { grid-template-columns: 0.72fr 1fr; gap: 4rem; }
  .security-grid { grid-template-columns: 0.8fr 1fr; gap: 4rem; }
  .footer__grid { grid-template-columns: 1.1fr repeat(3, 0.65fr); }
  .dashboard__cols { grid-template-columns: 0.85fr 1.3fr 0.95fr; }
  .flow__track { flex-direction: row; align-items: center; gap: 0.75rem; }
  .flow-connector { flex: 1; }
  .flow-connector::before { width: 100%; height: 1px; background: linear-gradient(to right, rgba(12, 19, 32, 0.15), rgba(12, 19, 32, 0.05)); }
  .flow-connector::after { animation-name: flow-pulse-x; }
  .flow__outputs { grid-template-columns: 1fr; }
}

/* ---------- 27. Mișcare redusă ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

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