:root {
  color-scheme: light;
  --bg: #f6f3ed;
  --ink: #172532;
  --muted: #596c7b;
  --line: #d6e0e6;
  --panel: #ffffff;
  --panel-soft: #eef7f5;
  --accent: #0b7d67;
  --accent-dark: #075c4d;
  --gold: #d8ab45;
  --blue: #2b6688;
  --shadow: rgba(29, 42, 54, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 42%, #edf5f3 100%);
}

a {
  color: inherit;
}

main {
  min-height: 100vh;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 74vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 18%, rgba(11, 125, 103, 0.16), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(43, 102, 136, 0.14), transparent 26%),
    linear-gradient(135deg, #fbfaf7 0%, #edf5f3 62%, #f8f1df 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(23, 37, 50, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 37, 50, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  pointer-events: none;
}

nav,
.hero-grid,
.proof,
.customers,
.contact {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

nav {
  position: relative;
  z-index: 1;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.brand,
.nav-link,
.button,
.email-link,
.customer-card {
  text-decoration: none;
}

.brand {
  font-size: 1.25rem;
  font-weight: 760;
}

.nav-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(23, 37, 50, 0.18);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 650;
}

.nav-link-strong {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.58);
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  min-height: calc(74vh - 74px);
  display: grid;
  grid-template-columns: minmax(430px, 0.82fr) minmax(620px, 1.18fr);
  gap: 0;
  align-items: center;
  padding: 42px 0 76px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 740px;
  margin-left: -20px;
  padding: 16px 20px 20px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(251, 250, 247, 0.94), rgba(251, 250, 247, 0.76) 78%, rgba(251, 250, 247, 0));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.45rem, 4.8vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.55;
}

.actions {
  margin-top: 30px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 760;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 125, 103, 0.22);
}

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

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.product-graphic {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(430px, 1fr) 38px minmax(360px, 0.78fr);
  align-items: center;
  gap: 0;
  margin-left: -150px;
  margin-right: -96px;
  min-height: 450px;
}

.graphic-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(23, 37, 50, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 28px 70px var(--shadow);
}

.review-window {
  transform: translateY(4px);
}

.redaction-window {
  min-width: 360px;
  transform: translate(-34px, 38px);
}

.graphic-divider {
  position: relative;
  z-index: 3;
  justify-self: center;
  width: 8px;
  height: min(66vh, 520px);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(23, 37, 50, 0), rgba(23, 37, 50, 0.5) 12%, rgba(11, 125, 103, 0.7) 52%, rgba(23, 37, 50, 0.5) 88%, rgba(23, 37, 50, 0));
  box-shadow: 0 18px 34px rgba(23, 37, 50, 0.18);
  transform: translateX(-18px) rotate(7deg);
}

.window-bar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #f7faf9;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d7e3e4;
}

.window-bar span:nth-child(1) {
  background: #ef8d79;
}

.window-bar span:nth-child(2) {
  background: #e7c35d;
}

.window-bar span:nth-child(3) {
  background: #82c89c;
}

.workspace-grid {
  min-height: 360px;
  display: grid;
  grid-template-columns: 0.52fr 0.82fr 1.3fr;
  gap: 1px;
  background: var(--line);
}

.folders,
.message-list,
.preview {
  padding: 18px;
  background: #fff;
}

.preview {
  overflow: hidden;
}

.redaction-shell {
  min-height: 360px;
  padding: 16px;
  background: #fff;
}

.folder,
.message,
.preview-line,
.preview-title,
.preview-action,
.preview-header-line {
  display: block;
  border-radius: 6px;
  background: #dce7ea;
}

.folder {
  height: 22px;
  margin-bottom: 14px;
}

.folder.active {
  background: var(--accent);
}

.folder.short {
  width: 70%;
}

