:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #141414;
  --muted: #706c66;
  --line: #e5e1db;
  --line-strong: #cfc9c1;
  --accent: #df4a2b;
  --accent-dark: #c63b20;
  --accent-soft: #fbe9e3;
  --sage: #dfe8e0;
  --sky: #e4ebf2;
  --sand: #f2e8d8;
  --lilac: #e9e3ef;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px rgba(20, 20, 20, 0.07);
  --header-h: 72px;
  --font: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 22px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.045em;
  line-height: 1.08;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 246, 243, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 19px;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  flex: none;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0 50% 0 0;
  background: var(--accent);
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--ink);
  border-radius: 50%;
  right: 3px;
  bottom: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav a {
  font-size: 14px;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  background: var(--accent);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(223, 74, 43, 0.32);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #333;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--accent-soft);
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Shared sections */
.section {
  padding: 96px 0;
}

.section--tight {
  padding: 64px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(32px, 4.4vw, 58px);
  margin: 10px 0 0;
  max-width: 720px;
}

.section-head p {
  max-width: 420px;
  margin-bottom: 4px;
  color: var(--muted);
}

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* Hero */
.hero {
  padding: 76px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 700;
  margin: 18px 0 24px;
  max-width: 720px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 570px;
  margin-bottom: 34px;
}

.hero .btn-row {
  margin-bottom: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 13px;
  color: var(--muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex: none;
}

.dot--sage {
  background: #6f9b7a;
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.card--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.card--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.card--sage {
  background: var(--sage);
}

.card--sky {
  background: var(--sky);
}

.card--sand {
  background: var(--sand);
}

.card--lilac {
  background: var(--lilac);
}

.card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 14px;
}

.card--accent p,
.card--dark p {
  color: rgba(255, 255, 255, 0.72);
}

.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }

.hero-visual .card {
  min-height: 170px;
}

.hero-visual .card--radio {
  grid-column: span 7;
  min-height: 236px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-visual .card--timer {
  grid-column: span 5;
  min-height: 236px;
}

.hero-visual .card--hand {
  grid-column: span 5;
}

.hero-visual .card--pet {
  grid-column: span 7;
}

.hero-visual .card-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.72;
}

.hero-visual .card-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-top: 10px;
}

.wave {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 58px;
  margin-top: 18px;
}

.wave i {
  display: block;
  width: 5px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.85;
  animation: wave 1.4s ease-in-out infinite alternate;
}

.wave i:nth-child(1) { height: 24%; animation-delay: -0.2s; }
.wave i:nth-child(2) { height: 62%; animation-delay: -0.6s; }
.wave i:nth-child(3) { height: 40%; animation-delay: -1s; }
.wave i:nth-child(4) { height: 88%; animation-delay: -0.4s; }
.wave i:nth-child(5) { height: 52%; animation-delay: -0.8s; }
.wave i:nth-child(6) { height: 74%; animation-delay: -0.1s; }
.wave i:nth-child(7) { height: 34%; animation-delay: -0.7s; }
.wave i:nth-child(8) { height: 66%; animation-delay: -1.1s; }
.wave i:nth-child(9) { height: 44%; animation-delay: -0.3s; }
.wave i:nth-child(10) { height: 80%; animation-delay: -0.9s; }
.wave i:nth-child(11) { height: 30%; animation-delay: -0.5s; }
.wave i:nth-child(12) { height: 56%; animation-delay: -1.2s; }

@keyframes wave {
  from { transform: scaleY(0.55); }
  to { transform: scaleY(1.1); }
}

.timer-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 18px auto 12px;
  transform: rotate(-25deg);
}

.timer-ring span {
  transform: rotate(25deg);
}

.mini-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.mini-pills span {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.75;
}

.art-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.art-block {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: rgba(20, 20, 20, 0.08);
  display: grid;
  place-items: center;
  flex: none;
}

.art-block svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

.pet-dots {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.pet-dots i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.08);
  border: 1px solid rgba(20, 20, 20, 0.08);
}

.pet-dots i:first-child {
  background: var(--accent);
  border-color: var(--accent);
}

