/* Vela landing — layout + header/footer; hero copy lives in provided PNGs */

:root {
  --ink: #0f172a;
  --muted: #64748b;
  --accent: #0ea5e9;
  --panel: rgba(255, 255, 255, 0.72);
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", "Hiragino Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #e8f4ff url("../img/bg.png") center top / cover no-repeat fixed;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 4vw, 2rem) 2rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  margin-right: 0.5rem;
  text-decoration: none;
  color: inherit;
}

/* Per-lang nav art includes a static language chip on the right — clip it; real control is .lang */
.brand__nav-wrap {
  display: block;
  flex: 1;
  min-width: 0;
  max-width: min(520px, calc(100vw - 11rem));
  height: clamp(40px, 9vw, 52px);
  overflow: hidden;
  line-height: 0;
}

.brand__nav {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}

.lang {
  position: relative;
}

.lang__select {
  appearance: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.55rem 2.25rem 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(10px);
  cursor: pointer;
  box-shadow: var(--shadow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5 6 8l3-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.lang__select:hover {
  border-color: rgba(14, 165, 233, 0.45);
}

.lang__select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: 0.5rem 0 2rem;
}

.hero__text,
.hero__visual {
  flex: 1 1 0;
  min-width: 0;
}

.hero__text img,
.hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 520px;
  margin: 0 auto;
}

.hero__visual img {
  max-width: 480px;
  filter: drop-shadow(0 28px 48px rgba(15, 23, 42, 0.12));
}

.site-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__text {
    order: 1;
  }

  .hero__visual {
    order: 2;
  }

  .hero__text img,
  .hero__visual img {
    max-width: min(100%, 420px);
  }
}

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