/* ==========================================================================
   11x — One-page site. "Sandbox"-inspired modern light theme.
   Clean, airy, soft shadows, rounded corners, indigo-violet accent.
   Mobile-first. WCAG 2.2 AA focused.
   ========================================================================== */

/* ----- Design tokens (Mizzle Tailwind, 1:1) ----- */
:root {
  /* Surfaces — Mizzle body-bg #fff + neutral default scale */
  --bg: #ffffff;             /* --color-body-bg */
  --bg-soft: #f5f5f5;        /* --color-default-100 (neutral-100) */
  --bg-tint: #fafafa;        /* --color-default-50 */
  --surface: #ffffff;
  --border: #e5e5e5;         /* --color-default-200 */
  --border-strong: #d4d4d4;  /* --color-default-300 */

  /* Text — Mizzle neutral scale */
  --text: #171717;           /* --color-default-900 */
  --text-muted: #525252;     /* --color-default-600 */
  --text-dim: #737373;       /* --color-default-500 */
  --on-dark: #ffffff;

  /* Accent — Mizzle primary green */
  --accent: #09b850;         /* --color-primary */
  --accent-strong: #089c44;  /* --color-primary-hover */
  --accent-ink: #089c44;
  --accent-soft: #09b8501a;  /* primary/10 — icon tiles / chips */
  --accent-2: #0cbc87;       /* --color-success */

  --ink-900: #202124;        /* --color-dark */
  --ink-hover: #2c2e33;      /* --color-dark-hover */
  --chip-bg: #f5f5f5;        /* default-100 — neutral badge chip */

  --warning: #f7c32e;        /* --color-warning (stars) */
  --focus: #089c44;

  /* Mizzle uses modest radii (rounded-sm/md/lg), not pill-heavy */
  --radius: 10px;            /* rounded-md on cards */
  --radius-sm: 6px;          /* rounded on buttons/inputs */
  --radius-lg: 16px;
  --radius-pill: 999px;
  --maxw: 1296px;            /* Mizzle container */
  --maxw-narrow: 820px;

  --space-section: clamp(3.5rem, 8vw, 7rem);
  --font-head: "Instrument Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 30px 60px -28px rgba(0, 0, 0, 0.22);
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;      /* 16px */
  line-height: 1.5;     /* 24px */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }

/* ----- Accessibility helpers ----- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--accent); color: var(--on-dark);
  padding: 0.65rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; z-index: 100; transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

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

/* ----- Layout ----- */
.container {
  width: 100%; max-width: var(--maxw);
  margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem);
}
.container--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: var(--space-section); }
.section--soft, .section--alt { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }

.section__head { max-width: 48rem; margin-inline: auto; text-align: center; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section__head--left { margin-inline: 0; text-align: left; }
.section__title { font-size: clamp(1.8rem, 5vw, 2.9rem); margin: 0 0 1rem; }
.section__lead { font-size: 1rem; line-height: 1.5; color: var(--text-muted); max-width: 44rem; margin-inline: auto; }
.section__head--left .section__lead { margin-inline: 0; }
.section__sub { color: var(--text-dim); margin: 0; }

/* Eyebrow chip — Mizzle neutral square badge (bg-default-100, rounded-md) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 500;
  color: var(--text); background: var(--chip-bg);
  padding: 0.5rem 1rem; border-radius: var(--radius-sm); margin: 0 0 1.1rem;
  letter-spacing: 0;
}
.eyebrow i { color: var(--accent); font-size: 0.95em; }
.eyebrow--light { background: rgba(255,255,255,0.12); color: #fff; }
.eyebrow--light i { color: #fff; }
/* On gray-background sections the default gray chip blends in — switch it to a
   white chip with a border so it keeps contrast (no more gray-on-gray). */
.section--alt .eyebrow,
.section--soft .eyebrow,
.cta .eyebrow { background: var(--surface); border: 1px solid var(--border); }
.accent { color: var(--accent); }
/* Sales emphasis: green + bold key phrases inside body copy */
.hl { color: var(--accent-strong); font-weight: 700; }
.section__lead strong, .hero__subtitle strong, .feature__note strong, p strong { color: var(--text); font-weight: 700; }
.section__lead .hl, .hero__subtitle .hl, p .hl { color: var(--accent-strong); font-weight: 700; }

/* ----- Buttons (Mizzle: rounded-md, solid fills) ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  min-height: 46px; line-height: 1.4;
}
.btn--primary { background: var(--accent); color: var(--on-dark); }
.btn--primary:hover { background: var(--accent-strong); color: var(--on-dark); }
.btn--dark { background: var(--ink-900); color: #fff; }
.btn--dark:hover { background: var(--ink-hover); color: #fff; }
.btn--ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--block { width: 100%; }

/* ----- Header / nav ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header[data-scrolled] { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.75rem; gap: 1rem; }

.logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-head); font-weight: 800; font-size: 1.5rem;
  color: var(--text); text-decoration: none; letter-spacing: -0.03em; flex: none;
}
.logo__mark {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem;
  border-radius: var(--radius-sm); background: var(--accent); color: #fff;
  font-size: 0.9rem; font-weight: 800; letter-spacing: -0.04em;
}
.logo__word { color: var(--text); }
.logo__x { color: var(--accent); }       /* legacy footer logo support */
.logo--sm { font-size: 1.25rem; gap: 0.4rem; }
.logo--sm .logo__mark { width: 2rem; height: 2rem; font-size: 0.8rem; }
.site-footer .logo__word { color: #fff; }
.live-dot { display: none; }

/* Header action buttons (desktop right side) */
.header__actions { display: none; align-items: center; gap: 0.6rem; flex: none; }
.btn--pill { padding: 0.6rem 1.3rem; min-height: 44px; border-radius: var(--radius-sm); }
.btn--pill-ghost {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.6rem 1.1rem; border-radius: var(--radius-sm); min-height: 44px;
  background: var(--chip-bg); color: var(--text); border: 1px solid var(--border);
  text-decoration: none; transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn--pill-ghost:hover { background: #ececec; border-color: var(--border-strong); color: var(--text); }
.btn--pill-ghost i { color: var(--accent); }
.btn__ico { font-size: 1rem; }
.nav__actions-mobile { display: grid; gap: 0.6rem; margin-top: 0.6rem; padding-top: 0.9rem; border-top: 1px solid var(--border); }

.nav__toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid var(--border-strong); color: var(--text);
  padding: 0.5rem 0.85rem; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; cursor: pointer; min-height: 44px;
}
.nav__toggle span:not(.nav__toggle-box):not(.nav__toggle-bar) { }
.nav-toggle, .nav__toggle-label { }
.nav__toggle-box { display: inline-grid; gap: 4px; width: 20px; }
.nav__toggle-bar { height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* The HTML uses .nav-toggle (hamburger) + .nav-links in some spots; support both. */
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: #fff; border: 1px solid var(--border-strong);
  padding: 0.6rem; border-radius: var(--radius-sm); cursor: pointer; min-height: 44px; min-width: 44px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

.nav { margin-left: auto; }  /* mobile: push toggle to the right */
.nav__menu, .nav-links {
  list-style: none; margin: 0;
  padding: 0.75rem clamp(1.1rem, 4vw, 2rem) 1.25rem;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--border);
  display: grid; gap: 0.25rem; box-shadow: var(--shadow);
}
.nav__menu[hidden], .nav-links[hidden] { display: none; }
.nav__link, .nav-links a {
  display: block; color: var(--text-muted); text-decoration: none;
  font-family: var(--font-head); font-weight: 600;
  padding: 0.7rem 0.6rem; border-radius: var(--radius-sm); min-height: 44px;
}
.nav__link:hover, .nav-links a:hover { color: var(--text); background: var(--bg-soft); }
.nav__link[aria-current="page"] { color: var(--accent); }
.nav__link--cta, .nav-cta { color: var(--accent); }

/* ----- Hero ----- */
.hero {
  position: relative; padding-block: clamp(3rem, 9vw, 6.5rem);
  background:
    radial-gradient(50% 55% at 88% -8%, var(--accent-soft), transparent 60%),
    radial-gradient(42% 50% at -8% 108%, rgba(9,184,80,0.06), transparent 60%);
  overflow: hidden;
}
/* Hero now spans full section width, two columns on desktop */
.hero__inner { display: grid; gap: 2.5rem; align-items: center; }
.hero__text { max-width: 42rem; }
.hero-grid { display: grid; gap: 2rem; }
.hero-tag { /* maps to eyebrow styling */
  display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-head);
  font-size: 0.82rem; font-weight: 600;
  color: var(--text); background: var(--chip-bg); border: 1px solid var(--border);
  padding: 0.4rem 0.9rem; border-radius: var(--radius-pill); margin: 0 0 1.2rem;
}
.hero h1, .hero__title { font-size: clamp(2.2rem, 7.5vw, 4.25rem); margin: 0 0 1.2rem; letter-spacing: -0.035em; line-height: 1.05; }
.hero-subtitle, .hero__subtitle { font-size: clamp(1.08rem, 2.6vw, 1.35rem); color: var(--text-muted); margin-bottom: 2rem; }
.hero__actions, .hero-cta, .hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Hero right-side media (holds the build animation) */
.hero__media { width: 100%; }

/* ----- Credibility strip ----- */
.cred { background: var(--ink-900); color: var(--on-dark); padding-block: 2.25rem; }
.cred__inner { display: grid; gap: 1rem; }
.cred__stat strong { font-family: var(--font-head); font-size: 2.1rem; color: #fff; line-height: 1; }
.cred__stat span { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.cred__note { margin: 0; color: rgba(255,255,255,0.85); font-weight: 500; }

/* Mobile: credibility stats become a snap slider with dots */
.cred__stats {
  list-style: none; margin: 0;
  display: flex; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -ms-overflow-style: none; scrollbar-width: none;
}
.cred__stats::-webkit-scrollbar { display: none; }
.cred__stat {
  flex: 0 0 100%; scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 1.5rem 1rem; gap: 0.25rem;
}
.cred__dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.25rem; }
.cred__dot {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: #fff; transition: background 0.2s ease, width 0.2s ease;
}
.cred__dot[aria-current="true"] { background: var(--accent); width: 20px; border-radius: 999px; }

/* ===== Generic mobile slider + dots (reused across sections) ===== */
.slider-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--border-strong); transition: background 0.2s ease, width 0.2s ease;
}
.slider-dot[aria-current="true"] { background: var(--accent); width: 20px; border-radius: 999px; }

/* On mobile, any [data-slider] track scrolls horizontally with snap */
@media (max-width: 47.99rem) {
  [data-slider] {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none; scrollbar-width: none;
    margin: 0 calc(-1 * clamp(1.1rem, 4vw, 2rem));
    padding: 0.25rem clamp(1.1rem, 4vw, 2rem);
  }
  [data-slider]::-webkit-scrollbar { display: none; }
  [data-slider] > * {
    flex: 0 0 85%;
    scroll-snap-align: center;
    margin-bottom: 0 !important;
  }
}
/* Dots only show on mobile */
.slider-dots { display: none; }
@media (max-width: 47.99rem) { .slider-dots { display: flex; } }

/* ----- Cards ----- */
.cards { list-style: none; display: grid; gap: 1.25rem; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem;
  border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent);
  font-size: 1.25rem; margin-bottom: 1.1rem;
}
.card__title { font-size: 1.2rem; margin: 0 0 0.5rem; }
.card p { margin: 0; color: var(--text-muted); }

