:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #eef6ff;
  --text: #18212f;
  --muted: #667085;
  --line: #dce3ea;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #dbeafe;
  --warning: #b45309;
  --code: #111827;
  --shadow: 0 16px 40px rgba(24, 33, 47, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

.site-header > .logo,
.site-header > nav {
  display: flex;
}

.site-header > .logo {
  align-items: center;
  font-weight: 800;
}

.site-header > nav {
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.site-header > nav a:hover {
  color: var(--accent-dark);
}

.site-header:has(> .logo) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(20px, calc((100vw - 1180px) / 2 + 20px));
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--accent-dark);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

main > section:not(.hero) {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 42px;
  align-items: center;
  min-height: 520px;
  padding: 70px 0 42px;
}

.hero.compact {
  display: block;
  max-width: 1180px;
  min-height: auto;
  margin: 0 auto;
  padding: 58px 20px 34px;
}

.hero.compact h1,
.hero.compact p {
  max-width: 760px;
}

.hero.compact.centered {
  text-align: center;
}

.hero.compact.centered h1,
.hero.compact.centered p {
  margin-right: auto;
  margin-left: auto;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 750;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 12px 0 18px;
  font-size: clamp(40px, 7vw, 72px);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 40px);
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

.hero-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: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-weight: 750;
}

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

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

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

.panel-top {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
}

.dot:nth-child(2) {
  background: #f59e0b;
}

.dot:nth-child(3) {
  background: #22c55e;
}

.panel-body {
  padding: 22px;
}

.mock-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

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

