:root {
  --black: #000;
  --white: #fff;
  --green: #8cc63f;
  --green-dark: #739e34;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #f7f9f8;
  --surface: #fff;
  --border: #e2e8e4;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: "Barlow Condensed", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

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

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.section-muted {
  background: #eef2f0;
}

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 0.65rem;
}

.section-lead {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.65;
}

.section-dark .section-lead {
  color: rgba(255, 255, 255, 0.68);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: 0.15s;
}

.btn-primary {
  background: var(--green);
  color: #000;
}

.btn-primary:hover {
  background: var(--green-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-light {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-light:hover {
  border-color: var(--green-dark);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.8rem;
}

/* Header */
.ds-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ds-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  height: 72px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ds-logo img {
  height: 38px;
}

.ds-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.ds-nav-link,
.ds-nav-trigger {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.ds-nav-link:hover,
.ds-nav-trigger:hover,
.ds-nav-group.open .ds-nav-trigger,
.ds-nav-link.is-active,
.ds-nav-group.is-active .ds-nav-trigger {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ds-nav-group {
  position: relative;
}

.ds-nav-trigger span {
  font-size: 0.65rem;
  margin-left: 4px;
  opacity: 0.7;
}

.ds-nav-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.ds-nav-group.open .ds-nav-panel {
  display: block;
}

.ds-nav-child {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
  font-weight: 600;
}

.ds-nav-child:hover,
.ds-nav-child.is-active {
  background: rgba(140, 198, 63, 0.12);
  color: #8cc63f;
}

.ds-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ds-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.ds-drawer {
  display: none;
  position: fixed;
  inset: 104px 0 0;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem;
  overflow-y: auto;
  z-index: 199;
}

.ds-drawer.open {
  display: block;
}

.ds-drawer > a {
  display: block;
  padding: 0.85rem 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ds-drawer-group {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ds-drawer-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.ds-drawer-child {
  display: block;
  padding: 0.45rem 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.ds-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1.25rem;
}

/* Hero */
.ds-hero {
  background: var(--black);
  color: #fff;
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.ds-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  max-width: 820px;
  margin-bottom: 0.85rem;
}

.ds-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.ds-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.ds-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Content blocks */
.ds-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  max-width: 760px;
}

.ds-list li {
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.6;
  color: var(--muted);
}

.ds-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-dark);
  font-weight: 800;
}

.ds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.ds-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.ds-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.ds-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.ds-related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.ds-related-link {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.ds-related-link strong {
  display: block;
  margin-bottom: 0.25rem;
}

.ds-related-link span {
  font-size: 0.82rem;
  color: var(--muted);
}

.ds-faq {
  max-width: 760px;
}

.ds-faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.ds-faq-item summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 700;
  list-style: none;
}

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

.ds-faq-item p {
  padding: 0 1.1rem 1rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.92rem;
}

.ds-tree {
  list-style: none;
  max-width: 520px;
  line-height: 1.8;
}

.ds-tree ul {
  margin-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.ds-tree a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

/* CTA */
.ds-cta {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  text-align: center;
}

.ds-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.ds-cta p {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.ds-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Footer */
.ds-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.65);
  padding: 2.5rem 0 1.5rem;
}

.ds-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 2rem;
}

.ds-foot-brand img {
  height: 34px;
  margin-bottom: 0.75rem;
}

.ds-foot-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 280px;
}

.ds-foot-note {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.ds-foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.25rem;
}

.ds-foot-col h3 {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.65rem;
}

.ds-foot-col a {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.4rem;
}

.ds-foot-col a:hover {
  color: #fff;
}

.ds-foot-copy {
  max-width: 1320px;
  margin: 1.5rem auto 0;
  padding: 1rem clamp(1rem, 3vw, 2rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 980px) {
  .ds-nav,
  .ds-header-actions {
    display: none;
  }

  .ds-nav-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .ds-footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ds-drawer {
    inset: 96px 0 0;
  }
}

/* Contact form */
.ds-contact-hero {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.ds-form-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.ds-form-shell {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.ds-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ds-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ds-form-row.full {
  grid-column: 1 / -1;
}

.ds-form-row label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

.ds-form-row input,
.ds-form-row select,
.ds-form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.88rem;
  background: var(--white);
  color: var(--ink);
}

.ds-form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.ds-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ds-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
}

.ds-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  accent-color: var(--green);
  cursor: pointer;
}

.ds-form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.ds-form-status[hidden] {
  display: none;
}

.ds-form-status--success {
  background: #ecfdf3;
  border: 1px solid #86efac;
  color: #14532d;
}

.ds-form-status--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.ds-form-status--info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.form-status[hidden] {
  display: none;
}

.form-status--success {
  background: #ecfdf3;
  border: 1px solid #86efac;
  color: #14532d;
}

.form-status--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.form-status--info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}

@media (max-width: 700px) {
  .ds-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Hub pages */
.ds-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.ds-hub-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  transition: 0.15s;
}

.ds-hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--green-dark);
}

.ds-hub-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.ds-hub-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

body.ds-site-home .ds-header {
  position: sticky;
}

/* Wrapped live pages keep their original section styling inside main */
.ds-wrapped-page main .land-hero,
.ds-wrapped-page main .hero,
.ds-wrapped-page main .section {
  width: 100%;
}

.ds-pricing-hero {
  padding-bottom: 1.5rem;
}

.ds-case-grid {
  display: grid;
  gap: 1.25rem;
}

.ds-case-study {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.ds-case-study h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0.65rem 0 0.85rem;
  color: var(--ink);
}

.ds-case-study p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.ds-case-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.ds-case-meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0;
}
