/* WispWeb landing page. Colours and type from the WispWeb brand pack. */
@font-face {
  font-family: "Sora";
  src: url("../fonts/Sora-Variable.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
:root {
  --blue: #00D4FF;
  --purple: #8A2BFF;
  --lav: #B69BFF;
  --char: #0B0F1A;
  --char2: #10162A;
  --white: #F7F7FF;
  --mid: #3E7BFF;
  --grad: linear-gradient(90deg, #00D4FF 0%, #3E7BFF 50%, #8A2BFF 100%);
  --grad-d: linear-gradient(135deg, #00D4FF 0%, #3E7BFF 45%, #8A2BFF 100%);
  --muted: rgba(247, 247, 255, .72);
  --line: rgba(182, 155, 255, .16);
  --font: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--char);
  color: var(--white);
  font: 400 16px/1.6 var(--font);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1200px, 100% - 2 * max(5vw, 20px)); margin-inline: auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 15, 26, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: block; line-height: 0; margin-right: auto; }
.brand img { height: 26px; width: auto; }
.links { display: flex; gap: 28px; }
.links a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color .2s; }
.links a:hover { color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff; font-weight: 600; font-size: 15px;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(62, 123, 255, .35);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(62, 123, 255, .5); }
.btn:focus-visible, .links a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 16px; }
.btn-ghost { background: rgba(247, 247, 255, .06); border: 1px solid rgba(247, 247, 255, .2); box-shadow: none; }
.btn-ghost:hover { background: rgba(247, 247, 255, .1); box-shadow: none; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: min(86vh, 820px); display: flex; align-items: center; }
.hero-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 55% at 68% 40%, #1A2460 0%, rgba(26, 36, 96, 0) 70%),
    radial-gradient(35% 40% at 95% 85%, rgba(138, 43, 255, .32) 0%, rgba(138, 43, 255, 0) 70%),
    radial-gradient(35% 35% at 4% 90%, rgba(0, 212, 255, .14) 0%, rgba(0, 212, 255, 0) 70%),
    var(--char);
}
.threads { position: absolute; inset: 0; width: 100%; height: 100%; }
.t { stroke-width: 1.4; opacity: .5; }
.t2 { opacity: .3; stroke-width: 1; }
.t3 { opacity: .22; stroke-width: 2.2; }
.horizon {
  position: absolute; left: -20%; right: -20%; bottom: -58%; height: 75%;
  border-radius: 50%;
  background: var(--char);
  border-top: 2px solid rgba(0, 212, 255, .9);
  box-shadow: 0 -10px 60px rgba(0, 212, 255, .35), 0 -2px 18px rgba(0, 212, 255, .6);
}
.hero-in {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center; gap: 40px;
  padding: clamp(56px, 10vh, 110px) 0 clamp(140px, 22vh, 220px);
}
.tagline {
  margin: 0 0 18px;
  font-size: 13px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1 {
  margin: 0;
  font-weight: 600; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -0.02em;
  text-wrap: balance;
}
.lead { margin: 20px 0 0; max-width: 32em; font-size: clamp(16px, 1.6vw, 18px); font-weight: 300; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-mark { display: flex; justify-content: center; }
.hero-mark img {
  width: min(480px, 100%); height: auto;
  filter: drop-shadow(0 20px 60px rgba(62, 123, 255, .45));
  animation: float 7s ease-in-out infinite;
}

/* Sections */
.band { padding: clamp(64px, 10vw, 120px) 0; }
.band-alt { background: var(--char2); border-block: 1px solid var(--line); }
h2 {
  margin: 0; font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em;
  text-wrap: balance; max-width: 22em;
}
h3 { margin: 0 0 8px; font-weight: 600; font-size: 1.15rem; line-height: 1.3; }
.sub { margin: 14px 0 0; max-width: 36em; color: var(--muted); font-weight: 300; font-size: 17px; }
p { margin: 0; }

.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.card {
  padding: 28px 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247, 247, 255, .045), rgba(247, 247, 255, .015));
  border: 1px solid var(--line);
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(0, 212, 255, .45); transform: translateY(-3px); }
.card p, .pillar p, .steps p { color: var(--muted); font-size: 15px; }
.ic {
  width: 44px; height: 44px; padding: 10px; margin-bottom: 18px;
  border-radius: 12px; background: rgba(62, 123, 255, .12);
  fill: none; stroke: url(#gr); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 44px; }
.pillar { border-top: 1px solid var(--line); padding-top: 24px; }
.grad { font-size: 1.7rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 7px; left: 8px; right: 8px; height: 2px;
  background: var(--grad); opacity: .5;
}
.steps li { position: relative; padding-top: 36px; }
.steps li::before {
  content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--char); border: 2px solid var(--blue); box-shadow: 0 0 14px rgba(0, 212, 255, .6);
}

.contact {
  text-align: center;
  background:
    radial-gradient(50% 70% at 50% 100%, rgba(62, 123, 255, .28), rgba(62, 123, 255, 0) 70%),
    var(--char);
  border-top: 1px solid var(--line);
}
.contact-in { display: flex; flex-direction: column; align-items: center; }
.contact h2 { margin-inline: auto; }
.contact .sub { margin-inline: auto; margin-bottom: 32px; }
.mail { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 40px; font-size: 14px; color: rgba(247, 247, 255, .5); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.foot img { height: 22px; width: auto; }
.foot .links a { font-size: 14px; }

@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes drift { to { transform: translateX(-60px); } }
.drift { animation: drift 14s ease-in-out infinite alternate; }

@media (max-width: 960px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
}
@media (max-width: 760px) {
  .nav .links { display: none; }
  .hero-in { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .hero-mark { order: -1; }
  .hero-mark img { width: min(260px, 70%); }
  .lead { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .grid3 { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .grid4, .steps { grid-template-columns: 1fr; }
  .brand img { height: 22px; }
  .horizon { left: -70%; right: -70%; bottom: -66%; }
  .foot-in { flex-direction: column; text-align: center; }
  .foot .links { flex-wrap: wrap; justify-content: center; gap: 16px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drift, .hero-mark img { animation: none; }
  .btn, .card { transition: none; }
}
