:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f9fbff;
  --text: #13233a;
  --muted: #506581;
  --brand: #1f6fe5;
  --accent: #18a999;
  --border: #dbe5f4;
  --success: #dcfce7;
  --success-text: #166534;
  --danger: #fee2e2;
  --danger-text: #991b1b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #eef4ff 0%, var(--bg) 55%, #edf6f3 100%);
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  padding: 20px 0 10px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.logo-mark {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), #0e4fb7);
  color: white;
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: 0 10px 24px rgba(31, 111, 229, 0.28);
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand);
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.lang-switcher button {
  margin-left: 8px;
  border: 1px solid var(--border);
  background: white;
  color: var(--brand);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.lang-switcher button.active,
.lang-switcher button:hover {
  background: var(--brand);
  color: white;
}

.hero {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(19, 35, 58, 0.08);
}

.hero-copy {
  padding: 28px;
}

.hero-panel {
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-soft) 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: #e8f0fe;
  color: #1046a6;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.lead {
  color: var(--muted);
  line-height: 1.58;
  font-size: 1.06rem;
  max-width: 70ch;
}

.cta-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-row {
  margin-top: 22px;
}

.panel-title,
.section-heading h2 {
  font-weight: 800;
  font-size: 1.2rem;
}

.hero-panel ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.55;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin: 18px 0 16px;
}

.card {
  padding: 22px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.field {
  margin-top: 12px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: .92rem;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

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

.btn.secondary {
  background: #e8f0fe;
  color: #1046a6;
}

.btn:hover {
  filter: brightness(0.98);
}

.result-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  min-height: 48px;
  background: #f6f8fb;
  color: var(--muted);
  border: 1px solid var(--border);
  white-space: pre-wrap;
}

.result-box.success {
  background: var(--success);
  color: var(--success-text);
  border-color: #bbf7d0;
}

.result-box.error {
  background: var(--danger);
  color: var(--danger-text);
  border-color: #fecaca;
}

.help-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}

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

.status-grid .meta,
.stacked .meta {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .74rem;
  margin-bottom: 4px;
}

.value {
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.stacked {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  color: var(--text);
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.proof-panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #bfd3f4;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.proof-panel .section-heading {
  margin-bottom: 10px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.proof-grid .value {
  font-weight: 700;
  word-break: break-word;
}

.feature-pill {
  background: #e8f0fe;
  color: #1046a6;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .85rem;
  font-weight: 700;
}

.feature-empty {
  color: var(--muted);
}

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.tier {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.tier.featured {
  border-color: #8fb4ff;
  box-shadow: 0 10px 26px rgba(31, 111, 229, 0.12);
}

.tier-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  background: #e8f0fe;
  color: #1046a6;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.tier h3 {
  margin: 12px 0 6px;
  font-size: 1.15rem;
}

.tier p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 24px 0 30px;
  color: var(--muted);
}

.footer a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

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

@media (max-width: 640px) {
  .header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .lang-switcher {
    display: flex;
    flex-wrap: wrap;
  }

  .container {
    width: min(100% - 24px, 1160px);
  }

  .hero-copy,
  .hero-panel,
  .card {
    padding: 18px;
  }

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