/* =========================================================
   Macroclima — Coming Soon
   Atmospheric horizon · 2026 craft
   ========================================================= */

:root {
  --bg-deep: #040b12;
  --bg: #061018;
  --ink: #e8f1f5;
  --ink-muted: rgba(232, 241, 245, 0.62);
  --ink-faint: rgba(232, 241, 245, 0.38);
  --teal: #2dd4bf;
  --teal-soft: #5eead4;
  --blue: #60a5fa;
  --gold: #e8c47c;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.1);
  --radius: 999px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Sora", system-ui, -apple-system, sans-serif;
  --max: 72rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg-deep);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ---------- Scene / atmosphere ---------- */

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 120%, rgba(14, 80, 90, 0.55) 0%, transparent 55%),
    radial-gradient(90% 70% at 15% 20%, rgba(37, 99, 235, 0.18) 0%, transparent 50%),
    radial-gradient(70% 50% at 85% 15%, rgba(45, 212, 191, 0.12) 0%, transparent 45%),
    radial-gradient(50% 40% at 70% 70%, rgba(232, 196, 124, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #040b12 0%, #061018 42%, #0a1a24 72%, #0c2228 100%);
}

.aurora {
  position: absolute;
  width: 140%;
  height: 55%;
  left: -20%;
  filter: blur(60px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.aurora--a {
  top: -8%;
  background: linear-gradient(
    105deg,
    transparent 10%,
    rgba(45, 212, 191, 0.35) 35%,
    rgba(96, 165, 250, 0.28) 55%,
    transparent 80%
  );
  animation: auroraDrift 18s ease-in-out infinite alternate;
}

.aurora--b {
  top: 8%;
  height: 40%;
  background: linear-gradient(
    250deg,
    transparent 15%,
    rgba(52, 211, 153, 0.22) 40%,
    rgba(232, 196, 124, 0.14) 60%,
    transparent 85%
  );
  animation: auroraDrift 24s ease-in-out infinite alternate-reverse;
  opacity: 0.4;
}

.aurora--c {
  top: -5%;
  height: 30%;
  left: 10%;
  width: 60%;
  background: radial-gradient(ellipse at center, rgba(96, 165, 250, 0.3), transparent 70%);
  animation: auroraPulse 12s ease-in-out infinite;
  opacity: 0.45;
}

@keyframes auroraDrift {
  0% {
    transform: translate3d(-4%, 0, 0) rotate(-2deg) scale(1);
  }
  100% {
    transform: translate3d(6%, 3%, 0) rotate(3deg) scale(1.06);
  }
}

@keyframes auroraPulse {
  0%,
  100% {
    opacity: 0.28;
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    opacity: 0.55;
    transform: translate3d(4%, 2%, 0) scale(1.1);
  }
}

.horizon-glow {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: min(90vw, 900px);
  height: 120px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(45, 212, 191, 0.35) 0%,
    rgba(96, 165, 250, 0.15) 40%,
    transparent 70%
  );
  filter: blur(20px);
  animation: horizonBreathe 8s ease-in-out infinite;
}

@keyframes horizonBreathe {
  0%,
  100% {
    opacity: 0.55;
    transform: translateX(-50%) scaleX(1);
  }
  50% {
    opacity: 0.9;
    transform: translateX(-50%) scaleX(1.08);
  }
}

.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(140px, 28vh, 320px);
}

.wave {
  transform-origin: center bottom;
}

.wave--1 {
  animation: waveShift 14s ease-in-out infinite alternate;
}

.wave--2 {
  animation: waveShift 18s ease-in-out infinite alternate-reverse;
}

.wave--3 {
  animation: waveShift 22s ease-in-out infinite alternate;
}

@keyframes waveShift {
  0% {
    transform: translateX(-2%) scaleY(1);
  }
  100% {
    transform: translateX(2%) scaleY(1.05);
  }
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  pointer-events: none;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(4, 11, 18, 0.72) 100%);
}

/* ---------- Layout ---------- */

.topbar,
.main,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.35rem clamp(1.25rem, 4vw, 2.5rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand__mark {
  color: var(--teal-soft);
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(45, 212, 191, 0.35));
  animation: markFloat 6s ease-in-out infinite;
}

@keyframes markFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.topbar__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.55);
  animation: pulseDot 2.4s ease-out infinite;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(45, 212, 191, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0);
  }
}

.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.5rem, 6vh, 4rem) clamp(1.25rem, 4vw, 2.5rem) 2rem;
  min-height: calc(100dvh - 9rem);
  display: flex;
  align-items: center;
}

