:root {
  color-scheme: light;
  --ink: #12364d;
  --blue: #0579e8;
  --deep-blue: #0357b6;
  --line: rgb(53 130 190 / 24%);
  --glass: rgb(255 255 255 / 54%);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #c6e7fb; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.aqua-bg {
  position: fixed;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 13% 22%, rgb(255 255 255 / 95%) 0 1.5%, transparent 19%),
    radial-gradient(ellipse at 85% 18%, rgb(115 211 255 / 82%) 0 2%, transparent 29%),
    radial-gradient(ellipse at 36% 93%, rgb(111 185 253 / 77%) 0 3%, transparent 38%),
    linear-gradient(135deg, #f1fbff 0%, #c8e9fb 43%, #8bcaf1 100%);
}
.aqua-bg::before,
.aqua-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  background: linear-gradient(145deg, rgb(255 255 255 / 86%), rgb(255 255 255 / 5%));
  box-shadow: inset 10px 14px 23px rgb(255 255 255 / 68%), inset -18px -20px 30px rgb(41 134 207 / 17%);
}
.aqua-bg::before { width: 50vw; height: 50vw; top: -28vw; left: -8vw; }
.aqua-bg::after { width: 43vw; height: 43vw; right: -17vw; bottom: -23vw; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  min-height: 88px;
  padding: 15px clamp(22px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgb(255 255 255 / 82%);
  background: linear-gradient(180deg, rgb(255 255 255 / 78%), rgb(206 240 255 / 56%));
  box-shadow: 0 1px 0 rgb(38 125 186 / 20%), 0 12px 28px rgb(13 96 162 / 11%), inset 0 1px 1px #fff;
  backdrop-filter: blur(22px) saturate(155%);
}
.brand {
  grid-column: 2;
  color: var(--blue);
  font-family: "Orbitron", sans-serif;
  font-size: clamp(24px, 4vw, 43px);
  font-weight: 800;
  letter-spacing: -0.07em;
  text-decoration: none;
  text-shadow: 0 1px 0 #fff, 0 3px 10px rgb(0 128 255 / 33%);
}
.brand sup {
  display: inline-block;
  margin-left: .12em;
  font-family: "Space Grotesk", sans-serif;
  font-size: .38em;
  letter-spacing: 0;
  vertical-align: top;
}
.header-status {
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgb(10 119 224 / 22%);
  border-radius: 999px;
  color: #2370ae;
  background: rgb(255 255 255 / 47%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
}
.otter-ascii {
  grid-column: 3;
  justify-self: end;
  margin: 0;
  color: #0870c7;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(3px, .4vw, 5px);
  font-weight: 700;
  line-height: 1;
  opacity: .72;
}

main { width: min(1210px, calc(100% - 40px)); margin: 0 auto; padding: clamp(22px, 4vw, 48px) 0 55px; }
.intro { max-width: 680px; margin-bottom: clamp(28px, 4vw, 46px); }
.eyebrow, .detail-label { margin: 0 0 10px; color: #147ed0; font-family: "Orbitron", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
h1, h2 { margin: 0; letter-spacing: -.065em; }
h1 { color: #123b5b; font-size: clamp(37px, 6.2vw, 72px); line-height: .96; }
.intro > p:last-child { max-width: 605px; margin: 20px 0 0; color: #31536b; font-size: clamp(16px, 2.1vw, 20px); line-height: 1.5; }

.apps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(15px, 2.2vw, 28px); }
.app-card {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 30px;
  background: var(--glass);
  box-shadow: 0 18px 30px rgb(15 92 149 / 16%), inset 0 1px 0 #fff, inset 0 0 0 1px rgb(41 134 207 / 9%);
  backdrop-filter: blur(20px) saturate(140%);
  transition: transform .28s ease, box-shadow .28s ease;
}
.app-card::after {
  content: "";
  position: absolute;
  width: 245px;
  height: 245px;
  right: -105px;
  bottom: -115px;
  border-radius: 50%;
  background: rgb(255 255 255 / 27%);
  box-shadow: inset 10px 10px 30px rgb(255 255 255 / 42%);
  pointer-events: none;
}
.app-card:hover { transform: translateY(-7px); box-shadow: 0 25px 44px rgb(15 92 149 / 22%), inset 0 1px 0 #fff; }
.app-open {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 410px;
  padding: 30px;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}
.app-open::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 104px;
  height: 104px;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 34px;
  background: linear-gradient(145deg, rgb(255 255 255 / 62%), rgb(179 228 252 / 23%));
  box-shadow: inset 0 1px 1px #fff, 0 12px 24px rgb(13 96 162 / 10%);
}
.card-glass { position: absolute; inset: 0; background: linear-gradient(125deg, rgb(255 255 255 / 31%), transparent 48%); pointer-events: none; }
.app-open > img {
  position: absolute;
  top: 34px;
  right: 34px;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 25%;
  box-shadow: 0 9px 15px rgb(8 74 128 / 18%);
  transform: rotate(5deg);
  transition: transform .35s ease;
}
.app-card:hover .app-open > img { transform: rotate(2deg) scale(1.035); }
.card-copy { position: absolute; z-index: 1; top: 48%; left: 30px; display: flex; flex-direction: column; }
.app-kicker { margin-bottom: 9px; color: #167aca; font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.card-copy strong { color: #143e5e; font-size: clamp(27px, 3vw, 38px); line-height: .89; letter-spacing: -.08em; }
.app-summary { max-width: 210px; margin-top: 12px; color: #3a627c; font-size: 14px; font-weight: 500; line-height: 1.3; }
.open-hint { margin-top: 18px; color: #1c72af; font-size: 13px; font-weight: 700; }
.open-hint b { display: inline-block; margin-left: 5px; font-size: 20px; vertical-align: -2px; transition: transform .2s ease; }
.app-card:hover .open-hint b { transform: translateX(4px); }
.lutrae,
.lutrapod,
.draw-party {
  background:
    radial-gradient(circle at 87% 17%, rgb(255 255 255 / 68%) 0 1%, transparent 27%),
    linear-gradient(155deg, rgb(248 254 255 / 83%), rgb(164 223 252 / 58%));
}

.app-detail { display: none; }
.apps-grid.is-detail { display: block; }
.apps-grid.is-detail .app-card { display: none; }
.apps-grid.is-detail .app-card.is-open { display: block; min-height: min(670px, calc(100vh - 148px)); }
.apps-grid.is-detail .app-card.is-open::after { width: 430px; height: 430px; right: -110px; bottom: -180px; }
.apps-grid.is-detail .app-open { display: none; }
.apps-grid.is-detail .app-detail { display: block; position: relative; z-index: 2; min-height: inherit; padding: clamp(26px, 5vw, 56px); animation: detailReveal .32s .16s both; }
@keyframes detailReveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.back-button {
  padding: 9px 13px;
  border: 1px solid rgb(10 110 201 / 22%);
  border-radius: 999px;
  color: #116bb2;
  background: rgb(255 255 255 / 48%);
  box-shadow: inset 0 1px 0 #fff;
  font: 700 12px "Space Grotesk", sans-serif;
  letter-spacing: .05em;
  cursor: pointer;
}
.back-button:hover, .back-button:focus-visible { background: #fff; outline: 2px solid #1887de; outline-offset: 2px; }
.detail-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .55fr); align-items: center; gap: 28px; max-width: 1010px; margin: clamp(35px, 9vh, 100px) auto 0; }
.detail-content h2 { color: #104a76; font-size: clamp(45px, 8vw, 86px); line-height: .9; }
.detail-lead { max-width: 560px; margin: 22px 0 9px; color: #1b557e; font-size: clamp(19px, 3vw, 28px); font-weight: 600; line-height: 1.2; }
.detail-content p:not(.detail-label):not(.detail-lead) { max-width: 590px; color: #31536b; font-size: 17px; line-height: 1.55; }
.detail-icon { justify-self: center; width: min(100%, 250px); border-radius: 24%; filter: drop-shadow(0 28px 24px rgb(3 72 126 / 24%)); transform: rotate(5deg); }
.store-link { display: inline-flex; align-items: center; gap: 18px; margin-top: 24px; padding: 15px 19px; border: 1px solid rgb(255 255 255 / 82%); border-radius: 15px; color: #fff; background: linear-gradient(#278ee8, #0668c7); box-shadow: 0 8px 15px rgb(3 102 194 / 26%), inset 0 1px 0 rgb(255 255 255 / 48%); font: 700 12px "Orbitron", sans-serif; letter-spacing: .03em; text-decoration: none; }
.store-link:hover { background: linear-gradient(#38a1f7, #0877dc); transform: translateY(-1px); }
.store-link span { font: 21px/1 "Space Grotesk", sans-serif; }
.privacy-link {
  display: block;
  width: fit-content;
  margin-top: 16px;
  color: #216eaa;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.privacy-link:hover { color: #034e92; }
footer { padding: 0 20px 35px; color: rgb(12 88 147 / 72%); font: 700 10px "Orbitron", sans-serif; letter-spacing: .18em; text-align: center; }

@media (max-width: 840px) {
  .apps-grid { grid-template-columns: 1fr; }
  .app-card, .app-open { min-height: 330px; }
  .app-open > img { top: 26px; right: 7%; width: 72px; height: 72px; }
  .app-open::before { top: 14px; right: 4%; }
  .detail-content { grid-template-columns: 1fr; margin-top: 44px; }
  .detail-icon { width: min(210px, 52vw); grid-row: 1; }
}
@media (max-width: 560px) {
  .site-header { min-height: 70px; padding: 10px 20px; gap: 10px; }
  .brand { font-size: 24px; }
  .header-status { display: none; }
  .otter-ascii { font-size: 3px; }
  main { width: min(100% - 28px, 1210px); padding-top: 26px; }
  .app-card, .app-open { min-height: 298px; border-radius: 23px; }
  .app-open { padding: 22px; }
  .card-copy { bottom: 22px; left: 22px; }
  .card-copy { top: 48%; bottom: auto; }
  .app-open > img { width: 64px; height: 64px; top: 22px; right: 7%; }
  .apps-grid.is-detail .app-card.is-open { min-height: calc(100vh - 104px); }
  .apps-grid.is-detail .app-detail { padding: 23px; }
}
