:root {
  --bg: #fffaf7;
  --bg-2: #fff1e8;
  --card: #ffffff;
  --ink: #3b1a0c;
  --ink-2: #6b4a3a;
  --muted: #9a7b6c;
  --line: #f3e2d7;
  --orange: #f0621c;
  --orange-2: #ff8a3d;
  --orange-dark: #c9480c;
  --radius: 22px;
  --shadow: 0 18px 50px -20px rgba(201, 72, 12, .28);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 250, 247, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--ink-2); }
.nav a:hover, .nav a.active { color: var(--orange-dark); text-decoration: none; }
.nav .btn { color: #fff; }
.burger { display: none; background: none; border: 0; font-size: 26px; color: var(--ink); cursor: pointer; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 14px; font-weight: 700; font-size: 16px;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(240, 98, 28, .7);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; box-shadow: 0 14px 28px -10px rgba(240, 98, 28, .8); }
.btn.sm { padding: 10px 16px; font-size: 14px; border-radius: 12px; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--orange-2); }

/* hero */
.hero {
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(255, 138, 61, .20), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(255, 190, 150, .25), transparent 60%),
    var(--bg);
  padding: 80px 0 90px;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--orange-dark);
}
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; margin: 20px 0 18px; letter-spacing: -.02em; }
.hero h1 span { color: var(--orange); }
.hero p.lead { font-size: 19px; color: var(--ink-2); max-width: 540px; margin: 0 0 30px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art .badge { width: 88%; max-width: 420px; filter: drop-shadow(0 40px 50px rgba(201, 72, 12, .30)); animation: float 6s ease-in-out infinite; }
.hero-art .chip {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 14px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 8px;
}
.hero-art .chip.c1 { top: 4%; left: 2%; }
.hero-art .chip.c2 { bottom: 10%; right: 0; }
.hero-art .chip.c3 { bottom: -2%; left: 10%; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(1deg); } }

/* sections */
section { padding: 84px 0; }
section.alt { background: var(--bg-2); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.01em; }
.sec-head p { color: var(--ink-2); margin: 0; font-size: 17px; }

.grid { display: grid; gap: 20px; }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  font-size: 26px; background: linear-gradient(135deg, #fff1e6, #ffe0cc); margin-bottom: 18px;
}
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* platforms */
.platform { display: flex; flex-direction: column; gap: 14px; }
.platform .os { font-size: 34px; }
.platform h3 { margin: 0; }
.platform .links { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.platform .links a, .platform .links span {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px; border-radius: 12px; background: var(--bg-2); font-weight: 600; font-size: 14px; color: var(--ink);
}
.platform .links a:hover { background: #ffe4d3; text-decoration: none; }
.platform .links span { color: var(--muted); }
.soon { font-size: 12px; font-weight: 700; color: var(--orange-dark); background: #fff; padding: 2px 8px; border-radius: 999px; }

/* steps */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 24px; left: 28px; width: 34px; height: 34px; border-radius: 10px;
  background: var(--orange); color: #fff; font-weight: 800; display: grid; place-items: center;
}

/* protocols */
.tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; }

/* cta */
.cta {
  background: linear-gradient(135deg, #ff8a3d, #e5520e);
  border-radius: 30px; color: #fff; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px;
  box-shadow: 0 30px 60px -30px rgba(201, 72, 12, .8);
}
.cta h2 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 36px); }
.cta p { margin: 0; opacity: .92; }
.cta .btn { background: #fff; color: var(--orange-dark); box-shadow: none; flex-shrink: 0; }

/* docs layout */
.doc { display: grid; grid-template-columns: 250px 1fr; gap: 48px; padding: 48px 0 90px; }
.doc aside { position: sticky; top: 96px; align-self: start; }
.doc aside h4 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.doc aside a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.doc aside a:hover, .doc aside a.active { background: var(--bg-2); color: var(--orange-dark); text-decoration: none; }
.doc aside .group + .group { margin-top: 22px; }
.prose { max-width: 780px; }
.prose h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; margin: 0 0 10px; letter-spacing: -.01em; }
.prose .updated { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.prose h2 { font-size: 24px; margin: 42px 0 12px; scroll-margin-top: 90px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; scroll-margin-top: 90px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
.prose code { background: var(--bg-2); padding: 2px 7px; border-radius: 6px; font-size: 14px; color: var(--orange-dark); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.note {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange);
  border-radius: 14px; padding: 16px 20px; margin: 20px 0;
}
.note p { margin: 0; }
.lang { display: inline-flex; gap: 6px; margin-bottom: 18px; }
.lang a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.lang a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.lang a:hover { text-decoration: none; }
table.req { width: 100%; border-collapse: collapse; margin: 14px 0; }
table.req td, table.req th { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
table.req th { color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }

/* faq */
details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 12px 0; }
details summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--orange); font-size: 22px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; color: var(--ink-2); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 36px; background: #fff; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer img { height: 34px; width: auto; margin-bottom: 12px; }
.footer p { color: var(--muted); font-size: 14px; margin: 0; max-width: 300px; }
.footer h5 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer a { display: block; color: var(--ink-2); font-weight: 600; font-size: 14.5px; padding: 4px 0; }
.footer .copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .actions { justify-content: center; }
  .hero-art { margin-top: 20px; }
  .grid.g3, .grid.g4 { grid-template-columns: repeat(2, 1fr); }
  .cta { flex-direction: column; text-align: center; padding: 40px 28px; }
  .doc { grid-template-columns: 1fr; gap: 20px; }
  .doc aside { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .doc aside .group { display: contents; }
  .doc aside h4 { display: none; }
  .doc aside a { background: #fff; border: 1px solid var(--line); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; }
  .burger { display: block; }
  .grid.g3, .grid.g4 { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero { padding: 48px 0 60px; }
}
