:root {
  --bg: #ffffff;
  --bg-soft: #f5f8f8;
  --ink: #10201d;
  --text: #33433f;
  --muted: #64746f;
  --line: #e3eae8;
  --primary: #0f8f7e;
  --primary-dark: #0b7366;
  --primary-soft: #e6f5f2;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --amber: #f59e0b;
  --red: #e5484d;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 29, 0.05);
  --shadow: 0 12px 32px -12px rgba(16, 32, 29, 0.14);
  --shadow-lg: 0 32px 64px -28px rgba(15, 143, 126, 0.35);
  --header-h: 72px;
}

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

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

body {
  margin: 0;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

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

.text-accent {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 13px 24px;
  font-size: 1rem;
}

.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 6px 16px -6px rgba(15, 143, 126, 0.6);
}

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

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

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-light {
  color: var(--primary-dark);
  background: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.logo img {
  height: 34px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  transition: background-color 0.15s, color 0.15s;
}

.nav-links a:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.lang-switch a {
  padding: 3px 10px;
  border-radius: 6px;
  color: var(--muted);
}

.lang-switch a.is-active {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 1.125rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 96px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(15, 143, 126, 0.12), transparent 70%),
    linear-gradient(180deg, #f3faf8 0%, #ffffff 70%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 143, 126, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 60%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero-copy {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.eyebrow-pill {
  padding: 6px 14px;
  border: 1px solid rgba(15, 143, 126, 0.25);
  border-radius: 999px;
  background: #fff;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.125rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.hero h1 .text-accent {
  display: block;
}

.lead {
  max-width: 720px;
  margin: 22px auto 0;
  font-size: 1.125rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 28px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

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

.hero-points .icon {
  padding: 3px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  stroke-width: 2.6;
}

/* Hero board (sync flow illustration) */
.board {
  max-width: 980px;
  margin: 64px auto 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.board-flow {
  display: grid;
  grid-template-columns: 1fr 56px auto 56px 1fr;
  align-items: center;
  padding: 24px;
  border-radius: 16px;
  background: var(--bg-soft);
}

.board-col {
  display: grid;
  gap: 10px;
}

.board-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.chip-lg {
  padding: 16px 14px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
  background: var(--muted);
}

td .dot {
  margin-right: 8px;
}

.dot-amazon { background: #ff9900; }
.dot-etsy { background: #f1641e; }
.dot-ebay { background: #0064d2; }
.dot-tiktok { background: #111827; }
.dot-misa { background: #1a73e8; }
.dot-sapo { background: #0fb36c; }

.board-link {
  position: relative;
  height: 2px;
  margin: 0 8px;
  background-image: linear-gradient(90deg, var(--primary) 50%, transparent 50%);
  background-size: 10px 2px;
  animation: flow 0.9s linear infinite;
}

.board-link span {
  position: absolute;
  right: -2px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
  transform: translateY(-50%) rotate(45deg);
}

@keyframes flow {
  to {
    background-position: 10px 0;
  }
}

.board-hub {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  box-shadow: 0 16px 32px -14px rgba(15, 143, 126, 0.7);
}

.board-hub strong {
  font-size: 1.0625rem;
}

.board-hub small {
  font-size: 0.75rem;
  opacity: 0.85;
}

.hub-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.25rem;
}

.board-table {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.board-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9375rem;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary-dark);
}

.live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 143, 126, 0.18);
}

.board-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.board-table th,
.board-table td {
  padding: 12px 18px;
  text-align: left;
  white-space: nowrap;
}

.board-table th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
}

.board-table tbody tr + tr td {
  border-top: 1px solid var(--line);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  color: var(--muted);
}

.num {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-done {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.board-note {
  margin-top: 14px;
  font-size: 0.75rem;
  text-align: center;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(1.625rem, 3.4vw, 2.375rem);
  font-weight: 700;
}

.section-head p {
  margin-top: 16px;
  font-size: 1.0625rem;
  color: var(--muted);
}

.section-head-left {
  margin: 0;
  text-align: left;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

/* Cards */
.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

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

.card h3 {
  margin-bottom: 8px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.9375rem;
  color: var(--muted);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 11px;
  font-size: 1.125rem;
}

.card-problem .card-icon {
  background: #fdecec;
  color: var(--red);
}

.card-feature {
  --tone: var(--primary);
  --tone-soft: var(--primary-soft);
  border-top: 3px solid var(--tone);
}

.card-feature .card-icon {
  background: var(--tone-soft);
  color: var(--tone);
}

.tone-blue {
  --tone: var(--blue);
  --tone-soft: #e8f0fe;
}

.tone-violet {
  --tone: var(--violet);
  --tone-soft: #f0ebfe;
}

.tone-amber {
  --tone: var(--amber);
  --tone-soft: #fef4e0;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}

.step {
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px;
  left: 60px;
  right: -16px;
  height: 2px;
  background-image: linear-gradient(90deg, #b9ddd6 50%, transparent 50%);
  background-size: 10px 2px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.0625rem;
  box-shadow: 0 0 0 6px var(--primary-soft);
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.125rem;
  font-weight: 600;
}

.step p {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Integrations */
.integrations {
  display: grid;
  grid-template-columns: 1.4fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.integration-group {
  height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.integration-group h3 {
  margin-bottom: 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.integration-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.integration-list-1 {
  grid-template-columns: 1fr;
}

.integration {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}

.integration .dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.integration strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
}

.integration small {
  font-size: 0.8125rem;
  color: var(--muted);
}

.integration-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.125rem;
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: start;
}

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

.faq {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.faq[open] {
  border-color: rgba(15, 143, 126, 0.4);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

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

.faq summary .icon {
  color: var(--primary);
  transition: transform 0.2s;
}

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

.faq p {
  padding: 0 20px 20px;
  color: var(--muted);
}

/* CTA */
.section-cta {
  padding-top: 0;
}

.cta {
  position: relative;
  padding: 64px 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0f8f7e 0%, #0b6f7a 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.cta > * {
  position: relative;
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.625rem, 3.4vw, 2.25rem);
}

.cta p {
  max-width: 620px;
  margin: 16px auto 28px;
  font-size: 1.0625rem;
  opacity: 0.92;
}

/* Footer */
.site-footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 0.9375rem;
}

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

.footer-brand p {
  max-width: 380px;
  margin-top: 16px;
  color: var(--muted);
}

.site-footer h3 {
  margin-bottom: 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer li {
  padding: 4px 0;
  color: var(--text);
}

.site-footer li a:hover {
  color: var(--primary);
}

.footer-cols-2 {
  columns: 2;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}

.not-found {
  padding: 140px 0;
}

.not-found .btn {
  margin-top: 28px;
}

/* Scroll reveal (enabled by site.js) */
.has-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

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

  .board-link {
    animation: none;
  }
}

/* Responsive */
@media (max-width: 1023px) {
  .grid-4,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .step:not(:last-child)::after {
    display: none;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
  }

  .nav-tools {
    justify-content: space-between;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 48px 0 64px;
  }

  .section {
    padding: 64px 0;
  }

  .section-cta {
    padding-top: 0;
  }

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

  .section-head-left {
    margin-bottom: 0;
  }

  .grid-4,
  .grid-3,
  .steps,
  .integration-list {
    grid-template-columns: 1fr;
  }

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

  .hero-points {
    flex-direction: column;
    align-items: center;
  }

  .board {
    margin-top: 44px;
    padding: 14px;
    border-radius: 18px;
  }

  .board-flow {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 16px;
  }

  .board-link {
    width: 2px;
    height: 32px;
    margin: 8px auto;
    background-image: linear-gradient(180deg, var(--primary) 50%, transparent 50%);
    background-size: 2px 10px;
    animation: none;
  }

  .board-link span {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -2px;
    transform: translateX(-50%) rotate(135deg);
  }

  .board-table {
    overflow-x: auto;
  }

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

  .integration-arrow {
    margin: 0 auto;
    transform: rotate(90deg);
  }

  .cta {
    padding: 44px 20px;
  }

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