:root {
  --ink: #0f1c24;
  --ink-soft: #3a4f5c;
  --paper: #f3f7f6;
  --teal: #1f8a7a;
  --teal-deep: #14685c;
  --sky: #2b7a9e;
  --dawn: #e8a05a;
  --cta-ink: #f7fbfa;
  --font-brand: "Syne", sans-serif;
  --font-body: "Outfit", 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(--paper);
  overflow-x: hidden;
}

/* Full-bleed atmospheric plane */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 70% -10%, rgba(232, 160, 90, 0.28), transparent 55%),
    radial-gradient(90% 70% at 10% 20%, rgba(43, 122, 158, 0.22), transparent 50%),
    linear-gradient(165deg, #d9ebe6 0%, #eef4f2 42%, #dce8ef 100%);
}

.sky__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: drift 18s ease-in-out infinite alternate;
}

.sky__glow--dawn {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  top: 8%;
  right: 12%;
  background: rgba(232, 160, 90, 0.35);
}

.sky__glow--mid {
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  bottom: -10%;
  left: -8%;
  background: rgba(31, 138, 122, 0.22);
  animation-delay: -6s;
}

.sky__arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.sky__path {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: draw-arc 2.4s ease-out forwards;
}

.sky__sun {
  fill: rgba(232, 160, 90, 0.55);
  transform-origin: 600px 260px;
  animation: sun-pulse 6s ease-in-out infinite;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem) 6rem;
  max-width: 42rem;
}

.brand {
  margin: 0 0 1rem;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--ink);
  animation: rise 0.9s ease-out both;
}

.headline {
  margin: 0 0 1rem;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  animation: rise 0.9s ease-out 0.12s both;
}

.lead {
  margin: 0 0 2rem;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-soft);
  animation: rise 0.9s ease-out 0.22s both;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  animation: rise 0.9s ease-out 0.32s both;
}

.cta__primary,
.cta__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cta__primary {
  background: var(--teal);
  color: var(--cta-ink);
  box-shadow: 0 10px 28px rgba(20, 104, 92, 0.22);
}

.cta__primary:hover {
  background: var(--teal-deep);
  transform: translateY(-1px);
}

.cta__secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(15, 28, 36, 0.28);
}

.cta__secondary:hover {
  border-color: var(--sky);
  color: var(--sky);
  transform: translateY(-1px);
}

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem clamp(1.25rem, 5vw, 4rem) 1.5rem;
  margin-top: -5rem;
}

.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.foot__nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.foot__nav a:hover {
  color: var(--teal-deep);
}

.foot__copy {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(58, 79, 92, 0.85);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes draw-arc {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes sun-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(18px, -12px, 0);
  }
}

@media (max-width: 560px) {
  .cta {
    flex-direction: column;
    align-items: stretch;
  }

  .cta__primary,
  .cta__secondary {
    width: 100%;
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
    margin-top: -3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sky__glow,
  .sky__path,
  .sky__sun,
  .brand,
  .headline,
  .lead,
  .cta {
    animation: none !important;
  }

  .sky__path {
    stroke-dashoffset: 0;
  }
}
