:root {
  --navy: #0b1f4a;
  --navy-mid: #163a7a;
  --sky: #6eb6ef;
  --sky-soft: #e7f3fc;
  --red: #d0122a;
  --ink: #101828;
  --muted: #334155;
  --white: #ffffff;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--navy);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 18% 30%, rgba(110, 182, 239, 0.35), transparent 58%),
    radial-gradient(ellipse 50% 45% at 30% 85%, rgba(208, 18, 42, 0.18), transparent 55%),
    linear-gradient(145deg, #f4f9fd 0%, #d9ecfb 38%, #9ec8ec 68%, #1a3f7a 100%);
  animation: sky-shift 16s ease-in-out infinite alternate;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: stretch;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.4rem, 4vw, 4rem);
  min-width: 0;
}

.brand {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.headline {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--red);
}

.support {
  margin: 0 0 1.8rem;
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.55;
  font-weight: 500;
  color: var(--muted);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.2rem;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease;
}

.cta-primary:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
}

.cta-primary:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.cta-note {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  opacity: 0.8;
}

.hero-visual {
  position: relative;
  z-index: 1;
  margin: 0;
  min-width: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(180deg, #5aa7e4 0%, #163a7a 55%, #0b1f4a 100%);
}

.hero-visual img {
  display: block;
  width: min(100%, 420px);
  height: auto;
  max-height: min(70svh, 420px);
  object-fit: contain;
  animation: logo-drift 10s ease-in-out infinite alternate;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 720ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 { animation-delay: 120ms; }
.delay-2 { animation-delay: 240ms; }
.delay-3 { animation-delay: 380ms; }

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logo-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

@keyframes sky-shift {
  from { filter: saturate(1); }
  to { filter: saturate(1.12); }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 100svh;
  }

  .hero-visual {
    min-height: 42svh;
    order: -1;
    padding: 1.25rem;
  }

  .hero-visual img {
    width: min(100%, 260px);
    max-height: 34svh;
  }

  .hero-copy {
    max-width: none;
    padding-top: 1.75rem;
    padding-bottom: 2.5rem;
  }

  .brand {
    font-size: clamp(2.5rem, 13vw, 3.6rem);
  }
}

.home-legal {
  margin: 1.4rem 0 0;
  font-size: 0.95rem;
}

.home-legal a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-legal a:hover {
  color: var(--red);
}

body.legal-page {
  background: #eef6fc;
  overflow-x: hidden;
  color: var(--ink);
}

body.legal-page .atmosphere {
  opacity: 0.45;
}

.legal-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.legal-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy);
  text-decoration: none;
}

.legal-back {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.legal-back:hover,
.legal-brand:hover {
  color: var(--red);
}

.legal-main {
  position: relative;
  z-index: 2;
  max-width: 46rem;
  margin: 0 auto 3rem;
  padding: 1.75rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(11, 31, 74, 0.08);
}

.legal-main h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--navy);
}

.legal-meta {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-main h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
}

.legal-main p,
.legal-main li {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--muted);
}

.legal-main a {
  color: var(--navy);
  font-weight: 600;
}

.legal-main ul {
  padding-left: 1.2rem;
}

.legal-main li + li {
  margin-top: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere,
  .hero-visual img,
  .reveal {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cta-primary:hover {
    transform: none;
  }
}
