:root {
  --bg: #ffffff;
  --bg-2: #f3f7ff;
  --card: #ffffff;
  --ink: #10233f;
  --muted: #5a6b82;
  --line: #e3eaf6;
  --accent: #0078fd;
  --accent-dark: #004ae1;
  --accent-soft: #e8f2ff;
  --orange: #fe6601;
  --orange-dark: #e05600;
  --good: #166534;
  --good-soft: #f0fdf4;
  --danger: #9f1239;
  --shadow: 0 1px 2px rgba(16, 18, 22, 0.04), 0 16px 40px rgba(16, 18, 22, 0.06);
  --radius: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #0078fd, #fe6601) 1;
}
.top-main { display: flex; align-items: center; gap: 14px; min-height: 72px; }
.logo-mark {
  width: auto;
  height: 52px;
  max-width: 168px;
  object-fit: contain;
  display: block;
  background: transparent;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
  flex: none;
  font-size: 18px;
}
.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; flex: 1; min-width: 0; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.nav a.active, .nav a:hover { color: var(--accent); background: var(--accent-soft); }
.nav-home { font-weight: 700; padding-inline: 12px; }
.nav a.nav-platform { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 13px; color: var(--ink); }
.brand-icon { width: 20px; height: 20px; object-fit: contain; display: block; border-radius: 5px; transition: transform 0.18s ease; }
.nav a.nav-platform:hover .brand-icon { transform: scale(1.16); }
.scissors { width: 16px; height: 16px; display: block; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn, .btn-ghost, .btn-line, .menu-btn, .file-x, .icon-btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover, .btn-ghost:hover, .btn-line:hover, .menu-btn:hover, .file-x:hover, .icon-btn:hover { transform: translateY(-2px); }
.btn:active, .btn-ghost:active, .btn-line:active, .menu-btn:active, .file-x:active, .icon-btn:active { transform: translateY(0); }
.icon-btn, .menu-btn {
  border: 1px solid var(--line);
  background: #fff;
  height: 40px;
  padding: 0 14px;
  font-weight: 700;
}
.menu-btn:hover, .icon-btn:hover, .file-x:hover { border-color: #111318; background: #f4f5f7; box-shadow: 0 8px 18px rgba(17, 19, 24, 0.08); }
.btn {
  background: var(--accent);
  color: white;
  padding: 12px 18px;
  font-weight: 700;
}
.btn:hover { background: var(--accent-dark); box-shadow: 0 10px 22px rgba(0, 74, 225, 0.22); }
.btn:disabled, .btn:disabled:hover { opacity: 0.5; cursor: wait; transform: none; box-shadow: none; }
.btn-line, .btn-ghost {
  background: #fff;
  border: 1px solid var(--line);
  padding: 11px 14px;
  color: var(--ink);
}
.btn-line:hover, .btn-ghost:hover { border-color: #111318; background: #f7f8fa; box-shadow: 0 8px 18px rgba(17, 19, 24, 0.08); }
.btn-nav { padding: 9px 14px; font-size: 14px; }

.kicker { letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; color: var(--orange); font-weight: 700; margin: 0 0 8px; }
h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.02; letter-spacing: -0.045em; margin: 0 0 12px; font-weight: 800; }
h2 { font-size: 28px; letter-spacing: -0.035em; margin: 0 0 8px; font-weight: 800; }
h3 { margin: 0 0 6px; letter-spacing: -0.02em; font-weight: 750; }
.lede { font-size: 17px; color: var(--muted); max-width: 62ch; margin: 0; }
.card, .platform, .post, .faq, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section { padding: 28px 0 8px; }
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 14px; }
.grid-platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.grid-3, .grid-features { display: grid; gap: 14px; }
.grid-features, .grid-3 { grid-template-columns: repeat(3, 1fr); }
.platform, .post, .feature { padding: 18px; text-decoration: none; display: flex; flex-direction: column; }
.post, .feature { display: block; }
.platform {
  width: calc((100% - 48px) / 4);
  min-height: 360px;
  position: relative;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #eceef3;
  box-shadow: 0 14px 36px rgba(16, 18, 22, 0.08);
}
.platform h3 { font-size: 16px; margin: 0; font-weight: 800; letter-spacing: -0.03em; }
.feature, .post, .faq {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.feature:hover, .post:hover, .faq:hover {
  transform: translateY(-4px);
  border-color: #cfd3dc;
  box-shadow: 0 14px 32px rgba(16, 18, 22, 0.1);
}
.platform {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.platform:hover {
  transform: translateY(-8px);
  border-color: #d5d9e2;
  box-shadow: 0 24px 50px rgba(17, 19, 24, 0.14);
}
.platform:hover .brand-icon { transform: scale(1.08); }
.platform:hover .crop-btn { background: var(--accent-dark); }
.platform-hero {
  height: 148px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfcfd 0%, #eef1f5 100%);
  flex: none;
}
.platform-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 16px;
  flex: 1;
  background: #fff;
}
.crop-btn {
  margin-top: auto;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.crop-btn .scissors { width: 16px; height: 16px; }
.platform p, .post p, .feature p, .muted { color: var(--muted); }
.platform p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  flex: none;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #6b7280;
}
.mark {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; flex: none;
  background: #fff;
  border: 1px solid var(--line);
}
.platform .brand-icon {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 18px;
  transition: transform 0.22s ease;
}
.home-top { padding: 40px 0 8px; }
.home-top h1 { max-width: 12ch; }
.home-top .lede { margin-bottom: 8px; }
.home-actions { margin: 16px 0 22px; }

.crop-layout { display: grid; grid-template-columns: minmax(340px, 440px) 1fr; gap: 18px; padding: 28px 0 48px; align-items: start; }
.panel { padding: 18px; }
.drop {
  border: 1.5px dashed #cfd3dc;
  border-radius: 18px;
  padding: 28px 18px 18px;
  background: linear-gradient(180deg, #fbfbfc, #fff);
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.drop strong { display: block; font-size: 18px; letter-spacing: -0.02em; }
.drop .muted { margin: 4px 0 14px; }
.drop.hot {
  border-color: #111;
  background: #f6f7f9;
  transform: scale(1.01);
}
.drop-icon { color: #111; margin-bottom: 8px; }
.file-list { list-style: none; padding: 0; margin: 16px 0 0; text-align: left; display: grid; gap: 8px; }
.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 8px 8px 12px;
}
.file-list strong { display: block; font-size: 14px; }
.file-list small { color: var(--muted); font-size: 12px; }
.files { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.files .btn-line { width: 100%; justify-content: flex-start; }
.file-x {
  border: 0;
  background: var(--bg-2);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.choices { display: grid; gap: 8px; margin: 8px 0 14px; }
.choice {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.choice:hover { border-color: #111318; background: #fafafa; }
.choice:has(input:checked) { border-color: #111; background: #fafafa; }
.drop:hover { border-color: #111318; background: #f7f8fa; }
.choice small { display: block; color: var(--muted); }
.field { margin: 12px 0; }
.field > span, .field label, .check { display: block; font-weight: 700; margin-bottom: 6px; }
.check { font-weight: 600; display: flex; gap: 8px; align-items: center; }
input[type="text"], input[type="email"], textarea, select {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 12px;
}
textarea { min-height: 110px; resize: vertical; }
input[type="range"] { width: 100%; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.alert { padding: 10px 12px; border-radius: 12px; background: #fff1f2; color: var(--danger); margin: 0 0 12px; }
.note { padding: 10px 12px; border-radius: 12px; background: var(--good-soft); color: var(--good); margin: 0 0 12px; }
.progress { min-height: 1.2em; color: var(--muted); font-size: 14px; }
.preview { width: min(240px, 100%); background: white; border-radius: 12px; border: 1px solid var(--line); }
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.stat { background: var(--bg-2); border-radius: 999px; padding: 6px 10px; font-size: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; }
.sku { font-family: Consolas, "Courier New", monospace; }
.table-scroll { overflow: auto; }
.faq { padding: 0 16px; }
.faq + .faq { margin-top: 10px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; }
.faq p { margin-top: 0; }
.page { padding: 32px 0 56px; }
.narrow { width: min(720px, 100%); }
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.footer a { display: block; text-decoration: none; padding: 4px 0; }
.footer a:hover { color: var(--ink); }
.fine { font-size: 13px; }
.menu-btn { display: none; }
.split { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.article p { font-size: 17px; line-height: 1.6; }
.merge-panel { margin-top: 18px; }
.frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 16px;
  width: min(1440px, calc(100% - 16px));
  margin: 8px auto 0;
  align-items: start;
}
.frame .wrap { width: 100%; }
.rail { position: sticky; top: 88px; }
.rail .ad-wrap { margin: 0; }
.rail .placement { min-height: 600px; width: 160px; }
.ad-wrap { display: flex; flex-direction: column; align-items: center; margin: 18px auto; max-width: 100%; }
html.ads-off .ad-wrap,
html.ads-off .rail { display: none; }
html.ads-off .frame { grid-template-columns: minmax(0, 1fr); }
html.ads-off #gate { display: none !important; }
.legal h2 { font-size: 22px; margin-top: 28px; }
.legal .lede { margin-bottom: 8px; }
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.shown { opacity: 1; transform: none; transition: opacity 0.55s ease, transform 0.55s ease; }
.ad-label {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.placement { min-height: 90px; max-width: 100%; overflow: hidden; }
.placement[data-kind="box"] { min-height: 250px; }

#gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 19, 24, 0.46);
  backdrop-filter: blur(8px);
}
#gate.is-checking { background: #fff; backdrop-filter: none; }
#gate[hidden], #app[hidden] { display: none !important; }
.dialog {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 26px 24px;
  box-shadow: 0 24px 80px rgba(16, 18, 22, 0.18);
  text-align: left;
}
.dialog h2 { font-size: 28px; margin-bottom: 8px; }
.dialog p { margin: 0 0 18px; color: var(--muted); }
.dialog .btn { margin-top: 4px; }
.dialog-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff1f2;
  color: var(--danger);
  margin-bottom: 14px;
}
.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #eceff3;
  border-top-color: #111;
  margin-bottom: 16px;
  animation: spin 0.7s linear infinite;
}

.dialog { animation: pop 0.28s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1100px) {
  .frame { grid-template-columns: 1fr; }
  .rail { display: none; }
  .platform { width: calc((100% - 16px) / 2); }
}
@media (max-width: 980px) {
  .crop-layout, .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-features, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
    z-index: 30;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 12px; }
  .crop-layout, .footer-grid { grid-template-columns: 1fr; }
  .platform { width: 100%; }
  .placement[data-kind="banner"] { min-height: 50px; }
  .home-top h1 { max-width: none; }
}