/* ----- Section wrappers used by the HTML ----- */
.solutia__inner { max-width: 48rem; margin-inline: auto; text-align: center; }

/* ----- Steps ----- */
.steps { list-style: none; display: grid; gap: 1.25rem; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem 1.75rem; box-shadow: var(--shadow-sm);
}
.step__num {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 50%; background: var(--accent);
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; margin-bottom: 1.1rem;
}
.step__title { font-size: 1.25rem; margin: 0 0 0.4rem; }
.step p { margin: 0; color: var(--text-muted); }

/* ----- Feature (non-tehnic) ----- */
.feature__inner { display: grid; gap: 2rem; align-items: center; }
.checklist { list-style: none; display: grid; gap: 0.8rem; margin: 1.4rem 0 0; }
.checklist li { position: relative; padding-left: 2rem; color: var(--text-muted); }
.checklist li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.3em;
  width: 1.15rem; height: 0.6rem; border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent); transform: rotate(-45deg);
}
.feature__quote {
  margin: 0; padding: 1.75rem; border-radius: var(--radius);
  background: var(--ink-900); color: #fff;
  font-size: 1.18rem; box-shadow: var(--shadow-lg);
}
.feature__quote em { color: var(--accent-2); font-style: normal; font-weight: 700; }
.feature__note { margin: 1.25rem 0 0; font-size: 0.95rem; color: var(--text-dim); border-left: 3px solid var(--border-strong); padding-left: 1rem; }

