:root{
  /* Brand */
  --deep-blue:#1d71b8;
  --light-blue:#a7d7ff;
  --deep-yellow:#ffb81c;
  --light-yellow:#ffe78d;
  --dark-blue:#003a70;

  /* UI */
  --bg: radial-gradient(1200px 800px at 20% 10%, #0b223f 0%, var(--dark-blue) 55%, #06203b 100%);
  --card-bg: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.14);
  --text:#e8f1ff;
  --muted:#b9cbe3;

  /* Grid */
  --grid-size: 120px; /* tile size; adjust for density */
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Fira Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color:var(--text);
  background:var(--bg) fixed;
  overflow:hidden;
}

/* ===== Background symbol grid ===== */
.grid{
  position:fixed; inset:0;
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--grid-size), 1fr));
  grid-auto-rows: var(--grid-size);
  opacity:.75;
  pointer-events:none;
}
.tile{
  display:flex; align-items:center; justify-content:center;
}
.symbol{
  width:70%; height:70%;
}

/* Station circle + wind barb styling */
.okta circle{
  fill: none;
  stroke: var(--light-blue);
  stroke-width: 3.2;
}

.okta path{ /* filled wedges for oktas */
  fill: var(--light-blue);
  opacity: .6;
  stroke: none;
}

.barb line, .barb path, .barb polygon{
  stroke: var(--light-yellow);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  filter: drop-shadow(0 0 2px rgba(255,184,28,.25));
}

/* Calm (no wind) – just the station circle slightly brighter */
.calm .okta circle{
  stroke: #fff;
}

/* Gentle veer animation around the current direction */
.wiggle{
  transform-origin: 50px 50px;
  animation: veer var(--dur, 7s) ease-in-out var(--delay, 0s) infinite alternate;
}

@keyframes veer{
  0%   { transform: rotate(-5deg); }
  100% { transform: rotate( 5deg); }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce){
  .wiggle{ animation: none; }
}

/* ===== Foreground card ===== */
.center{
  position:relative; z-index:2; min-height:100%;
  display:grid; place-items:center; padding:clamp(16px,4vw,48px); text-align:center;
}
.card{
  width:min(720px,92vw); padding:clamp(18px,3.2vw,36px);
  border-radius:22px; background:var(--card-bg); backdrop-filter:blur(8px);
  border:1px solid var(--card-border); box-shadow:0 20px 70px rgba(0,0,0,.35);
}
h1{margin:0 0 .3rem; font-weight:600; font-size:clamp(28px,4.2vw,44px); letter-spacing:.2px}
.lead{margin:.25rem 0 1rem; color:var(--muted); font-size:clamp(16px,2.2vw,18px)}
.brand{display:inline-flex; gap:8px; align-items:center; margin-top:.5rem}
.pill{
  border-radius:999px; padding:.45rem .75rem; font-weight:600; font-size:14px;
  text-decoration:none; border:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.04);
  color:var(--light-blue);
}
.cta{
  display:inline-block; margin-top:.75rem; font-weight:600; color:#0b1220; text-decoration:none;
  background:linear-gradient(180deg, var(--deep-yellow), #e8a900);
  padding:.7rem 1rem; border-radius:12px; box-shadow:0 8px 28px rgba(255,184,28,.25);
}
.cta:hover{filter:brightness(1.04)}
.foot{margin-top:1rem; font-size:12.5px; color:color-mix(in oklab, var(--muted) 82%, white 18%)}
