:root {
  --bg: #f6f1e7;
  --surface: #fffaf2;
  --surface-strong: #fff;
  --text: #1d1a16;
  --muted: #655b4f;
  --line: #ded4c6;
  --brand: #135d66;
  --brand-strong: #0e474e;
  --accent: #f2a65a;
  --success: #1e8f61;
  --warning: #b56a1e;
  --shadow: 0 18px 50px rgba(18, 27, 30, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --wrap: 1420px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(242, 166, 90, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(19, 93, 102, 0.18), transparent 26%),
    linear-gradient(180deg, #fcf7ef 0%, #f6f1e7 100%);
  min-height: 100vh;
}

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

a:hover {
  color: var(--brand-strong);
}

img {
  max-width: 100%;
}

.container {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(252, 247, 239, 0.86);
  border-bottom: 1px solid rgba(101, 91, 79, 0.1);
}

.site-header .container,
.hero-actions,
.tool-meta,
.tool-grid,
.page-grid,
.content-grid,
.footer-grid,
.trust-points {
  display: flex;
  gap: 16px;
}

.site-header .container {
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand strong {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.brand span {
  color: var(--muted);
  font-size: 0.92rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.main-nav a {
  color: var(--text);
  font-size: 0.95rem;
}

.cta-link {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--brand);
}

.hero {
  padding: 72px 0 42px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--brand);
  margin-bottom: 18px;
  font-weight: 700;
}

.hero-grid,
.content-grid,
.footer-grid,
.page-grid {
  display: grid;
  gap: 26px;
}

.hero-grid {
  grid-template-columns: 1.3fr 0.9fr;
  align-items: start;
}

.hero-copy {
  position: relative;
}

.hero-orb {
  position: absolute;
  right: 4%;
  top: -12px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.85), rgba(255,255,255,0) 34%),
    linear-gradient(135deg, rgba(19, 93, 102, 0.94), rgba(242, 166, 90, 0.9));
  filter: blur(0.2px);
  box-shadow: 0 18px 40px rgba(19, 93, 102, 0.2);
}

h1,
h2,
h3 {
  line-height: 1.05;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.lede {
  font-size: 1.08rem;
  max-width: 62ch;
}

.hero-panel,
.card,
.tool-shell,
.faq-item,
.content-block,
.promo,
.tool-copy,
.metric,
.pillars li {
  background: rgba(255, 250, 242, 0.88);
  border: 1px solid rgba(101, 91, 79, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
}

.hero-panel.highlight {
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,250,242,0.9)),
    linear-gradient(135deg, rgba(19, 93, 102, 0.12), rgba(242, 166, 90, 0.08));
}

.hero-panel.highlight::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 40%;
  height: 180px;
  background: radial-gradient(circle, rgba(19, 93, 102, 0.08), transparent 68%);
}

.hero-panel ul,
.pillars,
.faq-list,
.mini-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-panel li,
.pillars li {
  padding-left: 0;
  margin-bottom: 14px;
  color: var(--text);
}

.hero-actions {
  flex-wrap: wrap;
  margin: 26px 0;
}

.button,
button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.button:hover,
button:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
}

.button.secondary,
button.secondary {
  background: transparent;
  color: var(--brand);
  border: 1px solid rgba(19, 93, 102, 0.3);
}

.tool-meta,
.trust-points {
  flex-wrap: wrap;
}

.badge,
.trust-points span,
.mini-list li,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(101, 91, 79, 0.12);
  color: var(--text);
  font-size: 0.92rem;
}

.chip {
  cursor: pointer;
  background: rgba(255,255,255,0.82);
}

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

.section {
  padding: 42px 0;
}

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

.tool-grid {
  flex-wrap: wrap;
}

.tool-grid > * {
  flex: 1 1 280px;
}

.tool-grid.filtered > * {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.card {
  padding: 22px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,250,242,0.88));
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

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

.card p {
  min-height: 84px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.card-footer .button.secondary {
  white-space: nowrap;
}

.tag {
  color: var(--brand);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-grid {
  grid-template-columns: minmax(0, 1.9fr) minmax(320px, 0.75fr);
  align-items: start;
  padding: 48px 0 28px;
}

.tool-shell,
.tool-copy,
.content-block,
.promo {
  padding: 28px;
}

.tool-shell {
  min-width: 0;
}

.search-panel,
.feature-band,
.category-strip,
.seo-band {
  margin-top: 22px;
}

.search-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(101, 91, 79, 0.12);
  box-shadow: var(--shadow);
}

.search-row {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 12px;
}

.search-row input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 14px 18px;
  font: inherit;
  background: #fff;
}

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

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

.feature-box {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(101, 91, 79, 0.12);
}

.feature-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0));
}

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.showcase-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(101, 91, 79, 0.12);
  background:
    linear-gradient(135deg, rgba(19, 93, 102, 0.92), rgba(10, 57, 62, 0.94));
  color: #edf6f7;
  box-shadow: var(--shadow);
}

.showcase-card.warm {
  background:
    linear-gradient(135deg, rgba(242, 166, 90, 0.94), rgba(181, 106, 30, 0.96));
  color: #24160b;
}

