:root {
  color-scheme: only light;
  --ink: #0e1b1d;
  --muted: #58696c;
  --line: #e1eae8;
  --panel: #ffffff;
  --soft: #f3f8f6;
  --teal: #0d9488;
  --teal-dark: #0b6a61;
  --teal-soft: #e3f4f1;
  --graphite: #102220;
  --bg: #fbfdfc;
  --shadow: 0 24px 70px rgba(14, 27, 29, 0.12);
  --shadow-soft: 0 10px 30px rgba(14, 27, 29, 0.07);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

section[id] {
  scroll-margin-top: 84px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(225, 234, 232, 0.8);
  background: rgba(251, 253, 252, 0.85);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
  transition: color 140ms ease;
}

.nav a:hover {
  color: var(--teal-dark);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.lang-switch:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 22px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15.5px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button:active {
  transform: translateY(0);
}

.button.primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.28);
}

.button.primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.34);
}

.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.button.small {
  min-height: 38px;
  padding: 7px 16px;
  font-size: 14px;
  border-radius: 9px;
}

.nav .button.primary {
  color: #fff;
}

.button.inverted {
  background: #fff;
  color: var(--graphite);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.button.inverted:hover {
  background: var(--teal-soft);
}

/* ---------- Type ---------- */

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.6;
}

.section-sub {
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(56px, 8vw, 110px) clamp(18px, 4vw, 64px) clamp(56px, 7vw, 96px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 420px at 86% 8%, rgba(13, 148, 136, 0.1), transparent 64%),
    radial-gradient(560px 380px at 4% 92%, rgba(13, 148, 136, 0.06), transparent 60%);
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 26px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

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

.trust-strip li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

/* ---------- Hero visual (app window mock) ---------- */

.hero-visual {
  position: relative;
  min-width: 0;
}

.app-window {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.app-window-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.app-window-title {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.sync-feed {
  margin: 0;
  padding: 8px;
  list-style: none;
}

.sync-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-radius: 10px;
}

.sync-row + .sync-row {
  border-top: 1px solid var(--soft);
}

.sync-row:hover {
  background: var(--soft);
}

.sync-product {
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.chip.marketplace {
  background: #fdf1e3;
  color: #9a5b06;
}

.chip.emag {
  background: #e8effc;
  color: #28509e;
}

.chip.vivre {
  background: #fcebf1;
  color: #a3325f;
}

.chip.cel {
  background: #ece8fb;
  color: #5b3fa8;
}

.chip.order {
  background: #e6f3ec;
  color: #1f6b43;
}

.sync-status {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.sync-status.ok {
  color: var(--teal-dark);
}

.sync-status.ok::before {
  content: "✓ ";
}

.sync-status.pending {
  color: var(--muted);
}

.float-card {
  position: absolute;
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: 13px;
}

.float-card strong {
  font-size: 13.5px;
}

.float-card span {
  color: var(--muted);
}

.float-a {
  top: -22px;
  right: -14px;
  animation: float 7s ease-in-out infinite;
}

.float-b {
  bottom: -24px;
  left: -18px;
  animation: float 8s ease-in-out 1.2s infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-a, .float-b { animation: none; }
  .button, .nav a { transition: none; }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 8vw, 110px) clamp(18px, 4vw, 64px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 40px;
}

/* ---------- How it works ---------- */

.how {
  border-top: 1px solid var(--line);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

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

.step-num {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 15px;
  font-weight: 800;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- Features ---------- */

.features {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.feature-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 11px;
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.feature-card a {
  color: var(--teal-dark);
  font-weight: 600;
}

/* ---------- Marketplaces ---------- */

.marketplace-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marketplace-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 15.5px;
  font-weight: 700;
}

.marketplace-pill em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.marketplace-pill.live {
  border-color: rgba(13, 148, 136, 0.45);
  background: var(--teal-soft);
}

.marketplace-pill.live em {
  color: var(--teal-dark);
}

.marketplace-pill a {
  color: var(--teal-dark);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.16);
}

/* ---------- Pricing ---------- */

.pricing {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 16px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.price-card.featured {
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: 0 22px 60px rgba(13, 148, 136, 0.14);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan {
  margin: 0;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price strong {
  font-size: clamp(32px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.price span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.price-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: start;
  font-size: 15px;
}

.price-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-list li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 800;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
}

.faq-list summary {
  padding: 18px 22px;
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-list summary::after {
  content: "+";
  flex: none;
  color: var(--teal-dark);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  transition: transform 160ms ease;
}

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

.faq-list details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 15.5px;
}

.faq-list details a {
  color: var(--teal-dark);
  font-weight: 600;
}

/* ---------- CTA ---------- */

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(64px, 8vw, 104px) clamp(18px, 4vw, 64px);
  background:
    radial-gradient(640px 320px at 90% 0%, rgba(13, 148, 136, 0.22), transparent 60%),
    var(--graphite);
  color: #fff;
}

.cta .eyebrow {
  color: #7fe3d6;
}

.cta p {
  max-width: 560px;
  margin-bottom: 0;
  color: #b9cfca;
  font-size: 17px;
}

.cta h2 {
  max-width: 720px;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding: 30px clamp(18px, 4vw, 64px);
  color: var(--muted);
  font-size: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand div {
  display: grid;
  line-height: 1.35;
}

.footer-brand strong {
  color: var(--ink);
  font-size: 15px;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-weight: 600;
}

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

.footer-links a:hover {
  color: var(--teal-dark);
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero,
  .cta {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    max-width: 640px;
  }

  .float-a {
    top: -16px;
    right: 0;
  }

  .float-b {
    bottom: -18px;
    left: 0;
  }

  .step-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    position: static;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .step-grid,
  .feature-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .float-card {
    display: none;
  }

  .sync-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .sync-row .chip {
    display: none;
  }

  .cta .button {
    justify-self: start;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
