/* Unloop marketing site — deep space + signal cyan */

:root {
  --void: #050a12;
  --void-2: #08121c;
  --panel: rgba(12, 28, 40, 0.55);
  --line: rgba(94, 235, 255, 0.14);
  --text: #e8f7ff;
  --muted: #9bc4d4;
  --cyan: #5eebff;
  --cyan-dim: rgba(94, 235, 255, 0.55);
  --amber: #ff9a3c;
  --spark: #ffe08a;
  --mint: #7cffb2;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --body: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --shell: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1,
h2 {
  font-family: var(--display);
}

.shell {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -4rem;
  transform: translateX(-50%);
  z-index: 100;
  padding: 0.55rem 1rem;
  border-radius: 0 0 10px 10px;
  background: var(--cyan);
  color: #031018;
  font-weight: 700;
}

.skip-link:focus {
  top: 0;
}

/* Ambient field */
.field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(14, 48, 68, 0.85), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 80%, rgba(255, 154, 60, 0.07), transparent 50%),
    var(--void);
}

.field__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

.field__glow--cyan {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  top: 12%;
  right: 8%;
  background: rgba(94, 235, 255, 0.16);
}

.field__glow--amber {
  width: min(40vw, 320px);
  height: min(40vw, 320px);
  bottom: 18%;
  left: 4%;
  background: rgba(255, 154, 60, 0.12);
  animation-delay: -6s;
}

.field__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(94, 235, 255, 0.015) 3px,
    rgba(94, 235, 255, 0.015) 4px
  );
  opacity: 0.5;
  mix-blend-mode: soft-light;
}

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

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-4%, 6%, 0) scale(1.08);
  }
}

/* Header */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 0.9rem 0;
  background: linear-gradient(180deg, rgba(5, 10, 18, 0.82), transparent);
  backdrop-filter: blur(0px);
  transition: background 0.35s ease, backdrop-filter 0.35s ease;
}

.top.is-solid {
  background: rgba(5, 10, 18, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mark img {
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(94, 235, 255, 0.25), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.mark span {
  font-size: 1.05rem;
}

.top__nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top__nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.top__nav a:hover {
  color: var(--text);
}

.top__cta {
  color: #031018 !important;
  background: var(--cyan);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 700 !important;
}

.top__cta:hover {
  filter: brightness(1.06);
  text-decoration: none !important;
}

/* Hero — full bleed plane */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: 0 0 clamp(2.5rem, 6vh, 4.5rem);
  overflow: hidden;
}

.hero__plane {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 28%;
  transform: scale(1.04);
  animation: heroPush 22s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 10, 18, 0.35) 0%, rgba(5, 10, 18, 0.15) 35%, rgba(5, 10, 18, 0.88) 72%, #050a12 100%),
    linear-gradient(90deg, rgba(5, 10, 18, 0.55), transparent 45%);
}

.hero__ripple {
  position: absolute;
  left: 50%;
  top: 38%;
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(94, 235, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(94, 235, 255, 0.05),
    0 0 80px rgba(94, 235, 255, 0.08);
  animation: pulseRing 6.5s ease-out infinite;
  pointer-events: none;
}

@keyframes heroPush {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.09) translate3d(-1.5%, 1%, 0);
  }
}

@keyframes pulseRing {
  0% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.72);
  }
  70% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.hero__stage {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding-top: 7rem;
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  line-height: 0.95;
  color: var(--text);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  color: var(--cyan);
  font-style: italic;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero__lede {
  margin: 0 0 1.6rem;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.btn small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

.btn span {
  line-height: 1.15;
}

.btn--signal {
  color: #031018;
  background: linear-gradient(135deg, var(--cyan), #8af4ff 55%, var(--mint));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 14px 40px rgba(94, 235, 255, 0.22);
}

.btn--signal:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.btn--quiet {
  color: var(--muted);
  background: rgba(8, 18, 28, 0.55);
  border-color: var(--line);
  cursor: default;
}

/* Motion enters */
.motion-rise {
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.motion-rise--2 {
  animation-delay: 0.12s;
}

.motion-rise--3 {
  animation-delay: 0.22s;
}

.motion-rise--4 {
  animation-delay: 0.34s;
}

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

/* Story */
.story {
  padding: clamp(4rem, 10vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.story__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .story__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }
}

.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.story__copy h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.story__copy p {
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 36rem;
}

.story__beats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.story__beats li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.story__beats h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.story__beats p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.story__num {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--amber);
  line-height: 1;
  padding-top: 0.15rem;
}

/* Echo */
.echo {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, transparent, rgba(8, 24, 36, 0.65) 40%, transparent);
}

.echo__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .echo__inner {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.echo__portrait figure {
  margin: 0;
  position: relative;
}

.echo__portrait img {
  width: min(100%, 28rem);
  margin-inline: auto;
  border-radius: 0 0 40% 40% / 0 0 18% 18%;
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  filter: drop-shadow(0 20px 50px rgba(94, 235, 255, 0.18));
}

.echo__portrait figcaption {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--cyan);
  letter-spacing: 0.04em;
}

.echo__copy h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin-bottom: 1rem;
}

.echo__copy > p {
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 1rem;
}

.echo__line {
  margin-top: 1.5rem !important;
  padding-left: 1rem;
  border-left: 2px solid var(--cyan-dim);
  color: var(--text) !important;
  font-size: 1.15rem;
}

.echo__line em {
  font-family: var(--display);
  font-style: italic;
  color: var(--spark);
}

/* Close CTA */
.close {
  padding: clamp(4rem, 10vw, 6rem) 0 clamp(5rem, 12vw, 7rem);
  border-top: 1px solid var(--line);
  text-align: center;
}

.close__inner {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.close__icon {
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(94, 235, 255, 0.35),
    0 20px 50px rgba(0, 0, 0, 0.45);
}

.close h2 {
  font-size: clamp(2.1rem, 5vw, 3rem);
}

.close p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  max-width: 28rem;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  background: rgba(0, 0, 0, 0.25);
}

.foot__inner {
  display: grid;
  gap: 1rem;
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}

.foot__brand img {
  border-radius: 7px;
}

.foot__by {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
}

.foot__links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.foot__note {
  margin: 0;
  color: rgba(155, 196, 212, 0.65);
  font-size: 0.85rem;
}

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 700px) {
  .top__nav a:not(.top__cta) {
    display: none;
  }

  .hero__stage {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .motion-rise,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
