:root {
  color-scheme: dark;
  --bg0: #030c15;
  --bg1: #07182b;
  --bg2: #041622;
  --panel: rgba(9, 27, 44, 0.88);
  --line: rgba(160, 204, 229, 0.18);
  --line-strong: rgba(203, 237, 255, 0.16);
  --text: #f7fbff;
  --muted: #c8d7e4;
  --muted2: #b8c9d9;
  --blue1: #1fa9ff;
  --blue2: #1780ff;
  --green1: #16d7b1;
  --green2: #0ca586;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg0); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 7% 18%, rgba(33, 126, 214, .28), transparent 26%),
    radial-gradient(circle at 92% 30%, rgba(13, 201, 155, .20), transparent 24%),
    linear-gradient(90deg, #07182b 0%, #04111f 36%, #02101b 63%, #05232a 100%);
}
button, a { font: inherit; }
.page-shell {
  width: min(1650px, calc(100% - 64px));
  margin: 0 auto;
  padding: 14px 0 26px;
}
.page-header { text-align: center; margin-bottom: 28px; }
.page-header h1 {
  margin: 0;
  font-size: clamp(3.4rem, 6vw, 5.7rem);
  line-height: .93;
  letter-spacing: -.06em;
  font-weight: 900;
  text-shadow: 0 10px 35px rgba(0,0,0,.24);
}
.page-header p {
  margin: 18px 0 0;
  color: #d4e0eb;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
}
.apps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.app-card {
  position: relative;
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, .94fr);
  grid-template-rows: 1fr auto;
  gap: 10px 12px;
  padding: 30px 30px 20px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)),
    radial-gradient(circle at 12% 14%, rgba(52, 143, 221, .20), transparent 30%),
    linear-gradient(135deg, rgba(18, 50, 75, .97) 0%, rgba(7, 22, 37, .985) 56%, rgba(6, 18, 30, .99) 100%);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .30), inset 0 1px rgba(255,255,255,.04);
}
.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,.06), rgba(255,255,255,0) 38%);
}
.app-card--fishing {
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)),
    radial-gradient(circle at 88% 16%, rgba(30, 206, 173, .16), transparent 28%),
    linear-gradient(135deg, rgba(16, 67, 73, .96) 0%, rgba(8, 31, 41, .985) 56%, rgba(6, 23, 34, .99) 100%);
}
.card-copy { z-index: 2; min-width: 0; }
.app-heading { display: flex; align-items: flex-start; gap: 20px; }
.app-icon {
  width: 112px; height: 112px; flex: 0 0 auto; object-fit: cover;
  border-radius: 28px; box-shadow: 0 16px 30px rgba(0,0,0,.26), inset 0 1px rgba(255,255,255,.2);
}
.eyebrow {
  margin: 8px 0 8px; color: #7fdaff; font-size: .95rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .085em;
}
.app-card--fishing .eyebrow { color: #7ef2d6; }
h2 {
  margin: 0; font-size: clamp(2.3rem, 2.9vw, 4rem); line-height: .95; letter-spacing: -.05em; font-weight: 860;
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.badges span {
  padding: 6px 11px; border-radius: 999px; color: #e4eef8;
  background: rgba(83, 126, 156, .23); font-size: .79rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
.app-card--fishing .badges span { background: rgba(42, 127, 111, .28); }
.description {
  max-width: 520px; margin: 34px 0 0; color: var(--muted);
  font-size: clamp(1rem, 1.16vw, 1.24rem); line-height: 1.62;
}
.features {
  list-style: none; display: grid; gap: 16px; margin: 62px 0 0; padding: 0;
  font-size: clamp(1rem, 1.06vw, 1.13rem); color: #ecf5fb;
}
.features li { position: relative; padding-left: 29px; }
.features li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #49d4ff; font-weight: 900; }
.app-card--fishing .features li::before { color: #4fe2b6; }
.phone-stage {
  position: relative; min-height: 520px; z-index: 1; display: block;
}
.glow {
  position: absolute; inset: 10% 8% 8%;
  border-radius: 50%;
  filter: blur(46px);
  opacity: .92;
  background: radial-gradient(circle, rgba(48, 154, 255, .52) 0%, rgba(31, 113, 241, .24) 46%, rgba(11, 44, 103, 0) 72%);
}
.app-card--fishing .glow {
  background: radial-gradient(circle, rgba(36, 212, 166, .40) 0%, rgba(20, 153, 126, .18) 46%, rgba(11, 44, 103, 0) 72%);
}
.phone {
  position: absolute; aspect-ratio: 9 / 19.5; padding: 10px;
  border-radius: 46px;
  background: linear-gradient(145deg, #dfe3e8 0%, #2b2e32 8%, #040506 38%, #0c0d10 76%, #9da4ab 100%);
  box-shadow: 0 38px 45px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.12), inset 0 0 0 2px rgba(255,255,255,.28);
  transition: transform .25s ease, filter .25s ease;
}
.phone-stage:hover .phone { filter: brightness(1.03); }
.phone--front { width: min(320px, 74%); z-index: 2; }
.phone--back { width: min(292px, 67%); z-index: 1; }
.phone--weather-front { right: 2%; top: 8%; transform: rotate(9deg) perspective(1100px) rotateY(-6deg); }
.phone--weather-back { left: 2%; top: 17%; transform: rotate(-11deg) perspective(1000px) rotateY(7deg); opacity: .98; }
.phone--fishing-front { right: 0; left: 10%; top: 8%; transform: rotate(8deg) perspective(1100px) rotateY(-5deg); }
.phone-stage:hover .phone--weather-front { transform: rotate(7deg) translateY(-7px) perspective(1100px) rotateY(-4deg); }
.phone-stage:hover .phone--weather-back { transform: rotate(-9deg) translateY(-5px) perspective(1000px) rotateY(5deg); }
.phone-stage:hover .phone--fishing-front { transform: rotate(6deg) translateY(-6px) perspective(1100px) rotateY(-3deg); }
.phone-screen { width: 100%; height: 100%; overflow: hidden; border-radius: 38px; background: #fff; }
.phone-screen img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top center; }
.phone-camera {
  position: absolute; z-index: 2; top: 16px; left: 50%; width: 44px; height: 14px;
  transform: translateX(-50%); border-radius: 999px; background: #050607; box-shadow: inset 0 0 0 1px #272a2f;
}
.card-actions {
  z-index: 3; grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: stretch;
}
.download-button, .qr-button {
  min-height: 74px; border-radius: 18px; border: 1px solid rgba(255,255,255,.12); text-decoration: none; color: white;
}
.download-button {
  display: flex; align-items: center; gap: 16px; padding: 11px 18px;
  background: linear-gradient(135deg, var(--blue1), #2c89d3);
  box-shadow: 0 16px 32px rgba(19, 152, 236, .23); transition: transform .2s ease, filter .2s ease;
}
.app-card--fishing .download-button {
  background: linear-gradient(135deg, #18bea3, #0aa48a);
  box-shadow: 0 16px 32px rgba(8, 183, 134, .22);
}
.download-button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.download-icon {
  display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 14px;
  background: rgba(255,255,255,.12); font-size: 2rem; line-height: 1;
}
.download-button span:last-child { display: grid; gap: 3px; text-align: left; }
.download-button small { font-size: .76rem; font-weight: 500; opacity: .95; }
.download-button strong { font-size: 1.03rem; }
.qr-button {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px;
  cursor: pointer; background: rgba(17, 35, 50, .94); font-weight: 700;
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}
.qr-button:hover { background: rgba(22, 42, 59, .98); }
.qr-icon-wrap {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: rgba(255,255,255,.08); box-shadow: inset 0 1px rgba(255,255,255,.06);
}
.qr-icon { width: 20px; height: 20px; display: block; }
.qr-dialog {
  width: min(390px, calc(100% - 34px)); padding: 28px; color: #f8fbff; border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px; background: #0b1b29; box-shadow: 0 30px 90px rgba(0,0,0,.65); text-align: center;
}
.qr-dialog::backdrop { background: rgba(0, 7, 15, .78); backdrop-filter: blur(6px); }
.qr-dialog h3 { margin: 4px 0 18px; font-size: 1.45rem; }
.qr-dialog img { display: block; width: min(260px, 90%); margin: 0 auto; padding: 12px; border-radius: 18px; background: white; }
.qr-dialog p { color: #b7c6d5; }
.dialog-close { position: absolute; right: 14px; top: 10px; border: 0; color: white; background: transparent; font-size: 2rem; cursor: pointer; }
@media (max-width: 1320px) {
  .app-card { min-height: 720px; grid-template-columns: minmax(0,1fr) minmax(270px,.9fr); }
  .phone--front { width: min(290px, 76%); }
  .phone--back { width: min(258px, 67%); }
}
@media (max-width: 1180px) {
  .apps-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 700px; }
  .phone-stage { min-height: 510px; }
}
@media (max-width: 720px) {
  .page-shell { width: min(100% - 22px, 680px); padding-top: 16px; }
  .page-header { margin-bottom: 24px; }
  .page-header h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .page-header p { margin-top: 14px; }
  .app-card {
    grid-template-columns: 1fr; grid-template-rows: auto auto auto; min-height: 0; padding: 22px 18px 18px; border-radius: 28px;
  }
  .app-heading { gap: 14px; }
  .app-icon { width: 86px; height: 86px; border-radius: 22px; }
  .eyebrow { margin-top: 5px; }
  h2 { font-size: 2.25rem; }
  .description { margin-top: 24px; line-height: 1.55; }
  .features { margin-top: 28px; gap: 14px; }
  .phone-stage { min-height: 520px; }
  .phone--front { width: min(268px, 76%); }
  .phone--back { width: min(214px, 61%); }
  .phone--weather-front { right: 1%; top: 14%; }
  .phone--weather-back { left: 1%; top: 8%; }
  .phone--fishing-front { left: 15%; top: 10%; }
  .card-actions { grid-template-columns: 1fr; }
  .qr-button { min-height: 62px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
