/* ==========================================================================
   TAKO — Brand-correct design system v2
   Ratio: 60% black / 20% yellow / 10% white / 10% purple
   Typography: Outfit (headlines, UPPERCASE) + Inter (body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand palette — strict */
  --black: #000000;
  --black-elev: #0a0a0c;        /* very subtle elevation for cards */
  --black-line: #18181c;        /* card borders */
  --yellow: #e5fa37;
  --yellow-soft: rgba(229, 250, 55, 0.12);
  --yellow-dim: rgba(229, 250, 55, 0.4);
  --white: #f5f5fa;
  --white-dim: rgba(245, 245, 250, 0.7);
  --white-mute: rgba(245, 245, 250, 0.45);
  --white-line: rgba(245, 245, 250, 0.08);
  --white-line-strong: rgba(245, 245, 250, 0.18);
  --purple: #733ee6;
  --purple-soft: rgba(115, 62, 230, 0.14);
  --purple-hover: #8557ee;

  /* Typography */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing — 8px baseline */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;

  /* Geometry */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

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

::selection { background: var(--yellow); color: var(--black); }

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; }

.divider {
  width: 100%;
  height: 1px;
  background: var(--white-line);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.display {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.display .accent { color: var(--yellow); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--yellow);
}

.lead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--white-dim);
  max-width: 38em;
  line-height: 1.6;
  font-weight: 400;
}

.h-eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-mute);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
}

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

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white-line-strong);
}

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

.btn-yellow {
  background: var(--yellow);
  color: var(--black);
}

.btn-yellow:hover {
  background: #f1ff5a;
  transform: translateY(-1px);
}

.btn-arrow {
  font-size: 1.1em;
  transition: transform 0.25s var(--ease);
  display: inline-block;
}

.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--yellow);
  transition: color 0.2s ease, gap 0.2s ease;
  width: fit-content;
}

.btn-link:hover {
  color: var(--yellow);
  gap: 12px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--white-line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__brand img {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.2s ease;
}

.nav__links a:hover { color: var(--yellow); }

.nav__cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav__burger {
  display: none;
  background: transparent;
  border: 1px solid var(--white-line-strong);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 920px) {
  .nav__links { display: none; }
  .nav__cta .btn-secondary { display: none; }
  .nav__burger { display: inline-block; }
}

/* ==========================================================================
   TICKER
   ========================================================================== */

.ticker {
  background: var(--black);
  border-bottom: 1px solid var(--white-line);
  border-top: 1px solid var(--white-line);
  padding: 12px 0;
  margin-top: 72px;
  overflow: hidden;
  position: relative;
}

.ticker::before, .ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(to right, var(--black), transparent); }
.ticker::after { right: 0; background: linear-gradient(to left, var(--black), transparent); }

.ticker__track {
  display: flex;
  gap: 48px;
  animation: ticker-scroll 70s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.ticker__symbol { color: var(--white); }
.ticker__price { color: var(--white-dim); }
.ticker__delta-up { color: var(--yellow); }
.ticker__delta-down { color: var(--white-mute); }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 8vw, 96px);
  overflow: hidden;
}

.hero__octopus {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 36vw, 560px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  filter: brightness(1.3);
}

@media (max-width: 760px) {
  .hero__octopus { right: -25%; opacity: 0.06; top: 60%; }
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.hero__eyebrow {
  margin-bottom: 32px;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.1s forwards;
}

.hero__title {
  margin-bottom: 32px;
}

.hero__title .line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  animation: rise 1s var(--ease) forwards;
}

.hero__title .line:nth-child(1) { animation-delay: 0.2s; }
.hero__title .line:nth-child(2) { animation-delay: 0.35s; }
.hero__title .line:nth-child(3) { animation-delay: 0.5s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero__lead {
  margin-bottom: 40px;
  opacity: 0;
  animation: rise 1s var(--ease) 0.65s forwards;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: rise 1s var(--ease) 0.8s forwards;
}

/* Wordmark display block (below CTAs or as sub-hero) */
.hero__wordmark {
  margin-top: clamp(40px, 6vw, 64px);
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: rise 1.2s var(--ease) 1s forwards;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  height: clamp(110px, 18vw, 220px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__wordmark img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 60px rgba(115, 62, 230, 0.25));
}

/* ==========================================================================
   STATS STRIP
   ========================================================================== */

.stats {
  border-top: 1px solid var(--white-line);
  border-bottom: 1px solid var(--white-line);
  padding: clamp(40px, 6vw, 64px) 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 760px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
}

.stat {
  position: relative;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--white);
}

.stat__value .unit { color: var(--yellow); }

.stat__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--white-mute);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */

.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: end;
}

@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
}

.section-head__title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-head__title .accent { color: var(--yellow); }

.section-head__lead {
  font-size: 1rem;
  color: var(--white-dim);
  font-family: var(--font-body);
}

/* ==========================================================================
   PILLARS
   ========================================================================== */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 760px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

.pillar {
  background: var(--black-elev);
  border: 1px solid var(--black-line);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.pillar:hover {
  border-color: var(--yellow-dim);
  transform: translateY(-4px);
}

.pillar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--yellow-soft) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.pillar:hover::before { opacity: 1; }

.pillar__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  position: relative;
}

.pillar__num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-mute);
}

