@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #0D9488;
  --primary-hover: #0F766E;
  --primary-light: #F0FDFA;
  --primary-border: #CCFBF1;
  --positive: #16A34A;
  --positive-light: #DCFCE7;
  --negative: #DC2626;
  --negative-light: #FEE2E2;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-alt: #F1F5F9;
  --border: #E2E8F0;
  --border-subtle: #F1F5F9;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 6px 12px -6px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #14B8A6;
    --primary-hover: #2DD4BF;
    --primary-light: rgba(20, 184, 166, 0.12);
    --primary-border: rgba(20, 184, 166, 0.25);
    --positive: #22C55E;
    --positive-light: rgba(34, 197, 94, 0.12);
    --negative: #F87171;
    --negative-light: rgba(248, 113, 113, 0.12);
    --bg: #0B0F17;
    --surface: #111827;
    --surface-alt: #1A2234;
    --border: #1F2937;
    --border-subtle: #18202F;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.5);
  }
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Header & Navigation */
header.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.88);
}

@media (prefers-color-scheme: dark) {
  header.site-header {
    background-color: rgba(17, 24, 39, 0.88);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.15s ease;
}

.brand:hover {
  transform: scale(1.02);
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 9999px;
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 700;
}

/* Modern Language Picker Pill */
.lang-picker {
  display: inline-flex;
  align-items: center;
  position: relative;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 6px 14px 6px 10px;
  gap: 6px;
  transition: all 0.15s ease;
  user-select: none;
}

.lang-picker:hover, .lang-picker:focus-within {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.globe-icon {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

.lang-picker select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  padding-right: 14px;
  padding-left: 2px;
  line-height: 1.2;
}

.lang-picker select option {
  background-color: var(--surface);
  color: var(--text-primary);
  font-weight: 600;
}

.lang-picker::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4.5px solid var(--text-muted);
  pointer-events: none;
}

@media (max-width: 720px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 12px 0;
    height: auto;
    padding: 14px 0 10px;
    align-items: center;
  }
  .brand {
    grid-column: 1;
    grid-row: 1;
  }
  .header-actions {
    display: contents;
  }
  .lang-picker {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-link {
    font-size: 0.84rem;
    padding: 6px 11px;
    white-space: nowrap;
  }
}

/* Hero Section */
.hero {
  padding: 48px 0 32px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 9999px;
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Main Content Card */
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .content-card {
    padding: 24px 18px;
  }
  .hero-title {
    font-size: 1.75rem;
  }
}

/* Typography Inside Content */
.prose h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-top: 22px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.prose p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
}

.prose ul, .prose ol {
  margin-bottom: 18px;
  padding-left: 24px;
  color: var(--text-secondary);
}

.prose li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.prose strong {
  color: var(--text-primary);
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease;
}

.prose a:hover {
  opacity: 0.8;
}

/* Callout Box */
.callout {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  margin: 22px 0;
  background-color: var(--surface-alt);
  border-left: 4px solid var(--primary);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.callout.callout-success {
  border-left-color: var(--positive);
  background-color: var(--positive-light);
}

.callout.callout-warning {
  border-left-color: var(--negative);
  background-color: var(--negative-light);
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

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

th {
  background-color: var(--surface-alt);
  color: var(--text-primary);
  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-secondary);
  line-height: 1.5;
}

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

/* Form Styles */
.form-group {
  margin-bottom: 22px;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 7px;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: normal;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input {
  margin-top: 4px;
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-size: 0.96rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.15s ease;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-danger {
  background-color: var(--negative);
  color: #FFFFFF;
}

.btn-danger:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

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

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

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.feature-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.feature-card-title {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Footer */
footer.site-footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--primary);
}
