:root {
  color-scheme: light;
  --bg: #071833;
  --bg-accent: #0f667a;
  --surface: rgba(255, 255, 255, 0.94);
  --text: #122033;
  --muted: #5d6a7d;
  --line: rgba(18, 32, 51, 0.12);
  --primary: #f66d4a;
  --primary-dark: #cf5638;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "SF Pro Display", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(111, 238, 223, 0.28), transparent 34%),
    linear-gradient(140deg, var(--bg) 0%, var(--bg-accent) 48%, #f66d4a 100%);
  min-height: 100vh;
}

.shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(7, 24, 51, 0.18);
  overflow: hidden;
}

.hero {
  padding: 32px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

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

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.nav a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(7, 24, 51, 0.06);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: transform 140ms ease, background 140ms ease;
}

.nav a:hover,
.button:hover {
  transform: translateY(-1px);
  background: rgba(7, 24, 51, 0.1);
}

.nav a.primary,
.button.primary {
  background: var(--primary);
  color: white;
}

.nav a.primary:hover,
.button.primary:hover {
  background: var(--primary-dark);
}

.content {
  padding: 28px 32px 36px;
}

.content h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.content h3 {
  margin: 28px 0 10px;
  font-size: 1rem;
}

.content p,
.content li {
  color: var(--muted);
  line-height: 1.7;
}

.content ul {
  padding-left: 18px;
}

.footer {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(7, 24, 51, 0.03);
}

.meta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}

.callout {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(7, 24, 51, 0.04);
  color: var(--muted);
}

.callout.warning {
  border-color: rgba(246, 109, 74, 0.24);
  background: rgba(246, 109, 74, 0.08);
  color: var(--text);
}

.support-form {
  margin-top: 14px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  color: var(--text);
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(246, 109, 74, 0.28);
  border-color: rgba(246, 109, 74, 0.4);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.status-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.status-message.success {
  color: #1d7f46;
}

.status-message.error {
  color: #b5452f;
}

code {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.9em;
}

/* Language toggle bar */
.lang-bar {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 14px;
}

.lang-btn {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 140ms ease;
}

.lang-btn.active,
.lang-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(246, 109, 74, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Stat strip */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 100px;
}

.stat strong {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--primary);
}

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

/* Panel icon */
.panel-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

/* Free vs Premium table */
.free-vs-premium {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.free-vs-premium table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-top: 16px;
}

.free-vs-premium th,
.free-vs-premium td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.free-vs-premium th {
  font-weight: 700;
  color: var(--text);
  background: rgba(7, 24, 51, 0.03);
}

.free-vs-premium td:nth-child(2),
.free-vs-premium td:nth-child(3),
.free-vs-premium th:nth-child(2),
.free-vs-premium th:nth-child(3) {
  text-align: center;
  width: 80px;
}

.free-vs-premium td:nth-child(3) {
  color: var(--primary);
  font-weight: 600;
}

.free-vs-premium tr:last-child td {
  border-bottom: none;
}

.footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 920px);
    padding-top: 20px;
  }

  .hero,
  .content {
    padding: 22px;
  }

  .stat-strip {
    gap: 12px;
  }

  .free-vs-premium table {
    font-size: 0.85rem;
  }
}
