@font-face {
  font-family: "Chiron GoRound TC";
  src: url("../fonts/chiron-goround-tc-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Chiron GoRound TC";
  src: url("../fonts/chiron-goround-tc-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Chiron GoRound TC";
  src: url("../fonts/chiron-goround-tc-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Chiron GoRound TC";
  src: url("../fonts/chiron-goround-tc-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --color-accent: #4dbcc5;
  --color-dark: #384f6b;
  --color-dark-light: #4a6689;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.78);
  --font-body: 'Chiron GoRound TC', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  box-sizing: border-box;
  padding: clamp(10px, 1.4vw, 18px);
}

#app {
  height: 100%;
}

a {
  color: inherit;
}

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

.site {
  position: relative;
  height: 100%;
  border-radius: clamp(16px, 2vw, 28px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.78) 100%);
}

.panel {
  --panel-px: clamp(20px, 2.5vw, 40px);
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  max-height: calc(100% - clamp(32px, 6vh, 80px));
  width: 70vw;
  min-width: 70vw;
  z-index: 2;
  background: #ffffff;
  color: var(--color-dark);
  border-radius: clamp(16px, 2vw, 28px) 0 0 clamp(16px, 2vw, 28px);
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
  padding: clamp(20px, 3vh, 40px) var(--panel-px);
  overflow-y: auto;
  text-align: left;
}
.panel--legal {
  justify-content: flex-start;
}
.panel h1 {
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 6px;
  color: var(--color-dark);
}
.panel p {
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.5;
  font-weight: 400;
  color: rgba(56, 79, 107, 0.85);
  margin: 0 0 10px;
}
.panel p:last-child {
  margin-bottom: 0;
}
.panel h2 {
  font-size: clamp(16px, 1.3vw, 18px);
  font-weight: 600;
  color: var(--color-dark);
  margin: 20px 0 6px;
}
.panel h2:first-child {
  margin-top: 0;
}
.panel .back-link {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: rgba(56, 79, 107, 0.75);
  text-decoration: none;
  margin-bottom: 16px;
}
.panel .back-link:hover, .panel .back-link:focus-visible {
  color: var(--color-dark);
  text-decoration: underline;
}
.panel .intro {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 28px);
}
.panel .intro__logo {
  flex: 0 0 auto;
  width: 160px;
  height: auto;
}
.panel .intro__text {
  flex: 1 1 auto;
  min-width: 0;
}
.panel .eyebrow {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin: 0 0 4px;
}
.panel .langs {
  font-size: 16px;
  color: rgba(56, 79, 107, 0.7);
  margin: 0 0 16px;
}
.panel .pitch {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-dark);
  margin: 0 0 4px;
}
.panel .hook {
  font-style: italic;
  margin: 0 0 8px;
}
.panel .divider {
  border: none;
  border-top: 1px solid rgba(56, 79, 107, 0.2);
  margin: 16px 0;
}
.panel .contact ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.panel .contact li {
  font-size: 16px;
  color: rgba(56, 79, 107, 0.85);
}
.panel .contact a {
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 600;
}
.panel .contact a:hover, .panel .contact a:focus-visible {
  text-decoration: underline;
}
.panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(56, 79, 107, 0.2);
}

.lang-switch {
  display: flex;
  gap: 12px;
}

.flag-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  border: 2px solid rgba(56, 79, 107, 0.3);
  transition: border-color 0.2s, transform 0.2s;
}
.flag-btn svg {
  width: 100%;
  height: 100%;
}
.flag-btn:hover, .flag-btn:focus-visible {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}
.flag-btn[aria-current=page] {
  border-color: var(--color-accent);
}

.legal-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  flex-shrink: 0;
}
.legal-links a {
  font-size: 16px;
  text-decoration: none;
  color: rgba(56, 79, 107, 0.75);
}
.legal-links a:hover, .legal-links a:focus-visible {
  color: var(--color-dark);
  text-decoration: underline;
}

@media (max-width: 900px), (max-height: 645px) {
  body {
    height: auto;
    overflow: visible;
    padding: 10px;
  }
  .site {
    height: auto;
    min-height: 100dvh;
    border-radius: 15px;
  }
  .hero {
    flex-grow: 0;
    min-height: 0;
    height: auto;
    aspect-ratio: 16/9;
  }
  .bg-overlay {
    display: none;
  }
  .panel {
    position: static;
    transform: none;
    max-height: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 0;
    background: #f1f1f1;
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.18);
    text-align: left;
  }
  .panel__footer {
    flex-wrap: wrap;
    margin-inline: calc(-1 * var(--panel-px));
    padding-inline: var(--panel-px);
    width: auto;
  }
  .flag-btn {
    width: 36px;
    height: 36px;
  }
}
@media (min-width: 436px) and (max-width: 900px) {
  .hero {
    max-height: 50vh;
  }
}
@media (max-width: 400px) {
  .panel .intro {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bg-video {
    display: none;
  }
}
