/* ===============================
   COLOR SYSTEM
   =============================== */
:root {
  --teal: #1FA7A3;
  --teal-dark: #168b88;
  --sun: #F2B705;
  --white-soft: rgba(255,255,255,.92);
}

/* ===============================
   BASE
   =============================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #000;
  color: var(--white-soft);
}

/* ===============================
   HERO
   =============================== */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(to right, rgba(0,0,0,.65), rgba(0,0,0,.15)),
    url("/assets/img/hero-1-desktop.webp") center / cover no-repeat;
  display: flex;
  flex-direction: column;
}

/* ===============================
   HEADER
   =============================== */
header {
  padding: 36px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.logo {
  height: 96px;
  max-width: none;
}

/* ===============================
   LANGUAGE SELECTOR
   =============================== */
.lang-selector {
  position: relative;
  z-index: 1100;
}

.lang-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.45);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

/* CRITICAL: lock icon size */
.lang-btn img,
.lang-menu img {
  width: 16px;
  height: 16px;
  max-width: none;
  max-height: none;
  border-radius: 50%;
  display: block;
}

/* Dropdown */
.lang-menu {
  position: absolute;
  right: 0;
  top: 56px;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 6px;
  list-style: none;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease;
}

.lang-selector.open .lang-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 6px;
  font-size: .85rem;
  white-space: nowrap;
}

.lang-menu li:hover {
  background: rgba(255,255,255,.12);
}

/* Prevent hover scaling side-effects */
.lang-menu li:hover img {
  transform: none;
}

/* ===============================
   CONTENT
   =============================== */
.content {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 64px;
}

.text {
  max-width: 640px;
}

/* ===============================
   TYPOGRAPHY
   =============================== */
.kicker {
  font-size: .7rem;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

h1 {
  font-family: "DM Serif Display", serif;
  font-size: 3.6rem;
  line-height: 1.1;
  margin: 0 0 18px;
}

p {
  line-height: 1.6;
}

/* ===============================
   COUNTDOWN
   =============================== */
.countdown {
  display: flex;
  gap: 16px;
  margin: 28px 0;
}

.box {
  background: rgba(0,0,0,.55);
  border-bottom: 3px solid var(--teal);
  padding: 16px;
  border-radius: 8px;
  min-width: 80px;
  text-align: center;
}

.box span {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: var(--sun);
}

.box small {
  font-size: .65rem;
  opacity: .7;
  letter-spacing: 1px;
}

.seconds span {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  50% { transform: scale(1.08); }
}

/* ===============================
   CTA + SIGNUP
   =============================== */
.cta {
  margin-top: 8px;
}

.signup {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  max-width: 560px;
}

.signup input {
  flex: 1;
  padding: 18px 20px;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
}

.signup input::placeholder {
  color: #666;
}

.signup button {
  padding: 18px 32px;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: .8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.signup button:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}

.signup button:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.signup-success {
  margin-top: 18px;
  color: var(--sun);
  font-weight: 500;
}

/* ===============================
   FOOTER
   =============================== */
footer {
  padding: 18px 64px;
  font-size: .75rem;
  opacity: .6;
  display: flex;
  justify-content: space-between;
}

/* ===============================
   FADE ANIMATION
   =============================== */
.fade {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
}

.fade.show {
  opacity: 1;
  transform: none;
}

/* ===============================
   LAUNCH TRANSITION
   =============================== */
body.launching {
  animation: launchFade 1.2s ease forwards;
}

@keyframes launchFade {
  to {
    opacity: 0;
    transform: scale(1.02);
  }
}

/* ===============================
   MOBILE
   =============================== */
@media (max-width: 768px) {
  header,
  .content,
  footer {
    padding: 24px;
  }

  .logo {
    height: 72px;
  }

  h1 {
    font-size: 2.4rem;
  }

  .countdown {
    flex-wrap: wrap;
  }

  .signup {
    flex-direction: column;
  }

  .signup button {
    width: 100%;
  }
}