.hero {
  width: min(100%, 42rem);
  padding-bottom: clamp(2rem, 8vh, 5rem);
}

/* ---------- Typography ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-soft);
  margin-bottom: 1.35rem;
}

.eyebrow__line {
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--teal), transparent);
}

.title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.1rem, 11vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.title__soft {
  display: block;
  color: var(--ink-muted);
  font-weight: 400;
  font-size: 0.55em;
  letter-spacing: 0.01em;
  margin-bottom: 0.15em;
}

.title__strong {
  display: block;
  background: linear-gradient(
    115deg,
    #f0f9ff 0%,
    #a5f3fc 28%,
    #5eead4 52%,
    #93c5fd 78%,
    #e8c47c 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleShimmer 10s ease-in-out infinite;
}

@keyframes titleShimmer {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

.lede {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: 300;
  color: var(--ink-muted);
  max-width: 34rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ---------- Progress ---------- */

.progress-block {
  margin-bottom: 2rem;
  max-width: 24rem;
}

.progress-block__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.progress-block__pct {
  color: var(--teal-soft);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.progress {
  position: relative;
  height: 3px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--gold));
  background-size: 200% 100%;
  animation: barShimmer 4s linear infinite;
  transition: width 1.6s var(--ease-out);
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.55);
}

.progress__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: translateX(-100%);
  animation: shine 3.2s ease-in-out infinite;
}

@keyframes barShimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }
  40%,
  100% {
    transform: translateX(100%);
  }
}

/* ---------- Notify form ---------- */

.notify {
  margin-bottom: 2.5rem;
  max-width: 28rem;
}

.notify__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.4rem;
  border-radius: calc(var(--radius) + 2px);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 20px 50px rgba(0, 0, 0, 0.25);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.notify__row:focus-within {
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.15) inset,
    0 0 0 4px rgba(45, 212, 191, 0.1),
    0 20px 50px rgba(0, 0, 0, 0.3);
}

.notify__input {
  flex: 1 1 12rem;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.85rem 1.1rem;
  outline: none;
  color: var(--ink);
}

.notify__input::placeholder {
  color: var(--ink-faint);
}

.notify__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 0.85rem 1.35rem;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: #041018;
  background: linear-gradient(135deg, #5eead4 0%, #2dd4bf 40%, #60a5fa 100%);
  background-size: 160% 100%;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s ease,
    background-position 0.4s ease;
  box-shadow: 0 8px 24px rgba(45, 212, 191, 0.28);
}

.notify__btn:hover {
  transform: translateY(-1px);
  background-position: 100% 0;
  box-shadow: 0 12px 28px rgba(45, 212, 191, 0.4);
}

.notify__btn:active {
  transform: translateY(0);
}

.notify__btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.notify__btn-icon {
  display: inline-flex;
  transition: transform 0.25s var(--ease-out);
}

.notify__btn:hover .notify__btn-icon {
  transform: translateX(3px);
}

.notify__hint {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
  padding-left: 0.35rem;
}

.notify__msg {
  margin-top: 0.85rem;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
}

.notify__msg.is-ok {
  color: var(--teal-soft);
  background: rgba(45, 212, 191, 0.08);
  border-color: rgba(45, 212, 191, 0.22);
}

.notify__msg.is-err {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.22);
}

/* ---------- Stats ---------- */

.stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.stat {
  min-width: 5.5rem;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Footer ---------- */

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--ink-faint);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__domain {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Reveal on load ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

[data-delay="1"] {
  --d: 1;
}
[data-delay="2"] {
  --d: 2;
}
[data-delay="3"] {
  --d: 3;
}
[data-delay="4"] {
  --d: 4;
}
[data-delay="5"] {
  --d: 5;
}
[data-delay="6"] {
  --d: 6;
}
[data-delay="7"] {
  --d: 7;
}

/* ---------- Responsive ---------- */

@media (max-width: 520px) {
  .notify__row {
    flex-direction: column;
    border-radius: 1.25rem;
    padding: 0.55rem;
  }

  .notify__btn {
    width: 100%;
  }

  .topbar__meta span:last-child {
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .stats {
    gap: 1rem 1.5rem;
  }
}

@media (min-width: 960px) {
  .main {
    padding-top: 2rem;
  }

  .hero {
    width: min(100%, 48rem);
  }
}

/* ---------- Reduced motion ---------- */

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .progress__fill {
    transition: none;
  }
}