.showcase-card p,
.showcase-card .small {
  color: inherit;
  opacity: 0.9;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.kpi {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
}

.warm .kpi {
  background: rgba(255,255,255,0.24);
  border-color: rgba(36,22,11,0.12);
}

.kpi strong {
  display: block;
  font-size: 1.6rem;
}

.seo-band {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}

.seo-checklist,
.seo-steps {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(101, 91, 79, 0.12);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.72);
}

.seo-steps ol,
.seo-checklist ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.status-note {
  color: var(--warning);
  font-size: 0.92rem;
}

.empty-state {
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(101, 91, 79, 0.28);
  background: rgba(255,255,255,0.6);
}

.tool-shell textarea,
.tool-shell input,
.tool-shell select,
.tool-shell output,
.tool-shell pre {
  width: 100%;
  font: inherit;
}

.tool-shell textarea,
.tool-shell input,
.tool-shell select {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 14px 16px;
  background: #fff;
  color: var(--text);
}

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

.label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
}

.field {
  margin-bottom: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 8px;
}

.actions button,
.actions .button {
  min-width: 144px;
}

.output-box,
pre.output-box {
  margin-top: 16px;
  background: #1b2124;
  color: #f4f7f8;
  border-radius: var(--radius-md);
  padding: 18px;
  min-height: 84px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.tool-layout-wide .tool-shell {
  padding: 34px;
}

.tool-layout-wide .tool-copy {
  position: sticky;
  top: 92px;
}

.tool-actions-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.inline-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 10px 0 18px;
}

.toggle-row label,
.upload-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.95rem;
}

.upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 10px 0 16px;
}

.upload-row input[type="file"] {
  width: auto;
  padding: 10px;
  background: transparent;
  border: 1px dashed var(--line);
}

.panel-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.panel-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.subpanel {
  border-radius: var(--radius-md);
  border: 1px solid rgba(101, 91, 79, 0.14);
  background: rgba(255, 255, 255, 0.76);
  padding: 16px;
}

.subpanel h3,
.subpanel h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(101, 91, 79, 0.12);
  padding: 14px;
}

.stat-card strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.table-wrap {
  overflow: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(101, 91, 79, 0.14);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.92);
  color: var(--text);
}

.table-wrap th,
.table-wrap td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(101, 91, 79, 0.12);
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
}

.table-wrap th {
  background: rgba(19, 93, 102, 0.08);
}

.preview-box {
  border-radius: var(--radius-md);
  border: 1px solid rgba(101, 91, 79, 0.14);
  background: #fff;
  padding: 18px;
  min-height: 120px;
  color: var(--text);
}

.preview-box code,
.preview-box pre {
  white-space: pre-wrap;
}

.gradient-toolbar,
.gradient-stop-grid,
.preset-grid {
  display: grid;
  gap: 14px;
}

.gradient-toolbar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gradient-stop-grid {
  margin-top: 14px;
}

.gradient-stop-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 110px 96px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(101, 91, 79, 0.12);
}

.gradient-stop-row input[type="color"] {
  width: 64px;
  height: 48px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.gradient-preview {
  min-height: 180px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.gradient-preview span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  color: var(--text);
  font-size: 0.92rem;
}

.preset-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.preset-btn {
  min-height: 58px;
  border-radius: 14px;
  border: 1px solid rgba(101, 91, 79, 0.14);
  cursor: pointer;
  transition: transform 0.15s ease;
}

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

.diff-line-added {
  color: #7ee787;
}

.diff-line-removed {
  color: #ffb3b3;
}

.diff-line-same {
  color: #d0d7de;
}

.helper {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 8px;
}

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

.metric {
  padding: 18px;
}

.metric strong {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.pillars {
  display: grid;
  gap: 14px;
}

.pillars li {
  padding: 18px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 20px 22px;
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.footer {
  padding: 34px 0 50px;
}

.footer-grid {
  grid-template-columns: 1.1fr 0.8fr 0.8fr;
}

.footer .mini-list li {
  margin-bottom: 10px;
}

.small {
  font-size: 0.92rem;
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .hero-grid,
  .page-grid,
  .content-grid,
  .footer-grid,
  .seo-band,
  .showcase {
    grid-template-columns: 1fr;
  }

  .site-header .container,
  .section-head {
    align-items: start;
    flex-direction: column;
  }

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

  .feature-band {
    grid-template-columns: 1fr;
  }

  .inline-grid,
  .inline-grid.three,
  .panel-grid.two,
  .stat-grid,
  .gradient-toolbar,
  .preset-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 48px;
  }

  .container {
    width: min(var(--wrap), calc(100% - 22px));
  }

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

  .card p {
    min-height: 0;
  }

  .search-row,
  .kpi-row,
  .inline-grid,
  .inline-grid.three,
  .panel-grid.two,
  .stat-grid,
  .gradient-toolbar,
  .preset-grid,
  .gradient-stop-row {
    grid-template-columns: 1fr;
  }

  .hero-orb {
    width: 110px;
    height: 110px;
    right: 0;
    top: -6px;
  }
}