.message {
  height: 42px;
  margin-bottom: 12px;
  background:
    linear-gradient(90deg, #dce7ea 0 64%, transparent 64%),
    linear-gradient(90deg, transparent 0 72%, #edf3f4 72% 100%);
}

.message.active {
  background:
    linear-gradient(90deg, rgba(11, 125, 103, 0.22) 0 100%),
    #fff;
  outline: 1px solid rgba(11, 125, 103, 0.4);
}

.message.short {
  width: 76%;
}

.preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.preview-title {
  width: 58%;
  height: 18px;
  background: var(--ink);
}

.preview-action {
  width: 46px;
  height: 18px;
  margin-left: auto;
  border: 1px solid #b7cad3;
  background: #f8fbfb;
}

.preview-header-line {
  width: 74%;
  height: 15px;
  margin-bottom: 8px;
  background: #b8c8cf;
}

.preview-header-line.short {
  width: 52%;
  height: 11px;
  margin-bottom: 8px;
  background: #c8d6dc;
}

.preview-header-line.tiny {
  width: 62%;
  height: 11px;
  margin-bottom: 22px;
  background: #c8d6dc;
}

.preview-line {
  width: 82%;
  height: 12px;
  margin-bottom: 10px;
}

.preview-line.wide {
  width: 94%;
}

.redactor-toolbar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2ebef;
}

.tool {
  display: block;
  width: 26px;
  height: 22px;
  border-radius: 6px;
  background: #e1ebee;
}

.tool.active {
  background: var(--ink);
}

.tool.wide {
  width: 54px;
  background:
    linear-gradient(90deg, #d6e3e7 0 40%, transparent 40% 48%, #d6e3e7 48% 100%);
}

.redactor-stage {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
}

.pdf-viewport {
  position: relative;
  overflow: hidden;
  height: 194px;
  border: 1px solid #d5e1e6;
  border-radius: 10px;
  background:
    linear-gradient(180deg, #f5f7f7 0%, #edf3f4 100%);
}

.pdf-page {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 16px;
  bottom: -8px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 37, 50, 0.12);
}

.pdf-scroll-track {
  position: absolute;
  inset: 0;
  animation: pdf-scroll-loop 14s ease-in-out infinite;
}

.pdf-sheet {
  position: relative;
  min-height: 285px;
  padding: 18px 18px 24px;
}

.pdf-line {
  display: block;
  width: 78%;
  height: 9px;
  margin-bottom: 10px;
  border-radius: 5px;
  background: #d8e2e6;
}

.pdf-line.title {
  width: 48%;
  height: 16px;
  margin-bottom: 7px;
  background: #b7c8cf;
}

.pdf-line.title-second {
  width: 38%;
  height: 12px;
  margin-bottom: 16px;
  background: #c8d6dc;
}

.pdf-line.wide {
  width: 94%;
}

.pdf-line.mid {
  width: 64%;
}

.pdf-line.short {
  width: 42%;
}

.redact-target {
  background: #cbd8dd;
}

.redaction-box {
  position: absolute;
  left: 18px;
  height: 14px;
  border-radius: 2px;
  background: #111820;
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
}

.redaction-box::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  transform: translate(-50%, -50%);
}

.box-one {
  top: 124px;
  width: 72%;
  animation: redact-one 14s ease-in-out infinite;
}

.box-two {
  top: 181px;
  width: 52%;
  animation: redact-two 14s ease-in-out infinite;
}

.redaction-cursor {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 25px;
  left: 62%;
  top: 44px;
  filter: drop-shadow(0 4px 5px rgba(23, 37, 50, 0.22));
  animation: cursor-redact-scroll 14s ease-in-out infinite;
}

.redaction-cursor::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 25px;
  background: #172532;
  clip-path: polygon(0 0, 0 21px, 5px 16px, 9px 25px, 13px 23px, 9px 14px, 17px 14px);
}

.redaction-cursor::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 9px;
  height: 13px;
  background: rgba(255, 255, 255, 0.28);
  clip-path: polygon(0 0, 0 13px, 3px 10px, 5px 13px, 7px 12px, 5px 9px, 9px 9px);
}

.reason-palette {
  order: -1;
  min-height: 194px;
  border: 1px solid rgba(11, 125, 103, 0.28);
  border-radius: 10px;
  padding: 10px 8px;
  background:
    linear-gradient(180deg, rgba(11, 125, 103, 0.08), transparent 44%),
    #f8fbfb;
}

.palette-title,
.reason,
.apply-redactions {
  display: block;
  border-radius: 6px;
}

