/* =========================
   ROOT VARIABLES
========================= */

:root {
  --bg: #050505;
  --bg-elevated: #0b0b0b;
  --bg-soft: #111111;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --muted-2: rgba(255, 255, 255, 0.46);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --panel: rgba(255, 255, 255, 0.04);
  --panel-hover: rgba(255, 255, 255, 0.06);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1180px;
  --shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
}

/* =========================
   RESET
========================= */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), transparent 24%),
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.03), transparent 20%),
    linear-gradient(180deg, #000000 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  top: 0 !important;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: 3px;
}

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

.container {
  width: min(100%, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section,
.section-first {
  padding: 104px 0;
}

.section-first {
  padding-top: 88px;
}

.section {
  position: relative;
  border-top: 1px solid var(--line);
}

.section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 15%,
    rgba(255, 255, 255, 0.08) 85%,
    transparent 100%
  );
  pointer-events: none;
}

.hidden {
  display: none !important;
}

.center-content {
  text-align: center;
}

.large-text {
  font-size: clamp(1.04rem, 2vw, 1.2rem);
}

.section-text {
  color: var(--muted);
  max-width: 68ch;
}

.section-text.large-text {
  line-height: 1.75;
}

.section-head {
  max-width: 820px;
  margin-bottom: 44px;
  padding-left: 8px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}

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

h1,
h2,
h3 {
  letter-spacing: -0.045em;
  line-height: 1;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  margin-bottom: 18px;
}

h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 12px;
}

p {
  line-height: 1.7;
}

.section-head h2 {
  max-width: 16ch;
  line-height: 0.95;
}

.section-head p {
  max-width: 52ch;
  margin-top: 18px;
}

/* =========================
   VIDEO SUBTITLES
========================= */

video::cue {
  font-family: Inter, sans-serif;
  font-size: 18px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.65);
}

/* =========================
   LANGUAGE SWITCH
========================= */

.lang-switch {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 20px;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-switch img {
  width: 20px;
  height: 14px;
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.lang-switch a:hover img,
.lang-switch a:focus-visible img {
  opacity: 1;
  transform: scale(1.08);
}

.lang-switch a:focus-visible {
  border-radius: 4px;
}

/* =========================
   GOOGLE TRANSLATE CLEANUP
========================= */

.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

.goog-te-gadget,
.goog-logo-link,
.goog-te-gadget span {
  display: none !important;
}

/* =========================
   FORM STATUS
========================= */

.form-status {
  margin-top: 14px;
  min-height: 22px;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-status.success {
  color: #cff7d8;
}

.form-status.error {
  color: #ffc8c8;
}

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

.site-footer {
  position: relative;
  padding: 56px 0 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0) 100%);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.035), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.025), transparent 24%);
}

.footer-shell {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 28px;
}

.footer-brand {
  max-width: 460px;
  opacity: 0;
  transform: translateY(14px);
  animation: footerFadeUp 0.7s ease forwards;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-tagline {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.footer-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  text-align: right;
  opacity: 0;
  transform: translateY(14px);
  animation: footerFadeUp 0.7s ease 0.12s forwards;
}

.footer-link {
  position: relative;
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.28s ease, transform 0.28s ease;
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.68);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.footer-link:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.footer-link:hover::after {
  transform: scaleX(1);
}

.footer-manifesto {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted-2);
  letter-spacing: 0.01em;
}

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  animation: footerFadeUp 0.7s ease 0.22s forwards;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted-2);
  letter-spacing: 0.03em;
}

.site-footer:hover .footer-title {
  letter-spacing: 0.38em;
  transition: letter-spacing 0.35s ease;
}

@keyframes footerFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 960px) {
  .lang-switch {
    margin-left: 12px;
    gap: 8px;
  }

  .lang-switch img {
    width: 18px;
    height: 12px;
  }
}

@media (max-width: 820px) {
  .footer-top {
    flex-direction: column;
    gap: 26px;
    padding-bottom: 22px;
  }

  .footer-side {
    align-items: flex-start;
    text-align: left;
  }

  .footer-tagline {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .section,
  .section-first {
    padding: 80px 0;
  }

  h1,
  h2 {
    max-width: 100%;
  }

  h1 {
    line-height: 0.96;
  }

  h2 {
    line-height: 0.98;
  }

  .section-head {
    margin-bottom: 34px;
    padding-left: 0;
  }

  .large-text,
  .section-text.large-text {
    font-size: 1.02rem;
    line-height: 1.72;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 42px 0 22px;
  }

  .footer-title {
    font-size: 0.88rem;
    letter-spacing: 0.28em;
  }

  .footer-tagline,
  .footer-link,
  .footer-manifesto {
    font-size: 0.92rem;
  }

  .footer-bottom p {
    font-size: 0.78rem;
  }
}