:root {
  color-scheme: dark;
  --fl-bg: #0a0a0a;
  --fl-bg-alt: #0d0d0d;
  --fl-surface: #111111;
  --fl-surface-2: #1a1a1a;
  --fl-border: #2a2a2a;
  --fl-border-2: #444444;
  --fl-muted-4: #666666;
  --fl-muted-3: #777777;
  --fl-muted-2: #888888;
  --fl-muted-1: #999999;
  --fl-fg: #f5f5f5;
  --fl-fg-bright: #ffffff;
  --fl-dot: #2a2a2a;
  --fl-accent: #c9943a;
  --fl-accent-fg: #0a0a0a;
  --font-sans: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

html[data-theme='light'] {
  color-scheme: light;
  --fl-bg: #f5f5f5;
  --fl-bg-alt: #f0f0f0;
  --fl-surface: #fafafa;
  --fl-surface-2: #eeeeee;
  --fl-border: #d4d4d4;
  --fl-border-2: #aaaaaa;
  --fl-muted-4: #999999;
  --fl-muted-3: #888888;
  --fl-muted-2: #777777;
  --fl-muted-1: #666666;
  --fl-fg: #0a0a0a;
  --fl-fg-bright: #000000;
  --fl-dot: #cccccc;
  --fl-accent: #b07e28;
  --fl-accent-fg: #0a0a0a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--fl-bg);
  background-image: radial-gradient(circle, var(--fl-dot) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--fl-fg);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--fl-fg-bright);
}

button {
  font: inherit;
}

svg {
  display: block;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--fl-border);
  background: var(--fl-surface);
  color: var(--fl-muted-2);
  cursor: pointer;
  padding: 0;
}

.menu-toggle:hover {
  color: var(--fl-fg);
}

.menu-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.menu-icon-close,
.menu-toggle[aria-expanded='true'] .menu-icon-open {
  display: none;
}

.menu-toggle[aria-expanded='true'] .menu-icon-close {
  display: block;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--fl-border);
  background: color-mix(in srgb, var(--fl-bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 68rem);
  height: 3.5rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fl-fg);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a,
.theme-current,
.theme-options button,
.eyebrow,
.btn,
.footer-label,
.footer-grid a {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--fl-muted-2);
  transition: color 0.2s ease;
}

.theme-menu {
  position: relative;
  display: inline-block;
}

.theme-current,
.theme-options {
  border: 1px solid var(--fl-border);
  background: var(--fl-surface);
}

.theme-current,
.theme-options button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: var(--fl-muted-2);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.theme-current {
  border: 1px solid var(--fl-border);
  background: var(--fl-surface);
}

.theme-options {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 20;
  display: none;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--fl-bg) 72%, transparent);
}

.theme-menu.is-open .theme-options {
  display: inline-flex;
}

.theme-options button {
  border-right: 1px solid var(--fl-border);
}

.theme-options button:last-child {
  border-right: 0;
}

.theme-current:hover,
.theme-options button:hover,
.theme-options button[aria-pressed='true'] {
  background: var(--fl-surface-2);
  color: var(--fl-fg);
}

.theme-menu svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

main {
  min-height: calc(100vh - 3.5rem);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: calc(100vh - 3.5rem);
  padding: 150px 1.5rem 5rem;
  text-align: center;
}

.language-orbit {
  position: relative;
  width: min(100%, 32rem);
  height: 21rem;
  margin-bottom: 3.5rem;
}

.orbit-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8.75rem;
  height: 8.75rem;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.language-bubble {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: max-content;
  border: 1px solid var(--fl-border);
  border-radius: 999px;
  background: var(--fl-surface);
  color: var(--fl-fg);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--fl-bg) 70%, transparent);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.45rem 0.7rem;
  white-space: nowrap;
  animation: bubble-in 0.42s ease both, bubble-float 3.4s ease-in-out infinite;
}

.language-bubble span {
  font-size: 0.875rem;
}

.bubble-1 {
  transform: translate(calc(-50% + 0rem), calc(-50% - 9.3rem));
  animation-delay: 0s, 0s;
}

