/* Open Runde is loaded via <link> in index.html from fonts.cdnfonts.com */

/* ─────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────── */
:root {
  --sky: #c8e9f6;
  --sky-mid: #a8d8f0;
  --sky-deep: #7fc0e8;
  --white: #ffffff;
  --navy: #0d1b2e;
  --navy-mid: #152740;
  --accent: #1a75b8;
  --accent-light: #e8f4fd;
  --text-dark: #0f2035;
  --text-muted: #4a6a85;

  --radius-tile: 1.25rem;
  --radius-btn: 999px;

  --font: 'Inter', system-ui, sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--sky);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ─────────────────────────────────────────────
   CONTAINER
───────────────────────────────────────────── */
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* ─────────────────────────────────────────────
   BUTTONS (kept for future use)
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(26, 117, 184, 0.35);
}

.btn--primary:hover {
  background: #1560a0;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26, 117, 184, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--ghost:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 117, 184, 0.3);
}

/* ─────────────────────────────────────────────
   SECTION 1 · LANDING HERO
───────────────────────────────────────────── */
.section--landing {
  background: linear-gradient(180deg,
      #48b9ff 0%,
      #6ec6f0 15%,
      #4db8e8 40%,
      #8aedff 100%);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 8rem;
  overflow: hidden;
}

/* ── Cloud layers – pseudo-3D parallax drift ── */
@keyframes cloudDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.cloud-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  display: flex;
  width: 200%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transform: translateZ(0);
}

/* Layer 1 – back, dim, slow */
.cloud-layer--1 {
  opacity: 0.32;
  background-image: url('assets/img/clouds/clouds_1.png');
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: left top;
  animation: cloudDrift 80s linear infinite;
}

/* Layer 2 – mid */
.cloud-layer--2 {
  opacity: 0.42;
  background-image: url('assets/img/clouds/clouds_2.webp');
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: left top;
  animation: cloudDrift 50s linear infinite;
  animation-delay: -20s;
}

/* Layer 3 – front, brightest, fastest */
.cloud-layer--3 {
  opacity: 0.5;
  background-image: url('assets/img/clouds/clouds_3.webp');
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: left top;
  animation: cloudDrift 32s linear infinite;
  animation-delay: -8s;
}

/* Logo – clamp width, GSAP target */
.landing__logo {
  width: clamp(300px, 40vw, 580px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(13, 27, 46, 0.12));
  margin-top: 6rem;
  margin-bottom: 0.5rem;
}

/* Title line – clamp font-size, GSAP target */
.title-line {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 3rem;
  color: rgb(222, 239, 255);
}

/* Stat value – clamp font-size */
.stat__value {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: rgb(232, 240, 247);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Scroll cue – GSAP target, nth-child animation delays */
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 1;
}

.scroll-cue__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
  animation: scrollBounce 1.6s ease-in-out infinite;
}

.scroll-cue__dot:nth-child(2) { animation-delay: 0.2s; }
.scroll-cue__dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes scrollBounce {
  0%, 100% { opacity: 0.15; transform: translateY(0); }
  50%       { opacity: 0.8;  transform: translateY(5px); }
}

/* ─────────────────────────────────────────────
   SECTION 2 · INFO / TILES + HERO BLOCKS
───────────────────────────────────────────── */
.section__heading {
  font-family: 'Open Runde', var(--font);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.section__sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 3.5rem;
  font-size: 1rem;
  line-height: 1.65;
}

/* ── TILES (GSAP references .tile and .tiles-grid) ── */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 0;
}

.tile {
  background: #ffffff;
  border: 1px solid rgba(13, 27, 46, 0.06);
  border-radius: var(--radius-tile);
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 16px rgba(13, 27, 46, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
  border-top: 3px solid transparent;
}

.tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(13, 27, 46, 0.13);
}

/* Tile accent variants */
.tile--1 { border-top-color: #1a75b8; }
.tile--2 { border-top-color: #0891b2; }
.tile--3 { border-top-color: #7c3aed; }
.tile--4 { border-top-color: #0d6e9e; }

/* Icon wrapper */
.tile__icon-wrap {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}

.tile--1 .tile__icon-wrap { background: #dbeeff; }
.tile--2 .tile__icon-wrap { background: #cff6fe; }
.tile--3 .tile__icon-wrap { background: #ede9fe; }
.tile--4 .tile__icon-wrap { background: #d4eaf8; }

.tile__title { font-family: 'Open Runde', var(--font); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.45rem; color: var(--text-dark); }
.tile__body  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ── HERO BLOCKS ── */
.hero-blocks {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.hero-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

@media (max-width: 700px) {
  .hero-block { grid-template-columns: 1fr; }
  .hero-block--right .hero-block__visual { order: -1; }
}

.hero-block__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.hero-block__title {
  font-family: 'Open Runde', var(--font);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-block__body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 48ch;
}

.hero-block__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-shape {
  border-radius: 2rem;
  box-shadow: 0 8px 40px rgba(13, 27, 46, 0.1);
}

.visual-shape--1 {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #48b9ff 0%, #7fc0e8 45%, #4da6d8 95%);
  position: relative;
  overflow: hidden;
}

/* Dot grid overlay */
.visual-shape--1::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 22px 22px;
}

.visual-shape--1::after {
  content: '✈';
  position: absolute;
  font-size: 7rem;
  color: rgba(255, 255, 255, 0.25);
  right: 1.5rem;
  bottom: -0.5rem;
  transform: rotate(-10deg);
  line-height: 1;
}

.visual-shape--2 {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #0d1b2e 0%, #1a3a5c 50%, #1a75b8 100%);
  position: relative;
  overflow: hidden;
}

.visual-shape--2::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 22px 22px;
}

.visual-shape--2::after {
  content: '🛫';
  position: absolute;
  font-size: 5.5rem;
  bottom: 1rem;
  right: 1.5rem;
  transform: rotate(-5deg);
  line-height: 1;
}

/* Section backgrounds */
#info {
  background: linear-gradient(170deg, #f4faff 0%, #eaf4fb 100%);
}

#about {
  background: radial-gradient(ellipse 110% 70% at 50% -10%, #dff0fc 0%, #ffffff 60%);
}

#sponsor {
  background: linear-gradient(170deg, #eaf4fb 0%, #f4faff 100%);
}

/* ─── Wave dividers ─── */
.section-wave {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.section-wave svg {
  display: block;
  width: 100%;
}

/* Sponsor logo strip */
.sponsor-logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem 3.5rem;
  padding: 2.5rem 2rem;
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid rgba(13, 27, 46, 0.06);
  box-shadow: 0 2px 16px rgba(13, 27, 46, 0.05);
}

/* ─────────────────────────────────────────────
   SCROLL REVEAL UTILITY (GSAP target)
───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────
   NAVBAR – milky glass + logo state
───────────────────────────────────────────── */
#navbar {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#navbar-logo {
  filter: brightness(0);
  transition: filter 0.4s ease;
}

#navbar.scrolled #navbar-logo {
  filter: none;
}