:root {
  color-scheme: dark;
  --ink: #edf7ff;
  --muted: #9bb2cb;
  --line: rgba(161, 202, 239, .17);
  --panel: rgba(10, 31, 59, .72);
  --blue: #59c3ff;
  --navy: #06172f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 72% 9%, rgba(38, 152, 225, .2), transparent 28rem),
    radial-gradient(circle at 12% 46%, rgba(66, 108, 196, .13), transparent 34rem),
    linear-gradient(155deg, #041226 0%, #071c37 48%, #06172f 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}
a { color: inherit; }
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 99;
  background: white;
  color: #071a35;
  padding: .7rem 1rem;
  border-radius: .7rem;
}
.skip-link:focus { top: 1rem; }

.cloud-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -2;
}
.cloud {
  position: absolute;
  width: 250px;
  height: 70px;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  filter: blur(.2px);
  box-shadow:
    55px -28px 0 2px rgba(255,255,255,.045),
    120px -8px 0 -8px rgba(255,255,255,.04),
    170px 3px 0 -18px rgba(255,255,255,.035);
}
.cloud:before,
.cloud:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}
.cloud:before { width: 95px; height: 95px; left: 38px; top: -42px; }
.cloud:after { width: 120px; height: 120px; left: 105px; top: -58px; }
.cloud-a { right: -80px; top: 160px; transform: scale(1.35); opacity: .7; }
.cloud-b { left: -150px; top: 530px; transform: scale(.9); opacity: .45; }
.cloud-c { right: 12%; top: 860px; transform: scale(.7); opacity: .3; }
.cloud-d { left: 18%; top: 1300px; transform: scale(1.05); opacity: .25; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  min-width: 0;
}
.site-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 12px;
}
.brand-text {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  font-size: 1.08rem;
  letter-spacing: -.02em;
}
.site-brand strong { font-weight: 850; }
.site-brand em { font-style: normal; color: var(--blue); font-weight: 650; }

.account-link {
  color: #d8eaff;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .65rem 1rem;
  transition: .2s ease;
  white-space: nowrap;
}
.account-link:hover {
  border-color: rgba(100,199,255,.6);
  background: rgba(69,165,222,.1);
  transform: translateY(-1px);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}
.hero {
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 860px;
  padding: 70px 0 80px;
}
.eyebrow {
  margin: 0 0 1rem;
  color: #6fcaff;
  font-size: .72rem;
  letter-spacing: .2em;
  font-weight: 850;
}
h1 {
  margin: 0;
  font-size: clamp(3.4rem, 8.2vw, 7.2rem);
  line-height: .91;
  letter-spacing: -.073em;
  font-weight: 820;
}
h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(196,227,250,.62);
}
.hero-copy {
  max-width: 650px;
  color: #b5c9dc;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.65;
  margin: 2rem 0;
}
.hero-action {
  width: fit-content;
  text-decoration: none;
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .12em;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid #56bfff;
}

.apps-section {
  padding: 70px 0 100px;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin: 0;
  letter-spacing: -.05em;
}
.section-heading > p {
  margin: 0 0 .35rem;
  color: var(--muted);
  font-size: .88rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.app-card {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(15,45,79,.86), rgba(7,24,47,.9));
  text-decoration: none;
  box-shadow: 0 20px 60px rgba(0,0,0,.16);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.app-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 0%, var(--glow, rgba(65,176,255,.2)), transparent 48%);
  opacity: .85;
  pointer-events: none;
}
.app-card:hover {
  transform: translateY(-5px);
  border-color: rgba(125,207,255,.48);
  box-shadow: 0 25px 70px rgba(0,0,0,.28);
}
.app-card:focus-visible {
  outline: 3px solid #72cfff;
  outline-offset: 3px;
}
.app-card.featured { grid-column: span 2; }
.card-chatdad { --glow: rgba(139,100,255,.32); }
.card-airspace { --glow: rgba(36,192,255,.32); }
.card-aircrew { --glow: rgba(0,166,255,.32); }
.card-galley { --glow: rgba(34,181,255,.25); }
.card-skywriting { --glow: rgba(111, 174, 255, .30); }
.card-wordwar { --glow: rgba(255,190,50,.21); }
.card-emoji { --glow: rgba(241,98,194,.22); }
.card-account { --glow: rgba(71,202,164,.22); }

.card-top,
.card-body,
.card-footer {
  position: relative;
  z-index: 1;
}
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.app-logo {
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  border-radius: 19px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 28px rgba(0,0,0,.2);
}
.image-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-galley .image-logo img,
.card-chatdad .image-logo img,
.card-aircrew .image-logo img,
.account-logo img {
  object-fit: contain;
}
.account-logo {
  padding: 7px;
  background: #151d2a;
}
.open-arrow {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.15rem;
  color: #a5c6e3;
  transition: .2s ease;
}
.app-card:hover .open-arrow {
  color: white;
  border-color: #61c5ff;
  transform: rotate(5deg);
}
.card-body {
  display: flex;
  flex-direction: column;
}
.category {
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .15em;
  color: #74caff;
  margin-bottom: .62rem;
}
.card-body strong {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -.055em;
}
.description {
  color: #a9bed3;
  line-height: 1.5;
  margin-top: .8rem;
  max-width: 460px;
  font-size: .93rem;
}
.card-footer {
  border-top: 1px solid var(--line);
  padding-top: .9rem;
  color: #7f9bb6;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4fdaa3;
  box-shadow: 0 0 12px rgba(79,218,163,.8);
}