.bubble-2 {
  transform: translate(calc(-50% + 5.7rem), calc(-50% - 7.65rem));
  animation-delay: 0.08s, 0.25s;
}

.bubble-3 {
  transform: translate(calc(-50% + 9.2rem), calc(-50% - 2.9rem));
  animation-delay: 0.16s, 0.5s;
}

.bubble-4 {
  transform: translate(calc(-50% + 8.65rem), calc(-50% + 3.55rem));
  animation-delay: 0.24s, 0.75s;
}

.bubble-5 {
  transform: translate(calc(-50% + 5.05rem), calc(-50% + 7.9rem));
  animation-delay: 0.32s, 1s;
}

.bubble-6 {
  transform: translate(calc(-50% - 5.05rem), calc(-50% + 7.9rem));
  animation-delay: 0.4s, 1.25s;
}

.bubble-7 {
  transform: translate(calc(-50% - 8.65rem), calc(-50% + 3.55rem));
  animation-delay: 0.48s, 1.5s;
}

.bubble-8 {
  transform: translate(calc(-50% - 9.2rem), calc(-50% - 2.9rem));
  animation-delay: 0.56s, 1.75s;
}

.bubble-9 {
  transform: translate(calc(-50% - 5.7rem), calc(-50% - 7.65rem));
  animation-delay: 0.64s, 2s;
}

.bubble-10 {
  transform: translate(calc(-50% + 0rem), calc(-50% + 10.05rem));
  animation-delay: 0.72s, 2.25s;
}

@keyframes bubble-in {
  from {
    opacity: 0;
    scale: 0.92;
  }

  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes bubble-float {
  0%,
  100% {
    margin-top: 0;
  }

  50% {
    margin-top: -0.45rem;
  }
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--fl-muted-2);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.04em;
}

h1 {
  max-width: 38rem;
  margin-bottom: 1rem;
  color: var(--fl-fg);
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.04;
}

.hero-subtitle {
  max-width: 42rem;
  margin-bottom: 2rem;
  color: var(--fl-muted-1);
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 2rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--fl-accent);
  color: var(--fl-accent-fg);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--fl-accent) 88%, var(--fl-fg));
  color: var(--fl-accent-fg);
}

.btn-secondary {
  border: 1px solid var(--fl-border);
  color: var(--fl-muted-1);
}

.btn-secondary:hover {
  border-color: var(--fl-border-2);
  color: var(--fl-fg);
}

.section {
  width: min(100%, 68rem);
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
}

.section h2 {
  max-width: 44rem;
  margin-bottom: 2rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.05;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.info-card,
.source-panel {
  border: 1px solid var(--fl-border);
  background: var(--fl-surface);
}

.feature-card {
  padding: 1.5rem;
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--fl-border);
}

.card-icon {
  color: var(--fl-muted-2);
  font-size: 0.75rem;
  font-weight: 700;
}

.feature-card h3,
.info-card h3 {
  margin-bottom: 0;
  color: var(--fl-fg);
  font-size: 0.95rem;
  line-height: 1.25;
}

.feature-card p,
.info-card p,
.source-copy p {
  margin-bottom: 0;
  color: var(--fl-muted-1);
  font-size: 0.8rem;
  line-height: 1.7;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.stacked-cards {
  display: grid;
  gap: 1rem;
}

.info-card {
  padding: 1.5rem;
}

.info-card span {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--fl-muted-2);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.info-card h3 {
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
}

.info-card a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--fl-accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.source-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 5rem;
  padding: 2rem;
}

.source-copy h2 {
  margin-bottom: 0.75rem;
}

footer {
  border-top: 1px solid var(--fl-border);
  padding: 2.5rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  width: min(100%, 56rem);
  margin: 0 auto;
}

.footer-grid div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-label {
  color: var(--fl-muted-2);
}

.footer-muted,
.footer-grid a {
  color: var(--fl-muted-3);
  font-size: 0.6875rem;
}

