/* Theme tokens (light/dark) live in theme.css — shared with the legal pages. */

body {
  background-color: var(--background);
  color: var(--muted);
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

header.header {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-solid);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--foreground);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
}

.brand__mark {
  color: var(--primary);
  font-size: 24px;
}

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

.header__cta {
  padding: 6px 16px;
  font-size: 13px;
}

/* ── Hero ── */
.hero {
  padding: 100px 0 60px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--foreground);
  margin: 0 auto 20px auto;
  line-height: 1.15;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--foreground) 30%,
    var(--primary) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
  text-align: center;
}

.hero__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(76, 111, 255, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(76, 111, 255, 0.45);
}

.btn--secondary {
  background: var(--surface);
  color: var(--foreground);
  border: 1px solid var(--border);
}

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

/* ── How it works (CSS pipeline) ── */
.diagram-section {
  padding: 60px 0;
  text-align: center;
}

.diagram-title {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  color: var(--foreground);
  margin-bottom: 40px;
}

.diagram-container {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 12px 32px rgba(30, 40, 70, 0.12);
  margin-bottom: 60px;
}

.flow {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.flow-pipe {
  background: var(--surface-inner);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 26px;
}

.flow-pipe__title {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
  text-align: left;
}

.flow-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.flow-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 4px 8px;
  min-width: 0;
}

.flow-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.flow-ico svg {
  width: 20px;
  height: 20px;
}

.flow-ico--accent {
  color: var(--primary);
  background: rgba(76, 111, 255, 0.12);
  border-color: rgba(76, 111, 255, 0.28);
}

.flow-ico--ok {
  color: var(--ok);
  background: rgba(24, 182, 122, 0.12);
  border-color: rgba(24, 182, 122, 0.28);
}

.flow-ico--edge {
  font-size: 22px;
  color: var(--primary);
  background: rgba(76, 111, 255, 0.16);
  border: 1.5px solid var(--primary);
  animation: pulse-border 2.4s infinite ease-in-out;
}

.flow-node__label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.3;
}

.flow-node--edge .flow-node__label {
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.02em;
}

.flow-node__sub {
  font-size: 11px;
  color: var(--muted);
}

.flow-link {
  flex: 0 0 56px;
  height: 2px;
  margin-top: 27px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(76, 111, 255, 0.5),
    rgba(24, 182, 122, 0.5)
  );
  background-size: 200% 100%;
  animation: flow-dash 3s linear infinite;
}

@keyframes flow-dash {
  to {
    background-position: -200% 0;
  }
}

@keyframes pulse-border {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(76, 111, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(76, 111, 255, 0);
  }
}

/* ── Card grids (how-it-works steps + why) ── */
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.detail-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 16px;
  text-align: left;
  transition: all 0.3s ease;
}

.detail-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.detail-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  color: var(--foreground);
  margin: 0 0 12px 0;
}

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

/* ── Generic content section ── */
.section {
  padding: 50px 0;
  text-align: center;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  color: var(--foreground);
  margin: 0 0 12px;
}

.section-lead {
  font-size: 15px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* ── Integrations ── */
.intg-groups {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 820px;
  margin: 0 auto;
}

.intg-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.intg-group__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.intg-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chip {
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  background: var(--surface);
  border: 1px solid var(--border-solid);
  border-radius: 999px;
  padding: 8px 16px;
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ── Closing CTA ── */
.cta-band {
  padding: 70px 0 90px;
  text-align: center;
}

.cta-band h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 30px;
  color: var(--foreground);
  margin: 0 0 10px;
}

.cta-band p {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 26px;
}

/* ── Footer ── (component lives in theme.css, shared across public pages) */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }
  .details-grid {
    grid-template-columns: 1fr;
  }
  .diagram-container {
    padding: 20px 16px;
  }
  .flow-row {
    flex-direction: column;
    align-items: stretch;
  }
  .flow-node {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 14px;
    padding: 4px 0;
  }
  .flow-link {
    flex-basis: 22px;
    width: 2px;
    height: 22px;
    margin: 2px 0 2px 22px;
    background: linear-gradient(
      180deg,
      rgba(76, 111, 255, 0.5),
      rgba(24, 182, 122, 0.5)
    );
  }
}

/* lang/theme selectors live in theme.css (shared footer component). */
