@font-face {
  font-family: "Fredoka";
  src: url("fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #0b0a10;
  --panel: #15141c;
  --panel-2: #1c1b25;
  --line: #2a2933;
  --text: #f4f2fa;
  --muted: #a9a6b8;
  --pink: #ff3b9d;
  --pink-dark: #d8277f;
  --yellow: #f4ee2a;
  --blue: #4b5fc2;
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Fredoka", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #ff6fb7; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 10, 16, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 20px; }
.brand img { width: 40px; height: 40px; }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* ---------- headings ---------- */
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; font-weight: 650; }
h1 { font-size: clamp(34px, 5vw, 54px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 22px; }
.nowrap { white-space: nowrap; }
.riso { text-shadow: -2px 0 var(--yellow), 2px 0 var(--blue); }
.kicker { color: var(--pink); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 14px; margin-bottom: 8px; }
.lead { color: var(--muted); font-size: 20px; max-width: 640px; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 56px; text-align: center; }
.hero video { width: 100%; max-width: 960px; margin: 0 auto 8px; border-radius: var(--radius); }
.hero .lead { margin: 0 auto 28px; }
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 18px;
  border: 2px solid transparent; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--pink); color: #fff; box-shadow: -3px 3px 0 var(--yellow), 3px 3px 0 var(--blue); }
.btn-primary:hover { background: #ff57ab; color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--panel); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head .lead { margin: 0 auto; }
.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .dot { width: 14px; height: 14px; border-radius: 4px; margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0; font-size: 16px; }

.designs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.card-body { padding: 18px 22px 22px; }
.card-body p { color: var(--muted); margin: 6px 0 0; font-size: 16px; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.tag-free { background: var(--yellow); color: #16141c; }
.tag-pack { background: var(--pink); color: #fff; }
.more { margin-top: 26px; text-align: center; color: var(--muted); }

.palette { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; max-width: 880px; margin: 0 auto; }
.swatch { display: flex; flex-direction: column; align-items: center; width: 72px; font-size: 14px; color: var(--muted); text-align: center; }
.swatch span { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 6px; background: var(--c); box-shadow: 0 0 22px -6px var(--c); }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--line); }

.contact { text-align: center; }
.contact .email { font-size: clamp(22px, 3vw, 30px); font-weight: 600; }

/* ---------- support page ---------- */
.doc { max-width: 820px; }
.doc h2 { margin-top: 48px; }
.doc h3 { margin-top: 28px; }
.doc ol, .doc ul { padding-left: 24px; }
.doc li { margin: 6px 0; }
.note { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--pink); border-radius: 12px; padding: 14px 18px; color: var(--muted); }
.note strong { color: var(--text); }
table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 12px 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
kbd { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-family: inherit; font-size: 0.9em; }
.doc .toc, .toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; background: var(--panel); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: 16px; }
.toc a:hover { border-color: var(--pink); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer p { margin: 0; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .site-header .wrap { height: 60px; }
  .brand span { display: none; }
  .nav { gap: 16px; }
  .features, .designs { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .hero { padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- platforms ---------- */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.platform { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; transition: transform 0.15s ease, border-color 0.15s ease; }
.platform:hover { transform: translateY(-3px); border-color: var(--pink); color: var(--text); }
.platform img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.platform .card-body h3 { font-size: 20px; margin-bottom: 4px; }
.tag-soon { background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.tag-ready { background: #00ff80; color: #10140f; }

.subnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 8px; padding: 0; list-style: none; }
.subnav a { display: inline-block; background: var(--panel); border: 1px solid var(--line); padding: 8px 18px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 500; }
.subnav a:hover { border-color: var(--pink); color: var(--text); }
.platform-section { scroll-margin-top: 80px; }
.platform-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; margin-bottom: 8px; }
.platform-head h2 { margin: 0; }
.platform-intro { color: var(--muted); max-width: 720px; margin: 0 0 28px; }

.monitors { display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; align-items: end; }
.monitor figure, .phone figure, .avatar figure { margin: 0; }
.monitor .screen { border: 10px solid #22212b; border-radius: 14px; overflow: hidden; background: #000; }
.monitor .stand { width: 18%; height: 26px; margin: 0 auto; background: #22212b; clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%); }
.monitor .base { width: 34%; height: 8px; margin: 0 auto; background: #22212b; border-radius: 6px; }
figcaption { color: var(--muted); font-size: 15px; text-align: center; margin-top: 12px; }

.phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.phone .frame { width: 220px; border: 9px solid #22212b; border-radius: 38px; overflow: hidden; background: #000; position: relative; box-shadow: 0 20px 50px -20px rgba(255, 59, 157, 0.35); }
.phone .frame::before { content: ""; position: absolute; top: 10px; left: 50%; width: 70px; height: 20px; transform: translateX(-50%); background: #000; border-radius: 12px; }

.avatars { display: flex; flex-wrap: wrap; justify-content: center; gap: 44px; }
.avatar img { width: 200px; height: 200px; border-radius: 50%; border: 4px solid var(--line); object-fit: cover; }

@media (max-width: 900px) {
  .platforms { grid-template-columns: repeat(2, 1fr); }
  .monitors { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .platforms { grid-template-columns: 1fr; }
  .phone .frame { width: 180px; }
  .avatar img { width: 160px; height: 160px; }
}
