:root {
  --ink: #12263a;
  --ink-soft: #3a556e;
  --foam: #f2f7f8;
  --sky-top: #6fa3b8;
  --sky-mid: #b7d4de;
  --sky-low: #d8ebe6;
  --orb: #e8f6ff;
  --accent: #0f6e6a;
  --glass: rgba(242, 247, 248, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Syne", sans-serif;
  color: var(--ink);
  background: var(--sky-mid);
  overflow-x: hidden;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    165deg,
    var(--sky-top) 0%,
    var(--sky-mid) 45%,
    var(--sky-low) 78%,
    #eaf3f0 100%
  );
  animation: sky-shift 16s ease-in-out infinite alternate;
}

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

.orb {
  position: absolute;
  left: 58%;
  top: 32%;
  width: min(34vw, 260px);
  height: min(34vw, 260px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle at 42% 38%,
    #ffffff 0%,
    var(--orb) 38%,
    rgba(232, 246, 255, 0.35) 68%,
    transparent 72%
  );
  box-shadow: 0 0 90px 50px rgba(255, 255, 255, 0.28);
  animation: orb-drift 9s ease-in-out infinite;
}

@keyframes orb-drift {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-48%, -54%) scale(1.05);
  }
}

.mist {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 80% 45% at 50% 75%,
      rgba(242, 247, 248, 0.55),
      transparent 70%
    ),
    radial-gradient(
      ellipse 35% 28% at 18% 35%,
      rgba(255, 255, 255, 0.3),
      transparent 65%
    );
  pointer-events: none;
  animation: mist-move 14s ease-in-out infinite alternate;
}

@keyframes mist-move {
  from {
    opacity: 0.85;
    transform: translateX(0);
  }
  to {
    opacity: 1;
    transform: translateX(1.5%);
  }
}

.ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30vh;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(18, 38, 58, 0.1) 40%,
    rgba(18, 38, 58, 0.32) 100%
  );
  clip-path: polygon(
    0 52%,
    14% 40%,
    30% 55%,
    48% 34%,
    66% 50%,
    82% 30%,
    100% 46%,
    100% 100%,
    0 100%
  );
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.5rem, 5vw, 4rem);
  max-width: 1100px;
}

.brand {
  font-size: clamp(3.8rem, 13vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.88;
  color: var(--ink);
  opacity: 0;
  transform: translateY(28px);
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.title {
  margin-top: 0.25em;
  font-weight: 700;
  font-size: clamp(2.2rem, 6.5vw, 4.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  opacity: 0;
  transform: translateY(28px);
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

.lead {
  margin-top: 1.1rem;
  max-width: 22ch;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.45;
  opacity: 0;
  transform: translateY(28px);
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.46s forwards;
}

.actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(28px);
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.64s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease,
    border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ink);
  color: var(--foam);
}

.btn-primary:hover {
  background: #0a1a28;
}

.btn-ghost {
  background: var(--glass);
  color: var(--ink);
  border-color: rgba(18, 38, 58, 0.28);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(242, 247, 248, 0.5);
  border-color: var(--accent);
  color: var(--accent);
}

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

.after {
  position: relative;
  z-index: 1;
  min-height: 50vh;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  background: linear-gradient(
    180deg,
    rgba(18, 38, 58, 0.12),
    rgba(18, 38, 58, 0.94)
  );
  color: var(--foam);
}

.after h2 {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.after p {
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(242, 247, 248, 0.72);
  max-width: 28ch;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.12s, transform 0.8s ease 0.12s;
}

.after.is-visible h2,
.after.is-visible p {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .stage {
    justify-content: flex-end;
    padding-bottom: 18vh;
  }

  .orb {
    top: 26%;
    left: 50%;
  }
}