/* ----- Plans ----- */
.plans { list-style: none; display: grid; gap: 1.5rem; }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--featured {
  position: relative;
  border-color: transparent; color: #fff;
  background: var(--ink-900);
  box-shadow: var(--shadow-lg);
}
.plan--featured .plan__amount { color: #fff; }
.plan--featured .plan__name { color: rgba(255,255,255,0.72); }
.plan--featured .plan__tier { color: #fff; opacity: 0.65; }
.plan--featured .plan__desc, .plan--featured .plan__list li { color: rgba(255,255,255,0.82); }
.plan--featured .plan__unit { color: rgba(255,255,255,0.6); }
.plan--featured .plan__meta { color: rgba(255,255,255,0.7); }
.plan--featured .plan__meta strong { color: var(--accent-2); }
.plan--featured .plan__list li::before { color: var(--accent-2); }
.plan__badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  background: var(--accent); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 0.76rem;
  padding: 0.35rem 0.9rem; border-radius: var(--radius-pill); margin: 0;
  box-shadow: var(--shadow-sm); white-space: nowrap; z-index: 1;
}
/* Tier label: small, uppercase, slightly faded, sits above the name */
.plan__tier {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); opacity: 0.6; margin: 0 0 0.35rem;
}
.plan__name { font-size: 1.3rem; margin: 0 0 0.75rem; color: var(--text-muted); font-weight: 700; }
.plan__hours { font-size: 0.95rem; font-weight: 600; color: var(--text-dim); white-space: nowrap; }
.plan--featured .plan__hours { color: rgba(255,255,255,0.6); }
/* Big, easy-to-read price */
.plan__price { margin: 0 0 0.35rem; display: flex; align-items: baseline; gap: 0.3rem; flex-wrap: wrap; }
.plan__amount { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 2.75rem); font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -0.02em; }
.plan__unit { color: var(--text-dim); font-size: 1rem; font-weight: 600; }
/* Participants + per-participant line */
.plan__meta { margin: 0 0 1.1rem; font-size: 0.88rem; color: var(--text-dim); }
.plan__meta strong { color: var(--accent-strong); font-weight: 700; }
.plan__desc { color: var(--text-muted); }
.plan__list { list-style: none; margin: 0 0 1.75rem; display: grid; gap: 0.55rem; }
.plan__list li { position: relative; padding-left: 1.5rem; color: var(--text-muted); font-size: 0.88rem; line-height: 1.45; }
.plan__list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
/* Intro/separator line ("Tot ce include X, plus:") — no checkmark, label style */
.plan__list-intro { padding-left: 0 !important; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem !important; color: var(--text-dim) !important; margin-bottom: 0.15rem; }
.plan__list-intro::before { content: none !important; }
.plan--featured .plan__list-intro { color: rgba(255,255,255,0.65) !important; }
.plan .btn { margin-top: auto; }
.plan--featured .btn--primary { background: #fff; color: var(--accent); }
.plan--featured .btn--primary:hover { background: var(--accent-soft); }

/* ----- Compare table ----- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.compare { width: 100%; border-collapse: collapse; min-width: 32rem; background: var(--surface); }
.compare th, .compare td { text-align: left; padding: 1rem 1.15rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--font-head); font-size: 1.05rem; background: var(--bg-soft); }
.compare thead th:last-child { color: var(--accent); }
.compare td { color: var(--text-muted); }
.compare td:last-child { color: var(--text); font-weight: 500; }

/* ----- Trainer ----- */
.trainer__inner { display: grid; gap: 2.25rem; align-items: center; }
.trainer__quote { font-size: 1.2rem; color: var(--text); border-left: 4px solid var(--accent); padding-left: 1.1rem; font-weight: 500; }
.trainer__stats { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.trainer__stats li { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.trainer__stats strong { font-family: var(--font-head); font-size: 2rem; color: var(--accent); line-height: 1; }
.trainer__stats span { color: var(--text-dim); font-size: 0.88rem; margin-top: 0.3rem; }

/* ----- FAQ ----- */
.faq { display: grid; gap: 0.85rem; max-width: 48rem; margin-inline: auto; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.faq__q {
  cursor: pointer; padding: 1.15rem 1.4rem; font-family: var(--font-head); font-weight: 700;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; color: var(--accent); font-size: 1.6rem; line-height: 1; }
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a { padding: 0 1.4rem 1.3rem; }
.faq__a p { margin: 0; color: var(--text-muted); }

/* ----- CTA / Form ----- */
.cta { background: var(--bg-soft); }
.form {
  display: grid; gap: 1.15rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow);
}
.form__row { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; }
.req { color: var(--accent); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem; min-height: 50px;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0392b; }
.field__error { margin: 0; color: #c0392b; font-size: 0.88rem; }
.form__status { margin: 0; font-weight: 700; min-height: 1.4em; }
.form__status[data-state="success"] { color: var(--accent-strong); }
.form__status[data-state="error"] { color: #c0392b; }

/* ----- Footer ----- */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,0.8); padding-block: 3rem; }
.site-footer__inner, .site-footer .container { display: grid; gap: 1rem; }
.site-footer .logo { color: #fff; }
.site-footer__tag { color: rgba(255,255,255,0.7); margin: 0; }
.site-footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.site-footer__links a { color: rgba(255,255,255,0.75); text-decoration: none; }
.site-footer__links a:hover { color: #fff; }
.site-footer__copy { color: rgba(255,255,255,0.55); margin: 0; font-size: 0.9rem; }

/* ----- Scroll reveal (progressive, respects reduced motion) ----- */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.delay-1 { transition-delay: 0.08s; }
.js .reveal.delay-2 { transition-delay: 0.16s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 48rem) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: repeat(2, 1fr); }
  .feature__inner, .trainer__inner { grid-template-columns: 1.05fr 0.95fr; }
  .cred__inner { grid-template-columns: 1fr auto; align-items: center; }
  .site-footer__inner, .site-footer .container { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 2rem; }
  .site-footer__tag { grid-column: 1 / -1; order: 3; }
}

@media (min-width: 64rem) {
  .cards--three { grid-template-columns: repeat(3, 1fr); }
  .cards--four { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: repeat(4, 1fr); }
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; }

  /* Center the nav links between logo (left) and actions (right) */
  .header__inner { gap: 1.5rem; }
  .nav { flex: 1; display: flex; justify-content: center; }
  .nav__toggle, .nav-toggle { display: none; }
  .nav__menu, .nav-links {
    position: static; display: flex; gap: 0.1rem; padding: 0; margin: 0;
    background: transparent; border: 0; box-shadow: none; align-items: center;
  }
  .nav__menu[hidden], .nav-links[hidden] { display: flex; }
  .nav__link, .nav-links a {
    padding: 0.5rem 0.95rem; font-size: 0.98rem; font-weight: 600;
    color: var(--text); position: relative; background: transparent;
  }
  .nav__link:hover, .nav-links a:hover { color: var(--accent-strong); background: transparent; }
  .nav__link[aria-current="page"] { color: var(--accent-strong); }
  /* animated underline on hover (Mizzle-style) */
  .nav__link::after {
    content: ""; position: absolute; left: 0.95rem; right: 0.95rem; bottom: 0.3rem; height: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease;
  }
  .nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

  /* Show desktop actions, hide the mobile-only drawer items */
  .header__actions { display: inline-flex; }
  .nav__actions-mobile,
  .nav__item-mobile { display: none; }
}

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

/* ----- Forced colors ----- */
@media (forced-colors: active) {
  .btn, .card, .plan, .step, .faq__item, .field input, .field textarea { border: 1px solid; }
  :focus-visible { outline: 3px solid; }
}

/* ==========================================================================
   Added sections (Mizzle-style): advantages, process, why-us, services,
   bento, team, testimonials
   ========================================================================== */

/* ----- Section intro variant with eyebrow + green highlight heading ----- */
.lead-points { list-style: none; display: grid; gap: 0.65rem; margin: 1.25rem 0 0; }
.lead-points li { position: relative; padding-left: 1.9rem; color: var(--text-muted); font-weight: 500; }
.lead-points li::before {
  content: "»"; position: absolute; left: 0; top: -0.05em; color: var(--accent);
  font-weight: 800; font-size: 1.2rem;
}

/* ----- Advantages: image collage + floating stat tiles ----- */
.advantage__inner { display: grid; gap: 2.5rem; align-items: center; }
/* ==========================================================================
   Collage of pure-CSS mini product cards (Avantajul tău)
   Two staggered columns of light, on-palette cards that fill the column height.
   ========================================================================== */
.collage { position: relative; display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; }
.collage__col { display: flex; flex-direction: column; gap: 1rem; }
.collage__cell { border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); }
/* Gentle lift so the collage feels alive on hover */
.collage__cell, .collage .stat-tile { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.collage:hover .collage__cell:hover,
.collage:hover .stat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* --- Mini product-UI mock --- */
.mock { border: 1px solid var(--border); overflow: hidden; }
.mock__bar {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.7rem 0.9rem; background: var(--bg-soft); border-bottom: 1px solid var(--border);
}
.mock__dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; }
.mock__dot:nth-child(1) { background: #ff5f57; }
.mock__dot:nth-child(2) { background: #febc2e; }
.mock__dot:nth-child(3) { background: var(--accent); }
.mock__title { margin-left: 0.45rem; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--text); }
.mock__body { padding: 1.1rem; display: grid; gap: 0.75rem; }
.mock__line { height: 0.7rem; border-radius: 999px; background: var(--bg-soft); }
.mock__line--short { width: 62%; }
.mock__row { display: flex; gap: 0.7rem; margin-top: 0.35rem; }
.mock__chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.08em;
  flex: 1; min-height: 3.25rem;
  border-radius: var(--radius-sm); background: var(--accent); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; line-height: 1;
}
.mock__chip i { font-style: normal; font-size: 0.62em; opacity: 0.9; }
.mock__check {
  display: grid; place-items: center; flex: 1; min-height: 3.25rem;
  border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid var(--accent);
  color: var(--accent); font-size: 1.6rem;
  animation: check-pulse 2.6s ease-in-out infinite;
}
/* Reuse the "pulse" vibe from the hub: a soft expanding glow ring */
@keyframes check-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(9, 184, 80, 0.5); }
  50%      { box-shadow: 0 0 0 10px rgba(9, 184, 80, 0); }
}

