:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5d6875;
  --line: #dfe5ec;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --blue: #2458d3;
  --blue-dark: #173c96;
  --green: #138a63;
  --yellow: #f4b63f;
  --shadow: 0 24px 70px rgba(29, 42, 57, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(223, 229, 236, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: var(--blue);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(36, 88, 211, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

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

.nav-cta {
  padding: 10px 14px;
  color: white !important;
  background: var(--ink);
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(48px, 7vw, 92px) clamp(20px, 5vw, 72px) clamp(44px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(36, 88, 211, 0.12), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 10vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
}

.hero-text {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(36, 88, 211, 0.28);
}

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

.button.secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.workspace-preview {
  min-height: 430px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.preview-toolbar {
  display: flex;
  gap: 8px;
  padding: 16px;
  background: #eef3f8;
  border-bottom: 1px solid var(--line);
}

.preview-toolbar span {
  width: 11px;
  height: 11px;
  background: #9aa8b8;
  border-radius: 50%;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  padding: clamp(22px, 5vw, 44px);
}

.document-stack {
  position: relative;
  min-height: 310px;
}

.doc-page {
  position: absolute;
  width: 66%;
  min-width: 210px;
  aspect-ratio: 0.74;
  background: white;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  box-shadow: 0 18px 36px rgba(23, 32, 42, 0.12);
}

.doc-page::before,
.doc-page::after {
  position: absolute;
  left: 15%;
  right: 15%;
  content: "";
  border-radius: 999px;
}

.doc-page::before {
  top: 18%;
  height: 10px;
  background: var(--blue);
}

.doc-page::after {
  top: 30%;
  height: 76px;
  background: repeating-linear-gradient(#d7dee8 0 8px, transparent 8px 18px);
}

.page-one {
  left: 2%;
  top: 4%;
  transform: rotate(-7deg);
}

.page-two {
  left: 18%;
  top: 1%;
  transform: rotate(4deg);
}

.page-three {
  left: 11%;
  top: 13%;
}

.tool-panel {
  display: grid;
  align-content: center;
  gap: 12px;
}

.tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tool-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.tool-row.active {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.tool-row.active span {
  color: rgba(255, 255, 255, 0.78);
}

.section,
.workflow,
.cta-section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: grid;
  gap: 4px;
  max-width: 780px;
  margin-bottom: 32px;
}

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

.tool-card {
  min-height: 236px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tool-card p,
.workflow-steps p,
.feature-list,
.cta-section p,
.legal-content p,
.legal-content li {
  color: var(--muted);
}

.tool-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 36px;
  margin-bottom: 28px;
  color: white;
  background: var(--ink);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 900;
}

.workflow {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 6vw, 72px);
  background: #17202a;
  color: white;
}

.workflow .eyebrow {
  color: var(--yellow);
}

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

.workflow-steps div {
  padding: 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.workflow-steps span {
  display: block;
  margin-bottom: 10px;
  color: var(--yellow);
  font-weight: 900;
}

.workflow-steps p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 72px);
  background: var(--soft);
}

.feature-list {
  font-size: 1.03rem;
}

.feature-list ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.feature-list a,
.legal-content a {
  color: var(--blue);
  font-weight: 750;
}

.cta-section {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.cta-section p {
  max-width: 640px;
  margin: 0;
  font-size: 1.12rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 18px;
  font-weight: 700;
}

.legal-page {
  padding: clamp(44px, 7vw, 82px) 20px;
  background: var(--soft);
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 54px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-content h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 1.35rem;
}

.updated {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .hero,
  .workflow,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links[data-open],
  .legal-nav {
    display: flex;
  }

  .legal-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-links a {
    padding: 9px 0;
  }

  .nav-cta {
    text-align: center;
  }

  .workspace-preview {
    min-height: 360px;
  }

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

  .tool-panel {
    grid-template-columns: 1fr;
  }

  .document-stack {
    min-height: 245px;
  }

  .doc-page {
    min-width: 178px;
  }

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  .legal-nav {
    gap: 10px;
    font-size: 0.85rem;
  }

  .legal-nav .nav-cta {
    padding: 8px 10px;
  }
}
