:root {
  color-scheme: light;
  --bg: #f3f4f7;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-ink: #111827;
  --text: #17212b;
  --muted: #677384;
  --line: #dce2ea;
  --line-soft: #eef1f5;
  --accent: #0a84ff;
  --accent-dark: #0864c7;
  --accent-soft: #e7f2ff;
  --green: #20845a;
  --danger: #b42318;
  --shadow: 0 18px 44px rgba(24, 32, 44, 0.10);
  --shadow-soft: 0 10px 26px rgba(24, 32, 44, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
  line-height: 1.75;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 340px),
    linear-gradient(90deg, rgba(10, 132, 255, 0.08), rgba(32, 132, 90, 0.05));
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.header-inner,
.main,
.footer-inner {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--text);
  font-weight: 750;
  line-height: 1.25;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  font-size: 14px;
}

.main {
  padding: 40px 0 74px;
  position: relative;
  z-index: 1;
}

.hero {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 32px;
  align-items: center;
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 13px;
}

.hero h1 {
  margin: 0 0 14px;
  max-width: 680px;
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: 0;
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
}

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

.hero-shot {
  max-width: 360px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 28px;
  background: #101318;
  box-shadow: 0 24px 54px rgba(17, 24, 39, 0.24);
}

.hero-shot img {
  display: block;
  width: 100%;
  border-radius: 22px;
}

.label-demo {
  width: min(360px, 100%);
  margin: 0 auto;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d6dde6;
  box-shadow: var(--shadow-soft);
}

.label-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  aspect-ratio: 210 / 297;
}

.label-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid #cfd6df;
  color: #1f2937;
  font-size: 10px;
  line-height: 1.35;
}

.label-cell strong {
  margin-top: 4px;
  font-size: 12px;
}

.label-cell.empty {
  color: #a5adb8;
  background: #fafbfc;
}

.screenshot-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.screenshot-frame {
  width: min(100%, 240px);
  justify-self: center;
  padding: 8px;
  border-radius: 28px;
  background: #101318;
  box-shadow: var(--shadow-soft);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  border-radius: 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.card,
.section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.card {
  padding: 24px;
}

.card h2,
.section h2,
.section h3 {
  margin: 0 0 10px;
  line-height: 1.35;
}

.card p,
.section p {
  color: var(--muted);
}

.card p:last-child,
.section p:last-child {
  margin-bottom: 0;
}

.section {
  margin-top: 24px;
  padding: 30px;
}

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

.toc a {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  color: var(--text);
  font-size: 14px;
}

ul {
  padding-left: 1.25em;
}

li + li {
  margin-top: 6px;
}

.notice,
.success,
.error {
  padding: 14px 16px;
  border-radius: 8px;
}

.notice {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.success {
  background: #e9f8ef;
  color: var(--green);
}

.error {
  background: #fff0ef;
  color: var(--danger);
}

.form {
  display: grid;
  gap: 18px;
}

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

label {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 11px 12px;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

.help-text {
  color: var(--muted);
  font-size: 13px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

@media (max-width: 820px) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  .nav,
  .footer-links {
    justify-content: flex-start;
  }

  .home-hero,
  .screenshot-row,
  .grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .section {
    padding: 24px;
  }

  .hero h1 {
    font-size: 32px;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .main,
  .footer-inner {
    width: min(100% - 24px, 1060px);
  }

  .hero,
  .section,
  .card {
    padding: 20px;
  }

  .hero h1 {
    font-size: 28px;
  }
}
