:root {
  --bg: #0b1020;
  --bg2: #111833;
  --card: #151d3b;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef1ff;
  --muted: #a9b0d6;
  --pink: #ff8fb1;
  --orange: #ffb26b;
  --teal: #5ee6d0;
  --accent: #ff9a8a;
  --radius: 18px;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 75% -10%, rgba(255, 143, 177, 0.16), transparent 60%),
              radial-gradient(900px 500px at 0% 30%, rgba(94, 230, 208, 0.09), transparent 60%), var(--bg);
  color: var(--text);
  font: 17px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.grad { background: linear-gradient(90deg, var(--pink), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; color: var(--teal); margin-bottom: 0.8em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.fine { font-size: 0.85rem; color: var(--muted); }
.center { text-align: center; }
section { max-width: var(--wrap); margin: 0 auto; padding: 96px 24px; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.85em 1.4em; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(90deg, var(--pink), var(--orange)); color: #1b1030;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  box-shadow: 0 8px 30px rgba(255, 143, 177, 0.28);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(255, 143, 177, 0.4); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.35); box-shadow: none; }
.btn-small { padding: 0.55em 1.1em; font-size: 0.9rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 1.6em 0 1em; }
.chip { background: var(--card); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.4em 0.95em; font: inherit; font-size: 0.85rem; cursor: pointer; }
.chip.active { color: var(--text); border-color: var(--pink); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 14px max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
  background: rgba(11, 16, 32, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; font-size: 1.1rem; }
.brand img { border-radius: 8px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 0.93rem; font-weight: 600; }
.nav nav a:hover { color: var(--text); }

/* hero */
.hero { display: grid; grid-template-columns: 1fr; gap: 48px; padding-top: 72px; }
.hero-text { max-width: 760px; }
.wall-wrap { position: relative; }
.wall {
  --wall: url(assets/wall-lake.jpg);
  position: relative; height: clamp(220px, 34vw, 400px); user-select: none;
}
.screen {
  position: absolute; bottom: 14%; background: #05070f; border-radius: 10px; padding: 1.2%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.screen::after { /* stand */
  content: ""; position: absolute; left: 50%; top: 100%; width: 16%; height: 22%; transform: translateX(-50%);
  background: linear-gradient(#1c2340, #0d1226); clip-path: polygon(35% 0, 65% 0, 80% 100%, 20% 100%);
}
.screen i {
  display: block; width: 100%; height: 100%; border-radius: 3px;
  background-image: var(--wall); background-repeat: no-repeat;
  transition: background-image 0.6s;
}
/* Three screens of different real sizes. The picture is positioned in "wall" space, so it lines up across the gaps. */
.s1 { left: 0; width: 30%; height: 58%; }
.s2 { left: 33%; width: 38%; height: 74%; }
.s3 { left: 74%; width: 26%; height: 52%; }
.wall-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.hint { font-size: 0.82rem; color: var(--muted); margin-left: 6px; }

/* sprite pets */
.pet { position: absolute; background-repeat: no-repeat; image-rendering: auto; cursor: grab; will-change: transform; }
.pet.small, .pet.big { position: relative; }
.bubble {
  position: absolute; z-index: 5; background: #fff; color: #1b1030; font-weight: 700; font-size: 0.85rem;
  padding: 6px 12px; border-radius: 14px; white-space: nowrap; transform: translate(-50%, -100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); pointer-events: none;
}
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; transform: translateX(-50%); }

/* why */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.compare figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.compare figcaption { margin-top: 16px; color: var(--muted); font-size: 0.95rem; }
.compare b { color: var(--text); }
.mini { position: relative; height: 130px; }
.mini span { position: absolute; bottom: 10px; background: #05070f; border-radius: 6px; padding: 4px; overflow: hidden; }
.mini span::before { content: ""; position: absolute; inset: 4px; border-radius: 2px; background: url(assets/wall-lake-small.jpg) no-repeat; }
.mini span:nth-child(1) { left: 0; width: 30%; height: 70%; }
.mini span:nth-child(2) { left: 33%; width: 38%; height: 90%; }
.mini span:nth-child(3) { left: 74%; width: 26%; height: 62%; }
/* sliced by pixels: every screen shows an equal third, squashed to its own size */
/* sliced by pixels: each screen gets an equal third at its own scale, so the horizon jumps at every edge */
.mini.bad span:nth-child(1)::before { background-size: 330% 150%; background-position: 0 85%; }
.mini.bad span:nth-child(2)::before { background-size: 240% 110%; background-position: 50% 0; }
.mini.bad span:nth-child(3)::before { background-size: 380% 170%; background-position: 100% 100%; }
/* filled in by main.js for the "good" one, using wall coordinates */

/* features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid article { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.grid article p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.ico { font-size: 1.6rem; margin-bottom: 10px; }
.tag { position: absolute; top: 18px; right: 18px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 999px; background: linear-gradient(90deg, #a46bff, var(--pink)); color: #fff; }

/* pets */
.pets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.petcard {
  background: linear-gradient(180deg, #1a2350, #1b1640); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 10px 14px; text-align: center; cursor: pointer; transition: transform 0.15s, border-color 0.15s; font: inherit; color: inherit;
}
.petcard:hover, .petcard:focus-visible { transform: translateY(-3px); border-color: rgba(255, 143, 177, 0.6); outline: none; }
.petcard .stage { height: 120px; display: flex; align-items: flex-end; justify-content: center; }
.petcard .stage .pet { position: relative; }
.petcard b { display: block; margin-top: 8px; }
.petcard small { color: var(--muted); font-size: 0.78rem; }
.petcard .free { color: var(--teal); font-weight: 700; }

/* devs */
.devs { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.devs-text p { color: var(--muted); }
.devs-demo { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 0; min-height: 300px; overflow: hidden; }
pre { margin: 0; background: #0a0f22; border-radius: 12px; padding: 16px; overflow-x: auto; font-size: 0.82rem; line-height: 1.5; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #d7dcff; }
.c { color: #7d86b8; }
.devs-demo { display: flex; flex-direction: column; }
.dev-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-top: 28px; }
.say { position: relative; margin-bottom: 10px; background: #fff; color: #1b1030; border-radius: 14px; padding: 8px 14px; font-weight: 700; font-size: 0.9rem; box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.say b { display: block; font-size: 0.7rem; color: #8a7fb0; text-transform: uppercase; letter-spacing: 0.08em; }
.say::after { content: ""; position: absolute; left: calc(50% - 6px); bottom: -6px; border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
.devs-demo .pet.small { position: relative; }

/* link */
.link-diagram { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; }
.pc { width: 170px; height: 110px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: #05070f; border: 6px solid #1c2342; box-shadow: 0 20px 40px rgba(0,0,0,0.35); }
.pc.mac { background: linear-gradient(135deg, #ff8fb1, #ffb26b); color: #1b1030; }
.pc.win { background: linear-gradient(135deg, #4c8dff, #5ee6d0); color: #08142c; }
.pc.lin { background: linear-gradient(135deg, #f7d154, #ff8f5a); color: #2c1a08; }
.arrow { font-size: 1.8rem; color: var(--muted); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.plan.featured { border: 1.5px solid var(--pink); background: linear-gradient(180deg, #1f2552, #171d40); box-shadow: 0 20px 60px rgba(255, 143, 177, 0.15); }
.ribbon { position: absolute; top: -12px; left: 26px; background: linear-gradient(90deg, var(--pink), var(--orange)); color: #1b1030; font-size: 0.75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.price { font-size: 2.4rem; font-weight: 800; margin-bottom: 12px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; color: var(--muted); font-size: 0.95rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.plan li b { color: var(--text); }
.plan .btn { justify-content: center; }

/* pet service */
.service { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.service-art { position: relative; height: 340px; border-radius: 24px; background: url(assets/wall-city-small.jpg) center / cover; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.4); }
.service-text p { color: var(--muted); }
.steps { padding-left: 1.2em; color: var(--muted); }
.steps li { margin-bottom: 0.4em; }
.steps b { color: var(--text); }

/* faq */
.faq { max-width: 820px; }
.faq h2 { text-align: center; margin-bottom: 32px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; }

.final { text-align: center; padding-bottom: 120px; }
.final .btn { margin: 12px 0 18px; }
footer { border-top: 1px solid var(--line); padding: 28px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.9rem; }
footer div:first-child { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; }
footer img { border-radius: 5px; }
.ver { color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; background: #fff; color: #1b1030; padding: 10px 18px; border-radius: 12px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }

/* legal pages */
.legal { max-width: 760px; padding-top: 60px; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }

@media (min-width: 1100px) {
  .hero { grid-template-columns: 0.85fr 1.25fr; align-items: center; gap: 40px; padding-top: 56px; }
  .hero h1 { font-size: clamp(2.4rem, 3.7vw, 3.5rem); }
  .hero .lead { font-size: 1.05rem; }
  .wall { height: 340px; }
  .s1 { height: 46%; } .s2 { height: 60%; } .s3 { height: 41%; }
}
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .pets { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .devs, .service { grid-template-columns: 1fr; }
  .nav nav { display: none; }
  .nav .btn-small { margin-left: auto; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 64px 16px; }
  .grid, .compare { grid-template-columns: 1fr; }
  .pets { grid-template-columns: repeat(2, 1fr); }
  .nav { padding: 12px 16px; }
  .hint { width: 100%; margin: 4px 0 0; }
  .wall { height: 170px; }
  .s1 { height: 54%; } .s2 { height: 70%; } .s3 { height: 48%; }
  .pc { width: 110px; height: 76px; font-size: 0.85rem; }
  .arrow { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