/* Stats */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 30px 24px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-size: clamp(30px, 3.4vw, 46px);
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat span {
  font-size: 13px;
  color: var(--muted);
}

/* Zone cards */
.zone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.zone-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
}

.zone-card .zone-art {
  height: 124px;
  margin: 4px 0 18px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
}

.zone-card .zone-art::before,
.zone-card .zone-art::after {
  content: "";
  position: absolute;
}

.zone-art--radio::before {
  width: 150px;
  height: 150px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 22px rgba(223, 74, 43, 0.08), 0 0 0 44px rgba(223, 74, 43, 0.05);
}

.zone-art--radio::after {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  left: calc(50% - 5px);
  top: calc(50% - 5px);
}

.zone-art--hand::before {
  width: 120px;
  height: 70px;
  border: 2px solid var(--ink);
  border-radius: 40px 40px 8px 8px;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.zone-art--hand::after {
  width: 2px;
  height: 52px;
  background: var(--accent);
  left: 50%;
  top: 30%;
  transform: translateX(-50%) rotate(-8deg);
}

.zone-art--book::before {
  width: 130px;
  height: 84px;
  border: 2px solid var(--ink);
  border-radius: 4px 14px 14px 4px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent 49%, rgba(223, 74, 43, 0.55) 49%, rgba(223, 74, 43, 0.55) 51%, transparent 51%);
}

.zone-art--pet::before {
  width: 78px;
  height: 78px;
  border-radius: 50% 50% 46% 46%;
  background: var(--ink);
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
}

.zone-art--pet::after {
  width: 74px;
  height: 42px;
  background: radial-gradient(circle at 18% 30%, var(--ink) 0 8px, transparent 9px), radial-gradient(circle at 82% 30%, var(--ink) 0 8px, transparent 9px);
  left: 50%;
  top: 28%;
  transform: translateX(-50%);
}

.zone-art--study::before {
  width: 120px;
  height: 76px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  border-bottom-width: 8px;
}

.zone-art--study::after {
  width: 58px;
  height: 2px;
  background: var(--accent);
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  box-shadow: 0 14px 0 rgba(20, 20, 20, 0.25), 0 -14px 0 rgba(20, 20, 20, 0.25);
}

.zone-card .tag {
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
}

.zone-card h3 {
  font-size: 26px;
  margin: 0 0 8px;
}

.zone-card p {
  margin-bottom: 18px;
}

.zone-card .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.zone-card .live-count {
  font-size: 12px;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.text-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--muted);
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.search-box {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--bg);
}

.search-box svg {
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.8;
}

.search-box input {
  border: 0;
  background: transparent;
  padding: 10px 0;
  outline: 0;
  width: 180px;
  font-size: 14px;
}

.result-count {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.empty-state {
  display: none;
  padding: 60px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.06);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
}

.step strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 18px;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Demo / phone */
.demo-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.phone {
  width: min(320px, 100%);
  margin-inline: auto;
  border: 10px solid var(--ink);
  border-radius: 38px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 26px 60px rgba(20, 20, 20, 0.14);
}

.phone-notch {
  width: 84px;
  height: 6px;
  border-radius: 999px;
  background: var(--ink);
  margin: 0 auto 18px;
  opacity: 0.2;
}

.phone-screen {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: var(--bg);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 14px;
}

.phone-thumb {
  height: 160px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-soft), var(--sage));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.phone-thumb::after {
  content: "";
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(20, 20, 20, 0.1);
}

.phone-play {
  position: absolute;
  z-index: 1;
  width: 0;
  height: 0;
  border-left: 16px solid var(--ink);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 5px;
}

.phone-title {
  font-size: 15px;
  font-weight: 700;
  margin: 14px 0 4px;
  letter-spacing: -0.02em;
}

.phone-sub {
  font-size: 12px;
  color: var(--muted);
}

.progress {
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  margin-top: 14px;
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  width: 42%;
  background: var(--accent);
  border-radius: inherit;
  animation: progress 4s ease-in-out infinite alternate;
}

@keyframes progress {
  from { width: 16%; }
  to { width: 86%; }
}

.demo-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.demo-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.demo-item i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  flex: none;
}

.demo-item span {
  font-size: 14px;
  color: var(--muted);
}

