:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --text: #0a0a0a;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --border-strong: #d4d4d8;
  --accent: #0a0a0a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --maxw: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  margin: 0;
  color: var(--text-muted);
}

.container {
  width: min(var(--maxw), 92%);
  margin: 0 auto;
}

/* ---------- Section rhythm ---------- */
.section {
  padding: 96px 0;
}

.section--centered {
  text-align: center;
}

.section h2 {
  font-size: clamp(28px, 3.2vw, 40px);
}

.section__lead {
  max-width: 640px;
  margin: 18px auto 0;
  font-size: 18px;
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button--primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.button--primary:hover {
  background: #262626;
  border-color: #262626;
}

.button--outline {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border-strong);
}

.button--outline:hover {
  border-color: var(--accent);
}

/* Legacy modifiers kept for legal/meta pages — mapped to outline look */
.button--soft,
.button--light {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border-strong);
}

.button--soft:hover,
.button--light:hover {
  border-color: var(--accent);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand__logo {
  width: 104px;
  height: 40px;
  object-fit: contain;
}

.brand__text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

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

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

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

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
}

.lang-switch__btn {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch__btn:hover {
  color: var(--text);
}

.lang-switch__btn.is-active {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

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

.hero__content {
  max-width: 540px;
}

.hero__content h1 {
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero__content p {
  margin: 22px 0 32px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-muted);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero-image {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  padding: 12px;
  overflow: hidden;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

/* ---------- Generic cards grid ---------- */
.cards {
  margin-top: 48px;
}

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

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: left;
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: var(--border-strong);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.how-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ---------- Features 3x2 grid ---------- */
.features-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  text-align: left;
  transition: border-color 0.15s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
}

.feature-card h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---------- Integrations grid ---------- */
.integrations {
  text-align: center;
}

.integrations-lead {
  max-width: 560px;
  margin: 14px auto 0;
  font-size: 17px;
  color: var(--text-muted);
}

.integrations-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.integration-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  transition: border-color 0.15s ease;
}

.integration-item:hover {
  border-color: var(--border-strong);
}

.integration-item img {
  width: 28px;
  height: 28px;
  display: block;
}

.integration-item span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ---------- Pricing ---------- */
.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: left;
  transition: border-color 0.15s ease;
}

.price-card:hover {
  border-color: var(--border-strong);
}

.price-card--featured {
  border-color: var(--accent);
}

.price-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.price-card__value {
  margin: 8px 0 4px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.price-card > p {
  font-size: 14px;
  color: var(--text-muted);
}

.price-card__list {
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  text-align: left;
}

.price-card__list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text);
}

.price-card__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
}

.price-card__list li:last-child {
  margin-bottom: 0;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin: 44px auto 0;
  text-align: left;
}

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

.faq__item:last-child {
  border-bottom: 1px solid var(--border);
}

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

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

.faq__item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
}

.faq__item[open] summary::after {
  content: "\2212";
}

.faq__item p {
  margin: 0;
  padding: 0 4px 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------- CTA ---------- */
.section--cta {
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.cta-inner {
  max-width: 680px;
  margin: 0 auto;
}

.cta h2 {
  font-size: clamp(28px, 3.4vw, 42px);
}

.cta p {
  margin: 16px auto 28px;
  max-width: 540px;
  font-size: 18px;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer__inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__inner a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer__inner a:hover {
  color: var(--text);
}

/* ---------- Legal / Meta pages ---------- */
.legal-page {
  min-height: 100vh;
}

.legal-content {
  max-width: 760px;
}

.legal-content h1 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 16px;
}

.legal-content h2 {
  font-size: 20px;
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-content p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.legal-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 56px 0;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nav {
    display: none;
  }

  .cards--three,
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 600px) {
  .cards--three,
  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding: 40px 0 44px;
  }

  .hero__content h1 {
    font-size: 32px;
  }

  .hero__content p {
    font-size: 16px;
  }

  .hero__buttons .button {
    flex: 1 1 auto;
  }

  .hero-image {
    padding: 8px;
  }
}
