:root {
  --bg: #0b1220;
  --panel: #121c31;
  --panel-soft: #182540;
  --text: #ecf2ff;
  --muted: #b8c4de;
  --primary: #6d7cff;
  --primary-2: #34d1bf;
  --border: #2a3a5f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, #1a2b56 0, transparent 35%),
    radial-gradient(circle at 85% 10%, #123f4f 0, transparent 30%),
    var(--bg);
}

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

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.lang-link {
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  margin-top: 18px;
  padding: 48px 30px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--panel), #10192c);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 760px;
}

.cta-row {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), #5668ff);
  color: #fff;
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text);
  background: var(--panel-soft);
}

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

.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(18, 28, 49, 0.9);
  padding: 22px;
}

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

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

.plans {
  margin-top: 28px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #111b30, #0e1527);
  padding: 24px;
}

.plan h4 {
  margin: 0;
  font-size: 1.2rem;
}

.price {
  margin: 12px 0 14px;
  font-size: 2rem;
  font-weight: 800;
}

.price span {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.plan ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--muted);
}

.plan.highlight {
  border-color: #4f8cff;
  box-shadow: 0 0 0 1px #4f8cff inset;
}

.compare {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0f182c;
  padding: 20px;
}

.compare h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
}

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--border);
  padding: 12px 10px;
  text-align: left;
}

.compare-table thead th {
  color: var(--primary-2);
  font-weight: 700;
}

.compare-table thead th:nth-child(2),
.compare-table thead th:nth-child(3) {
  text-align: center;
}

.compare-check-cell {
  text-align: center !important;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.check-pill.is-on {
  color: #0f1e26;
  border-color: #2ab6a6;
  background: linear-gradient(180deg, #42e3d0, #2ab6a6);
}

.check-pill.is-off {
  color: #c5d0e9;
  border-color: #3a4f7e;
  background: #16233d;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.api {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0f182c;
}

.api code {
  color: var(--primary-2);
}

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