/* White background with a "liquid glass" look: frosted, see-through panels
   floating over soft colour blobs (rose + sky blue, from the app icon). */
:root {
  --bg: #ffffff;
  --text: #1d1d1f;
  --muted: #5f6368;
  --accent: #6a5cff;
  --rose: #ff8fb1;
  --sky: #7cc8ff;
  --glass: rgba(255, 255, 255, 0.45);
  --glass-strong: rgba(255, 255, 255, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.9);
  --glass-line: rgba(20, 20, 40, 0.08);
  --shadow: 0 8px 32px rgba(40, 40, 90, 0.10), 0 1px 2px rgba(40, 40, 90, 0.06);
  --blur: blur(22px) saturate(180%);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  isolation: isolate; /* keeps the blobs above the white page */
}
/* Soft colour blobs behind the glass */
body::before, body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  pointer-events: none;
}
body::before {
  width: min(560px, 90vw); height: min(560px, 90vw);
  top: -120px; left: -140px;
  background: radial-gradient(circle, var(--rose), transparent 70%);
}
body::after {
  width: min(640px, 95vw); height: min(640px, 95vw);
  bottom: -180px; right: -160px;
  background: radial-gradient(circle, var(--sky), transparent 70%);
}
main { position: relative; }
main::before {
  content: "";
  position: absolute; z-index: -1; pointer-events: none;
  width: min(520px, 90vw); height: min(520px, 90vw);
  top: 45%; left: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, #b9a8ff, transparent 70%);
  filter: blur(80px); opacity: 0.55;
}
a { color: var(--accent); }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Shared glass surface */
.glass, header.top .bar, .card, .badge, .doc, footer .bar {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Floating glass header */
header.top { position: sticky; top: 12px; z-index: 10; padding: 12px 20px 0; }
header.top .bar {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 12px 0 16px;
  border-radius: 20px;
  background: var(--glass-strong);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav a {
  margin-left: 4px; padding: 7px 14px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: 15px;
  transition: background .2s, color .2s;
}
nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.8); }