/* --- Dashboard card with mini chart --- */
.dash { border: 1px solid var(--border); padding: 1.1rem 1.2rem 1.2rem; display: grid; gap: 0.9rem; }
.dash__title { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: var(--text); }
.dash__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.dash__stat { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 0.7rem 0.85rem; display: grid; gap: 0.15rem; }
.dash__stat-k { font-size: 0.72rem; color: var(--text-dim); }
.dash__stat-v { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--text); line-height: 1; }
.dash__chart { width: 100%; height: 72px; display: block; overflow: visible; }
.dash__area { fill: var(--accent-soft); stroke: none; }
.dash__line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dash__pt { fill: var(--accent); stroke: #fff; stroke-width: 2.5; animation: check-pulse 2.6s ease-in-out infinite; }

/* --- Automation flow card --- */
.autocard { background: var(--ink-900); color: #fff; padding: 1.1rem 1.2rem; display: grid; gap: 0.9rem; }
.autocard__title { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: #fff; }
.autocard__flow { display: flex; align-items: center; gap: 0.5rem; }
.autocard__flow i { color: var(--accent); font-size: 1.1rem; flex: none; }
.autocard__node {
  flex: 1; min-width: 0; text-align: center; padding: 0.55rem 0.4rem;
  border-radius: var(--radius-sm); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; color: #fff;
}
.autocard__node--ai { background: var(--accent); border-color: var(--accent); }
.autocard__node--out { background: #fff; color: var(--ink-900); border-color: #fff; }

/* --- Flow card: idea -> doc -> build -> product + progress --- */
.flowcard { border: 1px solid var(--border); padding: 1.1rem 1.2rem; display: grid; gap: 1rem; }
.flowcard__steps {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.45rem 0.9rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; color: var(--text);
}
.flowcard__steps li { position: relative; padding-left: 1.1rem; }
.flowcard__steps li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 0.5rem; height: 0.5rem; border-radius: 2px; background: var(--accent);
}
.flowcard__steps li:last-child::before { background: var(--accent-strong); }
.flowcard__track { height: 0.6rem; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.flowcard__fill { display: block; height: 100%; width: 78%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); }
.stat-tile {
  border-radius: var(--radius); padding: 1.5rem 1.5rem; color: #fff;
  box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: center;
}
.stat-tile--accent { background: var(--accent); }
.stat-tile--dark { background: var(--ink-900); }
/* Mobile: number on top, then label — aligned & roomy */
.stat-tile { align-items: flex-start; text-align: left; gap: 0.5rem; padding: 1.5rem; }
.stat-tile__num { font-family: var(--font-head); font-weight: 800; font-size: 2.75rem; line-height: 1; }
.stat-tile__num span { font-size: 1.25rem; font-weight: 700; opacity: 0.9; }
.stat-tile__label { font-size: 0.95rem; opacity: 0.92; margin-top: 0; }

.minifeatures { display: grid; gap: 1.25rem; margin: 1.75rem 0; }
/* Mobile: icon on top, title + text centered */
.minifeature { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; }
.minifeature__icon {
  flex: none; width: 3rem; height: 3rem; border-radius: var(--radius-sm);
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
  font-size: 1.2rem;
}
.minifeature h3 { font-size: 1.05rem; margin: 0; }
.advantage__call { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 1.5rem; }
.callbox { display: flex; align-items: center; gap: 0.75rem; }
.callbox__icon { width: 3rem; height: 3rem; border-radius: var(--radius-sm); background: var(--ink-900); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.callbox__label { font-size: 0.85rem; color: var(--text-dim); margin: 0; }
.callbox__num { font-family: var(--font-head); font-weight: 700; color: var(--accent-strong); margin: 0; }

/* ----- Process timeline ----- */
.process { list-style: none; display: grid; gap: 2.5rem; counter-reset: proc; position: relative; }
.process__step { text-align: center; display: grid; justify-items: center; gap: 0.4rem; }
.process__badge {
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; margin-bottom: 0.75rem;
  background: var(--chip-bg); color: var(--text-dim); border: 1px solid var(--border);
}
.process__step--active .process__badge { background: var(--accent); color: #fff; border-color: var(--accent); }
.process__disc {
  width: 7rem; height: 7rem; border-radius: 50%; object-fit: cover;
  box-shadow: var(--shadow); margin-bottom: 0.5rem; border: 3px solid #fff;
}
.process__title { font-size: 1.2rem; margin: 0; }
.process__step--active .process__title { color: var(--accent-strong); }
.process__step p { margin: 0.25rem 0 0; color: var(--text-muted); max-width: 20rem; }

/* ----- Why-us: skill bars + rings ----- */
.whyus__inner { display: grid; gap: 2.5rem; align-items: center; }

/* ----- Why-us: pure-CSS "11x hub" illustration (replaces placeholder) ----- */
.hub {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3.25rem 3.25rem;
  place-items: center;
  padding: 2.5rem clamp(1rem, 4vw, 2rem);
  min-height: 320px;
  isolation: isolate;
}

/* Central core */
.hub__core {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(8.5rem, 30vw, 11rem); aspect-ratio: 1;
  border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: 0.1rem;
  color: #fff; text-align: center;
  background: radial-gradient(circle at 32% 28%, #2ad06f, var(--accent) 55%, var(--accent-strong) 100%);
  box-shadow: 0 18px 40px -14px rgba(9, 184, 80, 0.6), inset 0 2px 10px rgba(255,255,255,0.25);
  animation: hub-breathe 5s ease-in-out infinite;
}
/* Soft pulsing ring behind the core */
.hub__core::before {
  content: ""; position: absolute; inset: -0.6rem; border-radius: 50%; z-index: -1;
  border: 2px solid var(--accent);
  opacity: 0.35; animation: hub-ring 3.2s ease-out infinite;
}
.hub__core-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 8vw, 3rem); line-height: 1; letter-spacing: -0.03em; }
.hub__core-num span { font-size: 0.6em; opacity: 0.9; }
.hub__core-tag { font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.02em; opacity: 0.95; }

/* The four node cards sit in the grid corners */
.hub__nodes { list-style: none; margin: 0; padding: 0; display: contents; }
.hub__node {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.85rem 1rem; box-shadow: var(--shadow-sm);
  width: 100%; max-width: 13rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.hub__node i {
  flex: none; font-size: 1.4rem; color: var(--accent);
  display: grid; place-items: center;
}
.hub__node strong { display: block; font-family: var(--font-head); font-size: 0.98rem; color: var(--text); line-height: 1.15; }
.hub__node span { font-size: 0.82rem; color: var(--text-muted); }
.hub__node:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }

.hub__node--tl { grid-area: 1 / 1; justify-self: start; }
.hub__node--tr { grid-area: 1 / 2; justify-self: end; }
.hub__node--bl { grid-area: 2 / 1; justify-self: start; }
.hub__node--br { grid-area: 2 / 2; justify-self: end; }

/* Connector line from each node toward the center */
.hub__node::after {
  content: ""; position: absolute; z-index: 0;
  width: 2.4rem; height: 3px; border-radius: 3px;
  background: linear-gradient(to var(--conn-dir, right), var(--accent), rgba(9,184,80,0.15));
  top: 50%;
}
.hub__node--tl::after,
.hub__node--bl::after { right: -2.4rem; --conn-dir: right; }
.hub__node--tr::after,
.hub__node--br::after { left: -2.4rem; --conn-dir: left; }

@keyframes hub-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.04); }
}
@keyframes hub-ring {
  0%   { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.5); opacity: 0; }
}
.skillbar { margin-bottom: 1.25rem; }
.skillbar__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; }
.skillbar__name { font-family: var(--font-head); font-weight: 700; }
.skillbar__pct { font-weight: 700; color: var(--accent-strong); font-size: 0.9rem; }
.skillbar__track { height: 10px; background: var(--chip-bg); border-radius: var(--radius-pill); overflow: hidden; }
.skillbar__fill { height: 100%; width: 0; background: var(--accent); border-radius: var(--radius-pill); transition: width 1s ease; }
.js .skillbar__fill { width: 0; }
.rings { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 1.75rem; }
.ring { display: flex; align-items: center; gap: 0.85rem; }
.ring__circle {
  --val: 90; width: 4.5rem; height: 4.5rem; border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--val) * 1%), var(--chip-bg) 0);
  display: grid; place-items: center; position: relative;
}
.ring__circle::after { content: ""; position: absolute; inset: 8px; background: var(--bg); border-radius: 50%; }
.ring__num { position: relative; z-index: 1; font-family: var(--font-head); font-weight: 800; font-size: 1rem; }
.ring__label { font-weight: 600; max-width: 9rem; }