.palette-title {
  width: 80%;
  height: 8px;
  margin: 0 0 12px;
  background: #b8c9d0;
}

.reason {
  height: 25px;
  margin-bottom: 8px;
  padding: 7px 8px;
  border: 1px solid #d7e3e8;
  background: #fff;
}

.reason i {
  display: block;
  width: 64%;
  height: 7px;
  border-radius: 999px;
  background: #c8d7dd;
}

.reason.active {
  border-color: rgba(11, 125, 103, 0.36);
  background: rgba(11, 125, 103, 0.12);
}

.reason.active i {
  width: 82%;
  background: var(--accent);
}

.reason.short i {
  width: 48%;
}

.apply-redactions {
  height: 26px;
  margin-top: 20px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.76) 0 48%, transparent 48%),
    var(--ink);
}

.attachments {
  margin-top: 30px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.attachments span {
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--panel-soft);
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
}

@keyframes pdf-scroll-loop {
  0%, 10% {
    transform: translateY(0);
  }
  24%, 40% {
    transform: translateY(-42px);
  }
  54%, 70% {
    transform: translateY(-99px);
  }
  90%, 100% {
    transform: translateY(-285px);
  }
}

@keyframes cursor-redact-scroll {
  0%, 18% {
    left: 14%;
    top: 104px;
    opacity: 0;
  }
  24% {
    left: 14%;
    top: 104px;
    opacity: 1;
  }
  34%, 40% {
    left: 76%;
    top: 104px;
    opacity: 1;
  }
  48% {
    left: 16%;
    top: 106px;
    opacity: 1;
  }
  56% {
    left: 16%;
    top: 106px;
    opacity: 1;
  }
  66%, 70% {
    left: 62%;
    top: 106px;
    opacity: 1;
  }
  78%, 100% {
    left: 68%;
    top: 104px;
    opacity: 0;
  }
}

@keyframes redact-one {
  0%, 27% {
    opacity: 0;
    transform: scaleX(0);
  }
  36%, 89% {
    opacity: 1;
    transform: scaleX(1);
  }
  90%, 100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

@keyframes redact-two {
  0%, 59% {
    opacity: 0;
    transform: scaleX(0);
  }
  68%, 89% {
    opacity: 1;
    transform: scaleX(1);
  }
  90%, 100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdf-scroll-track,
  .redaction-box,
  .redaction-cursor {
    animation: none;
  }

  .redaction-box {
    opacity: 1;
    transform: scaleX(1);
  }

  .redaction-cursor {
    opacity: 0;
  }
}

@media (max-width: 1180px) {
  .hero-grid {
    width: min(1180px, calc(100% - 36px));
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-copy {
    max-width: 760px;
    margin-left: -20px;
  }

  .product-graphic {
    margin-left: 0;
    margin-right: 0;
    grid-template-columns: minmax(0, 1.08fr) 38px minmax(340px, 0.72fr);
  }

  .redaction-window {
    transform: translate(-22px, 30px);
  }
}

.proof {
  padding: 38px 0 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.proof > div,
.customers,
.contact {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(31, 45, 58, 0.06);
}

.proof > div {
  padding: 20px;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.proof p,
.customers p,
.contact p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.customers,
.contact {
  margin-top: 20px;
  padding: 24px;
}

.customers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: 22px;
  align-items: center;
}

.customer-card {
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #fff;
}

.customer-card img {
  width: min(260px, 100%);
  height: auto;
  display: block;
}

.logo-note {
  grid-column: 1 / -1;
  font-size: 0.78rem;
}

.contact {
  margin-bottom: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.email-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 760;
}

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

  .product-graphic {
    min-height: 0;
  }

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

@media (max-width: 760px) {
  .product-graphic {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .review-window,
  .redaction-window {
    transform: none;
  }

  .graphic-divider {
    width: 74%;
    height: 7px;
    transform: rotate(-4deg);
  }
}

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

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-top: 32px;
  }

  .workspace-grid {
    grid-template-columns: 0.7fr 1fr;
  }

  .preview {
    grid-column: 1 / -1;
  }

  .redactor-stage {
    grid-template-columns: 76px minmax(0, 1fr);
  }
}
