:root {
  color-scheme: dark;
  --blue: #063d86;
  --blue-bright: #0876d9;
  --gold: #ffd34e;
  --gold-deep: #f39a17;
  --ink: #04152d;
  --white: #ffffff;
}

* { box-sizing: border-box; }

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

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--white);
}

button, a { font: inherit; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(2, 19, 43, .38), rgba(2, 19, 43, .04) 36%, rgba(2, 19, 43, .04) 64%, rgba(2, 19, 43, .34)),
    url("assets/malecon-sunset-v2.png") center / cover no-repeat;
}

.sky-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(1, 24, 58, .76) 0%, rgba(2, 31, 67, .16) 35%, rgba(3, 18, 36, .18) 72%, rgba(2, 12, 26, .9) 100%),
    radial-gradient(circle at 50% 50%, transparent 18%, rgba(1, 12, 30, .28) 84%);
}

.topbar {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 112px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  color: var(--white);
  text-decoration: none;
  font-weight: 1000;
  letter-spacing: -.055em;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .38));
}

.brand-main {
  font-size: clamp(1.9rem, 3vw, 3.1rem);
  font-style: italic;
  background: linear-gradient(180deg, #fff7a8 0%, var(--gold) 35%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(31, 18, 0, .45);
}

.brand-dot {
  margin-left: .2rem;
  font-size: clamp(.9rem, 1.25vw, 1.15rem);
  letter-spacing: 0;
  color: #fff;
}

.languages {
  display: flex;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  background: rgba(3, 24, 55, .58);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .24);
  backdrop-filter: blur(12px);
}

.lang-tab {
  border: 0;
  border-radius: 999px;
  padding: .72rem 1.15rem;
  color: rgba(255,255,255,.76);
  background: transparent;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.lang-tab:hover { color: #fff; }
.lang-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.lang-tab.active { color: var(--ink); background: var(--gold); font-weight: 850; }

.hero-content {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
  min-height: calc(100svh - 182px);
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(480px, 1.08fr);
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.copy {
  align-self: center;
  max-width: 690px;
  padding: 2rem 0 7rem;
  text-shadow: 0 3px 18px rgba(0,0,0,.7);
  animation: copy-in .45s ease both;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1.35rem;
  padding: .58rem .92rem;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 999px;
  background: rgba(4, 40, 84, .54);
  color: #fff;
  font-size: clamp(.88rem, 1.2vw, 1.08rem);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5.4vw, 6.6rem);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 850;
}

h1 strong {
  display: inline-block;
  color: var(--gold);
  font-weight: 1000;
  text-shadow: 0 5px 0 rgba(100, 44, 0, .48), 0 12px 30px rgba(0,0,0,.45);
}

.tagline {
  margin: 1.7rem 0 0;
  font-size: clamp(1.45rem, 2.3vw, 2.4rem);
  font-weight: 720;
  letter-spacing: -.025em;
}

.tagline span { color: var(--gold); font-style: italic; font-weight: 950; }

.captain-wrap {
  position: relative;
  height: min(76svh, 850px);
  min-height: 540px;
  align-self: end;
  display: grid;
  place-items: end center;
  transform: translateX(6%);
}

.captain-wrap img {
  position: relative;
  z-index: 2;
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 28px 28px rgba(1, 10, 25, .55));
  animation: captain-in .8s cubic-bezier(.2,.75,.25,1) both;
}

.sunburst {
  position: absolute;
  z-index: 1;
  width: min(46vw, 660px);
  aspect-ratio: 1;
  left: 50%;
  bottom: 7%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 222, 93, .68), rgba(255, 174, 34, .2) 46%, transparent 70%);
  filter: blur(3px);
}

footer {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 0;
  width: min(1500px, calc(100% - 48px));
  min-height: 64px;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,.74);
  font-size: .88rem;
  letter-spacing: .02em;
}

.footer-mark { color: var(--gold); font-size: 1.5rem; }

@keyframes captain-in {
  from { opacity: 0; transform: translateY(38px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes copy-in {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 900px) {
  .topbar { min-height: 96px; width: min(100% - 28px, 720px); }
  .brand-dot { display: none; }
  .lang-tab { padding: .62rem .78rem; font-size: .86rem; }

  .hero-content {
    width: min(100% - 28px, 720px);
    min-height: calc(100svh - 150px);
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 0;
    text-align: center;
  }

  .copy {
    max-width: none;
    padding: 1.2rem 0 0;
    position: relative;
    z-index: 4;
  }

  .eyebrow { margin-bottom: .85rem; }
  h1 { font-size: clamp(2.15rem, 9.2vw, 4.4rem); }
  .tagline { margin-top: .9rem; }

  .captain-wrap {
    height: min(57svh, 620px);
    min-height: 360px;
    margin-top: -1rem;
    transform: translateX(3%);
  }

  .sunburst { width: min(92vw, 600px); }
  footer { min-height: 50px; width: calc(100% - 28px); font-size: .74rem; }
}

@media (max-width: 560px) {
  .topbar { align-items: flex-start; padding-top: 16px; gap: 8px; }
  .brand-main { font-size: 1.45rem; }
  .languages { padding: 3px; }
  .lang-tab { padding: .55rem .58rem; font-size: .75rem; }
  .eyebrow { font-size: .72rem; }
  .tagline { font-size: 1.2rem; }
  .captain-wrap { height: min(55svh, 500px); }
  footer { justify-content: center; }
  footer span:first-child, .footer-mark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