/* ----- Services grid ----- */
.services { list-style: none; display: grid; gap: 1.1rem; }
.service {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--bg-soft); border: 1px solid transparent; border-radius: var(--radius); padding: 1.4rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.service:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service__icon {
  flex: none; width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--accent); font-size: 1.25rem; box-shadow: var(--shadow-sm);
}
.service h3 { font-size: 1.08rem; margin: 0 0 0.25rem; }
.service p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.services__note { max-width: 52rem; margin: 1.75rem auto 0; text-align: center; font-size: 0.9rem; line-height: 1.6; }
.services__note i { color: var(--accent); }

/* ----- Bento grid ----- */
.bento { display: grid; gap: 1rem; }
.bento__cell {
  border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.bento__cell h3 { font-size: 1.3rem; margin: 0.75rem 0 0.5rem; }
.bento__cell p { margin: 0; color: var(--text-muted); }
.bento__icon { font-size: 1.6rem; }
.bento__cell--dark { background: var(--ink-900); color: #fff; border-color: transparent; }
.bento__cell--dark h3 { color: #fff; } .bento__cell--dark p { color: rgba(255,255,255,0.82); }
/* Keep emphasised text readable on the dark/green cells (overrides global p strong) */
.bento__cell--dark p strong, .bento__cell--dark .hl,
.bento__cell--green p strong, .bento__cell--green .hl { color: #fff; }
.bento__cell--green { background: var(--accent); color: #fff; border-color: transparent; }
.bento__cell--green h3 { color: #fff; } .bento__cell--green p { color: rgba(255,255,255,0.9); }
.bento__cell--mint { background: var(--accent-soft); }
.bento__cell--soft { background: var(--bg-soft); }

/* ----- Team ----- */
/* ----- Testimonials ----- */
.testi { list-style: none; display: grid; gap: 1.25rem; }
.testi__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.testi__stars { color: var(--warning); margin-bottom: 0.75rem; font-size: 0.95rem; display: inline-flex; gap: 3px; }
.testi__text { color: var(--text); font-size: 1.05rem; }
.testi__who { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.testi__avatar { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--ink-900)); flex: none; }
.testi__name { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; margin: 0; }
.testi__meta { color: var(--text-dim); font-size: 0.85rem; margin: 0; }

/* ----- Responsive for new sections ----- */
@media (min-width: 48rem) {
  .advantage__inner, .whyus__inner { grid-template-columns: 1fr 1fr; }
  .minifeatures { grid-template-columns: 1fr 1fr; }

  /* Credibility: back to inline row, no slider/cards/dots */
  .cred__stats { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; overflow: visible; }
  .cred__stat {
    flex: 0 0 auto; scroll-snap-align: none; align-items: flex-start; text-align: left;
    background: transparent; border: 0; border-radius: 0; padding: 0;
  }
  .cred__dots { display: none; }

  /* Collage: two staggered columns on tablet/desktop */
  .collage { grid-template-columns: 1fr 1fr; align-items: start; gap: 1.1rem; }
  .collage__col:nth-child(2) { margin-top: 2.25rem; } /* stagger for a masonry feel */
  .stat-tile { padding: 1.25rem 1.35rem; gap: 0.15rem; }
  .stat-tile__num { font-size: 2rem; }
  .stat-tile__num span { font-size: 1rem; }
  .stat-tile__label { font-size: 0.85rem; margin-top: 0.25rem; }

  /* Minifeature: icon left, text left-aligned on tablet/desktop */
  .minifeature { flex-direction: row; align-items: flex-start; text-align: left; gap: 0.9rem; }
  .services { grid-template-columns: 1fr 1fr; }
  .testi { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: repeat(3, 1fr); }
  .process::before {
    content: ""; position: absolute; top: 1.5rem; left: 16%; right: 16%;
    border-top: 2px dashed var(--border-strong); z-index: 0;
  }
  .process__step { position: relative; z-index: 1; }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento__cell--wide { grid-column: span 2; }
}

/* ----- Roles grid (anonymous team) ----- */
.roles { list-style: none; display: grid; gap: 1.25rem; }
.role-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.role-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.role-card__icon {
  display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem;
  border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent);
  font-size: 1.3rem; margin-bottom: 1rem;
}
.role-card__title { font-size: 1.15rem; margin: 0 0 0.5rem; }
.role-card p { margin: 0; color: var(--text-muted); }

@media (min-width: 48rem) { .roles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .roles { grid-template-columns: repeat(3, 1fr); } }

/* ----- Modal / popup ----- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1.25rem; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(15, 17, 21, 0.55); backdrop-filter: blur(2px); }
.modal__dialog {
  position: relative; z-index: 1; width: 100%; max-width: 40rem;
  background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem); max-height: calc(100dvh - 2.5rem); overflow-y: auto;
}
.js .modal__dialog { animation: modal-in 0.2s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 0.75rem; right: 0.9rem;
  background: var(--chip-bg); border: 1px solid var(--border); border-radius: 50%;
  width: 2.25rem; height: 2.25rem; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--text);
}
.modal__close:hover { background: #e9ebee; }
.modal__title { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin: 0 0 0.5rem; }
.modal__desc { color: var(--text-muted); margin: 0 0 1.5rem; }
@media (prefers-reduced-motion: reduce) { .js .modal__dialog { animation: none; } }

/* ==========================================================================
   Legal pages (Termeni și Condiții / Politica de confidențialitate)
   ========================================================================== */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal__wrap { max-width: 760px; margin-inline: auto; }
.legal__title { font-size: clamp(1.9rem, 5vw, 2.8rem); margin: 0 0 0.5rem; }
.legal__updated { color: var(--text-dim); font-size: 0.9rem; margin: 0 0 2.5rem; }
.legal h2 {
  font-size: clamp(1.3rem, 3vw, 1.6rem); margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.legal p { color: var(--text-muted); margin: 0 0 1rem; line-height: 1.7; }
.legal ul { margin: 0 0 1rem; padding-left: 1.5rem; list-style: disc; }
.legal li { color: var(--text-muted); margin-bottom: 0.5rem; line-height: 1.7; }
.legal a { color: var(--accent-strong); font-weight: 600; }
.legal strong { color: var(--text); }
.legal__note {
  background: var(--bg-soft); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin: 1.5rem 0;
  font-size: 0.95rem; color: var(--text-muted);
}

/* ==========================================================================
   Mobile: modal becomes a bottom sheet (slides up) + compact inputs
   ========================================================================== */
@media (max-width: 47.99rem) {
  /* Dock the modal to the bottom and let it slide up */
  .modal { place-items: end stretch; padding: 0; }
  .modal__dialog {
    max-width: none; width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 1.5rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
    max-height: 92dvh;
  }
  /* Grab handle at the top of the sheet */
  .modal__dialog::before {
    content: ""; display: block;
    width: 40px; height: 4px; margin: 0 auto 1rem;
    background: var(--border-strong); border-radius: 999px;
  }
  .js .modal__dialog { animation: sheet-up 0.28s cubic-bezier(0.16, 1, 0.3, 1); }

  /* Tighter header so the form fits in one screen */
  .modal .eyebrow { margin-bottom: 0.5rem; padding: 0.35rem 0.75rem; font-size: 0.8rem; }
  .modal__title { font-size: 1.25rem; margin-bottom: 0.35rem; }
  .modal__desc { font-size: 0.9rem; margin-bottom: 1rem; }
  .modal__close { top: 0.6rem; right: 0.75rem; width: 2rem; height: 2rem; font-size: 1.2rem; }

  /* Compact inputs inside the modal */
  .modal .form { gap: 0.7rem; padding: 0; background: transparent; border: 0; box-shadow: none; }
  .modal .form__row { gap: 0.7rem; grid-template-columns: 1fr; }
  .modal .field { gap: 0.25rem; }
  .modal .field label { font-size: 0.85rem; }
  .modal .field input,
  .modal .field textarea {
    min-height: 42px; padding: 0.55rem 0.75rem; font-size: 0.95rem;
  }
  .modal .field textarea { min-height: 4.5rem; }
  .modal .btn { min-height: 44px; padding: 0.7rem 1.25rem; }
}

@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ==========================================================================
   Mobile: comparison table (DE CE 11x) becomes stacked cards (no scroll)
   ========================================================================== */
@media (max-width: 47.99rem) {
  .table-wrap { overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
  .compare { min-width: 0; width: 100%; background: transparent; display: block; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

  /* tbody becomes a horizontal snap slider; each row is a card slide */
  .compare tbody {
    display: flex; gap: 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -ms-overflow-style: none; scrollbar-width: none;
    margin: 0 calc(-1 * clamp(1.1rem, 4vw, 2rem));
    padding: 0.25rem clamp(1.1rem, 4vw, 2rem);
  }
  .compare tbody::-webkit-scrollbar { display: none; }
  .compare tr {
    flex: 0 0 85%; scroll-snap-align: center;
    display: grid; gap: 0.5rem; align-content: start;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 0;
    box-shadow: var(--shadow-sm);
  }
  .compare td { display: block; border: 0; padding: 0; }
  .compare td::before {
    content: attr(data-label);
    display: block; font-family: var(--font-head); font-weight: 700;
    font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase;
    margin-bottom: 0.15rem;
  }
  /* First cell = the "other options" (muted), second = 11x (green highlight) */
  .compare td:first-child { color: var(--text-dim); }
  .compare td:first-child::before { color: var(--default-400); }
  .compare td:last-child {
    color: var(--text); font-weight: 500;
    padding-top: 0.75rem; border-top: 1px dashed var(--border);
  }
  .compare td:last-child::before { color: var(--accent-strong); }
}

/* ==========================================================================
   Mobile polish (<= 47.99rem): centering + full-width sliders
   ========================================================================== */
@media (max-width: 47.99rem) {

  /* Contain the edge-to-edge slider bleed so the page never scrolls sideways.
     overflow-x: clip keeps the sticky header working (unlike overflow: hidden). */
  html { overflow-x: clip; }
  .section, .hero, .cred { overflow-x: clip; }

  /* ----- Hero: center everything, buttons centered ----- */
  .hero { text-align: center; }
  .hero__text { max-width: none; margin-inline: auto; }
  .hero .eyebrow { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  /* Hide the build animation on mobile */
  .hero__media { display: none; }

  /* ----- Avantajul tău: center text + eyebrow ----- */
  #cine-suntem .eyebrow { margin-left: auto; margin-right: auto; }
  #cine-suntem .section__title,
  #cine-suntem .section__lead { text-align: center; }
  #cine-suntem .section__lead { margin-inline: auto; }
  #cine-suntem .advantage__call { justify-content: center; }
  /* Hide the lead-points list on mobile */
  #cine-suntem .lead-points { display: none; }

  /* The advantage text column lives after the collage; center it */
  .advantage__inner > div:last-child { text-align: center; }

  /* All icon tiles: bigger glyph, no colored box / shadow behind them */
  .minifeature__icon,
  .card__icon,
  .service__icon,
  .role-card__icon,
  .bento__icon {
    background: none; box-shadow: none; width: auto; height: auto;
    color: var(--accent); font-size: 2.5rem;
  }
  /* Keep icons visible on the solid-colour bento cells (not green-on-green) */
  .bento__cell--green .bento__icon,
  .bento__cell--dark .bento__icon { color: #fff; }

  /* ----- stat-tile: center aligned on mobile ----- */
  .stat-tile { align-items: center; text-align: center; }

  /* ----- Credibility note centered ----- */
  .cred__note { text-align: center; }

  /* ----- Services (Ce poți construi): stacked, centered ----- */
  .service { flex-direction: column; align-items: center; text-align: center; }

  /* ----- Process: stacked (no slider), images hidden ----- */
  #proces [data-slider] {
    display: grid !important;
    grid-template-columns: 1fr; gap: 2.5rem;
    overflow: visible; margin: 0; padding: 0;
  }
  #proces [data-slider] > * { flex: none; }
  #proces .process__disc { display: none; }
  #proces .slider-dots { display: none; }

  /* ----- Pentru cine: show card icons only on mobile ----- */
  #pentru-cine .card__icon { display: inline-grid; }

  /* ----- Footer: only logo + copyright, on a single line ----- */
  .site-footer { padding-block: 1.5rem; }
  .site-footer__inner, .site-footer .container {
    display: flex; flex-direction: row; align-items: center;
    justify-content: space-between; gap: 1rem;
  }
  .site-footer__nav,
  .site-footer__tag { display: none; }
  .site-footer__copy { margin: 0; }

  /* ----- Ce câștigi în loc (#solutia): tighten bottom spacing ----- */
  #solutia { padding-bottom: 1px; }

  /* ----- Beneficii (#beneficii): remove bottom padding ----- */
  #beneficii { padding-bottom: 0; }

  /* ----- Ce obține echipa ta (#why-us): centered, no skillbars ----- */
  .skillbar { display: none; }
  #why-us .eyebrow { margin-left: auto; margin-right: auto; }
  #why-us .section__title,
  #why-us .section__lead,
  #why-us > .container > div > p { text-align: center; }
  #why-us .section__lead { margin-inline: auto; }

  /* Rings: 2 items side by side, centered */
  #why-us .rings { justify-content: center; gap: 1.25rem; }
  #why-us .ring { flex: 0 0 auto; flex-direction: column; text-align: center; gap: 0.5rem; }
  #why-us .ring__label { max-width: 9rem; }

  /* Collage: hide the UI mock and the automation card on mobile */
  .collage .mock,
  .collage .autocard { display: none; }

  /* Hub illustration: tighten so it fits a phone without clipping */
  .hub { gap: 2rem 0.75rem; padding: 1.75rem 0; }
  .hub__node { max-width: none; padding: 0.7rem 0.75rem; gap: 0.55rem; }
  .hub__node i { font-size: 1.2rem; }
  .hub__node strong { font-size: 0.9rem; }
  .hub__node span { font-size: 0.76rem; }
  .hub__node::after { display: none; } /* drop connectors on tight layout */
  .hub__core { width: clamp(7rem, 34vw, 9rem); }
}

/* Card icons are hidden by default; the mobile rule above reveals them */
#pentru-cine .card__icon { display: none; }

/* ==========================================================================
   Decorative background + subtle motion (all breakpoints)
   Everything here sits BEHIND content and is disabled under reduced-motion.
   ========================================================================== */

/* Decorative square-grid tokens */
:root {
  --grid-cell: 22px;              /* square size */
  --grid-line: rgba(9, 184, 80, 0.14);
  --grid-line-soft: rgba(9, 184, 80, 0.07);
}

/* ----- 1. Global faint square-grid texture (fixed) ----- */
body { position: relative; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-soft) 1px, transparent 1px);
  background-size: var(--grid-cell) var(--grid-cell);
  opacity: 0.6;
}

/* ----- 2. Section ambience: floating patches of a square matrix ----- */
/* Sections become positioning contexts so decoration can sit behind. */
.section, .hero, .cred { position: relative; }
.section > .container,
.hero > .container,
.cred > .container { position: relative; z-index: 1; }

/* A reusable square-matrix patch, faded at the edges with a radial mask */
.section--alt { overflow: hidden; }
.section--alt::before,
.section--alt::after,
.hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, var(--grid-line) 1.5px, transparent 1.5px);
  background-size: var(--grid-cell) var(--grid-cell);
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 70%);
          mask-image: radial-gradient(circle at center, #000 0%, transparent 70%);
}

.section--alt::before {
  width: 30rem; height: 30rem; top: -8rem; right: -8rem;
  animation: grid-drift 20s ease-in-out infinite;
}
.section--alt::after {
  width: 24rem; height: 24rem; bottom: -9rem; left: -8rem;
  background-image:
    linear-gradient(to right, rgba(32, 33, 36, 0.08) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, rgba(32, 33, 36, 0.08) 1.5px, transparent 1.5px);
  animation: grid-drift 26s ease-in-out infinite reverse;
}

/* Hero gets a bigger, slightly stronger square matrix */
.hero::after {
  width: 42rem; height: 42rem; top: -12rem; right: -12rem;
  background-image:
    linear-gradient(to right, rgba(9, 184, 80, 0.18) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, rgba(9, 184, 80, 0.18) 1.5px, transparent 1.5px);
  background-size: var(--grid-cell) var(--grid-cell);
  animation: grid-drift 22s ease-in-out infinite;
}

/* Subtle drift: slowly float the matrix patch around */
@keyframes grid-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(-1rem, 1rem, 0); }
}

/* ----- 3. Subtle micro-interactions ----- */
/* Buttons: gentle lift + shadow on hover */
.btn { transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.btn--primary:hover, .btn--dark:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* Icon tiles: a touch of life on card/service/role hover */
.card__icon, .service__icon, .role-card__icon, .minifeature__icon, .bento__icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover .card__icon,
.role-card:hover .role-card__icon { transform: translateY(-2px) rotate(-4deg); }
.service:hover .service__icon { transform: scale(1.08) rotate(4deg); }

/* Live dot in logo-ish accents: gentle pulse (if present) */
.logo__mark { transition: transform 0.25s ease; }
.logo:hover .logo__mark { transform: rotate(-6deg) scale(1.05); }

/* Process badges pulse softly when active */
.process__step--active .process__badge { animation: badge-pulse 2.6s ease-in-out infinite; }
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(9, 184, 80, 0.45); }
  50%      { box-shadow: 0 0 0 10px rgba(9, 184, 80, 0); }
}

/* FAQ marker rotates smoothly */
.faq__q::after { transition: transform 0.25s ease, color 0.25s ease; }
.faq__item[open] .faq__q::after { transform: rotate(180deg); }

/* ----- 4. Enhanced scroll-reveal: directional + scale variants + stagger ----- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Directional variants (opt-in via class) */
.js .reveal--left  { transform: translateX(-28px); }
.js .reveal--right { transform: translateX(28px); }
.js .reveal--zoom  { transform: scale(0.94); }
.js .reveal--left.is-visible,
.js .reveal--right.is-visible,
.js .reveal--zoom.is-visible { transform: none; }

/* Stagger children inside grids/lists as they reveal (no HTML changes needed) */
.js .hero__text > .reveal:nth-child(2),
.js .cards > .reveal:nth-child(2),
.js .services > .reveal:nth-child(2),
.js .plans > .reveal:nth-child(2),
.js .roles > .reveal:nth-child(2),
.js .bento > .reveal:nth-child(2),
.js .testi > .reveal:nth-child(2),
.js .process > .reveal:nth-child(2),
.js .minifeatures > .reveal:nth-child(2) { transition-delay: 0.08s; }

.js .hero__text > .reveal:nth-child(3),
.js .cards > .reveal:nth-child(3),
.js .services > .reveal:nth-child(3),
.js .plans > .reveal:nth-child(3),
.js .roles > .reveal:nth-child(3),
.js .bento > .reveal:nth-child(3),
.js .process > .reveal:nth-child(3) { transition-delay: 0.16s; }

.js .hero__text > .reveal:nth-child(4),
.js .cards > .reveal:nth-child(4),
.js .services > .reveal:nth-child(4),
.js .plans > .reveal:nth-child(4),
.js .roles > .reveal:nth-child(4),
.js .bento > .reveal:nth-child(4) { transition-delay: 0.24s; }

.js .services > .reveal:nth-child(5),
.js .roles > .reveal:nth-child(5),
.js .bento > .reveal:nth-child(5) { transition-delay: 0.32s; }

.js .services > .reveal:nth-child(6),
.js .roles > .reveal:nth-child(6) { transition-delay: 0.40s; }

.js .services > .reveal:nth-child(7) { transition-delay: 0.48s; }

/* ----- 5. Honor reduced-motion: kill decorative motion entirely ----- */
@media (prefers-reduced-motion: reduce) {
  body::before,
  .section--alt::before, .section--alt::after, .hero::after { animation: none; }
  .process__step--active .process__badge { animation: none; }
  .hub__core, .hub__core::before { animation: none; }
  .hub__core { transform: translate(-50%, -50%); }
  .hub__node:hover { transform: none; }
  .mock__check, .dash__pt { animation: none; }
  .collage:hover .collage__cell:hover,
  .collage:hover .stat-tile:hover { transform: none; }
  .btn--primary:hover, .btn--dark:hover,
  .card:hover .card__icon, .role-card:hover .role-card__icon,
  .service:hover .service__icon, .logo:hover .logo__mark { transform: none; }
}

/* ==========================================================================
   AI tools strip (#tools-title / .tools)
   ========================================================================== */
.tools { padding-block: clamp(2.25rem, 5vw, 3.25rem); }
.tools__label {
  text-align: center; margin: 0 0 1.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.02em; color: var(--text-dim);
}
.tools__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem 1.1rem;
}
.tools__item {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 0.6rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tools__item:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); }
.tools__icon { display: grid; place-items: center; font-size: 1.4rem; color: var(--accent); }
.tools__name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--text); }
.tools__note {
  max-width: 52rem; margin: 1.5rem auto 0; text-align: center;
  font-size: 0.9rem; line-height: 1.6; color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .tools__item:hover { transform: none; }
}