.hero { text-align: center; padding: 72px 0 36px; }
.hero img.icon { width: 116px; height: 116px; border-radius: 27px; box-shadow: 0 16px 40px rgba(106, 92, 255, 0.25); }
.hero h1 { font-size: 50px; line-height: 1.1; letter-spacing: -0.02em; margin: 26px 0 14px; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.badge { color: var(--text); padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; }

/* Liquid glass button: tinted glass with a bright top highlight */
.button {
  display: inline-block; position: relative;
  padding: 15px 30px; border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 17px;
  background: linear-gradient(135deg, rgba(255, 120, 170, 0.9), rgba(106, 92, 255, 0.9) 55%, rgba(90, 180, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(106, 92, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 6px rgba(0, 0, 0, 0.12);
  transition: transform .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(106, 92, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }

.shots { display: flex; gap: 18px; overflow-x: auto; padding: 24px 4px 44px; scroll-snap-type: x mandatory; }
.shots img {
  height: 520px; border-radius: 24px; scroll-snap-align: center; flex: none;
  border: 1px solid var(--glass-edge);
  box-shadow: 0 12px 34px rgba(40, 40, 90, 0.14);
}

section { padding: 48px 0; }
section h2 { font-size: 32px; letter-spacing: -0.01em; margin: 0 0 22px; text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.card { border-radius: 24px; padding: 24px; transition: transform .2s; }
.card:hover { transform: translateY(-3px); }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p, .card ul { margin: 0; color: var(--muted); }
.card ul { padding-left: 20px; }
ol.steps { max-width: 640px; margin: 0 auto; font-size: 17px; border-radius: 24px; padding: 24px 24px 14px 48px; }
ol.steps li { margin-bottom: 10px; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
section .sub { text-align: center; color: var(--muted); margin: -12px 0 22px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.narrow.wrap { max-width: 760px; }

/* Header call to action */
nav a.nav-cta {
  color: #fff; font-weight: 600;
  background: linear-gradient(135deg, #ff78aa, #6a5cff 55%, #5ab4ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
nav a.nav-cta:hover { color: #fff; background: linear-gradient(135deg, #ff78aa, #6a5cff 55%, #5ab4ff); filter: brightness(1.06); }

/* Try-it demo */
.demo { max-width: 720px; margin: 0 auto; border-radius: 28px; padding: 26px 26px 18px; background: var(--glass-strong); }
.demo-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px 4px; }
.bubble { border-radius: 18px; padding: 14px 18px; font-size: 18px; line-height: 1.45; margin-bottom: 16px; min-height: 56px; }
.bubble.before { background: rgba(0, 0, 0, 0.05); color: #44464c; }
.bubble.after {
  background: linear-gradient(135deg, rgba(255, 120, 170, 0.14), rgba(106, 92, 255, 0.14) 55%, rgba(90, 180, 255, 0.14));
  border: 1px solid rgba(106, 92, 255, 0.25); color: var(--text); font-weight: 500;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 6px; }
.chip {
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; color: var(--text);
  background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(20, 20, 40, 0.1);
  box-shadow: 0 2px 8px rgba(40, 40, 90, 0.06), inset 0 1px 0 #fff;
  transition: transform .15s, background .2s, color .2s;
}
.chip:hover { transform: translateY(-1px); }
.chip.on { color: #fff; border-color: transparent; background: linear-gradient(135deg, #ff78aa, #6a5cff 55%, #5ab4ff); }
.demo-note { text-align: center; font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* Feature icons */
.ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(255, 143, 177, 0.25), rgba(124, 200, 255, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.9);
}

/* Engine cards */
.engine .tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); background: rgba(106, 92, 255, 0.1); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.card ul.ticks { list-style: none; padding: 0; margin: 14px 0; }
.card ul.ticks li { padding-left: 26px; position: relative; margin-bottom: 6px; color: var(--text); }
.card ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.card p.small { font-size: 14px; }

/* Setup steps */
.step .num {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 12px;
  color: #fff; font-weight: 700; background: linear-gradient(135deg, #ff78aa, #6a5cff 55%, #5ab4ff);
}
.step p { color: var(--text); }

/* FAQ */
.faq { border-radius: 24px; padding: 6px 22px; background: var(--glass-strong); }
.faq details { border-bottom: 1px solid var(--glass-line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 12px; font-size: 24px; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* Final call to action */
.cta { text-align: center; border-radius: 32px; padding: 44px 24px 48px; background: var(--glass-strong); }
.cta img { border-radius: 18px; box-shadow: 0 10px 28px rgba(106, 92, 255, 0.25); }
.cta h2 { margin: 18px 0 6px; }
.cta p { color: var(--muted); margin: 0 0 22px; }

a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid rgba(106, 92, 255, 0.5); outline-offset: 2px; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .button, .chip { transition: none; }
}

/* Policy pages: the text sits on one big glass sheet */
.doc { margin: 36px auto 48px; padding: 36px 40px 44px; border-radius: 28px; background: var(--glass-strong); }
.doc h1 { font-size: 38px; letter-spacing: -0.01em; margin: 0 0 4px; }
.doc .updated { color: var(--muted); margin-top: 0; }
.doc h2 { font-size: 22px; margin-top: 32px; }

footer { padding: 8px 20px 28px; color: var(--muted); font-size: 14px; text-align: center; }
footer .bar { max-width: 1000px; margin: 0 auto; border-radius: 22px; padding: 18px 20px 4px; }
footer a { color: var(--muted); margin: 0 10px; }

/* Browsers without backdrop-filter: use a plainer white panel */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, header.top .bar, .card, .badge, .doc, footer .bar { background: rgba(255, 255, 255, 0.92); }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 34px; }
  .hero p.lead { font-size: 18px; }
  .shots img { height: 420px; }
  nav a { padding: 6px 9px; font-size: 14px; }
  nav a.hide-sm { display: none; }
  .bubble { font-size: 16px; }
  .demo { padding: 20px 16px 14px; }
  .doc { padding: 26px 22px 32px; margin: 24px 12px 36px; }
}

/* "Made by SKI" pill under the footer */
footer a.made-by {
  display: inline-flex; align-items: center; gap: 4px; margin: 16px auto 0;
  padding: 7px 16px; border-radius: 999px; text-decoration: none;
  color: var(--text); font-size: 14px;
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform .2s;
}
footer a.made-by b {
  background: linear-gradient(135deg, #ff78aa, #6a5cff 55%, #5ab4ff);
  -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .04em;
}
footer a.made-by:hover { transform: translateY(-1px); }
