/* SkyPings: sky-blue, modern, sleek */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --sky-1: #f0f8ff;
  --sky-2: #cbe8ff;
  --sky-3: #8fcbff;
  --sky-4: #4aa6f5;
  --blue: #1f8bef;
  --blue-deep: #0b5ec4;
  --ink: #0c2135;
  --ink-soft: #4a6480;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(31, 139, 239, 0.16);
  --shadow: 0 18px 50px rgba(15, 88, 165, 0.20);
  --ok: #17b978;
  --mil: #e08a1e;
  --livery: #a35bff;
  --radius: 22px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink); min-height: 100vh; overflow-x: hidden;
  background:
    radial-gradient(60% 45% at 82% -8%, #fffef4 0%, rgba(255,254,244,0) 60%),
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 48%, var(--sky-3) 100%);
  background-attachment: fixed;
}
h1, h2, .logo, .hero .lead b { font-family: "Sora", system-ui, sans-serif; }

/* sun + clouds */
.sky-decor { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sun { position: absolute; top: -70px; right: -40px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, #fff8d6 0%, #ffe98a 45%, rgba(255,233,138,0) 72%); filter: blur(2px); }
.cloud { position: absolute; background: #fff; border-radius: 100px; opacity: .8;
  filter: blur(.4px); box-shadow: 40px 12px 0 -6px #fff, -46px 14px 0 -8px #fff; animation: drift linear infinite; }
.cloud.c1 { width: 120px; height: 40px; top: 18%; left: -160px; animation-duration: 70s; }
.cloud.c2 { width: 90px; height: 30px; top: 42%; left: -140px; animation-duration: 95s; animation-delay: -30s; opacity:.6; }
.cloud.c3 { width: 150px; height: 48px; top: 66%; left: -200px; animation-duration: 60s; animation-delay: -15s; opacity:.7; }
@keyframes drift { to { transform: translateX(120vw); } }

.wrap { position: relative; z-index: 1; max-width: 940px; margin: 0 auto; padding: 0 20px; }

/* nav */
.nav { position: relative; z-index: 3; display: flex; align-items: center; gap: 18px;
  max-width: 980px; margin: 0 auto; padding: 22px 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px;
  letter-spacing: -.02em; color: var(--blue-deep); text-decoration: none; }
.logo img { width: 30px; height: 30px; filter: drop-shadow(0 3px 6px rgba(11,94,196,.35)); }
.nav .spacer { flex: 1; }
.nav a.link { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 14px; }
.nav a.link:hover, .nav a.link.active { color: var(--blue-deep); }

/* hero */
.hero { text-align: center; padding: 34px 0 26px; }
.hero .kicker { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); background: rgba(255,255,255,.6);
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); }
.hero h1 { font-size: clamp(40px, 7.5vw, 76px); line-height: 1.0; margin: 20px 0 16px;
  letter-spacing: -.035em; font-weight: 800; }
.hero h1 .grad { background: linear-gradient(115deg, var(--blue) 0%, var(--blue-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(16px, 2.3vw, 21px); color: var(--ink-soft); max-width: 600px; margin: 0 auto 32px; }
.plane3d { width: min(440px, 84vw); height: 250px; margin: 4px auto 0; }
.plane3d canvas { display: block; pointer-events: none; filter: drop-shadow(0 14px 22px rgba(11,94,196,.22)); }

/* address entry */
.entry { max-width: 580px; margin: 0 auto; }
.entry-row { display: flex; gap: 10px; }
.entry input { flex: 1; padding: 18px 20px; font-size: 16px; border-radius: 16px; font-family: inherit;
  border: 1px solid var(--line); background: rgba(255,255,255,.9); color: var(--ink); box-shadow: var(--shadow); }
.entry input:focus { outline: 2px solid var(--sky-4); }
.hint { color: var(--ink-soft); font-size: 13.5px; margin-top: 14px; }
.hint a { color: var(--blue-deep); font-weight: 600; text-decoration: none; }
.hint a:hover { text-decoration: underline; }
#resume { display: none; align-items: center; justify-content: center; gap: 10px; margin: 20px auto 0;
  max-width: 560px; background: var(--card); backdrop-filter: blur(12px); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 18px; font-size: 14px; }

/* buttons */
.btn { border: none; cursor: pointer; font-weight: 700; font-size: 15px; font-family: inherit;
  padding: 18px 26px; border-radius: 16px; color: #fff; white-space: nowrap;
  background: linear-gradient(115deg, var(--blue), var(--blue-deep));
  box-shadow: 0 10px 26px rgba(11,94,196,.38); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(11,94,196,.48); }
.btn.ghost { background: rgba(255,255,255,.72); color: var(--blue-deep); box-shadow: none; border: 1px solid var(--line); }
.btn.small { padding: 9px 15px; font-size: 13px; border-radius: 11px; }

/* feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 46px 0 20px; }
.feat { background: var(--card); backdrop-filter: blur(14px); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; text-align: left; }
.feat .ico { font-size: 26px; }
.feat h3 { font-family: "Sora"; margin: 12px 0 6px; font-size: 16px; }
.feat p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }

footer { text-align: center; color: var(--ink-soft); font-size: 13px; padding: 40px 0 34px; position: relative; z-index: 1; }
footer a { color: var(--blue-deep); text-decoration: none; }

/* ---------- app (alerter) ---------- */
.card { background: var(--card); backdrop-filter: blur(16px); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
.card h2 { font-family: "Sora"; font-size: 16px; margin: 0 0 14px; }
.loc-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.loc-bar .place { font-weight: 700; font-family: "Sora"; }
.muted { color: var(--ink-soft); font-size: 13px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
  background: rgba(255,255,255,.7); border: 1.5px solid var(--line); color: var(--ink-soft); transition: all .12s; }
.chip input { display: none; }
.chip.on { background: linear-gradient(115deg, var(--blue), var(--blue-deep)); color: #fff; border-color: transparent;
  box-shadow: 0 6px 16px rgba(11,94,196,.32); }

.control { margin-top: 18px; }
.slider-row { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.slider-row input[type=range] { flex: 1; accent-color: var(--blue); }
.slider-val { font-family: "Sora"; font-weight: 700; color: var(--blue-deep); min-width: 56px; text-align: right; }

.status-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(23,185,120,.18); }
.dot.off { background: #d24; box-shadow: 0 0 0 4px rgba(210,34,68,.18); }

.pl { display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 14px; margin-bottom: 10px; text-decoration: none; color: inherit;
  background: rgba(255,255,255,.66); border: 1px solid var(--line); transition: transform .1s; }
.pl:hover { transform: translateX(3px); border-color: var(--sky-4); }
.pl .who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl .who strong { font-size: 15px; }
.pl .sub { color: var(--ink-soft); font-size: 13px; }
.pl .geo { text-align: right; font-size: 13px; color: var(--ink-soft); }
.pl .eta { display: block; color: var(--blue-deep); font-weight: 800; }
.badge { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 6px; letter-spacing: .04em; color: #fff; }
.badge.mil { background: var(--mil); } .badge.livery { background: var(--livery); }
.empty { text-align: center; color: var(--ink-soft); padding: 24px; line-height: 1.6; }

/* about */
.about .avatar { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  font-size: 42px; background: linear-gradient(135deg, var(--sky-3), var(--blue-deep)); box-shadow: var(--shadow); }
.prose { max-width: 620px; margin: 0 auto; line-height: 1.75; }
.prose p { margin: 0 0 14px; }
.links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 18px 0; }
.shoutout { display: flex; align-items: center; gap: 14px; margin: 20px 0;
  background: rgba(255,255,255,.62); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.shoutout .ico { font-size: 30px; }
.shoutout strong { color: var(--blue-deep); font-family: "Sora"; }
.shoutout a { color: var(--blue-deep); font-weight: 600; text-decoration: none; white-space: nowrap; }
.shoutout a:hover { text-decoration: underline; }

@media (max-width: 680px) {
  .features { grid-template-columns: 1fr; }
  .entry-row { flex-direction: column; }
  .pl { flex-direction: column; align-items: flex-start; }
  .pl .geo { text-align: left; }
}