/* ==========================================================================
   Hero animation — "prompt -> product" build mock (.hero-anim)
   ========================================================================== */
.hero-anim {
  position: relative; width: 100%; max-width: 34rem; margin-inline: auto;
  display: grid; gap: 1rem;
}

/* Prompt bar (text set by JS) */
.hero-anim__prompt {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 0.75rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.hero-anim__spark { display: grid; place-items: center; color: var(--accent); font-size: 1.2rem; flex: none; }
.hero-anim__type {
  flex: 1; min-width: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.9rem; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  animation: hero-prompt-in 0.4s ease;
}
.hero-anim__caret { width: 2px; height: 1.1rem; background: var(--accent); flex: none; animation: hero-caret 0.9s step-end infinite; }
@keyframes hero-caret { 50% { opacity: 0; } }
@keyframes hero-prompt-in { from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: none; } }

/* Product window */
.hero-anim__window {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  animation: hero-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-anim__bar {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 0.6rem 0.9rem;
}
.hero-anim__dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; flex: none; }
.hero-anim__dot:nth-child(1) { background: #ff5f57; }
.hero-anim__dot:nth-child(2) { background: #febc2e; }
.hero-anim__dot:nth-child(3) { background: var(--accent); }
.hero-anim__title { margin-left: 0.5rem; font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-anim__badge {
  margin-left: auto; flex: none; font-family: var(--font-head); font-weight: 800; font-size: 0.85rem;
  color: #fff; background: var(--accent); border-radius: var(--radius-pill); padding: 0.15rem 0.6rem;
  animation: hero-badge 2.4s ease-in-out infinite;
}
.hero-anim__body { position: relative; padding: 1.1rem; min-height: 12.5rem; display: flex; flex-direction: column; }

/* Scenes: only .is-active is shown */
.hero-scene { display: none; flex: 1; flex-direction: column; gap: 0.65rem; }
.hero-scene.is-active { display: flex; animation: hero-scene-in 0.5s ease both; }
@keyframes hero-scene-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero-scene__label { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; color: var(--text-dim); }

.hero-anim__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }

/* Scene 1: stats + chart */
.hero-stat { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 0.6rem 0.8rem; display: grid; gap: 0.1rem; }
.hero-stat__k { font-size: 0.72rem; color: var(--text-dim); }
.hero-stat__v { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--text); line-height: 1; }
.hero-anim__chart { display: flex; align-items: flex-end; gap: 0.4rem; height: 5rem; margin-top: auto; }
.hero-anim__chart span {
  position: relative; flex: 1; height: var(--h, 40%);
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  border-radius: 4px 4px 0 0; transition: height 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; align-items: flex-start; justify-content: center;
}
.hero-anim__chart b {
  position: absolute; top: -1.1rem; font-family: var(--font-head); font-weight: 700;
  font-size: 0.62rem; color: var(--text-dim);
}
.hero-anim__chart b::after { content: attr(data-v); }

/* Scene 2: automation flow */
.hero-flow { display: flex; align-items: center; gap: 0.4rem; }
.hero-flow i { color: var(--accent); font-size: 1rem; flex: none; }
.hero-flow__node {
  flex: 1; min-width: 0; text-align: center; padding: 0.5rem 0.3rem;
  border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--border);
  font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; color: var(--text);
}
.hero-flow__node--ai { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero-flow__node--out { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.hero-tasks { display: grid; gap: 0.4rem; margin-top: 0.3rem; }
.hero-task {
  display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-muted);
  background: var(--bg-soft); border-radius: var(--radius-sm); padding: 0.45rem 0.7rem;
  opacity: 0; animation: hero-pop 0.5s ease forwards;
}
.hero-task i { color: var(--accent); }
.hero-scene.is-active .hero-task:nth-child(1) { animation-delay: 0.3s; }
.hero-scene.is-active .hero-task:nth-child(2) { animation-delay: 0.7s; }
.hero-scene.is-active .hero-task:nth-child(3) { animation-delay: 1.1s; }

/* Scene 3: form */
.hero-field { display: grid; gap: 0.25rem; }
.hero-field__label { font-size: 0.72rem; color: var(--text-dim); }
.hero-field__box { height: 1.7rem; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--border); position: relative; overflow: hidden; }
.hero-field__box--tall { height: 2.8rem; }
.hero-field__box::after {
  content: ""; position: absolute; inset: 0; width: 0;
  background: linear-gradient(90deg, var(--accent-soft), transparent);
}
.hero-scene.is-active .hero-field:nth-child(2) .hero-field__box::after { animation: hero-fill-field 0.7s ease 0.3s forwards; }
.hero-scene.is-active .hero-field:nth-child(3) .hero-field__box::after { animation: hero-fill-field 0.7s ease 0.7s forwards; }
.hero-scene.is-active .hero-field:nth-child(4) .hero-field__box::after { animation: hero-fill-field 0.7s ease 1.1s forwards; }
@keyframes hero-fill-field { to { width: 100%; } }
.hero-submit {
  align-self: flex-start; margin-top: auto; font-family: var(--font-head); font-weight: 700; font-size: 0.8rem;
  color: #fff; background: var(--accent); border-radius: var(--radius-sm); padding: 0.5rem 1.1rem;
  opacity: 0; animation: hero-pop 0.5s ease 1.5s forwards;
}