.mini-tile {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.mini-tile strong {
  display: block;
  margin-bottom: 6px;
}

.section {
  padding: 54px 0;
}

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

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

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

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

.tool-input {
  max-width: 340px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.button.secondary.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

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

.tool-card {
  min-height: 188px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.tool-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.tool-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 750;
}

.content-page {
  max-width: 900px;
  padding: 54px 20px 80px;
}

.content-page p,
.content-page li {
  color: var(--muted);
}

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

.tool-main,
.side-panel,
.info-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tool-main {
  overflow: hidden;
}

.tool-header {
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.tool-header h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 52px);
}

.tool-header p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.tool-body {
  padding: 26px;
}

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

label {
  display: block;
  margin-bottom: 7px;
  color: #344054;
  font-size: 14px;
  font-weight: 750;
}

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

textarea {
  min-height: 190px;
  padding: 14px;
  resize: vertical;
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

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

.output {
  min-height: 150px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
  color: #e5edf6;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.output.light {
  background: #fbfcfd;
  color: var(--text);
}

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

main > .stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 54px;
}

.stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

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

.stat strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.side-panel {
  padding: 20px;
}

.side-panel ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.side-panel a {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.side-panel a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.info-block {
  margin-top: 18px;
  padding: 22px 26px;
}

.info-block p,
.info-block li {
  color: var(--muted);
}

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

.article-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.article-panel p,
.article-panel li {
  color: var(--muted);
}

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

.category-card {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.category-card p {
  flex: 1;
  margin: 0 0 16px;
  color: var(--muted);
}

.category-card span {
  color: var(--accent-dark);
  font-weight: 750;
}

.category-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

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

.task-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.task-card p {
  flex: 1;
  margin: 0 0 18px;
  color: var(--muted);
}

.task-card .button {
  min-height: 40px;
}

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

.category-grid a {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-dark);
  font-weight: 750;
}

.category-grid a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

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

.faq-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.faq-item strong {
  display: block;
  margin-bottom: 6px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.note {
  margin-top: 14px;
  padding: 14px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.serp-preview {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.serp-url {
  color: #2563eb;
  font-size: 14px;
}

.serp-title {
  margin: 3px 0;
  color: #1d4ed8;
  font-size: 20px;
}

.serp-desc {
  color: #4d5156;
  font-size: 14px;
}

.meter {
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.15fr 1.8fr;
  gap: 28px;
  padding: 34px 20px;
  color: var(--muted);
  font-size: 14px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
}

.footer-brand p {
  max-width: 420px;
  margin: 0;
}

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

.footer-links strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.footer-links a {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent-dark);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 20px;
  color: var(--muted);
  font-size: 13px;
}

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

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

  .section-head,
  .section-heading,
  .footer-inner {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
  }

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

  main > .stats-grid,
  .task-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .site-header:has(> .logo) {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header > nav {
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .tool-grid,
  .mini-grid,
  .stats-grid,
  main > .stats-grid,
  .article-grid,
  .task-grid,
  .category-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .tool-input {
    max-width: none;
  }

  .tool-header,
  .tool-body,
  .info-block {
    padding: 20px;
  }
}


/* Modern SaaS homepage upgrade */
.saas-home { background: #f7faff; }
.saas-home .site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.82); backdrop-filter: blur(18px); }
.saas-hero { position: relative; overflow: hidden; padding: 76px 0 54px; color: #0f172a; }
.saas-hero .hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #eaf4ff 0%, #dbeafe 35%, #f1f7ff 70%, #ffffff 100%); background-size: 240% 240%; animation: gradientFlow 14s ease infinite; }
.saas-hero .hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 18% 22%, rgba(255,255,255,.72), transparent 28%), radial-gradient(circle at 82% 18%, rgba(255,255,255,.38), transparent 26%); }
.saas-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(320px, .97fr); gap: 42px; align-items: center; }
.hero-copy h1 { max-width: 760px; margin: 14px 0 18px; font-size: clamp(42px, 6vw, 76px); line-height: .96; letter-spacing: 0; }
.hero-copy .lead { max-width: 680px; color: #334155; font-size: 19px; }
.saas-home .button.primary { border-color: #1769ff; background: #1769ff; color: #fff; box-shadow: 0 16px 36px rgba(23,105,255,.18); }
.saas-home .button.glass { border-color: rgba(255,255,255,.64); background: rgba(255,255,255,.68); box-shadow: 0 12px 28px rgba(15,23,42,.08); }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 28px; max-width: 640px; }
.stat-pill { padding: 14px 16px; border: 1px solid rgba(255,255,255,.68); border-radius: 14px; background: rgba(255,255,255,.7); box-shadow: 0 14px 32px rgba(15,23,42,.08); }
.stat-pill strong { display: block; font-size: 24px; color: #1769ff; }
.stat-pill span { color: #475569; font-size: 13px; font-weight: 700; }
.hero-visual { min-height: 430px; display: grid; place-items: center; }
.floating-stack { width: min(420px, 100%); display: grid; gap: 16px; transform: rotate(-2deg); }
.float-card { padding: 20px 22px; border: 1px solid rgba(255,255,255,.72); border-radius: 18px; background: rgba(255,255,255,.82); box-shadow: 0 24px 55px rgba(15,23,42,.12); animation: floatSoft 5.5s ease-in-out infinite; }
.float-card:nth-child(2) { margin-left: 34px; animation-delay: .5s; }
.float-card:nth-child(3) { margin-right: 30px; animation-delay: 1s; }
.float-card:nth-child(4) { margin-left: 58px; animation-delay: 1.5s; }
.float-card strong { display: block; font-size: 18px; }
.float-card span { color: #64748b; }
.reveal-up { animation: revealUp .65s ease both; }
.delay-1 { animation-delay: .12s; }
.saas-tool-grid, .feature-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.saas-tool-card, .category-feature-card, .latest-card { display: flex; flex-direction: column; min-height: 218px; padding: 22px; border: 1px solid #dbe7f5; border-radius: 18px; background: linear-gradient(180deg, #fff, #f8fbff); box-shadow: 0 12px 28px rgba(15,23,42,.06); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.saas-tool-card:hover, .category-feature-card:hover, .latest-card:hover { transform: translateY(-6px); border-color: #1769ff; box-shadow: 0 22px 46px rgba(23,105,255,.18); }
.card-icon, .category-icon { display: inline-grid; width: 42px; height: 42px; place-items: center; margin-bottom: 18px; border-radius: 14px; background: rgba(23,105,255,.11); color: #1769ff; font-weight: 800; }
.saas-tool-card h3, .category-feature-card h3 { margin: 0 0 10px; }
.saas-tool-card p, .category-feature-card p { flex: 1; margin: 0 0 18px; color: #64748b; }
.open-tool, .category-feature-card span:last-child { align-self: flex-start; padding: 9px 12px; border-radius: 999px; background: rgba(23,105,255,.11); color: #1769ff; font-weight: 800; }
.soft-band { max-width: none; padding: 72px 0; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(219,235,255,.72)); }
.latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.latest-card { min-height: 132px; }
.latest-card strong { margin-bottom: 10px; color: #0f172a; }
.latest-card span { color: #64748b; }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px; border: 1px solid #dbe7f5; border-radius: 22px; background: linear-gradient(135deg, #eef6ff, #ffffff); box-shadow: 0 24px 50px rgba(15,23,42,.08); }
.cta-panel h2 { margin: 8px 0 0; max-width: 760px; }
.faq-wrap { max-width: 920px; }
.faq-accordion { border: 1px solid #dbe7f5; border-radius: 14px; background: #fff; box-shadow: 0 10px 24px rgba(15,23,42,.05); }
.faq-accordion + .faq-accordion { margin-top: 12px; }
.faq-accordion summary { cursor: pointer; padding: 18px 20px; font-weight: 800; }
.faq-accordion p { margin: 0; padding: 0 20px 18px; color: #64748b; }
.section-link { color: #1769ff; font-weight: 800; }
.site-footer .footer-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@keyframes gradientFlow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes floatSoft { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes revealUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) { .saas-hero-inner, .saas-tool-grid, .feature-category-grid, .latest-grid { grid-template-columns: 1fr; } .hero-visual { min-height: auto; } .floating-stack { transform: none; } .hero-stats { grid-template-columns: repeat(2, minmax(0,1fr)); } .cta-panel { align-items: flex-start; flex-direction: column; } }
@media (max-width: 640px) { .saas-hero { padding: 48px 0 36px; } .hero-copy h1 { font-size: 42px; } .hero-copy .lead { font-size: 17px; } .stat-pill { padding: 12px; } .float-card:nth-child(n) { margin: 0; } .saas-tool-card, .category-feature-card { min-height: auto; } .site-footer .footer-links { grid-template-columns: 1fr; } }


/* SaaS tool page system */
html { scroll-behavior: smooth; }
.tool-saas-page { background: #f6f9ff; }
.tool-saas-page .site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.86); backdrop-filter: blur(16px); }
.tool-hero-modern { position: relative; overflow: hidden; padding: 42px 0 52px; }
.tool-hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #eaf4ff 0%, #dbeafe 42%, #f7fbff 100%); background-size: 220% 220%; animation: toolGradient 13s ease infinite; }
.tool-hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 16% 18%, rgba(255,255,255,.78), transparent 28%), radial-gradient(circle at 84% 20%, rgba(58,130,255,.18), transparent 25%); }
.tool-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: stretch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 24px; color: #64748b; font-size: 14px; }
.breadcrumb a { color: #1769ff; font-weight: 750; }
.tool-heading-row { display: flex; gap: 18px; align-items: center; }
.tool-page-icon, .tool-mini-icon { display: grid; place-items: center; flex: 0 0 auto; width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(135deg, #1769ff, #4ea0ff); color: #fff; box-shadow: 0 18px 42px rgba(23,105,255,.24); font-weight: 900; }
.tool-title-block h1 { margin: 6px 0 0; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: 0; }
.tool-title-block .lead { max-width: 760px; color: #334155; }
.tool-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tool-badges span, .card-kicker { display: inline-flex; align-items: center; width: max-content; padding: 8px 11px; border-radius: 999px; background: rgba(255,255,255,.72); color: #1769ff; font-size: 13px; font-weight: 850; border: 1px solid rgba(23,105,255,.16); }
.quick-facts-card, .side-card, .tool-input-card, .tool-content-card, .tool-cta-card { border: 1px solid #dbe7f5; border-radius: 22px; background: rgba(255,255,255,.9); box-shadow: 0 18px 44px rgba(15,23,42,.07); }
.quick-facts-card { padding: 24px; animation: fadeSlide .5s ease both; }
.quick-facts-card h2, .side-card h2 { margin-top: 0; font-size: 20px; }
.fact-row { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0; border-top: 1px solid #edf3fb; }
.fact-row:first-of-type { border-top: 0; }
.fact-row span { width: 9px; height: 9px; margin-top: 8px; border-radius: 999px; background: #1769ff; box-shadow: 0 0 0 5px rgba(23,105,255,.1); }
.fact-row p { margin: 0; color: #475569; }
.modern-tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding-top: 34px; padding-bottom: 56px; }
.tool-workspace { display: grid; gap: 20px; min-width: 0; }
.tool-side-stack { display: grid; align-content: start; gap: 18px; position: sticky; top: 92px; }
.tool-input-card, .tool-content-card, .tool-cta-card, .side-card { padding: 24px; }
.tool-card-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 20px; }
.tool-card-head h2 { margin: 10px 0 0; }
.tool-input-card input, .tool-input-card textarea, .tool-input-card select { border: 1px solid #cbd9ea; border-radius: 14px; background: #fff; box-shadow: inset 0 1px 0 rgba(15,23,42,.03); transition: border-color .16s ease, box-shadow .16s ease; }
.tool-input-card input:focus, .tool-input-card textarea:focus { border-color: #1769ff; box-shadow: 0 0 0 4px rgba(23,105,255,.12); outline: none; }
.gradient-action { background: linear-gradient(135deg, #1769ff, #4ea0ff) !important; border: 0 !important; color: #fff !important; box-shadow: 0 16px 34px rgba(23,105,255,.22); transition: transform .16s ease, box-shadow .16s ease; }
.gradient-action:hover { transform: translateY(-2px); box-shadow: 0 22px 42px rgba(23,105,255,.28); }
.modern-output { display: grid; gap: 12px; min-height: 110px; margin-top: 16px; padding: 0; border: 0; background: transparent; color: inherit; white-space: normal; }
.empty-state, .result-status, .result-field, .result-raw { padding: 16px; border: 1px solid #dbe7f5; border-radius: 16px; background: #f8fbff; }
.empty-state { display: grid; gap: 4px; color: #64748b; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.result-field strong { display: block; margin-bottom: 6px; color: #0f172a; }
.result-field span { color: #475569; overflow-wrap: anywhere; }
.result-status { border-color: #b7e5cc; background: #f1fff7; color: #166534; font-weight: 850; }
.result-status.error { border-color: #fecaca; background: #fff5f5; color: #b91c1c; }
.result-raw pre { margin: 0; white-space: pre-wrap; color: #334155; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.skeleton-line { height: 14px; border-radius: 999px; background: linear-gradient(90deg, #e8f0fb, #f8fbff, #e8f0fb); background-size: 240% 100%; animation: skeletonFlow 1.2s ease infinite; }
.skeleton-line:nth-child(2) { width: 80%; } .skeleton-line:nth-child(3) { width: 64%; }
.step-list { display: grid; gap: 10px; padding-left: 22px; color: #475569; }
.mini-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.mini-tool-card { display: grid; gap: 8px; padding: 16px; border: 1px solid #dbe7f5; border-radius: 16px; background: linear-gradient(180deg, #fff, #f8fbff); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.mini-tool-card:hover { transform: translateY(-4px); border-color: #1769ff; box-shadow: 0 16px 34px rgba(23,105,255,.13); }
.mini-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: rgba(23,105,255,.1); color: #1769ff; font-size: 12px; font-weight: 900; }
.mini-tool-card p { margin: 0; color: #64748b; font-size: 14px; }
.tool-faq-list { display: grid; gap: 12px; }
.tool-faq-item { border: 1px solid #dbe7f5; border-radius: 16px; background: #fff; }
.tool-faq-item summary { cursor: pointer; padding: 16px 18px; font-weight: 850; }
.tool-faq-item p { margin: 0; padding: 0 18px 16px; color: #64748b; }
.tool-cta-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: linear-gradient(135deg, #edf6ff, #fff); }
.tool-cta-card h2 { margin: 10px 0 0; }
.fade-in { animation: fadeSlide .45s ease both; }
@keyframes toolGradient { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes skeletonFlow { 0% { background-position: 0% 50%; } 100% { background-position: 240% 50%; } }
@media (max-width: 980px) { .tool-hero-inner, .modern-tool-layout { grid-template-columns: 1fr; } .quick-facts-card { display: none; } .tool-side-stack { position: static; } }
@media (max-width: 700px) { .tool-hero-modern { padding: 28px 0 34px; } .tool-heading-row { align-items: flex-start; flex-direction: column; } .tool-page-icon { width: 54px; height: 54px; border-radius: 16px; } .tool-title-block h1 { font-size: 38px; } .tool-card-head, .tool-cta-card { align-items: flex-start; flex-direction: column; } .result-grid, .mini-tool-grid { grid-template-columns: 1fr; } .tool-input-card, .tool-content-card, .tool-cta-card, .side-card { padding: 18px; border-radius: 18px; } }
