:root {
  --ink: #0b1f3a;
  --accent: #2f6fed;
  --cream: #f4f7fb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Jakarta, Arial, sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.pl-button.primary,
.pl-marquee {
  color: #fff;
}

.pl-hero:after {
  background: radial-gradient(circle, rgba(47, 111, 237, 0.32), transparent 66%);
}

.pl-hero__support,
.pl-trust,
.pl-core p,
.pl-security > p,
.pl-cta > div > p,
.pl-cta > div > small {
  color: #b7c7dc !important;
}

.pl-dark .pl-copy li,
.pl-compare li,
.pl-benefit-list p,
.pl-security li small {
  color: #c5d3e6;
}

.pl-compare .after li {
  color: #1a3048;
}

.site-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 40;
}

.site-nav.is-stuck {
  position: fixed;
  background: rgba(11, 31, 58, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav__inner {
  width: min(1240px, calc(100% - 48px));
  margin: auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.site-logo img {
  height: 42px;
  width: 42px;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.site-logo span {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1;
}

.site-logo strong {
  color: #78a7ff;
  font-size: 16px;
  letter-spacing: 0.075em;
  margin-top: 4px;
}

.site-nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  cursor: pointer;
}

.site-nav__toggle span,
.site-nav__toggle span:before,
.site-nav__toggle span:after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  margin: auto;
  position: relative;
  content: "";
}

.site-nav__toggle span:before { top: -6px; position: absolute; }
.site-nav__toggle span:after { top: 6px; position: absolute; }

.site-nav__panel {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav__links {
  display: flex;
  gap: 22px;
}

.site-nav__links a {
  color: #e8eef8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  position: relative;
  transition: color 0.2s ease;
}

.site-nav__links a:hover { color: #fff; }

.site-nav__links a::after {
  background: #78a7ff;
  border-radius: 2px;
  bottom: -8px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
  width: 100%;
}

.site-nav__links a:hover::after { transform: scaleX(1); }

.site-nav .pl-button {
  min-height: 44px;
  font-size: 12px;
}

.dd-photo {
  margin: 0 0 36px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(11, 31, 58, 0.16);
}

.dd-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.dd-photo--contain img {
  height: 340px;
}

.dd-photo figcaption,
.dd-photo-pair figcaption {
  padding: 12px 4px 0;
  color: #5b6b82;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dd-photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 0 0 48px;
}

.dd-photo-pair figure {
  margin: 0;
  background: #12284a;
  border-radius: 16px;
  overflow: hidden;
}

.dd-photo-pair img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.dd-photo-pair figcaption {
  color: #c5d3e6;
  padding: 14px 18px 16px;
}

.pl-security-visual {
  margin: 28px 0 0;
  border-radius: 12px;
  overflow: hidden;
}

.pl-security-visual img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.pl-faq {
  padding: 120px 0;
}

.pl-faq details {
  border-top: 1px solid var(--line, #dbe0d8);
  padding: 22px 0;
}

.pl-faq details:last-child { border-bottom: 1px solid var(--line, #dbe0d8); }

.pl-faq summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  list-style: none;
}

.pl-faq summary::-webkit-details-marker { display: none; }

.pl-faq p {
  color: #5b6b82;
  font-size: 15px;
  line-height: 1.7;
  margin: 12px 0 0;
  max-width: 760px;
}

.pl-cta {
  background:
    linear-gradient(180deg, rgba(11, 31, 58, 0.82), rgba(11, 31, 58, 0.92)),
    url('../images/cta-workspace.jpg') center / cover no-repeat;
}

.dd-contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  text-align: left;
  margin-top: 48px;
}

.dd-contact h3 {
  font-size: 28px;
  margin: 0 0 10px;
}

.dd-contact p {
  color: #b7c7dc;
  font-size: 15px;
  line-height: 1.7;
}

.dd-contact a {
  color: #fff;
  font-weight: 800;
}

.dd-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 28px;
  display: grid;
  gap: 12px;
}

.dd-form label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c5d3e6;
}

.dd-form input,
.dd-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 31, 58, 0.45);
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  font: 500 15px Jakarta, Arial, sans-serif;
}

.dd-form textarea { min-height: 120px; resize: vertical; }

.dd-form button {
  cursor: pointer;
  font-family: inherit;
}

.dd-form-status {
  color: #c5d3e6;
  font-size: 13px;
  min-height: 1.2em;
}

.site-footer {
  background: #0b1f3a;
  color: #c5d3e6;
  padding: 48px 0 28px;
}

.site-footer__inner {
  width: min(1240px, calc(100% - 48px));
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer img {
  height: 40px;
  width: 40px;
}

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

.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 30;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Landing-page polish: one consistent rhythm, surface system, and hierarchy. */
.pl-theme section { position: relative; }

.pl-problem,
.pl-inbox,
.pl-timeline,
.pl-collab,
.pl-process,
.pl-faq {
  border-top: 1px solid rgba(11, 31, 58, 0.07);
}

.pl-problem,
.pl-timeline,
.pl-collab,
.pl-faq {
  background: #f8fafd;
}

.pl-inbox,
.pl-process { background: #fff; }

.pl-heading { max-width: 1120px; }
.pl-heading.center { margin-left: auto; margin-right: auto; }
.pl-heading.split > p { max-width: 520px; }

.pl-heading h2,
.pl-copy h2,
.pl-security h2,
.pl-benefit-list h2 {
  text-wrap: balance;
}

.pl-heading > p,
.pl-copy > p,
.pl-security > p,
.dd-contact p {
  text-wrap: pretty;
}

.pl-eyebrow { margin-bottom: 18px; }
.pl-eyebrow span { box-shadow: 0 0 0 5px rgba(47, 111, 237, 0.12); }

.pl-hero__copy { max-width: 570px; }
.pl-hero__support { max-width: 540px; }
.pl-dashboard { border-color: rgba(255, 255, 255, 0.32); }

.pl-pains article,
.pl-core article,
.pl-calendar,
.pl-task,
.pl-comments,
.pl-audit,
.pl-timeline-ui,
.pl-inbox-ui,
.pl-customer,
.pl-board,
.pl-security,
.pl-compare > article {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pl-pains article:hover,
.pl-calendar:hover,
.pl-task:hover,
.pl-comments:hover,
.pl-audit:hover,
.pl-timeline-ui:hover {
  border-color: rgba(47, 111, 237, 0.28);
  box-shadow: 0 20px 55px rgba(11, 31, 58, 0.08);
  transform: translateY(-3px);
}

.pl-core article:hover,
.pl-compare > article:hover,
.pl-security:hover {
  border-color: rgba(120, 167, 255, 0.55);
  transform: translateY(-3px);
}

.dd-photo,
.dd-photo-pair figure,
.pl-security-visual { position: relative; }

.dd-photo::after,
.dd-photo-pair figure::after,
.pl-security-visual::after {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: inherit;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.dd-photo figcaption,
.dd-photo-pair figcaption {
  letter-spacing: 0.055em;
  line-height: 1.5;
}

.pl-faq .pl-heading { margin-bottom: 40px; }
.pl-faq details { transition: background 0.2s ease, padding 0.2s ease; }
.pl-faq details[open] { background: #fff; padding-left: 22px; padding-right: 22px; }
.pl-faq summary { align-items: center; display: flex; justify-content: space-between; }
.pl-faq summary::after { color: #2f6fed; content: "+"; font-size: 24px; font-weight: 500; }
.pl-faq details[open] summary::after { content: "−"; }

.dd-form input:focus,
.dd-form textarea:focus {
  border-color: #78a7ff;
  box-shadow: 0 0 0 3px rgba(120, 167, 255, 0.16);
  outline: none;
}

.legal-page {
  min-height: 100vh;
  background: var(--cream);
}

.legal-page .site-nav {
  position: relative;
  background: #0b1f3a;
}

.legal-main {
  width: min(800px, calc(100% - 48px));
  margin: 80px auto 100px;
}

.legal-main h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.05em;
  margin: 0 0 12px;
}

.legal-main p,
.legal-main li {
  color: #5b6b82;
  line-height: 1.75;
  font-size: 16px;
}

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 24px;
}

.not-found h1 {
  font-size: clamp(48px, 8vw, 92px);
  letter-spacing: -0.06em;
  margin: 0 0 12px;
}

@media (max-width: 1000px) {
  .dd-contact,
  .dd-photo-pair { grid-template-columns: 1fr; }
  .dd-photo img,
  .dd-photo-pair img { height: 260px; }
  .pl-hero__copy { max-width: 760px; }
  .pl-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .pl-hero__inner > * { min-width: 0; }
  .pl-dashboard { max-width: 100%; min-width: 0; }
}

@media (max-width: 800px) {
  .site-nav__toggle { display: grid; place-items: center; }
  .site-nav__panel {
    display: none;
    position: absolute;
    top: 84px;
    left: 24px;
    right: 24px;
    background: #0b1f3a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.is-open .site-nav__panel { display: flex; }
  .site-nav__links { flex-direction: column; gap: 14px; }
  .site-nav__inner { width: min(100% - 32px, 1240px); }
  .site-logo { gap: 8px; }
  .site-logo img { height: 36px; width: 36px; }
  .site-logo span { font-size: 9px; }
  .site-logo strong { font-size: 13px; }
  .pl-cta { padding: 80px 0; }
  .pl-faq { padding: 80px 0; }
  .pl-faq details[open] { padding-left: 14px; padding-right: 14px; }
}

@media (max-width: 700px) {
  .pl-hero__copy,
  .pl-dashboard { width: calc(100vw - 28px); }
  .pl-hero h1 { font-size: clamp(42px, 11.8vw, 46px); line-height: 0.98; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
