:root {
  --surface: #f8fafc;
  --surface-2: #ffffff;
  --surface-dark: #1c1c1e;
  --text: #334155;
  --text-strong: #111827;
  --muted: #6b7280;
  --faint: #94a3b8;
  --border: #d9dee6;
  --border-strong: #aeb8c5;
  --green: #22c55e;
  --green-hover: #16a34a;
  --focus: #0369a1;
  --danger: #b91c1c;
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 6px;
  --space-4: 8px;
  --space-5: 10px;
  --space-6: 14px;
  --space-7: 16px;
  --space-8: 20px;
  --space-9: 24px;
  --space-10: 32px;
  --space-11: 48px;
  --space-12: 64px;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --shadow-panel: rgba(15, 23, 42, 0.08) 0 18px 44px -20px, rgba(15, 23, 42, 0.08) 0 2px 8px -3px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text);
  background: var(--surface);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: var(--surface);
  color: var(--text);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button, a { color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Announcement Bar */
.announcement {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-2) 4vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--surface-dark);
  color: #f8fafc;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 12px;
}
.announcement > span {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-width: 0;
  color: #f8fafc;
}
.announcement i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  flex-shrink: 0;
  display: inline-block;
}
.announcement-metal {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.announcement-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 3px 10px;
  border-radius: 9999px;
  background: #ffffff;
  color: var(--text-strong);
  font-size: 11px;
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 150ms ease;
}
.announcement-cta:hover {
  color: #000000;
  background: #f8fafc;
}
.announcement-cta svg {
  color: var(--text);
  transition: transform 150ms ease;
}
.announcement-cta:hover svg {
  transform: translateX(2px);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 66px;
  padding: 0 max(var(--space-9), calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(248, 250, 252, 0.95);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-strong);
  font-weight: 700;
  letter-spacing: -.04em;
  font-size: 15px;
  text-decoration: none;
}
.brand svg { color: var(--green); }
.navbar nav { display: flex; align-items: center; gap: var(--space-8); }
.navbar nav a {
  font-size: 12px;
  color: var(--muted);
  position: relative;
  padding: var(--space-2) 0;
  text-decoration: none;
  transition: color 150ms ease;
}
.navbar nav a:hover { color: var(--text-strong); }
.navbar nav a.active-nav {
  color: var(--text-strong);
  font-weight: 600;
}
.navbar nav a.active-nav::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--green);
}
.nav-actions { display: flex; align-items: center; gap: var(--space-6); }
.language-switch { display: flex; align-items: center; gap: var(--space-2); font-size: 12px; }
.language-switch button, .language-switch a {
  position: relative;
  border: 0;
  padding: var(--space-2);
  background: transparent;
  color: var(--faint);
  font-weight: 500;
  text-decoration: none;
}
.language-switch .active { color: var(--text-strong); font-weight: 700; }
.language-switch .active::after {
  content: '';
  position: absolute;
  left: var(--space-2);
  right: var(--space-2);
  bottom: -2px;
  height: 2px;
  background: var(--green);
}
.menu-button {
  display: none;
  border: 0;
  background: transparent;
  padding: var(--space-4);
  color: var(--text-strong);
  cursor: pointer;
}

/* Primary CTA Button */
.cta-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-7);
  border-radius: var(--radius-md);
  border: 1px solid var(--green);
  font-weight: 500;
  font-size: 13px;
  transition: all 150ms ease;
  background: var(--green);
  color: #ffffff !important;
  text-decoration: none;
  cursor: pointer;
}
.cta-button:hover {
  transform: translateY(-1px);
  background: var(--green-hover);
  border-color: var(--green-hover);
  color: #ffffff;
}
.cta-button svg { color: #ffffff; }

/* Light Button */
.button.light {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-7);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  transition: all 150ms ease;
}
.button.light:hover {
  border-color: var(--border-strong);
  background: #ffffff;
  color: var(--text-strong);
  transform: translateY(-1px);
}

/* Mobile Sidebar Drawer */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -320px;
  width: 280px;
  height: 100%;
  height: 100dvh;
  background: var(--surface-2);
  border-left: 1px solid var(--border);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.1);
}
.mobile-sidebar.open { right: 0; }
.mobile-sidebar > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-9);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}
.mobile-sidebar > div:first-child button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: var(--space-2);
}
.mobile-sidebar nav { display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.mobile-sidebar nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-4);
  color: var(--text);
  font-size: 13px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 150ms ease;
}
.mobile-sidebar nav a:hover {
  background: var(--surface);
  color: var(--text-strong);
}
.mobile-sidebar-footer {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 95;
  border: 0;
  backdrop-filter: blur(2px);
}

/* Page Layout Container */
.page-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px var(--space-8) 80px;
  padding-bottom: max(80px, calc(48px + env(safe-area-inset-bottom)));
}

.kicker {
  margin: 0 0 var(--space-5);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 var(--space-6);
  letter-spacing: -0.03em;
  line-height: 1.3;
}

h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-strong);
  margin-top: 40px;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

p {
  color: var(--text);
  margin: 0 0 18px;
  line-height: 1.65;
  font-size: 14px;
}

ul, ol {
  padding-left: 24px;
  color: var(--text);
  margin: 0 0 24px;
}
li { margin-bottom: 8px; line-height: 1.6; }

/* Clean Modern Card */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  margin: 28px 0;
  box-shadow: var(--shadow-panel);
}
.card h2, .card h3 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 16px;
}

/* Links */
a.text-link {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}
a.text-link:hover {
  text-decoration: underline;
  color: var(--green-hover);
}

/* Footer Scaffold */
.scene-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  padding: 60px max(var(--space-8), calc((100vw - 1240px) / 2)) 40px;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: max(48px, calc(24px + env(safe-area-inset-bottom)));
}
.footer-mark { display: flex; flex-direction: column; gap: var(--space-4); }
.footer-mark strong {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-strong);
  font-size: 14px;
}
.footer-mark strong svg { color: var(--green); }
.footer-mark p { margin: 0; color: var(--muted); font-size: 12.5px; }
.footer-address {
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.65;
}
.footer-address a {
  color: var(--text);
  text-decoration: none;
}
.footer-address a:hover {
  color: var(--green);
}
.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-links-group h3 {
  margin: 0 0 var(--space-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--faint);
}
.footer-links-group a, .footer-links-group button {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  transition: color 150ms ease;
  cursor: pointer;
}
.footer-links-group a:hover, .footer-links-group button:hover {
  color: var(--text-strong);
}
.sub-footer {
  grid-column: 1 / -1;
  padding-top: var(--space-7);
  border-top: 1px solid var(--border);
}
.copyright-disclaimer {
  margin: 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.6;
}

/* Responsive Media Queries */
@media (max-width: 860px) {
  .navbar nav, .nav-actions > .cta-button { display: none; }
  .menu-button { display: grid; }
  .scene-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .announcement {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 24px;
    gap: 6px;
    font-size: 11.5px;
  }
  .announcement > span { max-width: 290px; }
  .navbar { height: 60px; padding: 0 var(--space-6); }
  .page-container { padding: 36px var(--space-6) 60px; }
  .scene-footer { grid-template-columns: 1fr; gap: var(--space-8); }
}