.footer-grid a {
  transition: color 0.2s ease;
}

@media (max-width: 800px) {
  .nav-inner {
    height: auto;
    min-height: 3.5rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-actions {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1rem;
    border-top: 1px solid var(--fl-border);
    padding-top: 1rem;
  }

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

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    overflow-x: visible;
    padding-top: 0;
  }

  .nav-links a {
    border: 1px solid var(--fl-border);
    background: var(--fl-surface);
    padding: 0.85rem 1rem;
  }

  .theme-menu {
    width: max-content;
  }

  .theme-options {
    top: 0;
    right: auto;
    left: calc(100% + 0.5rem);
  }

  .hero {
    min-height: auto;
    padding-top: 150px;
  }

  .language-orbit {
    height: 18rem;
  }

  .orbit-logo {
    width: 6.75rem;
    height: 6.75rem;
  }

  .language-bubble {
    font-size: 0.625rem;
    padding: 0.38rem 0.6rem;
  }

  .language-bubble span {
    font-size: 0.75rem;
  }

  .bubble-1 {
    transform: translate(calc(-50% + 0rem), calc(-50% - 7.55rem));
  }

  .bubble-2 {
    transform: translate(calc(-50% + 4.65rem), calc(-50% - 6.2rem));
  }

  .bubble-3 {
    transform: translate(calc(-50% + 7.35rem), calc(-50% - 2.35rem));
  }

  .bubble-4 {
    transform: translate(calc(-50% + 6.85rem), calc(-50% + 2.9rem));
  }

  .bubble-5 {
    transform: translate(calc(-50% + 4.05rem), calc(-50% + 6.45rem));
  }

  .bubble-6 {
    transform: translate(calc(-50% - 4.05rem), calc(-50% + 6.45rem));
  }

  .bubble-7 {
    transform: translate(calc(-50% - 6.85rem), calc(-50% + 2.9rem));
  }

  .bubble-8 {
    transform: translate(calc(-50% - 7.35rem), calc(-50% - 2.35rem));
  }

  .bubble-9 {
    transform: translate(calc(-50% - 4.65rem), calc(-50% - 6.2rem));
  }

  .bubble-10 {
    transform: translate(calc(-50% + 0rem), calc(-50% + 8rem));
  }

  .features-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .source-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand span {
    display: none;
  }

  .nav-links a,
  .theme-current,
  .theme-options button,
  .eyebrow,
  .btn,
  .footer-label,
  .footer-grid a {
    font-size: 0.625rem;
  }

  .cta-row,
  .btn {
    width: 100%;
  }

  .section {
    padding-bottom: 4rem;
  }

  .language-orbit {
    width: min(100%, 23rem);
    height: 15.5rem;
  }

  .orbit-logo {
    width: 5.5rem;
    height: 5.5rem;
  }

  .bubble-1 {
    transform: translate(calc(-50% + 0rem), calc(-50% - 6.4rem));
  }

  .bubble-2 {
    transform: translate(calc(-50% + 3.95rem), calc(-50% - 5.1rem));
  }

  .bubble-3 {
    transform: translate(calc(-50% + 6rem), calc(-50% - 1.8rem));
  }

  .bubble-4 {
    transform: translate(calc(-50% + 5.55rem), calc(-50% + 2.45rem));
  }

  .bubble-5 {
    transform: translate(calc(-50% + 3.25rem), calc(-50% + 5.3rem));
  }

  .bubble-6 {
    transform: translate(calc(-50% - 3.25rem), calc(-50% + 5.3rem));
  }

  .bubble-7 {
    transform: translate(calc(-50% - 5.55rem), calc(-50% + 2.45rem));
  }

  .bubble-8 {
    transform: translate(calc(-50% - 6rem), calc(-50% - 1.8rem));
  }

  .bubble-9 {
    transform: translate(calc(-50% - 3.95rem), calc(-50% - 5.1rem));
  }

  .bubble-10 {
    transform: translate(calc(-50% + 0rem), calc(-50% + 6.8rem));
  }
}