.wordwar-logo {
  min-height: 58px;
  display: flex;
  gap: 4px;
  align-items: center;
}
.wordwar-logo span {
  width: 36px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #f5b735;
  color: #152035;
  font-size: 1rem;
  font-weight: 950;
  box-shadow: inset 0 -3px rgba(0,0,0,.12), 0 7px 15px rgba(0,0,0,.18);
}
.wordwar-logo i { width: 5px; }
.wordwar-logo span:nth-of-type(n+5) { background: #6bc28b; }
.emoji-logo {
  height: 72px;
  display: flex;
  align-items: center;
  letter-spacing: -.18em;
  font-size: 3.3rem;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,.22));
}
.emoji-logo span {
  transform: translateY(-7px) rotate(-8deg);
  display: inline-block;
  font-size: .78em;
}

footer {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  min-height: 110px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: #7790a9;
  font-size: .76rem;
}
footer span:last-child { text-align: right; }
.status-link {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #a9bed3;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: .04em;
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: .2s ease;
}
.status-link:hover {
  color: white;
  border-color: rgba(100,199,255,.6);
  background: rgba(69,165,222,.1);
  transform: translateY(-1px);
}
.footer-brand {
  color: #d8e8f7;
  font-weight: 850;
  letter-spacing: .09em;
}
.footer-brand b { color: var(--blue); }

@media (max-width: 920px) {
  .app-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .app-card.featured { grid-column: span 2; }
  .cloud-a { right: -150px; }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }
  .site-header { min-height: 76px; }
  .site-logo { width: 42px; height: 42px; border-radius: 10px; }
  .brand-text { font-size: 1rem; }
  .account-link {
    font-size: 0;
    width: 42px;
    height: 42px;
    padding: 0;
    display: grid;
    place-items: center;
  }
  .account-link span { font-size: 1rem; }
  .hero {
    min-height: 470px;
    padding: 48px 2px 64px;
  }
  h1 {
    font-size: clamp(2.65rem, 13.5vw, 4.5rem);
    line-height: 1.12;
    letter-spacing: -.035em;
    overflow-wrap: normal;
  }
  .hero-copy {
    margin: 1.5rem 0 1.75rem;
    line-height: 1.55;
  }
  .apps-section { padding: 52px 0 70px; }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: .6rem;
  }
  .app-grid { grid-template-columns: 1fr; }
  .app-card,
  .app-card.featured {
    grid-column: auto;
    min-height: 310px;
    border-radius: 20px;
    padding: 1.15rem;
  }
  .app-logo { width: 70px; height: 70px; border-radius: 17px; }
  .wordwar-logo span {
    width: 30px;
    height: 35px;
    font-size: .85rem;
  }
  .cloud {
    transform: scale(.68);
    opacity: .28;
  }
  .cloud-a { right: -190px; top: 120px; }
  .cloud-b { left: -190px; top: 500px; }
  .cloud-c { display: none; }
  footer {
    grid-template-columns: 1fr;
    padding: 1.6rem 0;
    text-align: center;
    min-height: 0;
  }
  footer span:last-child { text-align: center; }
  .status-link { justify-self: center; }
}

@media (max-width: 390px) {
  .hero { min-height: 440px; }
  .app-card,
  .app-card.featured { min-height: 295px; }
  .wordwar-logo { gap: 2px; }
  .wordwar-logo span { width: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


.full-brand-logo {
  width: auto;
  height: 68px;
  max-width: 220px;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 620px) {
  .full-brand-logo {
    width: auto;
    height: 50px;
    max-width: 170px;
  }
}

.header-actions { display:flex; align-items:center; gap:.65rem; }
.install-link {
  color:#e8f5ff;
  background:rgba(89,195,255,.10);
  border:1px solid rgba(89,195,255,.36);
  border-radius:999px;
  padding:.65rem 1rem;
  font:inherit;
  font-size:.82rem;
  font-weight:800;
  cursor:pointer;
}
.install-link:hover { background:rgba(89,195,255,.18); border-color:rgba(89,195,255,.68); }
.card-flightreading { --glow: rgba(65,176,255,.30); }
.card-flightreading .image-logo { padding:4px; }
.card-flightreading .image-logo img { width:100%; height:100%; object-fit:contain; padding:0; }
.install-dialog {
  width:min(92vw,520px);
  padding:0;
  border:none;
  border-radius:24px;
  background:#0a203b;
  color:#edf7ff;
  box-shadow:0 30px 100px rgba(0,0,0,.45);
}
.install-dialog::backdrop { background:rgba(0,7,18,.68); backdrop-filter:blur(3px); }
.install-dialog-body { position:relative; padding:28px; }
.install-dialog h2 { margin:.2rem 0 1rem; font-size:1.8rem; }
.install-dialog p { color:#b8cce0; line-height:1.55; }
.dialog-close {
  position:absolute;
  top:14px;
  right:14px;
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  color:#fff;
  font-size:1.35rem;
}
.install-primary {
  width:100%;
  margin-top:.8rem;
  border:0;
  border-radius:12px;
  background:#59c3ff;
  color:#05172d;
  padding:.85rem 1rem;
  font-weight:900;
}
@media (max-width:620px) {
  .header-actions { gap:.4rem; }
  .install-link {
    max-width:112px;
    padding:.55rem .7rem;
    font-size:.72rem;
    line-height:1.05;
  }
}

.card-dashboard5x5 { --glow: rgba(18,170,178,.32); }
.card-dashboard5x5 .matrix-logo { background:#e6f6fa; color:#13627c; font-size:1.48rem; font-weight:900; letter-spacing:-.08em; }
