:root {
  --blue: #0b63e5;
  --blue-deep: #083d8c;
  --blue-bright: #2f89ff;
  --sky: #e3f0ff;
  --paper: #e8f2ff;
  --card: #ffffff;
  --ink: #0d2344;
  --muted: #4d6790;
  --line: #c5daf8;
  --warn: #9a5b12;
  --bad: #b42318;
  --ok: #067647;
  --shadow: 0 16px 40px rgba(11, 78, 180, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(47, 137, 255, 0.28), transparent 60%),
    radial-gradient(700px 380px at -10% 20%, rgba(11, 99, 229, 0.16), transparent 55%),
    linear-gradient(180deg, #d5e8ff 0%, #eef5ff 280px, #f7fbff 100%);
  font: 16px/1.65 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }
h1, h2, h3 { line-height: 1.25; font-weight: 700; }
p { margin: 0 0 0.8rem; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #083d8c, #0b63e5 40%, #7eb6ff) 1;
  box-shadow: 0 8px 24px rgba(8, 61, 140, 0.08);
  backdrop-filter: blur(16px);
}
.header-row, .subnav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--blue-deep); font-weight: 800; letter-spacing: 0.02em; font-size: 18px; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #49a2ff, #0b63e5);
  color: white;
  box-shadow: 0 8px 16px rgba(11, 99, 229, 0.28);
}
.brand-mark svg { width: 20px; height: 20px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.nav a, .subnav a { color: var(--ink); font-weight: 600; }
.nav a:hover, .subnav a:hover { color: var(--blue); }
.subnav { border-top: 1px solid var(--line); background: #f8fbff; }
.subnav-row { min-height: 46px; font-size: 14px; }
.button, button, input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #3b92ff, #0b63e5);
  color: white;
  padding: 11px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(11, 99, 229, 0.22);
}
.button.secondary, button.secondary {
  background: white;
  color: var(--blue);
  border: 1px solid #b9d4fb;
  box-shadow: none;
}
.button.ghost {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: none;
}
.button.small, button.small { padding: 7px 14px; font-size: 14px; box-shadow: none; }
.button.danger, button.danger { background: white; color: var(--bad); border: 1px solid #f3c7c3; box-shadow: none; }
button:hover, .button:hover { filter: brightness(1.05); }

.stage {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(520px 260px at 85% 15%, rgba(255, 255, 255, 0.28), transparent 60%),
    radial-gradient(480px 320px at 8% 90%, rgba(150, 205, 255, 0.35), transparent 55%),
    linear-gradient(125deg, #062e78 0%, #0b63e5 48%, #49a6ff 100%);
  padding: 84px 0 120px;
}
.stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 48px;
  background: #e8f2ff;
  clip-path: ellipse(70% 100% at 50% 100%);
}
.stage-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.stage h1 { margin: 0 0 14px; font-size: 68px; letter-spacing: 0.03em; }
.stage .lead { font-size: 20px; color: rgba(255, 255, 255, 0.88); max-width: 28rem; }
.stage-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.stage-visual {
  height: 360px;
  border-radius: 32px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 60px rgba(4, 28, 80, 0.25);
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
}
.stage-visual svg { width: min(100%, 460px); height: 300px; }

.posters {
  width: min(1120px, calc(100% - 32px));
  margin: -28px auto 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  position: relative;
  z-index: 2;
}
.poster {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.poster:nth-child(1) .poster-art { background: linear-gradient(160deg, #ffffff, #d7e9ff 70%); }
.poster:nth-child(2) .poster-art { background: linear-gradient(160deg, #f3f8ff, #9ecbff 80%); }
.poster:nth-child(3) .poster-art { background: linear-gradient(200deg, #ffffff 10%, #c5deff 90%); }
.poster:nth-child(4) .poster-art { background: linear-gradient(145deg, #eaf3ff, #7eb6ff 85%); }
.poster-art {
  height: 210px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #f4f9ff, #d7e9ff 55%, #b9d8ff);
}
.poster-art svg { width: 240px; height: 150px; }
.poster h2 { margin: 0; padding: 22px 26px 28px; font-size: 28px; color: var(--blue-deep); }
.clients {
  width: min(1120px, calc(100% - 32px));
  margin: 8px auto 28px;
}
.clients-inner {
  background: white;
  border-radius: 32px;
  padding: 36px 32px 32px;
  border: 1px solid #d5e6fb;
  box-shadow: var(--shadow);
}
.clients-head { text-align: center; margin-bottom: 22px; }
.clients-head h2 { margin: 0 0 8px; font-size: 34px; color: var(--blue-deep); }
.clients-head p { margin: 0 auto; max-width: 36rem; color: var(--muted); }
.eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.client-card {
  background: linear-gradient(180deg, #f7fbff, #e7f2ff);
  border: 1px solid #c9dffb;
  border-radius: 24px;
  padding: 22px 20px 18px;
}
.client-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: white;
  box-shadow: 0 10px 20px rgba(11, 99, 229, 0.12);
  margin-bottom: 14px;
}
.client-icon svg { width: 48px; height: 48px; }
.client-card h3 { margin: 0 0 10px; font-size: 24px; color: var(--blue-deep); }
.client-card ul { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 8px; }
.client-card li {
  background: white;
  color: var(--blue-deep);
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 700;
  border: 1px solid #d5e6fb;
}
.client-card p { margin: 0; color: var(--muted); font-size: 14px; }
.app-tag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: white;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  border: 1px solid #c9dffb;
}
.steps { margin: 0 0 12px; padding-left: 1.2rem; color: var(--ink); font-size: 14px; }
.client-card .steps li {
  margin: 0 0 4px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-weight: 400;
  color: var(--ink);
}
.password-panel { margin-top: 16px; }
.band {
  margin: 18px auto 0;
  color: white;
  background: linear-gradient(120deg, #083d8c, #0b63e5 55%, #3b92ff);
}
.band-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.band h2 { margin: 0 0 6px; font-size: 32px; }
.band p { margin: 0; color: rgba(255, 255, 255, 0.88); }
.site-footer {
  color: white;
  background: #083d8c;
  font-size: 14px;
  padding: 22px 0 26px;
}

.section { margin: 28px 0 40px; }
.section h1, .section h2 { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card, .panel {
  background: var(--card);
  border: 1px solid #d3e4fb;
  border-top: 4px solid var(--blue);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(11, 78, 180, 0.08);
}
.price { font-size: 34px; margin: 8px 0; color: var(--blue-deep); }
.price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.card.highlight { border-color: #8ebcff; box-shadow: 0 12px 30px rgba(11, 99, 229, 0.12); }
.muted { color: var(--muted); }
.flash { padding: 10px 14px; border-radius: 12px; margin: 16px 0; }
.flash.ok { background: #e8f8ef; color: var(--ok); }
.flash.error { background: #fff0ee; color: var(--bad); }
form .field { margin-bottom: 14px; }
label { display: block; font-size: 14px; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: inherit;
}
textarea { min-height: 120px; resize: vertical; }
.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.choice { display: flex; gap: 16px; margin: 8px 0 16px; }
.choice label { display: flex; gap: 8px; align-items: center; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.copy { display: flex; gap: 8px; align-items: center; }
.copy input { min-width: 0; font-family: Consolas, "Courier New", monospace; font-size: 13px; }
.copy button { flex-shrink: 0; }
.client-card .app-tag + .steps { margin-top: 8px; }
.client-card .copy + .app-tag { margin-top: 16px; }
.pay-box { border-top: 4px solid var(--blue); }
.note { white-space: pre-wrap; background: var(--sky); border-radius: 12px; padding: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.messages { display: grid; gap: 10px; }
.message { padding: 12px 14px; border-radius: 14px; background: #f4f8fd; }
.message.staff { background: #e7f1ff; }
.status-paid, .status-active, .status-replied { color: var(--ok); }
.status-awaiting_confirm, .status-pending, .status-open { color: var(--warn); }
.status-rejected, .status-cancelled, .status-disabled, .status-closed { color: var(--bad); }
.narrow { width: min(720px, 100%); }
.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.home-main { padding: 0; }

@media (max-width: 800px) {
  .stage { padding: 48px 0 88px; }
  .stage-grid, .posters, .client-grid, .grid, .stats, .split, .band-inner { grid-template-columns: 1fr; display: grid; }
  .band-inner { display: flex; flex-direction: column; align-items: flex-start; }
  .stage h1 { font-size: 42px; }
  .stage-visual { height: 220px; }
  .poster h2 { font-size: 22px; }
  .header-row { align-items: flex-start; flex-direction: column; padding: 12px 0; }
  table { display: block; overflow-x: auto; }
}
