@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef4f7;
  --border: #dce5eb;
  --text: #111827;
  --muted: #5f6f7c;
  --blue: #0f76c8;
  --blue-dark: #0b4f87;
  --green: #15835b;
  --ink: #172033;
  --shadow: 0 20px 55px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

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

.nav-wrapper {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo,
.nav-links {
  display: flex;
  align-items: center;
}

.nav-logo {
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
}

.nav-links {
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

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

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-outline {
  color: var(--ink);
  background: #fff;
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: #b9c8d3;
}

.btn-disabled {
  color: #65717d;
  background: #e8edf1;
  border-color: #d5dee5;
  cursor: default;
}

.product-hero {
  padding: 78px 0;
}

.docs-hero {
  background: linear-gradient(180deg, #f6f8fb 0%, #edf6f8 100%);
}

.publisher-hero {
  background: #f8fafc;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.86fr);
  align-items: center;
  gap: 56px;
}

.hero-grid.reverse {
  grid-template-columns: minmax(380px, 0.86fr) minmax(0, 1fr);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.section-copy h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.08;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 800;
}

.hero-lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.meta-row span {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.floating-panel {
  position: absolute;
  left: 24px;
  right: 24px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(220, 229, 235, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.12);
  backdrop-filter: blur(12px);
}

.floating-panel strong {
  color: var(--ink);
  font-size: 14px;
}

.floating-panel span {
  color: var(--muted);
  font-size: 12px;
}

.panel-top {
  top: 24px;
}

.panel-bottom {
  bottom: 24px;
}

.section {
  padding: 78px max(20px, calc((100% - 1160px) / 2));
}

.section.tinted {
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  width: min(780px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2,
.section-copy h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.section-copy p,
.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.feature-grid {
  display: grid;
  gap: 18px;
}

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

.feature-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.pricing-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.045);
}

.feature-card {
  padding: 26px;
}

.feature-card.compact {
  padding: 22px;
}

.feature-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.secondary-products {
  background: #fff;
  border-top: 1px solid var(--border);
}

.secondary-product-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.05);
}

.secondary-product-visual {
  min-height: 280px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #eef3f7;
}

.secondary-product-visual img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: contain;
  display: block;
}

.secondary-product-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
}

.secondary-product-copy p:not(.eyebrow) {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.privacy-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.privacy-points span {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: 52px;
  align-items: start;
}

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

.workflow-list div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 2px 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.workflow-list span {
  grid-row: span 2;
  color: var(--green);
  font-weight: 800;
}

.workflow-list strong {
  color: var(--ink);
}

.workflow-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.compare-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--ink);
  background: #f8fafc;
  font-weight: 800;
}

tr:last-child td {
  border-bottom: 0;
}

.table-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.pricing-section {
  text-align: center;
}

.pricing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.toggle-btn {
  min-height: 36px;
  padding: 8px 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.toggle-btn.active {
  color: #fff;
  background: var(--blue);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
  gap: 18px;
}

.pricing-card {
  position: relative;
  padding: 30px;
  text-align: left;
}

.pricing-card.premium {
  border-color: rgba(15, 118, 200, 0.44);
}

.pricing-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #e5f3ff;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.pricing-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.price {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 40px;
  font-weight: 800;
}

.price span,
.pricing-card p {
  color: var(--muted);
  font-size: 14px;
}

.pricing-features {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.pricing-features li {
  color: var(--muted);
  font-size: 14px;
}

.pricing-features li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--green);
  font-weight: 800;
}

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

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid strong {
  color: var(--ink);
}

.footer-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.footer-links a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 960px) {
  .nav-wrapper,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-grid,
  .hero-grid.reverse,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-grid.reverse .hero-visual {
    order: 2;
  }

  .feature-grid.three,
  .feature-grid.four,
  .pricing-cards,
  .secondary-product-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .product-hero,
  .section {
    padding: 54px 0;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 340px;
  }

  .floating-panel {
    left: 14px;
    right: 14px;
  }

  .workflow-list div {
    grid-template-columns: 1fr;
  }
}