.demo-item strong {
  display: block;
  font-size: 15px;
}

/* Accordion */
.accordion {
  border-top: 1px solid var(--line);
  max-width: 820px;
  margin-inline: auto;
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: transparent;
  border: 0;
  padding: 24px 4px;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.accordion-trigger span:last-child {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.25s ease, background 0.25s ease;
}

.accordion-trigger[aria-expanded="true"] span:last-child {
  background: var(--ink);
  color: #fff;
  transform: rotate(45deg);
}

.accordion-panel {
  display: none;
  padding: 0 4px 24px;
  color: var(--muted);
  font-size: 15px;
}

.accordion-panel.open {
  display: block;
}

/* Form */
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 13px 14px;
  background: var(--bg);
  outline: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: #fff;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
}

.form-note {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* Download */
.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.download-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.download-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.download-card h3 {
  font-size: 24px;
  margin: 20px 0 8px;
}

.download-card p {
  margin-bottom: 20px;
}

.entry-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: stretch;
}

.entry-code {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.entry-code code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  word-break: break-all;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin: 12px 0 0;
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: clamp(36px, 6vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  right: -100px;
  top: -140px;
  box-shadow: 0 0 0 50px rgba(255, 255, 255, 0.03), 0 0 0 100px rgba(255, 255, 255, 0.02);
}

.cta-band h2 {
  font-size: clamp(30px, 4.6vw, 58px);
  margin: 8px 0 12px;
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0;
  max-width: 520px;
  position: relative;
  z-index: 1;
}

.cta-band .btn-row {
  position: relative;
  z-index: 1;
  flex: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 44px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  max-width: 340px;
  margin-top: 16px;
}

.footer-col h4 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  padding: 5px 0;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.56);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--surface);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  display: grid;
  place-items: center;
  font-size: 19px;
}

.modal-dialog h2 {
  font-size: 28px;
  margin: 6px 46px 10px 0;
}

.modal-dialog p {
  color: var(--muted);
}

.player {
  height: 260px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1b1b1b, #3a332f);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.player::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(223, 74, 43, 0.45), transparent 45%);
}

.player-center {
  position: relative;
  z-index: 1;
  text-align: center;
}

.player-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 18px;
}

.player-badge i {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.player-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.player-note {
  font-size: 12px;
  opacity: 0.62;
  margin-top: 8px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Toast + back to top */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 400;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: var(--shadow);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover {
  transform: translateY(-3px);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .nav { gap: 18px; }
  .feature-grid,
  .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.2fr repeat(2, 1fr); }
  .footer-col:last-child { grid-column: 2 / -1; }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(20, 20, 20, 0.08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a.active::after { display: none; }
  .hero-grid,
  .demo-grid,
  .entry-box { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero { padding-top: 52px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 14px; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .container { width: min(100% - 32px, 1200px); }
  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: clamp(40px, 12vw, 60px); }
  .hero-lead { font-size: 16px; }
  .hero .btn { width: 100%; }
  .hero .btn-row { display: grid; }
  .hero-meta { gap: 8px 16px; }
  .bento { gap: 10px; }
  .hero-visual .card { min-height: 140px; padding: 18px; }
  .hero-visual .card--radio,
  .hero-visual .card--timer,
  .hero-visual .card--hand,
  .hero-visual .card--pet { grid-column: span 12; min-height: 180px; }
  .timer-ring { width: 84px; height: 84px; }
  .section { padding: 58px 0; }
  .section-head h2 { font-size: 32px; }
  .zone-grid,
  .feature-grid,
  .download-grid { grid-template-columns: 1fr; }
  .zone-card { min-height: 290px; }
  .toolbar { align-items: stretch; }
  .search-box { margin-left: 0; width: 100%; }
  .search-box input { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .form-card { padding: 22px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .cta-band { flex-direction: column; align-items: flex-start; border-radius: 16px; }
  .cta-band .btn-row { width: 100%; }
  .cta-band .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .modal-dialog { padding: 24px 18px; }
  .player { height: 200px; }
  .entry-code { flex-direction: column; align-items: flex-start; }
  .entry-code .btn { width: 100%; }
  .to-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
