:root {
  --bg: #ffffff;
  --fg: #1f2933;
  --heading: #12232e;
  --muted: #5c6b73;
  --accent: #2ec4b6;
  --accent-2: #55d6c2;
  --card: #f8fafa;
  --line: #e3e8ea;
  --radius: 16px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --max: 1120px;
  --prose-max: 42rem;
  --text-base: 1rem;
  --leading-body: 1.6;
  --leading-heading: 1.22;
  --space-section-y: clamp(3rem, 6vw, 4rem);
  --space-block: 1rem;
  --focus-color: var(--accent);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: 0.2s;
}

a:hover {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.main-nav a:hover,
.lang-picker__item:hover,
.profile-chip:hover,
.btn:hover {
  text-decoration: none;
}

a[aria-current="page"] {
  color: var(--accent);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 200;
  padding: 12px 20px;
  background: var(--heading);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
  position: fixed;
  left: clamp(16px, 4vw, 24px);
  top: 0;
  width: auto;
  height: auto;
  overflow: visible;
}

.lang-rail {
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
}

.lang-picker {
  position: relative;
}

.lang-picker__summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
}

.lang-picker__summary::-webkit-details-marker {
  display: none;
}

.lang-picker[open] .lang-picker__summary {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(46, 196, 182, 0.2);
}

.lang-picker__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 150;
  min-width: 13rem;
  max-height: min(70vh, 20rem);
  overflow-y: auto;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-picker__item {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--fg);
  text-decoration: none;
}

.lang-picker__item:hover {
  background: var(--card);
  text-decoration: none;
}

.lang-picker__item.is-current {
  color: var(--accent);
  background: var(--card);
}

.lang-picker__item.is-soon {
  color: var(--muted);
  font-weight: 500;
  cursor: default;
}

.footer-lang-note {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.nav-toggle:focus-visible,
.main-nav a:focus-visible,
.profile-chip:focus-visible,
.btn:focus-visible,
.lang-picker__summary:focus-visible,
.lang-picker__item:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 3px;
}

header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  position: relative;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--fg);
  flex: 1;
  min-width: 0;
}

.brand small {
  display: block;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--fg);
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--accent);
}

.main-nav {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0;
  padding: 12px 20px 16px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.main-nav.is-open {
  display: flex;
}

.main-nav a {
  padding: 12px 8px;
  font-weight: 600;
  border-radius: 8px;
}

.main-nav a:hover {
  background: var(--card);
}

.nav-social {
  font-weight: 600;
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: Merriweather, serif;
  font-weight: 700;
  color: var(--heading);
}

h1 {
  font-size: clamp(1.75rem, 4vw + 0.5rem, 2.75rem);
  line-height: var(--leading-heading);
  margin: 0 0 var(--space-block);
}

h2 {
  font-size: clamp(1.35rem, 2.5vw + 0.5rem, 1.85rem);
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  line-height: var(--leading-heading);
}

h3 {
  font-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.35rem);
  line-height: var(--leading-heading);
  margin: 1.25rem 0 0.75rem;
}

.page-title {
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1.25rem;
}

.lead,
.sub {
  color: var(--muted);
  line-height: var(--leading-body);
  font-size: 1.1rem;
  max-width: var(--prose-max);
}

.prose-block {
  max-width: var(--prose-max);
}

.hero {
  padding: 88px 0 48px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(46, 196, 182, 0.07) 0%, var(--bg) 42%);
}

.hero-wrap {
  max-width: 760px;
}

.kicker {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.5vw + 0.5rem, 3.2rem);
  line-height: var(--leading-heading);
  margin: 10px 0 14px;
}

.surface-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.surface-card--muted {
  background: linear-gradient(180deg, var(--card) 0%, var(--bg) 100%);
}

.surface-card--center {
  text-align: center;
}

.surface-card--center .sub {
  margin-left: auto;
  margin-right: auto;
}

.surface-card--center .cta {
  justify-content: center;
}

.roadmap-mirror {
  margin-top: 24px;
  margin-bottom: 0;
}

.surface-card h2 {
  margin-top: 0;
}

.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--fg);
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.profile-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(46, 196, 182, 0.15);
}

.roadmap-list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.65;
  color: var(--fg);
  max-width: var(--prose-max);
}

.roadmap-list li {
  margin-bottom: 12px;
}

.roadmap-list li::marker {
  color: var(--accent);
}

@media (max-width: 899px) {
  .hero {
    padding: 48px 0 40px;
  }
}

@media (min-width: 900px) {
  .brand small {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  .btn,
  .profile-chip,
  .card {
    transition: none;
  }

  .btn.primary:hover {
    transform: none;
  }
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: transparent;
  font-weight: 700;
  transition: 0.2s;
  cursor: pointer;
  text-align: center;
}

.btn.primary {
  background: var(--accent);
  color: #fff !important;
}

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

.btn.secondary {
  background: transparent;
  color: var(--accent);
}

.cta {
  margin: 22px 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.back-link {
  display: block;
  margin: 32px 0;
  text-align: center;
  font-weight: 600;
  color: var(--muted);
}

footer {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.social-footer {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-weight: 600;
}

.social-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-corporate {
  opacity: 0.92;
  font-size: 0.95rem;
}

.footer-meta {
  margin: 12px 0;
  font-size: 0.85rem;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    position: static;
    margin: 0 0 0 auto;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .main-nav a {
    padding: 4px 0;
  }

  .main-nav a:hover {
    background: transparent;
  }

  .brand small {
    font-size: 0.8rem;
  }
}
