/* weatherboard.net — coming-soon page. Carries the weatherboard dark aesthetic:
   Big Shoulders Display + IBM Plex Mono, cyan/orange accents, an aurora-lit
   near-black backdrop with grain, and the animated weather glyph. */

:root {
  --bg: #06080e;
  --bg-2: #0a0e16;
  --ink: #eef2f7;
  --dim: #9aa7bd;
  --faint: #5b6678;
  --cyan: #5fd4e8;
  --orange: #f4a259;
  --violet: #a78bfa;
  --line: rgba(255, 255, 255, 0.08);
  --disp: "Big Shoulders Display", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  min-height: 100svh;
  background:
    radial-gradient(120% 90% at 50% -10%, #0c1320 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%, #04060a);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--mono);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* thin brand accent rule across the very top */
.topline {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 5;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 45%, var(--orange));
  opacity: .9;
}

/* ---------- atmospheric background ---------- */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; filter: blur(8px); }
.blob {
  position: absolute; border-radius: 50%;
  mix-blend-mode: screen; opacity: .5;
  filter: blur(70px);
  animation: drift 26s var(--ease) infinite alternate;
}
.b1 { width: 56vw; height: 56vw; left: -12vw; top: -16vw;
  background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--cyan) 70%, transparent), transparent 65%); }
.b2 { width: 48vw; height: 48vw; right: -14vw; top: 8vh;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--orange) 60%, transparent), transparent 65%);
  animation-duration: 32s; animation-delay: -6s; }
.b3 { width: 60vw; height: 60vw; left: 18vw; bottom: -28vw;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--violet) 55%, transparent), transparent 65%);
  animation-duration: 38s; animation-delay: -14s; }
@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(4%, 3%, 0) scale(1.12); }
}

/* fine film grain over everything */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 2rem clamp(1.2rem, 5vw, 3rem);
  max-width: 760px; margin-inline: auto;
}
.hero > * { animation: rise .9s var(--ease) both; }
.mark { animation-delay: .05s; }
.eyebrow { animation-delay: .18s; }
.word { animation-delay: .28s; }
.tagline { animation-delay: .4s; }
.status { animation-delay: .52s; }
.chips { animation-delay: .62s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.mark {
  width: clamp(118px, 22vw, 168px);
  height: clamp(118px, 22vw, 168px);
  display: grid; place-items: center;
  margin-bottom: 1.4rem;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: clamp(.62rem, 1.6vw, .72rem); font-weight: 600;
  letter-spacing: .42em; text-transform: uppercase;
  color: var(--dim);
  padding: .4rem .85rem; margin-bottom: 1.1rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
.brand-glyph { color: var(--cyan); display: grid; place-items: center; }

.word {
  font-family: var(--disp); font-weight: 900;
  font-size: clamp(3.4rem, 14vw, 8rem); line-height: .92;
  letter-spacing: .005em; margin: 0;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff, #c4cedd);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 40px rgba(95, 212, 232, 0.12));
}
.word em {
  font-style: normal;
  background: linear-gradient(180deg, var(--cyan), #2aa7c0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.tagline {
  margin: 1.3rem auto 0; max-width: 30ch;
  font-size: clamp(.92rem, 2.3vw, 1.08rem); line-height: 1.6;
  color: var(--dim);
}

.status {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-top: 1.9rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink);
  padding: .55rem 1.1rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--cyan) 40%, transparent);
  background: color-mix(in srgb, var(--cyan) 9%, transparent);
}
.status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .3; transform: scale(.8); } }

.chips {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: .5rem .65rem; margin: 2.2rem 0 0; padding: 0;
}
.chips li {
  font-size: .6rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--faint);
  padding: .35rem .7rem; border-radius: 8px;
  border: 1px solid var(--line);
}

.foot {
  position: relative; z-index: 2;
  padding: 1.6rem; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint);
  animation: rise 1s var(--ease) .8s both;
}
.foot a { color: var(--dim); text-decoration: none; border-bottom: 1px solid var(--line); transition: color .2s; }
.foot a:hover { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 50%, transparent); }

/* ================= animated weather glyph (from weatherboard) ================= */
.wicon { position: relative; width: 100%; height: 100%;
  filter: drop-shadow(0 14px 40px color-mix(in srgb, var(--cyan) 30%, transparent)); }
.wicon .sun { position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe9a8, #f6b73c 70%); animation: throb 4s ease-in-out infinite; }
.wicon .rays { position: absolute; inset: 0; animation: spin 26s linear infinite; }
.wicon .rays::before { content: ""; position: absolute; inset: 0;
  background: repeating-conic-gradient(from 0deg, #f6b73c 0deg 4deg, transparent 4deg 45deg);
  -webkit-mask: radial-gradient(circle, transparent 42%, #000 43%, #000 49%, transparent 50%);
          mask: radial-gradient(circle, transparent 42%, #000 43%, #000 49%, transparent 50%); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes throb { 50% { transform: scale(1.04); } }
.wicon .cloud { position: absolute; left: 8%; right: 8%; bottom: 22%; height: 38%;
  background: linear-gradient(to bottom, #e8eef8, #aebccf); border-radius: 99px;
  animation: cloud-drift 6s ease-in-out infinite alternate; }
.wicon .cloud::before, .wicon .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.wicon .cloud::before { width: 52%; height: 130%; left: 12%; bottom: 30%; }
.wicon .cloud::after  { width: 38%; height: 95%;  right: 14%; bottom: 45%; }
.wicon .cloud.back { inset: auto 20% 42% 24%; height: 30%; opacity: .45; animation-duration: 8s; animation-direction: alternate-reverse; }
@keyframes cloud-drift { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
.wicon.has-cloud .sun, .wicon.has-cloud .rays { inset: 6% 6% auto auto; width: 46%; height: 46%; }

/* a quiet cue at the bottom of the hero, linking down to the demo */
.scrolldown {
  margin-top: 2.4rem;
  font-size: .62rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--faint); text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: color .2s;
}
.scrolldown:hover { color: var(--cyan); }
.scrolldown .arr { animation: bob 2s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- 50-state demo section ---------- */
.demo {
  position: relative; z-index: 2;
  padding: clamp(3rem, 9vw, 6rem) 1.2rem 3rem;
  text-align: center;
}
.demo-title {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1; margin: .5rem 0 0;
  text-transform: uppercase; letter-spacing: .01em;
  background: linear-gradient(180deg, #ffffff, #c4cedd);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.demo-sub {
  color: var(--dim); max-width: 48ch; margin: 1rem auto 0;
  font-size: clamp(.85rem, 2.2vw, 1rem); line-height: 1.6;
}

/* clickable tile-grid map of the US (geographically-arranged squares) */
.usmap {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: clamp(4px, 0.9vw, 9px);
  width: min(94vw, 740px);
  aspect-ratio: 11 / 7;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
}
.st {
  grid-row: var(--r); grid-column: var(--c);
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--dim);
  font-family: var(--mono); font-weight: 600;
  font-size: clamp(.5rem, 1.35vw, .74rem); letter-spacing: .03em;
  text-decoration: none;
  transition: transform .16s var(--ease), background .16s, color .16s, border-color .16s, box-shadow .16s;
}
.st:hover, .st:focus-visible {
  color: #061018; background: var(--cyan); border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--cyan) 38%, transparent);
  outline: none;
}
.demo-foot {
  margin: clamp(1.6rem, 4vw, 2.4rem) auto 0;
  font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--faint);
}

@media (prefers-reduced-motion: reduce) {
  *:not(.wicon):not(.wicon *) { animation-duration: .01s !important; animation-iteration-count: 1 !important; }
}
