/* The site sits on the app's deep blue glass look in both light and dark mode: glass.js draws drifting color behind
   everything, and content floats on frosted panels. Without WebGL, the gradient on body stands in. */
:root {
  --text: #f4f7fd;
  --muted: rgba(228, 236, 250, 0.8);
  --accent: #9fd0ff;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-strong: rgba(9, 22, 66, 0.55);
  --rim: rgba(255, 255, 255, 0.22);
  --shadow: 0 18px 50px rgba(2, 10, 40, 0.35);
  --coral: #ff5b4c;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(120% 80% at 15% 20%, #2f6fe0 0%, transparent 55%),
    radial-gradient(90% 70% at 90% 85%, rgba(255, 91, 76, 0.35) 0%, transparent 60%),
    linear-gradient(180deg, #081a54 0%, #0a54d6 100%) fixed;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#glass-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  display: block;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Frosted glass: blurs and lifts what's behind it, with a bright rim and a soft top shine. */
.glass, .card, .plan, .promise, details, .contact, article.doc, .phones img, .showcase img {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)), var(--glass);
  border: 1px solid var(--rim);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand:hover { text-decoration: none; }

nav.links { display: flex; gap: 18px; font-size: 15px; }
nav.links a { color: var(--muted); }
nav.links a:hover { color: var(--text); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0 64px;
}

.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 16px; text-shadow: 0 2px 30px rgba(0, 20, 80, 0.35); }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero .icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 24px; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 14px;
  background: #ffffff;
  color: #0a1a4a;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.store:hover { text-decoration: none; opacity: 0.92; }
.store svg { width: 22px; height: 22px; fill: currentColor; }
.fine { color: var(--muted); font-size: 14px; margin-top: 12px; }

.phones { position: relative; display: flex; justify-content: center; gap: 16px; }
.phones img { position: relative; z-index: 1; width: 46%; max-width: 230px; border-radius: 28px; padding: 6px; }
.phones img:nth-child(2) { transform: translateY(28px); }

/* Glass cards in the app icon's shape, floating behind the phones. */
.float {
  position: absolute;
  z-index: 0;
  width: 120px;
  aspect-ratio: 0.85;
  border-radius: 28px;
  pointer-events: none;
  animation: drift 12s ease-in-out infinite;
}
.float.one { top: -24px; left: -6%; rotate: -14deg; }
.float.two { bottom: -10px; right: -4%; width: 150px; rotate: 12deg; animation-delay: -6s; }
.float.spark { top: 10%; right: 8%; width: 34px; aspect-ratio: 1; border: 0; box-shadow: none; background: var(--coral);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  clip-path: path("M17 0 C18.4 9.5 24.5 15.6 34 17 C24.5 18.4 18.4 24.5 17 34 C15.6 24.5 9.5 18.4 0 17 C9.5 15.6 15.6 9.5 17 0 Z");
  animation: twinkle 4s ease-in-out infinite; }

@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 8px -16px; }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.35; scale: 0.7; }
  50% { opacity: 1; scale: 1; }
}

section { padding: 56px 0; }
section h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.01em; margin: 0 0 10px; }
section p.sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border-radius: 20px; padding: 22px; }
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* The app's glass tiles: a color gradient with a soft shine and a bright rim. */
.badge {
  --tile: #0a84ff;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: #fff;
  font-size: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--tile) 72%, white), var(--tile));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 6px 16px rgba(0, 0, 0, 0.18);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; }
.showcase figure { margin: 0; }
.showcase img { width: 100%; border-radius: 24px; padding: 5px; }
.showcase img.watch { border-radius: 44px; max-width: 200px; display: block; margin: 0 auto; }
.showcase figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 10px; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { border-radius: 22px; padding: 26px; }
.plan.pro { border-color: rgba(159, 208, 255, 0.7); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0 0 1px rgba(159, 208, 255, 0.35); }
.plan h3 { margin: 0 0 4px; font-size: 22px; }
.plan .price { color: var(--muted); margin: 0 0 16px; }
.plan ul { margin: 0; padding-left: 20px; }
.plan li { margin: 6px 0; }

.promise { border-radius: 26px; padding: 36px; text-align: center; }
.promise p { color: var(--muted); max-width: 38em; margin: 8px auto 0; }

/* Long text gets a darker, denser panel so it stays easy to read over the moving color. */
article.doc {
  max-width: 800px;
  margin: 16px 0 64px;
  padding: 28px 34px 40px;
  border-radius: 26px;
  background: var(--glass-strong);
}
article.doc h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.02em; margin: 8px 0 6px; }
article.doc h2 { font-size: 21px; margin: 32px 0 8px; }
article.doc .updated { color: var(--muted); margin-bottom: 24px; }
article.doc ul { padding-left: 22px; }
article.doc li { margin: 6px 0; }

details { border-radius: 16px; padding: 14px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

.contact { border-radius: 18px; padding: 22px; margin: 24px 0; }

footer {
  border-top: 1px solid var(--rim);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background: rgba(6, 16, 50, 0.25);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; }
footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .float { animation: none; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .showcase { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  .float.one { left: 0; }
  .float.two { right: 0; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  nav.links { gap: 12px; }
  .promise { padding: 26px 20px; }
  article.doc { padding: 22px 20px 32px; }
  .float { display: none; }
}