/* Scene 4: chat */
.hero-chat { max-width: 85%; font-size: 0.82rem; line-height: 1.4; padding: 0.55rem 0.8rem; border-radius: var(--radius); opacity: 0; animation: hero-pop 0.5s ease forwards; }
.hero-chat--q { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; animation-delay: 0.3s; }
.hero-chat--a { align-self: flex-start; background: var(--bg-soft); color: var(--text); border-bottom-left-radius: 4px; animation-delay: 1.3s; }
.hero-chat--a strong { color: var(--accent-strong); }
.hero-chat--typing { align-self: flex-start; display: inline-flex; gap: 0.25rem; background: var(--bg-soft); border-bottom-left-radius: 4px; animation-delay: 0.9s; }
.hero-chat--typing span { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--text-dim); animation: hero-typing 1s ease-in-out infinite; }
.hero-chat--typing span:nth-child(2) { animation-delay: 0.15s; }
.hero-chat--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes hero-typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }

/* Build progress bar (width driven by JS) */
.hero-anim__progress { height: 0.5rem; border-radius: 999px; background: var(--bg-soft); overflow: hidden; margin-top: 0.9rem; }
.hero-anim__progress span { display: block; height: 100%; width: 6%; border-radius: 999px; background: var(--accent); }

/* Floating "done" chip */
.hero-anim__chip {
  position: absolute; right: -0.5rem; bottom: 2.5rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--ink-900); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 0.82rem;
  padding: 0.5rem 0.9rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg);
  animation: hero-float 4s ease-in-out infinite;
}
.hero-anim__chip i { color: var(--accent-2); }

@keyframes hero-rise { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes hero-pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes hero-badge { 0%, 100% { box-shadow: 0 0 0 0 rgba(9,184,80,0.5); } 50% { box-shadow: 0 0 0 8px rgba(9,184,80,0); } }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Reduced motion: show scene 1 statically, no looping/motion */
@media (prefers-reduced-motion: reduce) {
  .hero-anim__caret, .hero-anim__window, .hero-anim__badge, .hero-anim__chip,
  .hero-scene.is-active, .hero-task, .hero-submit, .hero-chat, .hero-chat--typing span,
  .hero-field__box::after { animation: none !important; opacity: 1 !important; }
  .hero-scene[data-scene="0"] { display: flex !important; }
  .hero-scene:not([data-scene="0"]) { display: none !important; }
  .hero-anim__chart span { transition: none; }
  .hero-field__box::after { width: 100%; }
  .hero-anim__progress span { width: 100%; }
}