.pillar__icon {
  width: 28px;
  height: 28px;
  stroke: var(--yellow);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 16px;
  position: relative;
}

.pillar__title .accent { color: var(--yellow); }

.pillar__body {
  color: var(--white-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: auto;
  position: relative;
}

.pillar__link {
  margin-top: 32px;
  position: relative;
}

.pillar--wide { grid-column: span 2; }
@media (max-width: 760px) { .pillar--wide { grid-column: span 1; } }

/* ==========================================================================
   COMMUNITY BLOCK
   ========================================================================== */

.community-card {
  background: var(--black-elev);
  border: 1px solid var(--black-line);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 64px);
  position: relative;
  overflow: hidden;
}

.community-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at 100% 100%, var(--purple-soft) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.community-card__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .community-card__inner { grid-template-columns: 1fr; }
}

.community__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 16px 0 20px;
}

.community__title .accent { color: var(--yellow); }

.community__lead {
  color: var(--white-dim);
  font-size: 1rem;
  margin-bottom: 32px;
}

.lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.lang-chip {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--white-line-strong);
  border-radius: 999px;
  color: var(--white-dim);
}

.community__cta { display: flex; gap: 10px; flex-wrap: wrap; }

.platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.platform {
  text-align: left;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--black);
  border: 1px solid var(--white-line);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform:hover {
  border-color: var(--yellow);
  transform: translateY(-2px);
}

.platform__icon {
  width: 32px;
  height: 32px;
  fill: var(--yellow);
}

.platform__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.platform__meta {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--white-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ==========================================================================
   JOURNAL CARDS
   ========================================================================== */

.journal-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .journal-grid { grid-template-columns: 1fr; }
}

.article {
  display: flex;
  flex-direction: column;
  background: var(--black-elev);
  border: 1px solid var(--black-line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.article:hover {
  border-color: var(--yellow-dim);
  transform: translateY(-3px);
}

.article__thumb {
  height: 220px;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.article__thumb svg {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
}

.article--feature .article__thumb { height: 280px; }

.article__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--white-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article__tag { color: var(--yellow); }

.article__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.article--feature .article__title { font-size: 1.75rem; }

.article__excerpt {
  color: var(--white-dim);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.article__read {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.article__read::after {
  content: '→';
  color: var(--yellow);
  transition: transform 0.3s ease;
}

.article:hover .article__read::after { transform: translateX(4px); }

/* ==========================================================================
   CTA STRIPE
   ========================================================================== */

.cta-stripe {
  padding: clamp(64px, 10vw, 120px) 0;
  position: relative;
  overflow: hidden;
}

.cta-stripe__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.04;
  pointer-events: none;
}

.cta-stripe__bg img {
  width: clamp(400px, 50vw, 700px);
}

.cta-stripe__inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-stripe__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin-bottom: 24px;
}

.cta-stripe__title .accent { color: var(--yellow); }

.cta-stripe__lead {
  font-size: 1.1rem;
  color: var(--white-dim);
  margin-bottom: 40px;
}

.cta-stripe__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--black);
  border-top: 1px solid var(--white-line);
  padding: 64px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

.footer__brand img {
  height: 36px;
  margin-bottom: 20px;
}

.footer__tagline {
  color: var(--white-dim);
  font-size: 0.92rem;
  max-width: 28em;
  margin-bottom: 24px;
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-mute);
  margin-bottom: 20px;
}

.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 10px; }
.footer__col a {
  font-size: 0.9rem;
  color: var(--white-dim);
  font-family: var(--font-body);
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--yellow); }

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--white-line-strong);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--white);
}

.socials a:hover {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--black);
}

.socials svg { width: 16px; height: 16px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--white-line);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--white-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.center-cta {
  margin-top: 48px;
  text-align: center;
}

/* ==========================================================================
   LANGUAGE SWITCHER
   ========================================================================== */

.lang-switcher {
  position: relative;
}

.lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white-line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.lang-switcher__btn:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.lang-switcher__flag {
  font-size: 1.05rem;
  line-height: 1;
  /* Force emoji rendering even where system might substitute */
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}

.lang-switcher__code {
  text-transform: uppercase;
}

.lang-switcher__caret {
  font-size: 0.7rem;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.lang-switcher__btn[aria-expanded="true"] .lang-switcher__caret {
  transform: rotate(180deg);
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--black-elev);
  border: 1px solid var(--white-line-strong);
  border-radius: var(--radius);
  padding: 6px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 110;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.lang-switcher__menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher__menu li {
  list-style: none;
}

.lang-switcher__menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: var(--white-dim);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switcher__menu button:hover {
  background: var(--yellow-soft);
  color: var(--white);
}

.lang-switcher__menu button.is-active {
  background: var(--yellow-soft);
  color: var(--yellow);
  font-weight: 600;
}

.lang-switcher__menu .lang-flag {
  font-size: 1.15rem;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  line-height: 1;
}

.lang-switcher__menu .lang-label {
  flex: 1;
}

/* On smaller screens, hide the "Join Signals" secondary button but keep the
   language switcher visible — it's a more critical control */
@media (max-width: 920px) {
  .lang-switcher__btn {
    padding: 8px 10px;
    font-size: 0.78rem;
  }
  .lang-switcher__code {
    display: none; /* On mobile show just the flag + caret */
  }
}
