:root {
  --primary: #142850;
  --primary-light: #1e3a8a;
  --accent-teal: #0d9488;
  --accent-coral: #f43f5e;
  --accent-gold: #f59e0b;
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-light: #64748b;
  --border: #e2e8f0;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(20, 40, 80, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  background: linear-gradient(135deg, #142850 0%, #1e3a8a 60%, #0d9488 100%);
  color: white;
  padding: 36px 0 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(20, 40, 80, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

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

.brand-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  background: white;
  padding: 2px;
  display: block;
}

.brand-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.95rem;
  color: #cbd5e1;
  font-weight: 400;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  padding: 4px;
  gap: 4px;
}

.lang-btn {
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.lang-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.2);
}

/* Main Content */
main {
  padding: 32px 0 64px 0;
}

/* Trust Badges */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.trust-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.trust-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.trust-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.trust-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.trust-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Navigation Pills */
.nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding: 12px 16px;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
}

.nav-pill {
  font-size: 0.85rem;
  color: var(--primary-light);
  text-decoration: none;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.2s;
}

.nav-pill:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Card Container */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.tag-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 18px;
}

.card-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--primary);
  margin-bottom: 12px;
}

.subtitle-edition {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 32px 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--surface-alt);
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 20px 0 8px 0;
}

p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.98rem;
}

ul {
  margin: 0 0 16px 24px;
  color: var(--text-muted);
}

li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

strong {
  color: var(--text-main);
}

code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #0f172a;
}

a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-coral);
}

/* Info Box */
.info-box {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
  color: #166534;
  font-size: 0.95rem;
}

.info-box-title {
  font-weight: 700;
  margin-bottom: 4px;
  color: #14532d;
}

/* Package List */
.package-matrix {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 16px 0 24px 0;
}

.package-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}

.package-item:last-child {
  border-bottom: none;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  margin: 20px 0 28px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

th {
  background: var(--surface-alt);
  color: var(--text-main);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: #f8fafc;
}

/* Footer */
footer {
  background: white;
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-light);
  font-size: 0.88rem;
}

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

@media (max-width: 680px) {
  .card {
    padding: 24px 18px;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .lang-switcher {
    align-self: flex-end;
    margin-top: -44px;
  }
}
