:root {
  color-scheme: light;
  --bg: #eef2f8;
  --bg-top: #f8fafd;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-soft: #f3f6fb;
  --surface-strong: #e8eef7;
  --text: #131722;
  --muted: #5d6677;
  --subtle: #98a3b5;
  --line: rgba(18, 24, 39, 0.1);
  --line-strong: rgba(18, 24, 39, 0.16);
  --blue: #0a84ff;
  --blue-strong: #0066d6;
  --blue-soft: #dcecff;
  --cyan: #38bdf8;
  --purple: #6d59ff;
  --green: #19b57f;
  --warn: #b7791f;
  --warn-bg: #fff7df;
  --bad: #b42318;
  --bad-bg: #fff0ee;
  --good: #147c56;
  --good-bg: #e9f8f0;
  --shadow-sm: 0 8px 24px rgba(24, 32, 56, 0.05);
  --shadow-md: 0 18px 48px rgba(24, 32, 56, 0.08);
  --shadow-lg: 0 28px 80px rgba(24, 32, 56, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(10, 132, 255, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 48%, #e9eef7 100%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.58;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: auto -12% -22% auto;
  width: min(940px, 110vw);
  height: min(520px, 70vw);
  pointer-events: none;
  background: url("/og-bg.png") center / cover no-repeat;
  border-radius: 48px;
  filter: blur(38px) saturate(1.15);
  opacity: 0.18;
  transform: rotate(-4deg);
  z-index: -1;
}

a {
  color: var(--blue-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
textarea,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 5;
  width: min(1120px, calc(100% - 28px));
  margin: 14px auto 0;
}

.nav {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: 132px;
  height: 46px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.brand-text {
  border: 1px solid rgba(10, 132, 255, 0.2);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--blue-strong);
  background: rgba(220, 236, 255, 0.72);
  font-size: 12px;
  font-weight: 740;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(232, 238, 247, 0.8);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.88fr);
  gap: 54px;
  align-items: center;
  padding: 84px 0 64px;
}

.hero::after {
  content: "";
  position: absolute;
  right: 12%;
  top: 54px;
  width: 220px;
  height: 220px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.22), rgba(109, 89, 255, 0.12));
  border-radius: 50%;
  filter: blur(42px);
  z-index: -1;
}

.hero-copy {
  max-width: 660px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 830;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 820;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions,
.tool-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-strong) 100%);
  box-shadow: 0 12px 28px rgba(10, 132, 255, 0.22);
  font-size: 14px;
  font-weight: 730;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  filter: brightness(0.97);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  box-shadow: none;
}

.button.secondary:hover {
  background: var(--surface-solid);
}

.hero-panel,
.tool-panel,
.info-panel,
.preview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple));
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(25, 181, 127, 0.14);
}

textarea,
input[type="text"] {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  padding: 14px 15px;
  outline: none;
  resize: vertical;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

textarea:focus,
input[type="text"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.16);
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 730;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.stat {
  border: 1px solid rgba(18, 24, 39, 0.07);
  border-radius: 14px;
  background: rgba(243, 246, 251, 0.78);
  padding: 13px;
}

.stat strong {
  display: block;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 62px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

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

.tool-card {
  position: relative;
  min-height: 218px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 14px 24px rgba(10, 132, 255, 0.2);
}

.tool-icon svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 132, 255, 0.34);
  box-shadow: var(--shadow-md);
}

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

.tool-card span {
  color: var(--blue-strong);
  font-size: 14px;
  font-weight: 740;
}

.page-intro {
  padding: 72px 0 38px;
  max-width: 820px;
}

.page-intro h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  padding-bottom: 64px;
}

.tool-panel,
.info-panel,
.preview-card {
  padding: 24px;
}

.info-panel {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.68);
}

.info-panel ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.info-panel li + li {
  margin-top: 8px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-stack {
  display: grid;
  gap: 18px;
}

.meter {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(20, 124, 86, 0.08);
  background: var(--good-bg);
  padding: 12px;
}

.meter[data-tone="warn"] {
  border-color: rgba(183, 121, 31, 0.14);
  background: var(--warn-bg);
}

.meter[data-tone="bad"] {
  border-color: rgba(180, 35, 24, 0.14);
  background: var(--bad-bg);
}

.meter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.meter-count {
  font-weight: 760;
}

.meter-remaining,
.meter-tone {
  color: var(--muted);
}

.data-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.62);
}

.data-table th,
.data-table td {
  border-bottom: 1px solid rgba(18, 24, 39, 0.07);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  font-size: 14px;
}

.data-table td {
  color: var(--muted);
}

.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: 0;
}

tr[data-tone="warn"] td:last-child {
  color: var(--warn);
}

tr[data-tone="bad"] td:last-child {
  color: var(--bad);
}

.preview-card {
  box-shadow: var(--shadow-md);
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 42%),
    linear-gradient(135deg, var(--blue), var(--purple));
  margin-bottom: 16px;
  box-shadow: 0 16px 28px rgba(10, 132, 255, 0.2);
}

.preview-card h2 {
  font-size: 25px;
  line-height: 1.2;
}

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

.keyword-line {
  margin-top: 16px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 14px;
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.checklist input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--blue);
}

.progress {
  --progress: 0%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  background: rgba(243, 246, 251, 0.82);
  font-weight: 760;
}

.progress::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress);
  background: var(--blue-soft);
  z-index: 0;
}

.progress span,
.progress {
  z-index: 1;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 24px;
  border-top: 1px solid var(--line);
  padding: 28px 0 8px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero,
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .tools-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .footer-inner {
    display: block;
  }

  .section-heading p {
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  body::before {
    opacity: 0.12;
  }

  .site-header {
    top: 0;
    width: 100%;
    margin-top: 0;
  }

  .nav {
    min-height: auto;
    display: block;
    border-width: 0 0 1px;
    border-radius: 0;
    padding: 12px 16px;
  }

  .brand-logo {
    width: 118px;
    height: 40px;
  }

  .nav-links {
    margin-top: 8px;
    flex-wrap: wrap;
  }

  main,
  .site-footer {
    width: min(100% - 32px, 1120px);
  }

  h1 {
    font-size: 40px;
    letter-spacing: -0.04em;
  }

  .lede {
    font-size: 18px;
  }

  .hero-actions,
  .tool-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .tool-panel,
  .info-panel,
  .preview-card,
  .hero-panel {
    padding: 20px;
  }
}
