:root {
  --color-bg: #ffffff;
  --color-surface: #f7fafd;
  --color-border: #d9e5f2;
  --color-text: #132238;
  --color-muted: #53657d;
  --color-primary: #1f3a68;
  --color-accent: #f59e0b;
  --color-cyan: #4cc3e0;
  --shadow-soft: 0 14px 32px rgba(31, 58, 104, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1320px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

img {
  max-width: 100%;
}

.container {
  width: min(calc(100% - 3rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 3.5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(217, 229, 242, 0.8);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s, background 0.3s, border-color 0.3s;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 7rem;
  gap: 1rem;
  transition: min-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 6.8rem;
  overflow: hidden;
  margin-left: -1rem;
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand img {
  display: block;
  width: auto;
  height: 20rem;
  margin-top: -6.2rem;
  margin-bottom: -6.2rem;
  margin-left: -1.9rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ── Full-width hero with background image ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 6rem;
  background:
    linear-gradient(135deg, rgba(10, 22, 65, 0.93) 0%, rgba(10, 22, 60, 0.75) 55%, rgba(5, 18, 50, 0.60) 100%),
    url('images/hero-bg.jpg') center / cover no-repeat;
  overflow: hidden;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
}

.hero-eyebrow {
  color: var(--color-accent) !important;
}

.hero-eyebrow::before {
  background: var(--color-accent) !important;
}

.hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: #ffffff;
  max-width: 18ch;
}

.hero .hero-text {
  margin-top: 1.75rem;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  max-width: 48ch;
}

.hero .hero-actions {
  justify-content: center;
}

.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.85);
}

.page-hero {
  padding: 0.75rem 0 1.75rem;
}

.page-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 1.5rem;
  align-items: start;
}

.section-intro-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 1.5rem;
  align-items: center;
}

.hero-grid,
.split-layout,
.product-card,
.cta-card,
.mission-grid,
.docify-hero-grid {
  display: grid;
  gap: 1.25rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: start;
}

.page-hero-inner {
  max-width: 52rem;
}

.page-hero > .container.page-hero-inner {
  max-width: var(--container);
}

.docify-hero {
  padding-bottom: 4.5rem;
}

.docify-hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.75fr);
  align-items: center;
}

.docify-tagline {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 2px;
  background: var(--color-accent);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 1rem;
  font-size: clamp(1.9rem, 4.4vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.2;
}

.hero-text,
.feature-card p,
.about-copy p,
.product-copy p,
.point p {
  color: var(--color-muted);
}

.hero-copy h1 {
  max-width: 12ch;
}

.page-hero-inner h1 {
  max-width: 16ch;
}

.hero-text {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Trust strip below hero CTAs */
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-top: 1.75rem;
}
.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-muted);
}
.hero-trust-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
}
.hero-trust-sep {
  color: var(--color-border);
  font-size: 1rem;
  line-height: 1;
}
@media (max-width: 520px) {
  .hero-trust-sep { display: none; }
  .hero-trust { gap: 0.5rem; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  background: #ffffff;
}

.hero-panel,
.feature-card,
.product-card,
.cta-card,
.docify-summary-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.hero-panel {
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.docify-summary-card {
  padding: 2rem;
  background: var(--color-surface);
  border-color: rgba(76, 195, 224, 0.28);
  box-shadow: var(--shadow-soft);
}

.page-hero-visual {
  display: flex;
  justify-content: flex-end;
}

.section-side-visual {
  display: flex;
  justify-content: flex-end;
}

.top-tight {
  margin-top: -1rem;
}

.section-illustration {
  display: block;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto 0.25rem;
}

.section-illustration-compact {
  max-width: 28rem;
  margin-bottom: 0.5rem;
}

.panel-card {
  border-radius: 14px;
  background: var(--color-surface);
  border: 1px solid rgba(76, 195, 224, 0.22);
  padding: 2rem;
}

.panel-label {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--color-accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.panel-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.panel-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-top: 0.95rem;
  color: var(--color-muted);
}

.panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-cyan);
}

.section-heading {
  max-width: 42rem;
}

.mission-section {
  border-top: 1px solid rgba(217, 229, 242, 0.8);
  border-bottom: 1px solid rgba(217, 229, 242, 0.8);
  background: #fcfdff;
}

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

.statement-card {
  padding: 2.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.statement-card p {
  margin-top: 1rem;
  color: var(--color-muted);
}

.statement-card-accent {
  background: var(--color-surface);
  border-color: rgba(76, 195, 224, 0.35);
}

.why-section .feature-grid {
  margin-top: 1.5rem;
}

.nav-links a[aria-current="page"] {
  color: var(--color-primary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 1.5rem;
  align-items: start;
}

.docify-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature-card {
  padding: 1.8rem;
}

.solution-card {
  padding: 1.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.service-card {
  padding: 1.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.case-card {
  padding: 1.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.contact-text {
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: 0.96rem;
}

.contact-note {
  margin-top: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(217, 229, 242, 0.9);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.contact-note strong {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--color-primary);
}

.contact-note p {
  color: var(--color-muted);
}

.contact-note a {
  color: var(--color-muted);
  text-decoration: underline;
}

.contact-note a:hover {
  color: var(--color-primary);
}

.form-field {
  display: grid;
  gap: 0.55rem;
}

.form-field span {
  font-weight: 700;
  color: var(--color-primary);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #ffffff;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(31, 58, 104, 0.45);
  box-shadow: 0 0 0 4px rgba(31, 58, 104, 0.08);
}

.form-field textarea {
  resize: vertical;
  min-height: 10rem;
}

.form-submit {
  margin-top: 0.5rem;
  border: 0;
  cursor: pointer;
}

.case-detail {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(217, 229, 242, 0.9);
}

.case-detail strong {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--color-primary);
}

.case-detail p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.case-result strong {
  color: #b87500;
}

.solution-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  margin-bottom: 1.3rem;
}

.solution-glyph {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.solution-icon-blue {
  background: rgba(31, 58, 104, 0.1);
  color: var(--color-primary);
}

.solution-icon-cyan {
  background: rgba(76, 195, 224, 0.16);
  color: #1789a8;
}

.solution-icon-orange {
  background: rgba(245, 158, 11, 0.14);
  color: #b87500;
}

.solution-text {
  margin-top: 0.9rem;
  color: var(--color-muted);
  font-size: 0.96rem;
}

.solution-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.solution-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-top: 0.9rem;
  color: var(--color-muted);
}

.solution-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-accent);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.feature-icon-blue {
  background: rgba(31, 58, 104, 0.1);
  color: var(--color-primary);
}

.feature-icon-cyan {
  background: rgba(76, 195, 224, 0.16);
  color: #1789a8;
}

.feature-icon-orange {
  background: rgba(245, 158, 11, 0.14);
  color: #b87500;
}

.split-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.about {
  border-top: 1px solid rgba(217, 229, 242, 0.8);
  border-bottom: 1px solid rgba(217, 229, 242, 0.8);
}

.about-copy {
  display: grid;
  gap: 1rem;
  align-content: start;
  font-size: 0.98rem;
}

.product-card {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  padding: 2.25rem;
  align-items: start;
  box-shadow: var(--shadow-soft);
}

.product-copy {
  max-width: 36rem;
}

.product-points {
  display: grid;
  gap: 0.75rem;
}

.point {
  padding: 1.2rem 1.3rem;
  background: var(--color-surface);
  border: 1px solid rgba(217, 229, 242, 0.9);
  border-radius: var(--radius-md);
}

.point strong {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--color-primary);
}

.point p,
.feature-card p,
.statement-card p,
.contact-note p {
  font-size: 0.95rem;
}

.cta-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 1.4rem 1.75rem;
  background: #ffffff;
}

@media (max-width: 1100px) {
  .strip-grid,
  .wv-pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .wv-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .dsp-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .split-layout,
  .product-card,
  .cta-card,
  .page-hero-split,
  .section-intro-split,
  .feature-grid,
  .mission-grid,
  .solutions-grid,
  .services-grid,
  .case-studies-grid,
  .contact-layout,
  .docify-features-grid,
  .docify-hero-grid,
  .docify-how-grid {
    grid-template-columns: 1fr;
  }

  /* Why VAIRAM: stack pillars */
  .wv-pillars {
    grid-template-columns: 1fr;
  }

  .wv-card {
    align-items: flex-start;
    text-align: left;
    padding: 2rem 1.75rem;
  }

  .wv-card p {
    max-width: 100%;
  }

  /* Docify spotlight: stack cards */
  .dsp-cards {
    grid-template-columns: 1fr;
  }

  .dsp-screenshot {
    height: 280px;
  }

  .dsp-headline {
    font-size: clamp(1.7rem, 5vw, 2.2rem);
  }

  /* How It Works: collapse to 2-column, hide arrows */
  .hiw-flow {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .hiw-connector {
    display: none;
  }

  .hiw-step {
    padding: 1.75rem 1rem;
  }

  .hero {
    min-height: 80vh;
    padding: 5rem 0 4rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .hero-br {
    display: none;
  }

  .page-hero {
    padding-top: 1rem;
  }

  .nav {
    min-height: 6rem;
    padding: 0.5rem 0;
  }

  .nav-links {
    justify-content: flex-end;
  }
}

/* ── Skip navigation ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  text-decoration: none;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 0;
}

/* ── Nav hover state ── */
.nav-links a:hover {
  color: var(--color-primary);
  transition: color 0.2s;
}

/* ── Photo strip (homepage) ── */
.photo-strip-section {
  padding-bottom: 3.5rem;
}

.photo-strip {
  display: block;
  width: 100%;
  height: 22rem;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* ── About page company photo ── */
.about-photo {
  display: block;
  width: 100%;
  height: 20rem;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-top: 1.5rem;
}

/* ── Case card photo ── */
.case-card-photo {
  display: block;
  width: 100%;
  height: 11rem;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

/* ── Fix empty grid cell: push about-copy to right column ── */
.top-tight > .about-copy {
  grid-column: 2;
}

/* ── Contact form feedback ── */
.form-success {
  display: none;
  padding: 2rem 1.5rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  text-align: center;
  color: #166534;
}

.form-success strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.form-error {
  display: none;
  padding: 0.75rem 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  color: #dc2626;
  font-size: 0.9rem;
}

.contact-form.is-success .form-fields {
  display: none;
}

.contact-form.is-success .form-success {
  display: block;
}

.contact-form.has-error .form-error {
  display: block;
}

.form-honeypot {
  display: none;
}

.form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ── Docify Spotlight ── */
.dsp-section {
  position: relative;
  padding: 5.5rem 0 6rem;
  background: linear-gradient(150deg, #060d27 0%, #0c1840 50%, #08122f 100%);
  overflow: hidden;
}

/* Subtle dot-grid overlay */
.dsp-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Ambient glow blobs */
.dsp-section::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 45%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(76,195,224,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.dsp-section .container {
  position: relative;
}

.dsp-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.dsp-eyebrow {
  color: var(--color-accent) !important;
}

.dsp-eyebrow::before {
  background: var(--color-accent) !important;
}

.dsp-headline {
  color: #ffffff;
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  margin-top: 1rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.dsp-subtext {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
}

/* ── Browser chrome ── */
.dsp-visual {
  position: relative;
  margin-bottom: 3.5rem;
}

.dsp-browser {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(76, 195, 224, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dsp-browser-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: 38px;
  padding: 0 1rem;
}

.dsp-browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.dsp-browser-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dsp-browser-dots span:nth-child(1) { background: #ff5f57; }
.dsp-browser-dots span:nth-child(2) { background: #febc2e; }
.dsp-browser-dots span:nth-child(3) { background: #28c840; }

.dsp-browser-url {
  flex: 1;
  max-width: 300px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  padding: 3px 10px;
  font-family: monospace;
  letter-spacing: 0.02em;
  margin: 0 auto;
}

.dsp-screenshot {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center top;
}

.dsp-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to top, #0d1a4a, transparent);
  border-radius: 0 0 13px 13px;
  pointer-events: none;
}

/* ── Feature cards ── */
.dsp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.dsp-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 2.25rem;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.dsp-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(76, 195, 224, 0.35);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.dsp-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.dsp-icon-blue  { background: rgba(76, 130, 210, 0.2);  color: #7cb9f0; }
.dsp-icon-cyan  { background: rgba(76, 195, 224, 0.18); color: #4cc3e0; }
.dsp-icon-amber { background: rgba(245, 158, 11, 0.18); color: #f59e0b; }

.dsp-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.dsp-card > p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.dsp-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dsp-card-list li {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  padding-left: 1.1rem;
  position: relative;
}

.dsp-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ── CTA row ── */
.dsp-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Fade-in animations ── */
.dsp-animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.dsp-animate.dsp-visible {
  opacity: 1;
  transform: translateY(0);
}

.dsp-delay-1 { transition-delay: 0.12s; }
.dsp-delay-2 { transition-delay: 0.24s; }
.dsp-delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .dsp-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── How It Works ── */
.how-section {
  background: var(--color-surface);
}

.hiw-flow {
  display: grid;
  grid-template-columns: 1fr 3rem 1fr 3rem 1fr 3rem 1fr;
  align-items: start;
  margin-top: 3rem;
}

.hiw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  transition: background 0.22s ease, box-shadow 0.22s ease;
  cursor: default;
}

.hiw-step:hover {
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(31, 58, 104, 0.10);
}

.hiw-icon-wrap {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.hiw-step:hover .hiw-icon-wrap {
  transform: translateY(-4px);
}

.hiw-color-blue   { background: rgba(31, 58, 104, 0.10); color: var(--color-primary); }
.hiw-color-cyan   { background: rgba(76, 195, 224, 0.18); color: #1e8da8; }
.hiw-color-orange { background: rgba(245, 158, 11, 0.15); color: #c07000; }
.hiw-color-purple { background: rgba(124, 58, 237, 0.12); color: #6d28d9; }

.hiw-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.hiw-step h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 0.6rem;
}

.hiw-step p {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.65;
  max-width: 22ch;
}

.hiw-connector {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4rem;
  color: rgba(31, 58, 104, 0.22);
}

/* ── Final CTA ── */
.final-cta {
  position: relative;
  padding: 7rem 0 8rem;
  background: linear-gradient(140deg, #080f2e 0%, #0f2060 35%, #0e4a6e 65%, #1a85a0 100%);
  overflow: hidden;
  text-align: center;
}

.final-cta-glow {
  position: absolute;
  bottom: -25%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(76, 195, 224, 0.22) 0%, transparent 65%);
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.final-cta-eyebrow {
  color: rgba(255, 255, 255, 0.65) !important;
}

.final-cta-eyebrow::before {
  background: rgba(255, 255, 255, 0.45) !important;
}

.final-cta-headline {
  color: #ffffff;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  letter-spacing: -0.045em;
  line-height: 1.06;
  margin-top: 1.1rem;
}

.final-cta-sub {
  margin: 1.4rem auto 0;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
  max-width: 52ch;
}

.final-cta-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.btn-cta-primary {
  background: #ffffff;
  color: var(--color-primary);
  font-size: 1.05rem;
  font-weight: 800;
  min-height: 3.75rem;
  padding: 0 2.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  letter-spacing: -0.01em;
}

.btn-cta-primary:hover {
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.36);
  transform: translateY(-2px);
}

.btn-cta-ghost {
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  font-size: 1.05rem;
  font-weight: 700;
  min-height: 3.75rem;
  padding: 0 2.25rem;
  backdrop-filter: blur(6px);
  letter-spacing: -0.01em;
}

.btn-cta-ghost:hover {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

/* ── Why VAIRAM pillars ── */
.wv-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 2.5rem;
}

.wv-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.75rem 2rem 2.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  position: relative;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.wv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.wv-card:nth-child(1)::before { background: linear-gradient(90deg, var(--color-primary), #3a6bb5); }
.wv-card:nth-child(2)::before { background: linear-gradient(90deg, #1e8da8, var(--color-cyan)); }
.wv-card:nth-child(3)::before { background: linear-gradient(90deg, var(--color-accent), #f97316); }

.wv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(31, 58, 104, 0.13);
  border-color: rgba(31, 58, 104, 0.18);
}

.wv-card:hover::before {
  opacity: 1;
}

.wv-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.24s ease;
}

.wv-card:hover .wv-icon {
  transform: scale(1.08);
}

.wv-icon-blue   { background: rgba(31, 58, 104, 0.09);  color: var(--color-primary); }
.wv-icon-cyan   { background: rgba(76, 195, 224, 0.14); color: #1e8da8; }
.wv-icon-orange { background: rgba(245, 158, 11, 0.13); color: #c07000; }

.wv-card h3 {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.wv-card p {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.72;
  max-width: 30ch;
  margin-bottom: 1.5rem;
  flex: 1;
}

.wv-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  margin-top: auto;
}

/* ── Value statement ── */
.wv-value {
  position: relative;
  text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(31, 58, 104, 0.04) 0%, rgba(76, 195, 224, 0.06) 100%);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.wv-value::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-cyan) 50%, var(--color-accent) 100%);
}

.wv-value-text {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
  max-width: 60ch;
  margin: 0 auto;
}

.wv-stat {
  display: inline-block;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-primary);
  line-height: 1;
  vertical-align: baseline;
  margin: 0 0.15em;
}

/* ── Services strip section ── */
.section-heading-center {
  text-align: center;
  align-items: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-intro-text {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 56ch;
}

.services-visual {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 40%;
  border-radius: var(--radius-lg);
  margin-bottom: 3.5rem;
  filter: brightness(0.88) saturate(1.15);
  box-shadow: var(--shadow-soft);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.strip-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.strip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(31, 58, 104, 0.13);
  border-color: rgba(31, 58, 104, 0.22);
}

.strip-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 1.25rem;
}

.strip-icon-blue   { background: rgba(31, 58, 104, 0.10); color: var(--color-primary); }
.strip-icon-cyan   { background: rgba(76, 195, 224, 0.15); color: #1e8da8; }
.strip-icon-orange { background: rgba(245, 158, 11, 0.15); color: #c07000; }
.strip-icon-purple { background: rgba(124, 58, 237, 0.12); color: #6d28d9; }

.strip-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 0.65rem;
}

.strip-card > p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-muted);
  margin-bottom: 1.4rem;
  flex: 1;
}

.strip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.2rem;
}

.strip-list li {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  padding-left: 1.25rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.strip-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.strip-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(31, 58, 104, 0.09);
  color: var(--color-primary);
}

/* ── Hero thumbnail gallery ── */
.hero-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 2rem;
}

.hero-thumb {
  display: block;
  width: 100%;
  height: 7.5rem;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* ── Product highlight photo (homepage product card) ── */
.product-highlight-photo {
  display: block;
  width: 100%;
  height: 14rem;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
}

/* ── Docify "How It Works" showcase ── */
.docify-how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.docify-how-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.docify-how-photo {
  display: block;
  width: 100%;
  height: 14rem;
  object-fit: cover;
}

.docify-how-body {
  padding: 1.5rem 1.6rem 1.8rem;
}

.docify-step {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.65rem;
}

.docify-how-body h3 {
  font-size: 1.12rem;
  margin-bottom: 0.65rem;
}

.docify-how-body p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* ── Feature card photo (docify feature cards) ── */
.feature-card-photo {
  display: block;
  width: 100%;
  height: 10rem;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

/* ── Site footer ── */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 2rem 0;
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--color-muted);
  font-weight: 600;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-copy a {
  color: var(--color-muted);
  text-decoration: underline;
}

.footer-copy a:hover {
  color: var(--color-primary);
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 0.5rem), var(--container));
  }

  .section {
    padding: 3rem 0;
  }

  .brand img {
    height: 15rem;
    margin-top: -4.7rem;
    margin-bottom: -4.7rem;
    margin-left: -1.25rem;
  }

  .hero {
    min-height: 100svh;
    padding: 5.5rem 0 4rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero .hero-text {
    font-size: 1rem;
  }

  .strip-grid,
  .hiw-flow,
  .dsp-cards {
    grid-template-columns: 1fr;
  }

  .final-cta {
    padding: 5rem 0 6rem;
  }

  .final-cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-cta-primary,
  .btn-cta-ghost {
    width: 100%;
    max-width: 340px;
  }

  .dsp-browser-url {
    display: none;
  }

  .dsp-screenshot {
    height: 200px;
  }

  .dsp-section {
    padding: 4rem 0 4.5rem;
  }

  .hiw-step {
    flex-direction: row;
    text-align: left;
    gap: 1.25rem;
    padding: 1.25rem 1rem;
  }

  .hiw-icon-wrap {
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .hiw-step p {
    max-width: 100%;
  }

  .services-visual {
    height: 220px;
  }

  .section-heading-center {
    text-align: left;
    align-items: flex-start;
  }

  .page-hero-visual {
    justify-content: flex-start;
  }

  .section-side-visual {
    justify-content: flex-start;
  }

  .top-tight {
    margin-top: 0;
  }

  .nav-links {
    gap: 0.9rem 1.1rem;
  }

  .hero-actions,
  .cta-card {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .photo-strip {
    height: 14rem;
    border-radius: var(--radius-md);
  }

  .about-photo {
    height: 14rem;
  }

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

  .top-tight > .about-copy {
    grid-column: 1;
  }

  .hero-panel,
  .feature-card,
  .solution-card,
  .service-card,
  .case-card,
  .contact-form,
  .product-card,
  .cta-card,
  .docify-summary-card {
    border-radius: 18px;
  }
}

/* ════════════════════════════════════════
   ABOUT PAGE  (startup narrative)
   ════════════════════════════════════════ */

/* ── Hero ── */
.abt-hero {
  padding: 5rem 0 5.5rem;
  background:
    linear-gradient(150deg, rgba(6,13,39,0.90) 0%, rgba(12,24,64,0.86) 50%, rgba(8,18,47,0.92) 100%),
    url('images/hero-team.jpg') center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.abt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.abt-hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 50%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(76, 195, 224, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.abt-hero .eyebrow {
  color: var(--color-cyan);
}

.abt-hero-inner {
  position: relative;
  max-width: 760px;
}

.abt-hero h1 {
  margin-top: 1.1rem;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  color: #ffffff;
}

.abt-hero-tagline {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.72;
  max-width: 52ch;
}

.abt-hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2.25rem;
}

.abt-detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.07);
}

/* ── Mission (dark statement) ── */
.abt-mission {
  background:
    linear-gradient(150deg, rgba(4, 10, 30, 0.93) 0%, rgba(6, 18, 58, 0.90) 50%, rgba(4, 10, 30, 0.95) 100%),
    url('images/doc-intake.jpg') center / cover no-repeat;
  padding: 6.5rem 0 7rem;
  position: relative;
  overflow: hidden;
}

.abt-mission::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.abt-mission::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(76,195,224,0.14) 0%, transparent 65%);
  pointer-events: none;
}

.abt-mission-inner {
  position: relative;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.abt-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 2rem;
}

.abt-section-label::before {
  content: '';
  width: 2.5rem;
  height: 2px;
  background: var(--color-accent);
}

.abt-statement {
  font-size: clamp(1.65rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.035em;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.abt-statement-em {
  color: var(--color-cyan);
  font-style: normal;
}

/* ── Vision ── */
.abt-vision {
  background:
    linear-gradient(150deg, rgba(14, 6, 34, 0.93) 0%, rgba(28, 11, 64, 0.90) 50%, rgba(12, 5, 32, 0.95) 100%),
    url('images/about-developer.jpg') center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.abt-vision::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.abt-vision::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(245,158,11,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.abt-vision-inner {
  position: relative;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.abt-section-label-dark {
  color: var(--color-accent);
}

.abt-section-label-dark::before {
  background: var(--color-accent);
}

.abt-vision-statement {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.abt-vision-em {
  color: var(--color-accent);
  position: relative;
}

/* ── Company story ── */
.abt-story-section {
  background: #ffffff;
}

.abt-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 4rem;
  align-items: start;
}

.abt-story-heading .eyebrow {
  margin-bottom: 1rem;
}

.abt-story-heading h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.abt-story-year {
  margin-top: 2.5rem;
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--color-border);
  user-select: none;
}

.abt-story-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.abt-story-copy p {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.8;
}

/* ── Approach pillars ── */
.abt-approach-section {
  background: var(--color-surface);
}

.abt-pillars {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}

.abt-pillar {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.22s ease;
}

.abt-pillar:hover {
  background: rgba(31, 58, 104, 0.025);
  margin: 0 -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.abt-pillar-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 0.2rem;
}

.abt-pillar-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 1;
}

.abt-pillar-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease;
}

.abt-pillar:hover .abt-pillar-icon {
  transform: scale(1.08);
}

.abt-pillar-icon-blue   { background: rgba(31, 58, 104, 0.09);  color: var(--color-primary); }
.abt-pillar-icon-cyan   { background: rgba(76, 195, 224, 0.15); color: #1e8da8; }
.abt-pillar-icon-orange { background: rgba(245, 158, 11, 0.14); color: #c07000; }

.abt-pillar-body {
  padding-top: 0.15rem;
}

.abt-pillar-body h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin: 0 0 0.85rem;
}

.abt-pillar-body p {
  font-size: 0.97rem;
  color: var(--color-muted);
  line-height: 1.78;
  max-width: 60ch;
}

/* ── Founder quote ── */
.abt-founder-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 5.5rem 0 6rem;
}

.abt-founder-inner {
  max-width: 640px;
  margin: 0 auto;
}

/* ── Founder Note card ── */
.fn-note {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2.5rem 2.75rem;
  box-shadow: 0 4px 24px rgba(31,58,104,0.07);
  position: relative;
}
.fn-note::before {
  content: '';
  position: absolute;
  top: 0; left: 2.5rem; right: 2.5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-cyan));
  border-radius: 0 0 3px 3px;
}

.fn-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.fn-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.fn-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.fn-org {
  display: block;
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 0.15rem;
}

.fn-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2rem;
}
.fn-body p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text);
}
.fn-body p strong {
  color: var(--color-primary);
  font-weight: 800;
}

.fn-sig {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}
.fn-sig-text {
  font-size: 0.82rem;
  color: var(--color-muted);
  font-style: italic;
  white-space: nowrap;
}
.fn-sig-line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .abt-story-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .abt-story-year {
    display: none;
  }

  .abt-pillar {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .abt-pillar-left {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .abt-pillar:hover {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .abt-hero h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .abt-mission {
    padding: 4.5rem 0 5rem;
  }

  .abt-blockquote {
    padding: 2.25rem 1.75rem 2.25rem 2.25rem;
  }

  .abt-quote-mark {
    display: none;
  }
}

/* ════════════════════════════════════════
   END ABOUT PAGE
   ════════════════════════════════════════ */

/* ════════════════════════════════════════
   DOCIME PRODUCT PAGE
   ════════════════════════════════════════ */

/* ── Hero ── */
.dfy-hero {
  background:
    linear-gradient(160deg, rgba(5,12,36,0.91) 0%, rgba(11,23,64,0.87) 42%, rgba(13,31,88,0.85) 72%, rgba(8,22,53,0.92) 100%),
    url('images/ui-analytics.jpg') center / cover no-repeat;
  padding: 5.5rem 0 0;
  overflow: hidden;
  position: relative;
}

.dfy-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.dfy-hero::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(76,195,224,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.dfy-hero-content {
  position: relative;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 4.5rem;
}

/* ── Hero watermark icon ── */
.dfy-hero-watermark {
  position: absolute;
  top: 50%;
  right: -260px;
  transform: translateY(-54%) rotate(10deg);
  pointer-events: none;
  z-index: 0;
}
.dfy-hero-watermark img {
  width: 420px;
  height: 420px;
  border-radius: 80px;
  opacity: 0.28;
  filter: blur(0px);
}

/* ── Product badge ── */
.dfy-product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem 0.35rem 0.7rem;
  background: rgba(76, 195, 224, 0.12);
  border: 1px solid rgba(76, 195, 224, 0.28);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 2rem;
}

.dfy-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-cyan);
  flex-shrink: 0;
  animation: dfy-pulse 2.2s ease-in-out infinite;
}

@keyframes dfy-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.8); }
}

@media (prefers-reduced-motion: reduce) {
  .dfy-badge-dot { animation: none; }
}

/* ── Hero text ── */
.dfy-hero h1 {
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.92;
  margin: 0 0 0.65rem;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.72) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dfy-hero-sub {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 700;
  color: rgba(255,255,255,0.82);
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}

.dfy-hero-tagline {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: rgba(255,255,255,0.52);
  line-height: 1.7;
  margin: 0 auto 2.75rem;
  max-width: 46ch;
}

.dfy-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.dfy-btn-primary {
  background: #ffffff;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  min-height: 3.5rem;
  padding: 0 2rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
  transition: background 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
}

.dfy-btn-primary:hover {
  background: rgba(255,255,255,0.91);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.36);
}

.dfy-btn-ghost {
  border: 1.5px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.06);
  font-size: 1rem;
  min-height: 3.5rem;
  padding: 0 2rem;
  backdrop-filter: blur(6px);
  transition: border-color 0.2s, background 0.2s, transform 0.2s ease;
}

.dfy-btn-ghost:hover {
  border-color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

/* ── Browser chrome frame ── */
.dfy-frame-wrap {
  position: relative;
}

.dfy-browser {
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  box-shadow:
    0 -4px 80px rgba(76,195,224,0.08),
    0 0 0 1px rgba(76,195,224,0.12),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.dfy-browser-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: 40px;
  padding: 0 1rem;
}

.dfy-browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.dfy-browser-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dfy-browser-dots span:nth-child(1) { background: #ff5f57; }
.dfy-browser-dots span:nth-child(2) { background: #febc2e; }
.dfy-browser-dots span:nth-child(3) { background: #28c840; }

.dfy-browser-url {
  flex: 1;
  max-width: 320px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  padding: 3px 10px;
  font-family: monospace;
  letter-spacing: 0.02em;
  margin: 0 auto;
}

.dfy-browser-spacer {
  width: 3.5rem;
  flex-shrink: 0;
}

.dfy-screenshot {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center top;
}

/* ── Metrics bar ── */
.dfy-metrics-section {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  padding: 2.5rem 0;
  box-shadow: 0 4px 24px rgba(31, 58, 104, 0.07);
  position: relative;
  z-index: 1;
}

.dfy-metrics-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.dfy-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem 3.5rem;
  gap: 0.25rem;
}

.dfy-metric-value {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--color-primary);
  line-height: 1;
}

.dfy-metric-label {
  font-size: 0.84rem;
  color: var(--color-muted);
  font-weight: 500;
  max-width: 16ch;
  line-height: 1.4;
}

.dfy-metrics-sep {
  width: 1px;
  height: 2.75rem;
  background: var(--color-border);
  flex-shrink: 0;
}

/* ── Key Features ── */
.dfy-features-section {
  background: var(--color-surface);
}

.dfy-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.dfy-feature-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.25s,
              border-color 0.25s;
}

.dfy-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.25s;
}

.dfy-fc-blue::before   { background: linear-gradient(90deg, var(--color-primary), #3a6bb5); }
.dfy-fc-cyan::before   { background: linear-gradient(90deg, #1e8da8, var(--color-cyan)); }
.dfy-fc-orange::before { background: linear-gradient(90deg, #c07000, var(--color-accent)); }

.dfy-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(31, 58, 104, 0.13);
  border-color: rgba(31, 58, 104, 0.18);
}

.dfy-feature-card:hover::before {
  opacity: 1;
}

.dfy-feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  flex-shrink: 0;
  transition: transform 0.25s;
}

.dfy-feature-card:hover .dfy-feature-icon {
  transform: scale(1.08) translateY(-2px);
}

.dfy-ficon-blue   { background: rgba(31, 58, 104, 0.09);  color: var(--color-primary); }
.dfy-ficon-cyan   { background: rgba(76, 195, 224, 0.15); color: #1e8da8; }
.dfy-ficon-orange { background: rgba(245, 158, 11, 0.14); color: #c07000; }

.dfy-feature-card h3 {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin: 0 0 0.75rem;
}

.dfy-feature-card > p {
  font-size: 0.93rem;
  color: var(--color-muted);
  line-height: 1.72;
  flex: 1;
  margin-bottom: 1.5rem;
}

.dfy-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.dfy-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
}

.dfy-feature-list li::before {
  content: '';
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(31, 58, 104, 0.08)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%231f3a68' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    no-repeat center / 0.58rem;
}

/* ════════════════════════════════════════════
   DOCIME PRODUCT PREVIEW  (.dpp-*)
   ════════════════════════════════════════════ */

/* ─ Section wrapper ─ */
.dpp-section {
  background: linear-gradient(160deg, #060d27 0%, #0c1840 55%, #08122f 100%);
  padding: 6rem 0 0;
  position: relative;
  overflow: hidden;
}
.dpp-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Eyebrow + intro on dark bg */
.dpp-eyebrow { color: var(--color-cyan) !important; }
.dpp-eyebrow::before { background: var(--color-cyan) !important; }
.dpp-section .section-heading h2 { color: #fff; }
.dpp-intro { color: rgba(255,255,255,0.58); }

/* ─ Frame outer wrap ─ */
.dpp-frame-wrap {
  margin-top: 3.5rem;
  padding: 0 0 0; /* dashboard bleeds to bottom */
}

/* ─ Dashboard shell ─ */
.dpp-dashboard {
  background: #0d1726;
  border: 1.5px solid rgba(255,255,255,0.08);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(76,195,224,0.06) inset,
    0 -30px 80px rgba(76,195,224,0.06),
    0 30px 80px rgba(0,0,0,0.40);
}

/* ─ Top bar ─ */
.dpp-topbar {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 1.5rem;
  height: 48px;
  background: #091220;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.dpp-topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.dpp-brand-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-cyan), #7c3aed);
  box-shadow: 0 0 6px rgba(76,195,224,0.5);
}
.dpp-brand-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(255,255,255,0.90);
  letter-spacing: -0.01em;
}
.dpp-brand-sep { color: rgba(255,255,255,0.18); font-size: 0.8rem; }
.dpp-brand-org { font-size: 0.75rem; color: rgba(255,255,255,0.38); font-weight: 500; }

.dpp-topbar-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}
.dpp-nav-item {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.40);
  padding: 0 1rem;
  height: 48px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  cursor: default;
  white-space: nowrap;
}
.dpp-nav-active {
  color: rgba(255,255,255,0.88);
  border-bottom-color: var(--color-cyan);
}

.dpp-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
  flex-shrink: 0;
}
.dpp-live-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.20);
  padding: 0.18rem 0.6rem;
  border-radius: 100px;
}
.dpp-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: dpp-live-pulse 2s ease-in-out infinite;
}
@keyframes dpp-live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50%       { opacity: 0.8; box-shadow: 0 0 0 4px rgba(16,185,129,0); }
}
.dpp-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* ─ Dashboard body: sidebar + main ─ */
.dpp-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 480px;
  max-height: 560px;
  overflow: hidden;
}

/* ── Sidebar ── */
.dpp-sidebar {
  background: #091220;
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dpp-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.6rem;
}
.dpp-sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
}
.dpp-count-chip {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(76,195,224,0.12);
  color: var(--color-cyan);
  border: 1px solid rgba(76,195,224,0.20);
  border-radius: 100px;
  padding: 0.08rem 0.45rem;
}

.dpp-search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0.75rem 0.6rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  color: rgba(255,255,255,0.28);
  font-size: 0.72rem;
  cursor: default;
}

.dpp-filter-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0.75rem 0.75rem;
}
.dpp-filter-chip {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.38);
  cursor: default;
  white-space: nowrap;
}
.dpp-fc-active {
  background: rgba(76,195,224,0.12);
  border-color: rgba(76,195,224,0.25);
  color: var(--color-cyan);
}

/* Document list */
.dpp-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}
.dpp-doc-list::-webkit-scrollbar { width: 3px; }
.dpp-doc-list::-webkit-scrollbar-track { background: transparent; }
.dpp-doc-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 3px; }

.dpp-doc-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: default;
  transition: background 0.18s;
}
.dpp-doc-item:hover { background: rgba(255,255,255,0.03); }
.dpp-doc-selected {
  background: rgba(76,195,224,0.07);
  border-left: 2px solid var(--color-cyan);
  padding-left: calc(0.75rem - 2px);
}

.dpp-doc-file-icon {
  width: 26px; height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dpp-fi-invoice { background: rgba(59,130,246,0.14); color: #60a5fa; }
.dpp-fi-po      { background: rgba(124,58,237,0.14); color: #a78bfa; }
.dpp-fi-receipt { background: rgba(245,158,11,0.14); color: #fbbf24; }

.dpp-doc-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  overflow: hidden;
  min-width: 0;
}
.dpp-doc-id {
  font-size: 0.73rem;
  font-weight: 700;
  color: rgba(255,255,255,0.80);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dpp-doc-vendor {
  font-size: 0.66rem;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Status pills */
.dpp-status-pill {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.16rem 0.5rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.dpp-sp-processing { background: rgba(59,130,246,0.14); color: #60a5fa; border: 1px solid rgba(59,130,246,0.22); }
.dpp-sp-completed  { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.20); }
.dpp-sp-review     { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.20); }
.dpp-sp-pending    { background: rgba(156,163,175,0.10); color: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.10); }
.dpp-sp-failed     { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.20); }

.dpp-status-dot-pulse {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #60a5fa;
  animation: dpp-live-pulse 1.8s ease-in-out infinite;
}

/* ── Main content panel ── */
.dpp-main {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  overflow-y: auto;
  background: #0d1726;
}
.dpp-main::-webkit-scrollbar { width: 3px; }
.dpp-main::-webkit-scrollbar-track { background: transparent; }
.dpp-main::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 3px; }

/* Document header row */
.dpp-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.dpp-doc-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.dpp-doc-type-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  background: rgba(59,130,246,0.14);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,0.22);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
}
.dpp-doc-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: rgba(255,255,255,0.90);
  margin: 0 0 0.12rem;
  letter-spacing: -0.01em;
}
.dpp-doc-received {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
}
.dpp-doc-actions { display: flex; gap: 0.5rem; }
.dpp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: none;
  cursor: default;
  white-space: nowrap;
}
.dpp-btn-ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.55);
}
.dpp-btn-approve {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16,185,129,0.25);
}

/* ── Shared card base ── */
.dpp-card {
  background: #131f35;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
}
.dpp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.dpp-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.dpp-verified-badge {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.18);
  padding: 0.14rem 0.5rem;
  border-radius: 100px;
}

/* ── Confidence card ── */
.dpp-confidence-card { padding: 0; }
.dpp-conf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem 0.5rem;
}
.dpp-conf-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.dpp-conf-icon {
  color: var(--color-cyan);
  display: flex;
}
.dpp-conf-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
}
.dpp-conf-value {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--color-cyan);
}
.dpp-conf-track {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  margin: 0 1rem 0.75rem;
  overflow: hidden;
}
.dpp-conf-fill {
  width: 98.4%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-cyan) 100%);
  border-radius: 99px;
  animation: dpp-fill-grow 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}
@keyframes dpp-fill-grow {
  from { width: 0; }
  to   { width: 98.4%; }
}
.dpp-conf-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem 0.75rem;
  flex-wrap: wrap;
}
.dpp-conf-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.64rem;
  font-weight: 600;
  padding: 0.18rem 0.6rem;
  border-radius: 100px;
}
.dpp-chip-ok { background: rgba(16,185,129,0.10); color: #34d399; border: 1px solid rgba(16,185,129,0.16); }

/* ── Data row: fields + line items ── */
.dpp-data-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  flex: 1;
}

/* ── Extracted fields card ── */
.dpp-fields-card {}
.dpp-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.dpp-field {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.65rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dpp-field:nth-child(even) { border-right: none; }
.dpp-field-full { grid-column: 1 / -1; border-right: none; }
.dpp-field-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
}
.dpp-field-value {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
}
.dpp-field-accent {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-cyan);
}

/* ── Line items card ── */
.dpp-lineitems-card {}
.dpp-li-count {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
}
.dpp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}
.dpp-table th {
  text-align: left;
  padding: 0.5rem 1rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.12);
}
.dpp-table td {
  padding: 0.55rem 1rem;
  color: rgba(255,255,255,0.68);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-weight: 500;
}
.dpp-table td:last-child { text-align: right; color: rgba(255,255,255,0.82); font-weight: 700; }
.dpp-table th:last-child { text-align: right; }
.dpp-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.dpp-table tbody tr:last-child td { border-bottom: none; }

/* Routing row */
.dpp-routing-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.10);
}
.dpp-routing-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}
.dpp-routing-dest {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-cyan);
  background: rgba(76,195,224,0.08);
  border: 1px solid rgba(76,195,224,0.18);
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .dpp-body {
    grid-template-columns: 1fr;
    max-height: none;
  }
  .dpp-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    max-height: 220px;
  }
  .dpp-topbar-nav { display: none; }
  .dpp-brand-sep, .dpp-brand-org { display: none; }
}

@media (max-width: 640px) {
  .dpp-data-row { grid-template-columns: 1fr; }
  .dpp-doc-header { flex-direction: column; align-items: flex-start; }
  .dpp-fields-grid { grid-template-columns: 1fr; }
  .dpp-field:nth-child(even) { border-right: none; }
  .dpp-field-full { grid-column: 1; }
  .dpp-frame-wrap { padding: 0; }
  .dpp-dashboard { border-radius: 12px 12px 0 0; }
}

/* ── "Sample Interface" label ── */
.dpp-sample-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(76,195,224,0.75);
  background: rgba(76,195,224,0.08);
  border: 1px solid rgba(76,195,224,0.20);
  border-radius: 100px;
  padding: 0.32rem 0.9rem;
  margin: 0 auto 1.25rem;
  width: fit-content;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.dpp-sample-label svg { flex-shrink: 0; }

/* ── Bottom annotation bar ── */
.dpp-annotation-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 1.75rem;
  background: rgba(6,13,39,0.85);
  border: 1.5px solid rgba(255,255,255,0.07);
  border-top: none;
  border-radius: 0 0 16px 16px;
  flex-wrap: wrap;
}
.dpp-anno-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.28);
  font-style: italic;
}
.dpp-anno-left svg { flex-shrink: 0; color: rgba(255,255,255,0.22); }

.dpp-anno-legend {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.dpp-legend-item {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.67rem;
  font-weight: 600;
  color: rgba(255,255,255,0.38);
  white-space: nowrap;
}
.dpp-legend-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dpp-ld-processing { background: #60a5fa; box-shadow: 0 0 5px rgba(96,165,250,0.5); }
.dpp-ld-completed  { background: #34d399; box-shadow: 0 0 5px rgba(52,211,153,0.5); }
.dpp-ld-review     { background: #fbbf24; box-shadow: 0 0 5px rgba(251,191,36,0.5); }
.dpp-ld-pending    { background: rgba(255,255,255,0.30); }
.dpp-ld-failed     { background: #f87171; box-shadow: 0 0 5px rgba(248,113,113,0.5); }

@media (max-width: 640px) {
  .dpp-annotation-bar { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 0.85rem 1rem; }
  .dpp-anno-legend { gap: 0.75rem; }
}

/* ════════════════════════════════════════════
   DOCIME PROCESSING FLOW  (.dfyw-*)
   ════════════════════════════════════════════ */
.dfyw-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 7rem;
  background: linear-gradient(150deg, #060d27 0%, #0c1840 50%, #08122f 100%);
}

/* Dot-grid texture */
.dfyw-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

/* Ambient cyan radial glow */
.dfyw-bg-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(76,195,224,0.13) 0%, transparent 70%);
  pointer-events: none;
}

/* Eyebrow & title */
.dfyw-eyebrow { color: var(--color-cyan) !important; }
.dfyw-eyebrow::before { background: var(--color-cyan) !important; }
.dfyw-title { color: #ffffff; }
.dfyw-intro { color: rgba(255,255,255,0.60); }

/* Rail: thin animated progress line */
.dfyw-rail {
  position: relative;
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 999px;
  margin: 2.5rem 0 -1.5rem;
  overflow: hidden;
}
.dfyw-rail-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-cyan) 45%, var(--color-accent) 100%);
  border-radius: 999px;
  transform-origin: left;
  animation: dfyw-rail-grow 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
@keyframes dfyw-rail-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Pipeline grid: steps + connectors */
.dfyw-pipeline {
  display: grid;
  grid-template-columns: 1fr 56px 1fr 56px 1fr 56px 1fr 56px 1fr 56px 1fr;
  align-items: center;
  gap: 0;
  margin-top: 3.5rem;
  position: relative;
}

/* ─ Step card ─ */
.dfyw-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.25rem 1.1rem 2rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
  border: 1.5px solid rgba(255,255,255,0.09);
  box-shadow: 0 4px 20px rgba(0,0,0,0.18), 0 1px 4px rgba(0,0,0,0.10);
  transition:
    background 0.28s ease,
    box-shadow 0.32s cubic-bezier(0.34,1.56,0.64,1),
    transform  0.32s cubic-bezier(0.34,1.56,0.64,1),
    border-color 0.22s ease;
  cursor: default;
  overflow: hidden;
}

/* Top colour bar */
.dfyw-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 18px 18px 0 0;
  transition: height 0.22s ease;
}

.dfyw-step:hover {
  background: rgba(255,255,255,0.075);
  transform: translateY(-7px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.28), 0 4px 12px rgba(0,0,0,0.14);
}
.dfyw-step:hover::before { height: 4px; }

/* Step accent colours */
.dfyw-s1::before { background: linear-gradient(90deg, var(--color-primary), #3b82f6); }
.dfyw-s2::before, .dfyw-s3::before { background: linear-gradient(90deg, var(--color-cyan), #7c3aed); }
.dfyw-s4::before { background: linear-gradient(90deg, #10b981, #34d399); }
.dfyw-s5::before { background: linear-gradient(90deg, var(--color-accent), #f97316); }
.dfyw-s6::before { background: linear-gradient(90deg, #7c3aed, #a78bfa); }

/* ─ AI step: highlighted ─ */
.dfyw-ai-step {
  background: rgba(76,195,224,0.09);
  border-color: rgba(76,195,224,0.32);
  box-shadow: 0 4px 24px rgba(76,195,224,0.14), 0 1px 4px rgba(0,0,0,0.12), inset 0 0 0 1px rgba(76,195,224,0.14);
  padding-top: 2.6rem;
}
.dfyw-ai-step:hover {
  background: rgba(76,195,224,0.13);
  box-shadow: 0 18px 48px rgba(76,195,224,0.22), 0 4px 12px rgba(76,195,224,0.12), inset 0 0 0 1px rgba(76,195,224,0.22);
}

/* AI badge pill */
.dfyw-ai-badge {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--color-cyan), #7c3aed);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.22rem 0.72rem;
  border-radius: 0 0 10px 10px;
  white-space: nowrap;
  z-index: 2;
}

/* Glow ring pulse on AI steps */
.dfyw-glow-ring {
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  border: 1.5px solid rgba(76,195,224,0.32);
  animation: dfyw-pulse 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes dfyw-pulse {
  0%, 100% { opacity: 0.55; box-shadow: 0 0 0 0 rgba(76,195,224,0.08); }
  50%       { opacity: 1;   box-shadow: 0 0 22px 4px rgba(76,195,224,0.22); }
}

/* ─ Icon wrap ─ */
.dfyw-step-icon-wrap {
  width: 4rem;
  height: 4rem;
  border-radius: 15px;
  background: rgba(31,58,104,0.50);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  flex-shrink: 0;
  transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.28s ease;
}
.dfyw-step:hover .dfyw-step-icon-wrap {
  transform: scale(1.12) translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.24);
}

.dfyw-icon-ai {
  background: rgba(76,195,224,0.16);
  border-color: rgba(76,195,224,0.28);
}

.dfyw-step-icon {
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dfyw-ai-step .dfyw-step-icon { color: var(--color-cyan); }

/* ─ Text ─ */
.dfyw-step-num {
  display: block;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  background: rgba(255,255,255,0.06);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-bottom: 0.45rem;
}
.dfyw-num-ai { color: var(--color-cyan); background: rgba(76,195,224,0.12); }

.dfyw-step-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: rgba(255,255,255,0.94);
  margin: 0 0 0.45rem;
}
.dfyw-title-ai { color: var(--color-cyan); }

.dfyw-step-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.48);
  line-height: 1.6;
  max-width: 16ch;
  margin: 0;
}
.dfyw-ai-step .dfyw-step-desc { color: rgba(76,195,224,0.72); }

/* ─ Connector ─ */
.dfyw-conn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  z-index: 1;
}

.dfyw-conn-track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.dfyw-conn-dot {
  position: absolute;
  top: 0; bottom: 0;
  width: 60%;
  background: linear-gradient(90deg, transparent 0%, var(--color-primary) 30%, var(--color-cyan) 70%, transparent 100%);
  animation: dfyw-dot-flow 2.4s ease-in-out infinite;
  animation-delay: var(--dfyw-delay, 0s);
}

@keyframes dfyw-dot-flow {
  0%   { left: -100%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.dfyw-conn-ai .dfyw-conn-dot {
  background: linear-gradient(90deg, transparent 0%, var(--color-cyan) 35%, #a78bfa 65%, transparent 100%);
}

/* Arrow chevron in a circle */
.dfyw-conn-arrow {
  flex-shrink: 0;
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(76,195,224,0.60);
  box-shadow: 0 2px 6px rgba(0,0,0,0.14);
  overflow: visible;
}

/* ════════════════════════════════════════════
   DOCIME ARCHITECTURE DIAGRAM  (.arch-*)
   ════════════════════════════════════════════ */
.arch-section {
  background: #f0f5fc;
  border-top: 1px solid var(--color-border);
}

/* Diagram wrapper */
.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-top: 3.5rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* ─ Layer card ─ */
.arch-layer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 1.75rem;
  border-radius: 16px;
  border: 1.5px solid transparent;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(31,58,104,0.06), 0 1px 2px rgba(31,58,104,0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.arch-layer:hover {
  box-shadow: 0 8px 30px rgba(31,58,104,0.12), 0 2px 6px rgba(31,58,104,0.06);
  transform: translateY(-2px);
}

/* Left border accent */
.arch-layer::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
}

/* Layer colour tokens */
.arch-l-user   { background: rgba(59,130,246,0.06);  border-color: rgba(59,130,246,0.16); }
.arch-l-user::before   { background: #3b82f6; }

.arch-l-app    { background: rgba(31,58,104,0.07);   border-color: rgba(31,58,104,0.16); }
.arch-l-app::before    { background: var(--color-primary); }

.arch-l-ai     { background: rgba(76,195,224,0.08);  border-color: rgba(76,195,224,0.30); }
.arch-l-ai::before     { background: var(--color-cyan); }

.arch-l-data   { background: rgba(124,58,237,0.06);  border-color: rgba(124,58,237,0.18); }
.arch-l-data::before   { background: #7c3aed; }

.arch-l-infra  { background: linear-gradient(135deg, #060d27 0%, #0c1840 100%); border-color: rgba(255,255,255,0.08); }
.arch-l-infra::before  { background: var(--color-accent); }

/* AI layer highlight */
.arch-layer-highlight {
  box-shadow: 0 2px 14px rgba(76,195,224,0.14), 0 1px 4px rgba(76,195,224,0.08), inset 0 0 0 1px rgba(76,195,224,0.18);
}
.arch-layer-highlight:hover {
  box-shadow: 0 10px 36px rgba(76,195,224,0.20), 0 3px 8px rgba(76,195,224,0.10), inset 0 0 0 1px rgba(76,195,224,0.28);
  transform: translateY(-3px);
}

.arch-ai-glow {
  position: absolute;
  top: 50%; right: -60px;
  transform: translateY(-50%);
  width: 220px; height: 220px;
  background: radial-gradient(ellipse, rgba(76,195,224,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* ─ Layer meta (number + name) ─ */
.arch-layer-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
  min-width: 190px;
}

.arch-layer-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: rgba(31,58,104,0.08);
  border: 1px solid rgba(31,58,104,0.12);
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
  flex-shrink: 0;
}
.arch-num-ai   { color: var(--color-cyan); background: rgba(76,195,224,0.12); border-color: rgba(76,195,224,0.25); }
.arch-num-infra { color: var(--color-accent); background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.22); }

.arch-layer-label-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.arch-layer-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.arch-name-ai   { color: #0e7490; }
.arch-name-infra { color: rgba(255,255,255,0.90); }

.arch-layer-sub {
  font-size: 0.75rem;
  color: var(--color-muted);
  line-height: 1.3;
}
.arch-sub-ai   { color: rgba(76,195,224,0.75); }
.arch-sub-infra { color: rgba(255,255,255,0.45); }

.arch-ai-pill {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: linear-gradient(90deg, var(--color-cyan), #7c3aed);
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  margin-left: 0.25rem;
}

/* ─ Divider between meta and nodes ─ */
.arch-layer-meta + .arch-nodes {
  border-left: 1px solid rgba(31,58,104,0.10);
  padding-left: 2rem;
}
.arch-l-ai .arch-layer-meta + .arch-nodes  { border-color: rgba(76,195,224,0.18); }
.arch-l-infra .arch-layer-meta + .arch-nodes { border-color: rgba(255,255,255,0.08); }

/* ─ Nodes row ─ */
.arch-nodes {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  flex: 1;
}

/* ─ Node chip ─ */
.arch-node {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255,255,255,0.80);
  border: 1.5px solid rgba(31,58,104,0.10);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  box-shadow: 0 2px 8px rgba(31,58,104,0.07), 0 1px 2px rgba(31,58,104,0.04);
  transition: background 0.22s ease, transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s ease;
}
.arch-node:hover {
  background: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 18px rgba(31,58,104,0.12), 0 2px 4px rgba(31,58,104,0.06);
}

.arch-l-ai .arch-node      { background: rgba(76,195,224,0.10); border-color: rgba(76,195,224,0.22); }
.arch-l-ai .arch-node:hover { background: rgba(76,195,224,0.18); }

.arch-l-infra .arch-node      { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.10); }
.arch-l-infra .arch-node:hover { background: rgba(255,255,255,0.11); }

/* ─ Node icon ─ */
.arch-node-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.arch-ni-user  { background: rgba(59,130,246,0.12);  color: #3b82f6; }
.arch-ni-app   { background: rgba(31,58,104,0.12);   color: var(--color-primary); }
.arch-ni-ai    { background: rgba(76,195,224,0.18);  color: #0e7490; }
.arch-ni-data  { background: rgba(124,58,237,0.12);  color: #7c3aed; }
.arch-ni-infra { background: rgba(245,158,11,0.15);  color: var(--color-accent); }

/* ─ Node label ─ */
.arch-node-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}
.arch-l-ai .arch-node-label   { color: #0c6a80; }
.arch-l-infra .arch-node-label { color: rgba(255,255,255,0.80); }

/* ─ Connector between layers ─ */
.arch-conn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 0.2rem 0;
  position: relative;
}

.arch-conn-line {
  width: 2px;
  height: 10px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(31,58,104,0.16) 0px,
    rgba(76,195,224,0.36) 3px,
    transparent 3px,
    transparent 7px
  );
  border-radius: 2px;
}

.arch-conn-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 100%);
  border: 1.5px solid rgba(31,58,104,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(76,195,224,0.72);
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(31,58,104,0.10), 0 1px 2px rgba(31,58,104,0.06);
}

.arch-conn-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  position: absolute;
  left: calc(50% + 22px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  opacity: 0.60;
}

/* ── Responsive ── */
@media (max-width: 760px) {
  .arch-layer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .arch-layer-meta { min-width: unset; }
  .arch-layer-meta + .arch-nodes {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(31,58,104,0.10);
    padding-top: 1rem;
    width: 100%;
  }
  .arch-l-infra .arch-layer-meta + .arch-nodes { border-color: rgba(255,255,255,0.08); }
  .arch-conn-label { display: none; }
}

@media (max-width: 480px) {
  .arch-nodes { gap: 0.6rem; }
  .arch-node { padding: 0.45rem 0.7rem; gap: 0.5rem; }
  .arch-node-icon { width: 1.75rem; height: 1.75rem; }
  .arch-node-label { font-size: 0.76rem; }
  .arch-layer { padding: 1.1rem 1.25rem; }
}

/* ════════════════════════════════════════════
   BEFORE VS AFTER  (.bva-*)
   ════════════════════════════════════════════ */
.bva-section {
  background: #ffffff;
  padding: 5.5rem 0 6rem;
  border-top: 1px solid var(--color-border);
}

/* Two-column grid with VS divider */
.bva-grid {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 0;
  margin-top: 3.5rem;
  align-items: start;
}

/* ─ Panel ─ */
.bva-panel {
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid transparent;
  box-shadow: 0 4px 24px rgba(31,58,104,0.07), 0 1px 4px rgba(31,58,104,0.04);
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}
.bva-panel:hover {
  box-shadow: 0 10px 36px rgba(31,58,104,0.12), 0 2px 8px rgba(31,58,104,0.06);
  transform: translateY(-3px);
}

.bva-panel-before {
  background: #fdfafa;
  border-color: rgba(239,68,68,0.18);
}

.bva-panel-after {
  background: #f7fbff;
  border-color: rgba(31,58,104,0.16);
}

/* ─ Panel header ─ */
.bva-panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.5rem;
}

.bva-header-before {
  background: rgba(239,68,68,0.07);
  border-bottom: 1px solid rgba(239,68,68,0.12);
}

.bva-header-after {
  background: rgba(31,58,104,0.06);
  border-bottom: 1px solid rgba(31,58,104,0.10);
}

.bva-header-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bva-hicon-before { background: rgba(239,68,68,0.12); color: #dc2626; }
.bva-hicon-after  { background: rgba(16,185,129,0.13); color: #059669; }

.bva-header-label {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-text);
  flex: 1;
}

.bva-header-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-muted);
  letter-spacing: 0.03em;
}

/* ─ Item list ─ */
.bva-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0.5rem;
}

/* ─ Item row ─ */
.bva-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid transparent;
  transition: background 0.22s ease, transform 0.22s ease;
}

.bva-item:last-child { border-bottom: none; }

.bva-item-before { border-color: rgba(239,68,68,0.07); }
.bva-item-after  { border-color: rgba(31,58,104,0.06); }

.bva-item-before:hover { background: rgba(239,68,68,0.05); transform: translateX(3px); }
.bva-item-after:hover  { background: rgba(31,58,104,0.05); transform: translateX(3px); }

/* ─ Item icon ─ */
.bva-item-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.bva-iicon-before { background: rgba(239,68,68,0.09); color: #dc2626; }
.bva-iicon-after  { background: rgba(31,58,104,0.09); color: var(--color-primary); }

/* ─ Item text ─ */
.bva-item-body { flex: 1; }

.bva-item-body h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.3rem;
  letter-spacing: -0.01em;
}

.bva-item-before .bva-item-body h4 { color: #b91c1c; }
.bva-item-after  .bva-item-body h4 { color: var(--color-primary); }

.bva-item-body p {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

/* ─ VS divider ─ */
.bva-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 260px;
  position: relative;
  padding: 1rem 0;
  gap: 0;
}

.bva-vs-line {
  flex: 1;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(31,58,104,0.15) 0px,
    rgba(31,58,104,0.15) 4px,
    transparent 4px,
    transparent 9px
  );
}

.bva-vs-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-cyan) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(31,58,104,0.25);
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .bva-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .bva-vs {
    flex-direction: row;
    min-height: unset;
    padding: 0.75rem 0;
    height: auto;
  }
  .bva-vs-line {
    flex: 1;
    width: auto;
    height: 1px;
    background: repeating-linear-gradient(
      to right,
      rgba(31,58,104,0.15) 0px,
      rgba(31,58,104,0.15) 4px,
      transparent 4px,
      transparent 9px
    );
  }
  .bva-panel-before { border-radius: 18px 18px 0 0; border-bottom: none; }
  .bva-panel-after  { border-radius: 0 0 18px 18px; border-top: none; }
}

@media (max-width: 480px) {
  .bva-item { padding: 1rem 1.1rem; gap: 0.75rem; }
  .bva-panel-header { padding: 0.9rem 1.1rem; }
  .bva-item-icon { width: 1.9rem; height: 1.9rem; }
}

/* ── Benefits ── */
.dfy-benefits-section {
  background: linear-gradient(150deg, #060d27 0%, #0c1840 50%, #08122f 100%);
  padding: 5.5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.dfy-benefits-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.dfy-benefits-section .section-heading {
  position: relative;
}

.dfy-benefits-eyebrow {
  color: var(--color-accent) !important;
}

.dfy-benefits-eyebrow::before {
  background: var(--color-accent) !important;
}

.dfy-benefits-h2 {
  color: #ffffff;
}

.dfy-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
}

.dfy-benefit-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem 2.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: background 0.25s, border-color 0.25s, transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s;
}

.dfy-benefit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.25s;
}

.dfy-benefit-card:nth-child(1)::before { background: linear-gradient(90deg, var(--color-primary), #3a6bb5); }
.dfy-benefit-card:nth-child(2)::before { background: linear-gradient(90deg, #1e8da8, var(--color-cyan)); }
.dfy-benefit-card:nth-child(3)::before { background: linear-gradient(90deg, #c07000, var(--color-accent)); }

.dfy-benefit-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(76, 195, 224, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.dfy-benefit-card:hover::before {
  opacity: 1;
}

.dfy-benefit-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.dfy-bicon-blue  { background: rgba(76, 130, 210, 0.22); color: #7cb9f0; }
.dfy-bicon-cyan  { background: rgba(76, 195, 224, 0.18); color: var(--color-cyan); }
.dfy-bicon-amber { background: rgba(245, 158, 11, 0.18); color: var(--color-accent); }

.dfy-benefit-stat {
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: 0.6rem;
  background: linear-gradient(135deg, #ffffff 20%, rgba(255,255,255,0.62) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dfy-benefit-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.dfy-benefit-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.7;
  max-width: 28ch;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  /* Collapse pipeline to 3-per-row */
  .dfyw-pipeline {
    grid-template-columns: 1fr 44px 1fr 44px 1fr;
    row-gap: 1rem;
  }
  /* Hide connectors for steps 4-6 at end of first row */
  .dfyw-pipeline > .dfyw-conn:nth-child(8),
  .dfyw-pipeline > .dfyw-conn:nth-child(10) {
    display: none;
  }
  /* Step 4-6 wrap to second row spanning full width */
  .dfyw-pipeline > .dfyw-step:nth-child(7),
  .dfyw-pipeline > .dfyw-conn:nth-child(8),
  .dfyw-pipeline > .dfyw-step:nth-child(9),
  .dfyw-pipeline > .dfyw-conn:nth-child(10),
  .dfyw-pipeline > .dfyw-step:nth-child(11) {
    /* will be re-arranged by grid auto */
  }
}

@media (max-width: 900px) {
  .dfy-features-grid,
  .dfy-benefits-grid {
    grid-template-columns: 1fr;
  }
  .dfyw-pipeline {
    grid-template-columns: 1fr 40px 1fr;
    row-gap: 1rem;
  }
  /* Hide every 4th and 6th connector (between row groups) */
  .dfyw-pipeline > .dfyw-conn:nth-child(6),
  .dfyw-pipeline > .dfyw-conn:nth-child(10) {
    display: none;
  }
  .dfy-screenshot { height: 320px; }
  .dfy-metrics-sep { display: none; }
  .dfy-metrics-row { gap: 1.5rem; flex-wrap: wrap; }
  .dfy-metric { padding: 0.5rem 2rem; min-width: 44%; }
}

@media (max-width: 640px) {
  .dfy-hero-content { text-align: left; }
  .dfy-product-badge { margin-bottom: 1.5rem; }
  .dfy-hero-tagline { margin-left: 0; margin-right: 0; max-width: 100%; }
  .dfy-hero-actions { justify-content: flex-start; }
  .dfy-btn-primary, .dfy-btn-ghost { width: 100%; max-width: 340px; }
  .dfy-screenshot { height: 210px; }
  .dfy-hero-watermark { display: none; }
  .dfy-browser-url { display: none; }
  .dfy-browser-spacer { display: none; }
  .dfy-metric {
    flex-direction: row;
    align-items: center;
    text-align: left;
    min-width: auto;
    gap: 1rem;
    padding: 0.5rem 0;
  }
  .dfy-metrics-row { flex-direction: column; align-items: flex-start; gap: 1rem; }

  /* Full-width single column flow */
  .dfyw-pipeline {
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .dfyw-conn {
    flex-direction: row;
    height: 36px;
    padding: 0 1rem;
  }
  .dfyw-conn-track {
    flex: 1;
    height: 3px;
    width: auto;
  }
  .dfyw-conn-dot {
    animation-name: dfyw-dot-flow;
  }
  .dfyw-rail { display: none; }
  .dfyw-step { padding: 1.5rem 1.25rem; }
  .dfyw-step-desc { max-width: 100%; }
}

/* ════════════════════════════════════════
   END DOCIME PRODUCT PAGE
   ════════════════════════════════════════ */

/* ════════════════════════════════════════
   SOLUTIONS PAGE  (use-case driven)
   ════════════════════════════════════════ */

/* ── Hero ── */
.uc-hero {
  padding: 4.5rem 0 5rem;
  background:
    linear-gradient(150deg, rgba(6,13,39,0.90) 0%, rgba(12,24,64,0.86) 50%, rgba(8,18,47,0.92) 100%),
    url('images/solutions-team.jpg') center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.uc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.uc-hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 45%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(76,195,224,0.10) 0%, transparent 65%);
  pointer-events: none;
}

.uc-hero-inner {
  position: relative;
  max-width: 760px;
}

.uc-hero .eyebrow {
  color: var(--color-accent) !important;
}

.uc-hero .eyebrow::before {
  background: var(--color-accent) !important;
}

.uc-hero h1 {
  margin-top: 1.1rem;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: #ffffff;
}

.uc-hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  max-width: 52ch;
}

.uc-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.25rem;
}

.uc-hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
}

/* ── Section ── */
.uc-section {
  background: var(--color-surface);
}

/* ── Grid ── */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

/* ── Card ── */
.uc-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem 2.25rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
}

.uc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.uc-card-blue::before   { background: linear-gradient(90deg, var(--color-primary), #3a6bb5); }
.uc-card-cyan::before   { background: linear-gradient(90deg, #1e8da8, var(--color-cyan)); }
.uc-card-purple::before { background: linear-gradient(90deg, #6d28d9, #a855f7); }
.uc-card-orange::before { background: linear-gradient(90deg, #c07000, var(--color-accent)); }
.uc-card-teal::before   { background: linear-gradient(90deg, #0f7466, #14b8a6); }

.uc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(31, 58, 104, 0.12);
  border-color: rgba(31, 58, 104, 0.18);
}

.uc-card:hover::before {
  opacity: 1;
}

/* ── Card header ── */
.uc-card-head {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}

.uc-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.uc-card:hover .uc-icon {
  transform: scale(1.08) translateY(-2px);
}

.uc-icon-blue   { background: rgba(31, 58, 104, 0.09);  color: var(--color-primary); }
.uc-icon-cyan   { background: rgba(76, 195, 224, 0.15); color: #1e8da8; }
.uc-icon-purple { background: rgba(124, 58, 237, 0.12); color: #6d28d9; }
.uc-icon-orange { background: rgba(245, 158, 11, 0.14); color: #c07000; }
.uc-icon-teal   { background: rgba(20, 184, 166, 0.13); color: #0f7466; }

.uc-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.2rem;
}

.uc-num {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 1;
}

.uc-cat {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

.uc-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin: 0 0 0 0;
  line-height: 1.15;
}

/* ── Before / After transform block ── */
.uc-flow {
  margin: 1.4rem 0 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  flex: 1;
}

.uc-flow-before {
  padding: 1rem 1.1rem;
  background: rgba(245, 158, 11, 0.05);
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.65;
  border-left: 3px solid rgba(245, 158, 11, 0.45);
}

.uc-flow-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
}

.uc-flow-after {
  padding: 1rem 1.1rem;
  background: rgba(31, 58, 104, 0.04);
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.65;
  border-left: 3px solid rgba(76, 195, 224, 0.55);
}

.uc-flow-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.uc-flow-before .uc-flow-label { color: #a16500; }
.uc-flow-after  .uc-flow-label { color: #1e8da8; }

/* ── Outcomes list ── */
.uc-outcomes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.uc-outcomes li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
}

.uc-outcomes li::before {
  content: '';
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(31, 58, 104, 0.08)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%231f3a68' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    no-repeat center / 0.58rem;
}

/* ── Wide card (5th) ── */
.uc-card-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 3rem;
  align-items: stretch;
}

.uc-wide-left {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
}

.uc-wide-right {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.uc-wide-right .uc-flow {
  margin: 0;
  flex: none;
}

.uc-wide-desc {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.72;
  margin: 0 0 1.5rem;
}

.uc-outcomes-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.25rem;
  margin-top: auto;
}

/* ── Responsive ── */
@media (max-width: 1000px) {
  .uc-card-wide {
    flex-direction: column;
    gap: 0;
  }

  .uc-wide-right {
    margin-top: 1.5rem;
  }

  .uc-wide-right .uc-flow {
    margin: 0;
  }

  .uc-outcomes-inline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .uc-grid {
    grid-template-columns: 1fr;
  }

  .uc-card-wide {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .uc-hero {
    padding: 3.5rem 0 4rem;
  }

  .uc-hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .uc-hero-tags {
    display: none;
  }

  .uc-outcomes-inline {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════
   END SOLUTIONS PAGE
   ════════════════════════════════════════ */

/* ════════════════════════════════════════
   SERVICES PAGE
   ════════════════════════════════════════ */

/* ── Hero ── */
.svc-hero {
  padding: 4.5rem 0 5rem;
  background:
    linear-gradient(150deg, rgba(6,13,39,0.90) 0%, rgba(12,24,64,0.86) 50%, rgba(8,18,47,0.92) 100%),
    url('images/services-dashboard.jpg') center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.svc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.svc-hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 50%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(76, 195, 224, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.svc-hero .eyebrow {
  color: var(--color-cyan);
}

.svc-hero-inner {
  position: relative;
  max-width: 720px;
}

.svc-hero h1 {
  margin-top: 1.1rem;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: #ffffff;
}

.svc-hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  max-width: 52ch;
}

.svc-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.25rem;
}

.svc-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.07);
}

.svc-chip-accent {
  background: rgba(76, 195, 224, 0.12);
  border-color: rgba(76, 195, 224, 0.25);
  color: var(--color-cyan);
}

/* ── Service grid ── */
.svc-section {
  background: var(--color-surface);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

/* ── Service card ── */
.svc-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
}

.svc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.svc-card-blue::before  { background: linear-gradient(90deg, var(--color-primary), #3a6bb5); }
.svc-card-cyan::before  { background: linear-gradient(90deg, #1e8da8, var(--color-cyan)); }
.svc-card-orange::before { background: linear-gradient(90deg, #c07000, var(--color-accent)); }
.svc-card-purple::before { background: linear-gradient(90deg, #6d28d9, #a855f7); }

.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(31, 58, 104, 0.13);
  border-color: rgba(31, 58, 104, 0.18);
}

.svc-card:hover::before {
  opacity: 1;
}

/* ── Card header ── */
.svc-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.svc-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.svc-card:hover .svc-icon {
  transform: scale(1.08) translateY(-2px);
}

.svc-icon-blue   { background: rgba(31, 58, 104, 0.09);  color: var(--color-primary); }
.svc-icon-cyan   { background: rgba(76, 195, 224, 0.15); color: #1e8da8; }
.svc-icon-orange { background: rgba(245, 158, 11, 0.14); color: #c07000; }
.svc-icon-purple { background: rgba(124, 58, 237, 0.12); color: #6d28d9; }

.svc-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.15rem;
}

.svc-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 1;
}

.svc-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin: 0;
  line-height: 1.15;
}

.svc-card > p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.72;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* ── Feature list ── */
.svc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.4rem;
}

.svc-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--color-text);
}

.svc-check {
  flex-shrink: 0;
  color: var(--color-primary);
  opacity: 0.65;
}

/* Badge link inside list item */
.svc-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(31, 58, 104, 0.09);
  color: var(--color-primary);
  text-decoration: none;
  margin-left: 0.25rem;
  transition: background 0.2s;
}

.svc-badge:hover {
  background: rgba(31, 58, 104, 0.16);
}

/* Inline note at card bottom */
.svc-card-note {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.55;
}

/* ── Process strip ── */
.svc-process-section {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: #fcfdff;
}

.svc-process-grid {
  display: grid;
  grid-template-columns: 1fr 2rem 1fr 2rem 1fr 2rem 1fr;
  align-items: start;
  gap: 0;
}

.svc-process-step {
  padding: 0.5rem 1.5rem 0.5rem 0;
}

.svc-process-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.svc-process-step h4 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}

.svc-process-step p {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.65;
}

.svc-process-divider {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.6rem;
  color: rgba(31, 58, 104, 0.22);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .svc-grid {
    grid-template-columns: 1fr;
  }

  .svc-process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .svc-process-divider {
    display: none;
  }
}

@media (max-width: 640px) {
  .svc-hero {
    padding: 3.5rem 0 4rem;
  }

  .svc-hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .svc-hero-chips {
    display: none;
  }

  .svc-process-grid {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════
   END SERVICES PAGE
   ════════════════════════════════════════ */

/* ── Scroll reveal animations ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal="left"] {
  transform: translateX(-28px);
}

[data-reveal="right"] {
  transform: translateX(28px);
}

[data-reveal="scale"] {
  transform: scale(0.94) translateY(12px);
}

[data-reveal="fade"] {
  transform: none;
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ── Nav scrolled state ── */
.nav-scrolled {
  box-shadow: 0 2px 24px rgba(31, 58, 104, 0.12);
  border-bottom-color: rgba(217, 229, 242, 1);
  background: rgba(255, 255, 255, 0.98);
}

.nav-scrolled .nav {
  min-height: 4.8rem;
}

.nav-scrolled .brand {
  height: 4.6rem;
}


/* ── Hamburger / mobile navigation ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0.45rem;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  /* Disable scroll-shrink on mobile — nav is already compact */
  .nav-scrolled .nav  { min-height: 5rem; }
  .nav-scrolled .brand { height: auto; }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 3;
    gap: 0;
    padding: 0.25rem 0 0.75rem;
    border-top: 1px solid var(--color-border);
    margin-top: 0.25rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid rgba(217, 229, 242, 0.6);
    font-size: 1rem;
    width: 100%;
    color: var(--color-text);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav {
    flex-wrap: wrap;
    min-height: 5rem;
  }
}

@media (max-width: 640px) {
  /* Keep nav row so logo | button | hamburger stay on one line */
  .nav {
    flex-direction: row;
    align-items: center;
    min-height: 4.5rem;
  }

}

/* ══════════════════════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════════════════════ */

/* ── Hero ── */
.ctc-hero {
  background:
    linear-gradient(150deg, rgba(6,13,39,0.90) 0%, rgba(12,24,64,0.86) 50%, rgba(8,18,47,0.92) 100%),
    url('images/hero-team.jpg') center / cover no-repeat;
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.ctc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 60% -10%, rgba(76, 195, 224, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 110%, rgba(31, 58, 104, 0.6) 0%, transparent 60%);
  pointer-events: none;
}

.ctc-hero-inner {
  position: relative;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.ctc-eyebrow {
  color: var(--color-cyan);
}

.ctc-hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.75rem;
  line-height: 1.1;
}

.ctc-hero-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.ctc-hero-tagline {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  margin: 0 0 2rem;
}

.ctc-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.ctc-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

/* ── Main 2-col layout ── */
.ctc-section {
  background: var(--color-surface);
}

.ctc-layout {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 5rem;
  align-items: start;
}

/* ── Left column ── */
.ctc-left {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* What happens next */
.ctc-next-heading {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0.5rem 0 2rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.ctc-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ctc-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.ctc-step:last-child {
  border-bottom: none;
}

.ctc-step-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.ctc-step-icon-blue  { background: rgba(31, 58, 104, 0.10); color: var(--color-primary); }
.ctc-step-icon-cyan  { background: rgba(76, 195, 224, 0.12); color: #2aa8c8; }
.ctc-step-icon-orange { background: rgba(245, 158, 11, 0.12); color: #c47d00; }

.ctc-step-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ctc-step-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.ctc-step-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0.15rem 0 0.35rem;
}

.ctc-step-body p {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin: 0;
}

/* Contact details */
.ctc-details-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.ctc-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.ctc-detail-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.ctc-detail-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: rgba(31, 58, 104, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-top: 0.1rem;
}

.ctc-detail-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.2rem;
}

.ctc-detail-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.5;
}

a.ctc-detail-value:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ── Right column: form card ── */
.ctc-right {
  position: sticky;
  top: 6rem;
}

.ctc-form-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 4px 40px rgba(31, 58, 104, 0.08);
}

.ctc-form-header {
  margin-bottom: 2rem;
}

.ctc-form-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.ctc-form-subtitle {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}

/* Form fields */
.ctc-form .form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.ctc-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ctc-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ctc-field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
}

.ctc-required {
  color: #e53e3e;
  margin-left: 0.15rem;
}

.ctc-field input,
.ctc-field textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}

.ctc-field input:focus,
.ctc-field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(31, 58, 104, 0.10);
  background: #fff;
}

.ctc-field input::placeholder,
.ctc-field textarea::placeholder {
  color: #b0bccc;
}

.ctc-field textarea {
  resize: vertical;
  min-height: 120px;
}

/* Submit button */
.ctc-submit {
  width: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #0c1840;
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.25rem;
}

.ctc-submit:hover:not(:disabled) {
  background: var(--color-primary);
  transform: translateY(-1px);
}

.ctc-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Privacy note */
.ctc-form-privacy {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--color-muted);
  margin: 0;
  text-align: center;
  justify-content: center;
}

/* Honeypot */
.form-honeypot {
  display: none !important;
}

/* Error / success states */
.form-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #b91c1c;
}

.ctc-form.has-error .form-error {
  display: block;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
}

.form-success strong {
  font-size: 1.1rem;
  color: var(--color-text);
}

.form-success p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}

.ctc-form.is-success .form-fields {
  display: none;
}

.ctc-form.is-success .form-success {
  display: flex;
}

/* Success icon */
.ctc-success-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #059669;
}

/* ── Responsive ── */
@media (max-width: 1000px) {
  .ctc-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .ctc-right {
    position: static;
  }
}

@media (max-width: 640px) {
  .ctc-hero {
    padding: 5rem 0 3.5rem;
  }

  .ctc-field-row {
    grid-template-columns: 1fr;
  }

  .ctc-form-card {
    padding: 1.75rem 1.25rem;
  }
}

/* ══════════════════════════════════════════════════════════
   PRODUCTS PAGE
   ══════════════════════════════════════════════════════════ */

/* ── Hero ── */
.prd-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(6,13,39,0.90) 0%, rgba(12,24,64,0.86) 55%, rgba(8,18,48,0.92) 100%),
    url('images/docify-workspace.jpg') center / cover no-repeat;
  padding: 7.5rem 0 6rem;
  text-align: center;
}

.prd-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(76, 195, 224, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 195, 224, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.prd-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.prd-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(76, 195, 224, 0.13) 0%, transparent 70%);
  top: -160px;
  right: -80px;
}

.prd-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(31, 58, 104, 0.4) 0%, transparent 70%);
  bottom: -120px;
  left: -60px;
}

.prd-hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.prd-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(76, 195, 224, 0.10);
  border: 1px solid rgba(76, 195, 224, 0.22);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-cyan);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.prd-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cyan);
  flex-shrink: 0;
  animation: prd-pulse 2s ease-in-out infinite;
}

@keyframes prd-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.prd-hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 1rem;
}

.prd-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.6);
  max-width: 560px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
}

.prd-hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.prd-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Featured product (DOCIME) ── */
.prd-featured-section {
  background: #fff;
}

.prd-featured-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.prd-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 100px;
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prd-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #059669;
  animation: prd-pulse 2s ease-in-out infinite;
}

.prd-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Left copy */
.prd-featured-title {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.prd-featured-title-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: -0.01em;
}

.prd-featured-desc {
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin: 0 0 2rem;
}

/* Feature blocks */
.prd-feat-blocks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.prd-feat-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.prd-feat-block:hover {
  box-shadow: var(--shadow-soft);
}

.prd-feat-block-blue  { background: rgba(31, 58, 104, 0.04); }
.prd-feat-block-cyan  { background: rgba(76, 195, 224, 0.05); }
.prd-feat-block-orange { background: rgba(245, 158, 11, 0.05); }

.prd-feat-block-blue:hover  { border-color: rgba(31, 58, 104, 0.25); }
.prd-feat-block-cyan:hover  { border-color: rgba(76, 195, 224, 0.3); }
.prd-feat-block-orange:hover { border-color: rgba(245, 158, 11, 0.3); }

.prd-feat-icon {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prd-feat-block-blue   .prd-feat-icon { background: rgba(31, 58, 104, 0.10); color: var(--color-primary); }
.prd-feat-block-cyan   .prd-feat-icon { background: rgba(76, 195, 224, 0.15); color: #2aa8c8; }
.prd-feat-block-orange .prd-feat-icon { background: rgba(245, 158, 11, 0.12); color: #c47d00; }

.prd-feat-block div:last-child {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.prd-feat-block strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
}

.prd-feat-block span {
  font-size: 0.83rem;
  color: var(--color-muted);
}

.prd-featured-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

.prd-featured-actions .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 0;
  border: none;
  background: none;
  text-decoration: none;
  transition: gap 0.2s;
  min-height: unset;
}

.prd-featured-actions .btn-ghost:hover {
  gap: 0.65rem;
  transform: none;
}

/* Right: browser mock */
.prd-featured-visual {
  position: relative;
}

.prd-browser {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(31, 58, 104, 0.14), 0 4px 16px rgba(31, 58, 104, 0.08);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.prd-browser-bar {
  background: #f0f4f8;
  border-bottom: 1px solid var(--color-border);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prd-browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.prd-dot-red    { background: #ff5f57; }
.prd-dot-yellow { background: #febc2e; }
.prd-dot-green  { background: #28c840; }

.prd-browser-url {
  flex: 1;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-left: 0.5rem;
  text-align: center;
}

.prd-browser-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Dashboard header */
.prd-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prd-dash-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
}

.prd-dash-badge {
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.12);
  color: #c47d00;
  border-radius: 100px;
  padding: 0.2rem 0.6rem;
}

/* Metrics row */
.prd-dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.prd-dash-metric {
  background: var(--color-surface);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.prd-dash-num {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.prd-dash-num-green { color: #059669; }
.prd-dash-num-blue  { color: var(--color-primary); }
.prd-dash-num-cyan  { color: #2aa8c8; }

.prd-dash-label {
  font-size: 0.65rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Document rows */
.prd-dash-rows {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.prd-dash-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  background: var(--color-surface);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.prd-dash-row-dim {
  opacity: 0.55;
}

.prd-dash-row-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
}

.prd-row-blue   { background: rgba(31, 58, 104, 0.15); }
.prd-row-cyan   { background: rgba(76, 195, 224, 0.18); }
.prd-row-orange { background: rgba(245, 158, 11, 0.15); }
.prd-row-purple { background: rgba(139, 92, 246, 0.15); }

.prd-dash-row-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.prd-dash-row-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prd-dash-row-meta {
  font-size: 0.62rem;
  color: var(--color-muted);
}

.prd-dash-pill {
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 100px;
  padding: 0.18rem 0.55rem;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prd-pill-green { background: rgba(16, 185, 129, 0.12); color: #059669; }
.prd-pill-amber { background: rgba(245, 158, 11, 0.12); color: #c47d00; }
.prd-pill-blue  { background: rgba(31, 58, 104, 0.10); color: var(--color-primary); }
.prd-pill-grey  { background: rgba(83, 101, 125, 0.10); color: var(--color-muted); }

/* Sparkline */
.prd-dash-spark {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.prd-spark-label {
  font-size: 0.62rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.prd-spark-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
}

.prd-spark-bar {
  flex: 1;
  background: rgba(31, 58, 104, 0.15);
  border-radius: 3px 3px 0 0;
  transition: background 0.2s;
}

.prd-spark-bar-active {
  background: var(--color-primary);
}

/* ── Capabilities ── */
.prd-caps-section {
  background: var(--color-surface);
}

.prd-caps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.prd-cap-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.prd-cap-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
  border-color: rgba(31, 58, 104, 0.18);
}

.prd-cap-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prd-cap-icon-blue   { background: rgba(31, 58, 104, 0.09); color: var(--color-primary); }
.prd-cap-icon-cyan   { background: rgba(76, 195, 224, 0.12); color: #2aa8c8; }
.prd-cap-icon-orange { background: rgba(245, 158, 11, 0.10); color: #c47d00; }
.prd-cap-icon-purple { background: rgba(139, 92, 246, 0.10); color: #7c3aed; }

.prd-cap-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.prd-cap-card p {
  font-size: 0.87rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Roadmap ── */
.prd-roadmap-section {
  background: #fff;
}

.prd-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.prd-roadmap-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.prd-roadmap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-border);
  border-radius: 3px 3px 0 0;
  transition: background 0.25s;
}

.prd-roadmap-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.prd-roadmap-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.prd-roadmap-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prd-roadmap-icon-blue   { background: rgba(31, 58, 104, 0.09); color: var(--color-primary); }
.prd-roadmap-icon-cyan   { background: rgba(76, 195, 224, 0.12); color: #2aa8c8; }
.prd-roadmap-icon-orange { background: rgba(245, 158, 11, 0.10); color: #c47d00; }

.prd-soon-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: rgba(83, 101, 125, 0.10);
  border-radius: 100px;
  padding: 0.25rem 0.65rem;
}

.prd-roadmap-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.prd-roadmap-card p {
  font-size: 0.87rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin: 0;
}

.prd-roadmap-list {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.prd-roadmap-list li {
  font-size: 0.82rem;
  color: var(--color-muted);
  padding-left: 1.1rem;
  position: relative;
}

.prd-roadmap-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--color-border);
}

/* ── Why VAIRAM Products ── */
.prd-why-section {
  background: var(--color-surface);
  padding: 5.5rem 0;
}

.prd-why-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 5rem;
  align-items: start;
}

.prd-why-heading {
  position: sticky;
  top: 6rem;
}

.prd-why-heading h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0.5rem 0 0;
}

.prd-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.prd-why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.prd-why-icon {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  background: rgba(31, 58, 104, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-top: 0.1rem;
}

.prd-why-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.3rem;
}

.prd-why-item p {
  font-size: 0.87rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Final CTA ── */
.prd-cta-section {
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
  background: linear-gradient(135deg, #060d27 0%, #0c1840 40%, #083a4a 100%);
  text-align: center;
}

.prd-cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% -20%, rgba(76, 195, 224, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 50% 120%, rgba(31, 58, 104, 0.5) 0%, transparent 65%);
  pointer-events: none;
}

.prd-cta-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.prd-cta-eyebrow {
  color: var(--color-cyan);
}

.prd-cta-headline {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
}

.prd-cta-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 2.5rem;
  line-height: 1.65;
}

.prd-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.prd-btn-demo {
  background: var(--color-cyan);
  color: #06122a;
  font-weight: 700;
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
  border: none;
}

.prd-btn-demo:hover {
  background: #6fd4ea;
  transform: translateY(-2px);
}

.prd-btn-contact {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
}

.prd-btn-contact:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .prd-caps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1000px) {
  .prd-featured-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .prd-roadmap-grid {
    grid-template-columns: 1fr;
  }

  .prd-why-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .prd-why-heading {
    position: static;
  }
}

@media (max-width: 720px) {
  .prd-hero {
    padding: 5.5rem 0 4rem;
  }

  .prd-caps-grid {
    grid-template-columns: 1fr;
  }

  .prd-why-grid {
    grid-template-columns: 1fr;
  }

  .prd-roadmap-grid {
    grid-template-columns: 1fr;
  }

  .prd-featured-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ══════════════════════════════════════════════════════════
   CASE STUDIES PAGE
   ══════════════════════════════════════════════════════════ */

/* ── Hero ── */
.cs-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(6,13,39,0.90) 0%, rgba(12,24,64,0.86) 50%, rgba(8,18,47,0.92) 100%),
    url('images/case-finance.jpg') center / cover no-repeat;
  padding: 7.5rem 0 5.5rem;
  text-align: center;
}

.cs-hero-noise {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.cs-hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
}

.cs-glow-1 {
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(76, 195, 224, 0.12) 0%, transparent 70%);
  top: -100px; right: -80px;
}

.cs-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(31, 58, 104, 0.5) 0%, transparent 70%);
  bottom: -120px; left: -50px;
}

.cs-hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.cs-eyebrow {
  color: var(--color-cyan);
}

.cs-hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0.4rem 0 1rem;
}

.cs-hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(255, 255, 255, 0.58);
  max-width: 580px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.cs-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 1.25rem 2rem;
  width: fit-content;
  margin: 0 auto;
}

.cs-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0 2.5rem;
}

.cs-hero-stat-num {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.cs-hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  white-space: nowrap;
}

.cs-hero-stat-div {
  width: 1px;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

/* ── Overview card grid ── */
.cs-grid-section {
  background: var(--color-surface);
}

.cs-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.cs-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.cs-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  transition: opacity 0.25s;
}

.cs-card-blue::before   { background: var(--color-primary); }
.cs-card-cyan::before   { background: var(--color-cyan); }
.cs-card-purple::before { background: #8b5cf6; }
.cs-card-orange::before { background: var(--color-accent); }

.cs-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
  border-color: rgba(31, 58, 104, 0.16);
}

.cs-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.cs-card-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cs-icon-blue   { background: rgba(31, 58, 104, 0.09); color: var(--color-primary); }
.cs-icon-cyan   { background: rgba(76, 195, 224, 0.12); color: #2aa8c8; }
.cs-icon-purple { background: rgba(139, 92, 246, 0.10); color: #7c3aed; }
.cs-icon-orange { background: rgba(245, 158, 11, 0.10); color: #c47d00; }

.cs-industry-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.cs-card-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-border);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: -0.25rem;
}

.cs-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  margin: 0;
}

.cs-card p {
  font-size: 0.84rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.cs-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: 0.5rem;
  transition: gap 0.2s;
}

.cs-card-link:hover {
  gap: 0.65rem;
}

/* ── Case detail sections ── */
.cs-detail-section {
  padding: 5.5rem 0;
  background: #fff;
}

.cs-detail-alt {
  background: var(--color-surface);
}

.cs-detail-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 5rem;
  align-items: start;
}

/* Left meta column */
.cs-detail-meta {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cs-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  width: fit-content;
}

.cs-badge-blue   { background: rgba(31, 58, 104, 0.09); color: var(--color-primary); }
.cs-badge-cyan   { background: rgba(76, 195, 224, 0.12); color: #2aa8c8; }
.cs-badge-purple { background: rgba(139, 92, 246, 0.10); color: #7c3aed; }
.cs-badge-orange { background: rgba(245, 158, 11, 0.10); color: #c47d00; }

.cs-detail-case-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.cs-detail-meta h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0;
}

.cs-detail-outcomes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cs-outcome-chip {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
}

.cs-detail-alt .cs-outcome-chip {
  background: var(--color-surface);
}

.cs-outcome-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.cs-outcome-label {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 500;
  line-height: 1.3;
}

/* Right body column */
.cs-detail-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cs-detail-block {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.cs-detail-block:first-child {
  padding-top: 0;
}

.cs-detail-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cs-block-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.cs-block-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cs-dot-red   { background: #ef4444; }
.cs-dot-blue  { background: var(--color-primary); }
.cs-dot-green { background: #059669; }

.cs-detail-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.75rem;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.cs-detail-block p {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.75;
  margin: 0 0 1rem;
}

.cs-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cs-detail-list li {
  font-size: 0.88rem;
  color: var(--color-muted);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}

.cs-detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-cyan);
}

.cs-block-outcome h3 {
  color: var(--color-text);
}

.cs-outcome-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.cs-outcome-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cs-outcome-stat strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.cs-outcome-stat span {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 500;
}

/* ── Metrics section ── */
.cs-metrics-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #060d27 0%, #0c1840 60%, #061526 100%);
  padding: 6rem 0 6.5rem;
}

.cs-metrics-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(76, 195, 224, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 120%, rgba(31, 58, 104, 0.5) 0%, transparent 60%);
  pointer-events: none;
}

.cs-metrics-inner {
  position: relative;
}

.cs-metrics-heading {
  text-align: center;
  margin-bottom: 3.5rem;
}

.cs-metrics-eyebrow {
  color: var(--color-cyan);
}

.cs-metrics-heading h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin: 0.4rem 0 0;
  line-height: 1.2;
}

.cs-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.cs-metric-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.cs-metric-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(76, 195, 224, 0.2);
  transform: translateY(-3px);
}

.cs-metric-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: rgba(76, 195, 224, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan);
  margin-bottom: 0.5rem;
}

.cs-metric-num {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.cs-metric-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}

.cs-metric-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
  margin: 0.25rem 0 0;
}

/* ── Industries section ── */
.cs-industries-section {
  background: #fff;
}

.cs-industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.cs-industry-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--color-surface);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.cs-industry-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
  border-color: rgba(31, 58, 104, 0.18);
  background: #fff;
}

.cs-industry-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-ind-blue   { background: rgba(31, 58, 104, 0.09); color: var(--color-primary); }
.cs-ind-cyan   { background: rgba(76, 195, 224, 0.12); color: #2aa8c8; }
.cs-ind-orange { background: rgba(245, 158, 11, 0.10); color: #c47d00; }
.cs-ind-purple { background: rgba(139, 92, 246, 0.10); color: #7c3aed; }

.cs-industry-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.35;
}

.cs-industry-card p {
  font-size: 0.83rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.cs-industry-tags {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.cs-industry-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-muted);
  background: var(--color-border);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
  width: fit-content;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .cs-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1000px) {
  .cs-detail-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .cs-detail-meta {
    position: static;
  }

  .cs-detail-outcomes {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cs-outcome-chip {
    flex: 1;
    min-width: 140px;
  }
}

@media (max-width: 720px) {
  .cs-hero {
    padding: 5.5rem 0 4rem;
  }

  .cs-hero-stats {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
    width: 100%;
  }

  .cs-hero-stat-div {
    width: 100%;
    height: 1px;
  }

  .cs-hero-stat {
    padding: 0;
  }

  .cs-cards-grid {
    grid-template-columns: 1fr;
  }

  .cs-metrics-grid {
    grid-template-columns: 1fr;
  }

  .cs-industries-grid {
    grid-template-columns: 1fr;
  }

  .cs-outcome-row {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ══════════════════════════════════════════════════════════
   WORKFLOW DIAGRAM  — "How Automation Works"
   ══════════════════════════════════════════════════════════ */

.wf-section {
  background: #f8fafd;
}

/* ── Track: horizontal 5-step grid ── */
.wf-track {
  display: grid;
  grid-template-columns: 1fr 80px 1fr 80px 1fr 80px 1fr 80px 1fr;
  align-items: center;
  gap: 0;
  margin-top: 4.5rem;
}

/* ── Step card ── */
.wf-step {
  background: #ffffff;
  border: 1.5px solid rgba(31,58,104,0.09);
  border-radius: 20px;
  padding: 2.5rem 1.5rem 2.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(31,58,104,0.06), 0 1px 2px rgba(31,58,104,0.04);
  transition:
    box-shadow 0.32s cubic-bezier(0.34,1.56,0.64,1),
    transform  0.32s cubic-bezier(0.34,1.56,0.64,1),
    border-color 0.22s ease;
  cursor: default;
}

/* Coloured top accent bar */
.wf-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
  transition: height 0.22s ease;
}

.wf-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 52px rgba(31,58,104,0.13), 0 6px 16px rgba(31,58,104,0.07);
  border-color: rgba(31,58,104,0.16);
}

.wf-step:hover::before { height: 4px; }

/* Top-bar colours */
.wf-step-blue::before   { background: linear-gradient(90deg, var(--color-primary), #3b82f6); }
.wf-step-purple::before { background: linear-gradient(90deg, #7c3aed, var(--color-cyan)); }
.wf-step-cyan::before   { background: linear-gradient(90deg, var(--color-cyan), #38bdf8); }
.wf-step-orange::before { background: linear-gradient(90deg, var(--color-accent), #f97316); }
.wf-step-green::before  { background: linear-gradient(90deg, #10b981, #34d399); }

/* ── AI Processing step: highlighted ── */
.wf-ai-step {
  background: linear-gradient(155deg, #faf7ff 0%, #f0e8ff 100%);
  border-color: rgba(124,58,237,0.22);
  box-shadow: 0 4px 20px rgba(124,58,237,0.10), 0 1px 4px rgba(124,58,237,0.06);
  padding-top: 2.9rem;
}

.wf-ai-step:hover {
  box-shadow: 0 22px 52px rgba(124,58,237,0.18), 0 6px 16px rgba(124,58,237,0.10);
  border-color: rgba(124,58,237,0.35);
}

/* AI badge */
.wf-ai-badge {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #7c3aed, var(--color-cyan));
  color: #fff;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.22rem 0.72rem;
  border-radius: 0 0 10px 10px;
  white-space: nowrap;
  z-index: 2;
}

/* Glow ring on AI step */
.wf-glow-ring {
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  border: 1.5px solid rgba(124,58,237,0.28);
  animation: wf-glow-pulse 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes wf-glow-pulse {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 0 0 rgba(124,58,237,0.08); }
  50%       { opacity: 1;   box-shadow: 0 0 18px 4px rgba(124,58,237,0.14); }
}

/* Step number pill */
.wf-step-num {
  position: absolute;
  top: 1rem;
  left: 1.1rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(31,58,104,0.30);
  background: rgba(31,58,104,0.06);
  padding: 0.12rem 0.44rem;
  border-radius: 5px;
  line-height: 1.4;
}

/* Icon wrap */
.wf-icon-wrap {
  width: 4rem;
  height: 4rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.28s ease;
  position: relative;
  z-index: 1;
}

.wf-step:hover .wf-icon-wrap {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 8px 22px rgba(31,58,104,0.12);
}

.wf-icon-blue   { background: rgba(31,58,104,0.08);  color: var(--color-primary); border: 1px solid rgba(31,58,104,0.10); }
.wf-icon-purple { background: rgba(124,58,237,0.11); color: #7c3aed;              border: 1px solid rgba(124,58,237,0.16); }
.wf-icon-cyan   { background: rgba(76,195,224,0.11); color: #1899bb;              border: 1px solid rgba(76,195,224,0.18); }
.wf-icon-orange { background: rgba(245,158,11,0.10); color: #b87700;              border: 1px solid rgba(245,158,11,0.15); }
.wf-icon-green  { background: rgba(16,185,129,0.10); color: #047857;              border: 1px solid rgba(16,185,129,0.15); }

/* Step title & text */
.wf-step h3 {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin: 0;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}

.wf-step p {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ── Connector between steps ── */
.wf-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 2px;
}

.wf-conn-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(31,58,104,0.08) 0%, rgba(76,195,224,0.22) 100%);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

/* Animated flowing dot — richer gradient */
.wf-conn-dot {
  position: absolute;
  top: 50%;
  left: -100%;
  transform: translateY(-50%);
  width: 100%;
  height: 200%;
  background: linear-gradient(90deg, transparent 0%, var(--color-primary) 30%, var(--color-cyan) 70%, transparent 100%);
  animation: wf-flow 2.4s ease-in-out infinite;
  animation-delay: var(--wf-delay, 0s);
}

@keyframes wf-flow {
  0%   { left: -100%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Arrow chevron — circle pill around connector */
.wf-conn-arrow {
  flex-shrink: 0;
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid rgba(31,58,104,0.12);
  box-shadow: 0 2px 6px rgba(31,58,104,0.08);
  color: rgba(76,195,224,0.70);
  overflow: visible;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .wf-track {
    grid-template-columns: 1fr 56px 1fr 56px 1fr;
    grid-template-rows: auto auto;
    row-gap: 1.25rem;
  }

  /* Steps 4+5 and their connector drop to second row */
  .wf-track > *:nth-child(7),
  .wf-track > *:nth-child(8),
  .wf-track > *:nth-child(9) {
    grid-row: 2;
  }

  /* Centre the second row */
  .wf-track > *:nth-child(7) { grid-column: 1; }
  .wf-track > *:nth-child(8) { grid-column: 2; }
  .wf-track > *:nth-child(9) { grid-column: 3; }
}

@media (max-width: 720px) {
  .wf-track {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .wf-step {
    flex-direction: row;
    text-align: left;
    gap: 1.25rem;
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  }

  .wf-step::before {
    top: 0; left: 0; bottom: 0; right: auto;
    width: 3px;
    height: auto;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  }

  .wf-step:hover::before {
    height: auto;
    width: 4px;
  }

  .wf-step-num {
    top: 0.75rem;
    left: 1.5rem;
  }

  .wf-icon-wrap {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
  }

  .wf-connector {
    flex-direction: column;
    padding: 4px 0;
    align-self: stretch;
    margin-left: 2.5rem;
  }

  .wf-conn-line {
    width: 2px;
    height: 28px;
    flex: none;
    background: repeating-linear-gradient(
      to bottom,
      rgba(31,58,104,0.12) 0px,
      rgba(76,195,224,0.30) 3px,
      transparent 3px,
      transparent 7px
    );
  }

  .wf-conn-dot {
    left: 0;
    top: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, var(--color-primary) 30%, var(--color-cyan) 70%, transparent 100%);
    animation: wf-flow-v 2.4s ease-in-out infinite;
    animation-delay: var(--wf-delay, 0s);
  }

  @keyframes wf-flow-v {
    0%   { top: -100%; opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }

  .wf-conn-arrow {
    transform: rotate(90deg);
  }

  /* AI step mobile adjustments */
  .wf-ai-step {
    padding-left: 1.8rem;
    padding-top: 1.5rem;
  }
  .wf-ai-badge {
    top: 50%;
    left: 0;
    transform: translateY(-50%) translateX(0);
    border-radius: 0 8px 8px 0;
    padding: 0.22rem 0.55rem;
  }
  .wf-glow-ring {
    border-radius: 20px;
  }
}

/* ════════════════════════════════════════════
   WHAT HAPPENS NEXT  (.whn-*)
   ════════════════════════════════════════════ */
.whn-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 7rem;
  background: linear-gradient(150deg, #060d27 0%, #0c1840 50%, #08122f 100%);
}
.whn-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.whn-glow {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(76,195,224,0.09) 0%, transparent 65%);
  pointer-events: none;
}
.whn-section .section-heading h2 { color: #fff; }
.whn-section .section-intro-text  { color: rgba(255,255,255,0.52); }
.whn-eyebrow       { color: var(--color-accent) !important; }
.whn-eyebrow::before { background: var(--color-accent) !important; }

/* Steps grid */
.whn-steps {
  display: grid;
  grid-template-columns: 1fr 72px 1fr 72px 1fr;
  align-items: start;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

/* Step card */
.whn-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.75rem 2.25rem;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.20);
  position: relative;
  overflow: hidden;
  transition: background 0.28s, transform 0.32s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.28s;
  cursor: default;
}
.whn-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
}
.whn-step-1::before { background: linear-gradient(90deg, var(--color-primary), #3b82f6); }
.whn-step-2::before { background: linear-gradient(90deg, var(--color-cyan), #7c3aed); }
.whn-step-3::before { background: linear-gradient(90deg, var(--color-accent), #f97316); }

.whn-step:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.28);
}

/* Number badge */
.whn-num {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}
.whn-num-1 { background: linear-gradient(135deg, var(--color-primary), #3b82f6); box-shadow: 0 4px 16px rgba(59,130,246,0.40); }
.whn-num-2 { background: linear-gradient(135deg, var(--color-cyan), #7c3aed);    box-shadow: 0 4px 16px rgba(76,195,224,0.40); }
.whn-num-3 { background: linear-gradient(135deg, var(--color-accent), #f97316);  box-shadow: 0 4px 16px rgba(245,158,11,0.40); }

/* Step icon */
.whn-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(255,255,255,0.09);
  transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1);
}
.whn-step:hover .whn-icon { transform: scale(1.10) translateY(-3px); }
.whn-icon-1 { background: rgba(59,130,246,0.12);  color: #60a5fa; }
.whn-icon-2 { background: rgba(76,195,224,0.12);  color: var(--color-cyan); }
.whn-icon-3 { background: rgba(245,158,11,0.12);  color: var(--color-accent); }

/* Step text */
.whn-step-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  display: block;
  margin-bottom: 0.4rem;
}
.whn-step h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: rgba(255,255,255,0.92);
  margin: 0 0 0.55rem;
  line-height: 1.25;
}
.whn-step p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.46);
  line-height: 1.65;
  margin: 0;
}

/* Connector */
.whn-conn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5.75rem;
}
.whn-conn-track {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0;
}
.whn-conn-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(31,58,104,0.10) 0%, rgba(76,195,224,0.25) 100%);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.whn-conn-line::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
  animation: whn-dot 2.8s ease-in-out infinite;
}
@keyframes whn-dot {
  0%   { left: -100%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.whn-conn-arrow {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(76,195,224,0.22);
  color: rgba(76,195,224,0.65);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* CTA below steps */
.whn-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3.75rem;
  position: relative;
  z-index: 1;
}
.whn-cta-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.38);
  margin: 0;
}
.whn-cta-btns {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.whn-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.9rem 2.1rem;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(245,158,11,0.38);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.whn-btn-primary:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245,158,11,0.50);
}
.whn-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: rgba(255,255,255,0.62);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.9rem 1.75rem;
  border-radius: 100px;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.16);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.whn-btn-ghost:hover {
  border-color: rgba(255,255,255,0.40);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 820px) {
  .whn-steps {
    grid-template-columns: 1fr 48px 1fr;
    grid-template-rows: auto auto;
    row-gap: 1rem;
  }
  .whn-steps > .whn-conn:last-of-type,
  .whn-steps > .whn-step:last-child {
    grid-row: 2;
  }
  .whn-steps > .whn-conn:last-of-type { grid-column: 2; }
  .whn-steps > .whn-step:last-child   { grid-column: 1 / -1; max-width: 400px; justify-self: center; }
}
@media (max-width: 560px) {
  .whn-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .whn-conn {
    padding-top: 0;
    padding: 0.5rem 0;
    justify-content: flex-start;
    padding-left: 3rem;
  }
  .whn-conn-track { flex-direction: column; width: 2px; height: 32px; }
  .whn-conn-line  { width: 2px; height: 100%; background: rgba(76,195,224,0.15); }
  .whn-conn-line::after { display: none; }
  .whn-conn-arrow { display: none; }
  .whn-steps > .whn-conn:last-of-type,
  .whn-steps > .whn-step:last-child {
    grid-row: auto; grid-column: auto; max-width: 100%; justify-self: auto;
  }
}

/* ════════════════════════════════════════════
   MID-SECTION CTA BANNER  (.mid-cta-*)
   ════════════════════════════════════════════ */
.mid-cta {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0;
  background: linear-gradient(120deg, #f59e0b 0%, #f97316 60%, #ef4444 100%);
}
.mid-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.mid-cta::after {
  content: '';
  position: absolute;
  top: -60%;
  right: -8%;
  width: 460px;
  height: 460px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.mid-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}
.mid-cta-copy { flex: 1; }
.mid-cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
  margin-bottom: 0.65rem;
}
.mid-cta-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,0.55);
  border-radius: 2px;
}
.mid-cta h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 0.55rem;
  line-height: 1.2;
}
.mid-cta p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
  margin: 0;
  max-width: 50ch;
  line-height: 1.65;
}
.mid-cta-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.mid-cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: #c2410c;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.9rem 1.85rem;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.mid-cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}
.mid-cta-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.9rem 1.65rem;
  border-radius: 100px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.38);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.mid-cta-btn-ghost:hover {
  border-color: rgba(255,255,255,0.75);
  color: #fff;
  transform: translateY(-2px);
}
@media (max-width: 820px) {
  .mid-cta-inner { flex-direction: column; align-items: flex-start; gap: 2rem; }
}

/* ════════════════════════════════════════════
   FEATURED CASE STUDY  (.fcs-*)
   ════════════════════════════════════════════ */
.fcs-section {
  background: var(--color-surface);
  padding: 5.5rem 0 6rem;
}

.fcs-card {
  background: linear-gradient(160deg, #0d1b3e 0%, #0f2251 55%, #081940 100%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 64px rgba(15,34,81,0.22), 0 2px 8px rgba(15,34,81,0.1);
  border: 1px solid rgba(76,195,224,0.14);
  position: relative;
}
.fcs-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4cc3e0 0%, #7c3aed 50%, #f59e0b 100%);
}

/* Card top bar */
.fcs-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2.4rem 0;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.fcs-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.fcs-tag {
  display: inline-block;
  background: rgba(76,195,224,0.12);
  color: #4cc3e0;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.8rem;
  border-radius: 100px;
  border: 1px solid rgba(76,195,224,0.22);
  text-transform: uppercase;
}
.fcs-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(120deg, #f59e0b 0%, #f97316 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  text-transform: uppercase;
}
.fcs-featured-badge::before {
  content: '★';
  font-size: 0.65rem;
}

/* Two-column body */
.fcs-body {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
  padding: 2rem 0 0;
}
.fcs-narrative {
  padding: 1rem 2.4rem 2.8rem;
  border-right: 1px solid rgba(76,195,224,0.1);
}
.fcs-metrics {
  padding: 1rem 2.4rem 2.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Pull quote */
.fcs-quote {
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin: 0 0 2rem;
  padding-left: 1.25rem;
  border-left: 3px solid #4cc3e0;
}

/* Problem / Solution blocks */
.fcs-ps-block {
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.fcs-ps-problem {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
}
.fcs-ps-solution {
  background: rgba(76,195,224,0.08);
  border: 1px solid rgba(76,195,224,0.2);
}
.fcs-ps-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.fcs-ps-problem .fcs-ps-label { color: #f87171; }
.fcs-ps-solution .fcs-ps-label { color: #4cc3e0; }
.fcs-ps-block p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.6;
}

.fcs-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #4cc3e0;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: gap 0.2s, opacity 0.2s;
}
.fcs-link:hover {
  gap: 0.7rem;
  opacity: 0.85;
}

/* Primary metric — the big 80% */
.fcs-metric-primary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}
.fcs-metric-num {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #4cc3e0 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}
.fcs-metric-unit {
  font-size: 2.8rem;
  font-weight: 900;
}
.fcs-metric-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  max-width: 160px;
  line-height: 1.4;
}

/* Secondary metric */
.fcs-metric-after {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.fcs-metric-after .fcs-before {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.28);
  text-decoration: line-through;
}
.fcs-metric-after .fcs-after {
  font-size: 2rem;
  font-weight: 900;
  color: #4cc3e0;
}
.fcs-metric-after .fcs-after-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fcs-divider {
  height: 1px;
  background: rgba(76,195,224,0.12);
  margin: 0.25rem 0;
}

/* Secondary metric white variant */
.fcs-num-white {
  font-size: 2.4rem !important;
  background: none !important;
  -webkit-text-fill-color: rgba(255,255,255,0.75) !important;
  color: rgba(255,255,255,0.75);
}
.fcs-unit-sm { font-size: 1.3rem !important; }

/* Down-to callout */
.fcs-metric-after {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #4ade80;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.22);
  border-radius: 100px;
  padding: 0.22rem 0.7rem;
  margin-top: 0.3rem;
}
.fcs-metric-after svg { color: #4ade80; }

/* Results checklist */
.fcs-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.fcs-results-heading {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.5rem;
}
.fcs-results-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.fcs-results-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}
.fcs-results-list li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  padding: 2px;
  border-radius: 50%;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80;
}

/* Responsive */
@media (max-width: 900px) {
  .fcs-body {
    grid-template-columns: 1fr;
  }
  .fcs-narrative {
    border-right: none;
    border-bottom: 1px solid rgba(76,195,224,0.1);
    padding-bottom: 2rem;
  }
  .fcs-metric-num { font-size: 3.8rem; }
}
@media (max-width: 540px) {
  .fcs-card-top { padding: 1.2rem 1.4rem 0; }
  .fcs-narrative, .fcs-metrics { padding-left: 1.4rem; padding-right: 1.4rem; }
}

/* ════════════════════════════════════════════
   FLOATING SCROLL CTA  (.scroll-cta)
   ════════════════════════════════════════════ */
.scroll-cta {
  position: fixed;
  top: 88px;
  right: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(120deg, #f59e0b 0%, #f97316 100%);
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  padding: 0.65rem 1.35rem;
  border-radius: 100px;
  box-shadow:
    0 4px 18px rgba(249, 115, 22, 0.45),
    0 1px 4px rgba(0, 0, 0, 0.12);
  /* Hidden off-screen by default */
  opacity: 0;
  transform: translateY(-18px);
  pointer-events: none;
  transition:
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s;
}

.scroll-cta svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.scroll-cta:hover {
  background: linear-gradient(120deg, #d97706 0%, #ea580c 100%);
  box-shadow:
    0 8px 28px rgba(249, 115, 22, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px) !important;
}

.scroll-cta:hover svg {
  transform: scale(1.15);
}

/* Visible state — toggled by JS */
.scroll-cta--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Subtle pulse to attract attention once visible */
@keyframes scroll-cta-appear {
  0%   { box-shadow: 0 4px 18px rgba(249,115,22,0.45), 0 1px 4px rgba(0,0,0,0.12); }
  40%  { box-shadow: 0 6px 28px rgba(249,115,22,0.65), 0 2px 8px rgba(0,0,0,0.14); }
  100% { box-shadow: 0 4px 18px rgba(249,115,22,0.45), 0 1px 4px rgba(0,0,0,0.12); }
}
.scroll-cta--visible {
  animation: scroll-cta-appear 1.8s ease-in-out 0.4s 2;
}

/* Hide on very small screens — nav CTA is sufficient */
@media (max-width: 480px) {
  .scroll-cta { display: none; }
}

/* ════════════════════════════════════════════
   START SMALL SCALE FAST  (.ssf-*)
   ════════════════════════════════════════════ */
.ssf-section {
  background: var(--color-surface);
  padding: 4.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.ssf-inner {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.ssf-eyebrow { color: var(--color-accent) !important; }
.ssf-eyebrow::before { background: var(--color-accent) !important; }

.ssf-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--color-text);
  margin: 0.4rem 0 0;
  line-height: 1.2;
}

/* Steps row */
.ssf-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.ssf-step {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  flex: 1;
  padding: 0 1.75rem;
}
.ssf-step:first-child { padding-left: 0; }
.ssf-step:last-child  { padding-right: 0; }

.ssf-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-border);
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: -0.04em;
  padding-top: 0.1rem;
}

.ssf-step-body h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 0.45rem;
  line-height: 1.3;
}
.ssf-step-body p {
  font-size: 0.865rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin: 0;
}

/* Vertical divider between steps */
.ssf-divider {
  width: 1px;
  align-self: stretch;
  background: var(--color-border);
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .ssf-steps { flex-direction: column; gap: 1.5rem; }
  .ssf-divider { width: auto; height: 1px; align-self: auto; }
  .ssf-step { padding: 0; }
}

/* ════════════════════════════════════════════
   SAMPLE OUTPUT  (.so-*)
   ════════════════════════════════════════════ */
.so-section {
  background: linear-gradient(160deg, #060d27 0%, #0c1840 55%, #08122f 100%);
  position: relative;
  overflow: hidden;
}
.so-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.so-eyebrow       { color: var(--color-cyan) !important; }
.so-eyebrow::before { background: var(--color-cyan) !important; }
.so-section .section-heading h2 { color: #fff; }
.so-section .section-intro-text { color: rgba(255,255,255,0.52); }

/* Two-column layout */
.so-layout {
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  gap: 0;
  align-items: start;
  margin-top: 3.5rem;
}

/* ── Panel label ── */
.so-panel-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.9rem;
}
.so-panel-label-cyan { color: var(--color-cyan); }
.so-panel-label svg  { flex-shrink: 0; }

/* ── Left: document mock ── */
.so-doc {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
  font-size: 0.8rem;
  color: #1a1a2e;
}

.so-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1rem;
}
.so-doc-logo-block {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.so-doc-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1f3a68, #4cc3e0);
  flex-shrink: 0;
}
.so-doc-company {
  font-size: 0.82rem;
  font-weight: 800;
  color: #1f3a68;
  line-height: 1.2;
}
.so-doc-address {
  font-size: 0.65rem;
  color: #64748b;
  margin-top: 0.15rem;
}
.so-doc-title-block { text-align: right; }
.so-doc-type {
  font-size: 1rem;
  font-weight: 900;
  color: #1f3a68;
  letter-spacing: 0.1em;
}
.so-doc-num {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 0.2rem;
}

.so-doc-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}
.so-doc-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.so-doc-meta-item span {
  font-size: 0.6rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.so-doc-meta-item strong {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1e293b;
}

.so-doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.68rem;
  margin-bottom: 0.75rem;
}
.so-doc-table th {
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-bottom: 1.5px solid #e2e8f0;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.6rem;
}
.so-doc-table th:last-child,
.so-doc-table td:last-child { text-align: right; }
.so-doc-table td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.so-doc-totals {
  border-top: 1.5px solid #e2e8f0;
  padding-top: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.28rem;
}
.so-doc-total-row {
  display: flex;
  gap: 2rem;
  font-size: 0.68rem;
  color: #64748b;
}
.so-doc-grand-total {
  font-size: 0.8rem;
  font-weight: 800;
  color: #1f3a68;
  border-top: 1.5px solid #cbd5e1;
  padding-top: 0.35rem;
  margin-top: 0.15rem;
}

/* Scan overlay animation */
.so-scan-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 14px;
  overflow: hidden;
}
.so-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(76,195,224,0.7), transparent);
  animation: so-scan 3s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(76,195,224,0.5);
}
@keyframes so-scan {
  0%   { top: 0%; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
/* Highlight boxes */
.so-highlight {
  position: absolute;
  border: 1.5px solid rgba(76,195,224,0.55);
  border-radius: 3px;
  background: rgba(76,195,224,0.06);
  animation: so-hl-pulse 2.4s ease-in-out infinite;
}
.so-hl-1 { top: 48%; left: 6%; right: 55%; height: 9%; animation-delay: 0s; }
.so-hl-2 { top: 48%; left: 47%; right: 4%;  height: 9%; animation-delay: 0.4s; }
.so-hl-3 { bottom: 8%; left: 40%; right: 4%;  height: 11%; animation-delay: 0.8s; }
@keyframes so-hl-pulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; border-color: rgba(76,195,224,0.85); }
}

/* ── Middle connector ── */
.so-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 3.5rem;
}
.so-conn-track {
  width: 2px;
  flex: 1;
  max-height: 60px;
  background: linear-gradient(180deg, rgba(76,195,224,0.15), rgba(76,195,224,0.5));
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.so-conn-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cyan);
  animation: so-dot-flow 1.8s ease-in-out infinite;
}
@keyframes so-dot-flow {
  0%   { top: -10%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}
.so-conn-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-cyan);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}
.so-conn-arrow {
  color: var(--color-cyan);
  background: rgba(76,195,224,0.12);
  border: 1px solid rgba(76,195,224,0.25);
  border-radius: 50%;
  padding: 3px;
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}

/* ── Right: structured output ── */
.so-output {
  background: #0d1726;
  border: 1.5px solid rgba(76,195,224,0.18);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}

/* Confidence bar */
.so-conf-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  background: rgba(76,195,224,0.06);
  border-bottom: 1px solid rgba(76,195,224,0.12);
}
.so-conf-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.40);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}
.so-conf-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  overflow: hidden;
}
.so-conf-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1f3a68, #4cc3e0);
  border-radius: 99px;
  animation: so-conf-grow 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}
@keyframes so-conf-grow { to { width: 98.4%; } }
.so-conf-val {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--color-cyan);
  white-space: nowrap;
}

/* Field rows */
.so-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.so-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 1.1rem;
  border-right: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.so-field:nth-child(even) { border-right: none; }
.so-field-accent {
  grid-column: 1 / -1;
  border-right: none;
  background: rgba(76,195,224,0.05);
}
.so-field-key {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.28);
  font-family: 'Courier New', monospace;
}
.so-field-val {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}
.so-val-number { color: #60a5fa; font-family: 'Courier New', monospace; }
.so-val-total  { font-size: 0.9rem; font-weight: 800; color: var(--color-cyan); }

/* JSON line items block */
.so-json-block {
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.so-json-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255,255,255,0.30);
  font-family: 'Courier New', monospace;
  margin-bottom: 0.45rem;
  letter-spacing: 0.04em;
}
.so-json-count {
  color: #a78bfa;
  font-size: 0.58rem;
  margin-left: 0.4rem;
}
.so-json-rows { display: flex; flex-direction: column; gap: 0.3rem; }
.so-json-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
}
.so-json-desc {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.so-json-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  flex-shrink: 0;
  margin-left: 0.5rem;
}

/* Status row */
.so-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.so-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.22);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}
.so-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34d399;
  animation: dpp-live-pulse 2s ease-in-out infinite;
}
.so-route-dest {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-cyan);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .so-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .so-connector {
    flex-direction: row;
    padding-top: 0;
    gap: 0.75rem;
    justify-content: center;
  }
  .so-conn-track {
    width: 60px;
    height: 2px;
    max-height: none;
    flex: none;
    background: linear-gradient(90deg, rgba(76,195,224,0.15), rgba(76,195,224,0.5));
  }
  .so-conn-dot {
    top: 50%;
    transform: translateY(-50%);
    animation: so-dot-flow-h 1.8s ease-in-out infinite;
  }
  @keyframes so-dot-flow-h {
    0%   { left: -10%; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { left: 110%; opacity: 0; }
  }
  .so-conn-label {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .so-conn-arrow {
    transform: none;
  }
}
@media (max-width: 540px) {
  .so-doc { padding: 1rem; }
  .so-doc-meta-row { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════
   PRICING HINT  (.ph-*)
   ════════════════════════════════════════════ */
.ph-section {
  background: #fff;
}

.ph-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  max-width: 780px;
  margin: 3rem auto 0;
}

/* Base card */
.ph-card {
  position: relative;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s;
  box-shadow: 0 2px 10px rgba(31,58,104,0.05);
}
.ph-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(31,58,104,0.11);
}

/* Featured card */
.ph-card-featured {
  background: linear-gradient(160deg, #0f2251 0%, #1a3a6b 100%);
  border-color: rgba(76,195,224,0.30);
  box-shadow: 0 4px 24px rgba(31,58,104,0.18);
}
.ph-card-featured:hover {
  box-shadow: 0 14px 44px rgba(31,58,104,0.28);
}

.ph-featured-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(120deg, #f59e0b 0%, #f97316 100%);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.24rem 0.85rem;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(249,115,22,0.35);
}

/* Icon */
.ph-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ph-icon-green { background: rgba(16,185,129,0.12); color: #10b981; }
.ph-icon-blue  { background: rgba(76,195,224,0.15); color: #4cc3e0; }

.ph-plan-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
}
.ph-card-featured .ph-plan-label { color: rgba(255,255,255,0.45); }

/* Price display */
.ph-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  line-height: 1;
}
.ph-price-from {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-muted);
}
.ph-price-amount {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: -0.03em;
}
.ph-price-custom {
  font-size: 1.5rem;
  color: #4cc3e0;
}
.ph-card-featured .ph-price-from { color: rgba(255,255,255,0.45); }
.ph-card-featured .ph-price-amount { color: #fff; }

.ph-plan-desc {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin: 0;
}
.ph-card-featured .ph-plan-desc { color: rgba(255,255,255,0.60); }

/* Feature list */
.ph-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  margin-top: auto;
}
.ph-card-featured .ph-features { border-top-color: rgba(255,255,255,0.10); }

.ph-features li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.845rem;
  color: var(--color-text);
}
.ph-features li svg {
  flex-shrink: 0;
  color: #10b981;
  background: rgba(16,185,129,0.10);
  border-radius: 50%;
  padding: 2px;
  width: 18px;
  height: 18px;
}
.ph-card-featured .ph-features li { color: rgba(255,255,255,0.75); }

/* CTA row */
.ph-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2.75rem;
}

.ph-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(120deg, #f59e0b 0%, #f97316 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 2.2rem;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(249,115,22,0.38);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.2s;
}
.ph-cta-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 28px rgba(249,115,22,0.50);
}

.ph-cta-note {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 580px) {
  .ph-cards { grid-template-columns: 1fr; max-width: 420px; }
}

/* ════════════════════════════════════════════
   WHY AUTOMATION NOW  (.wan-*)
   ════════════════════════════════════════════ */
.wan-section {
  background: var(--color-surface);
}

/* Three-column card grid */
.wan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

.wan-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 10px rgba(31, 58, 104, 0.05);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(31, 58, 104, 0.11);
}

/* Icon circle */
.wan-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.wan-icon-red   { background: rgba(239,68,68,0.10);  color: #ef4444; }
.wan-icon-blue  { background: rgba(59,130,246,0.10); color: #3b82f6; }
.wan-icon-amber { background: rgba(245,158,11,0.10); color: #f59e0b; }

.wan-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 0.6rem;
  line-height: 1.3;
}
.wan-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin: 0;
}

/* Bottom callout banner */
.wan-callout {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.4rem 2rem;
  background: linear-gradient(120deg, #0f2251 0%, #1a3a6b 100%);
  border-radius: 16px;
  border-left: 4px solid var(--color-accent);
}
.wan-callout-icon {
  flex-shrink: 0;
  color: var(--color-accent);
}
.wan-callout p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}
.wan-callout p strong {
  color: #fff;
  font-weight: 800;
}

/* Responsive */
@media (max-width: 860px) {
  .wan-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wan-grid { grid-template-columns: 1fr; }
  .wan-callout { flex-direction: column; text-align: center; gap: 0.75rem; }
}

/* ══════════════════════════════════════════════════════════
   LEGAL PAGES (Privacy Policy, Terms of Use)
   ══════════════════════════════════════════════════════════ */

/* ── Hero ── */
.legal-hero {
  background:
    linear-gradient(150deg, rgba(6,13,39,0.94) 0%, rgba(12,24,64,0.90) 50%, rgba(8,18,47,0.96) 100%),
    url('images/hero-bg.jpg') center / cover no-repeat;
  padding: 6rem 0 4.5rem;
  text-align: center;
}

.legal-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.legal-hero .eyebrow {
  color: var(--color-cyan);
  margin-bottom: 0.75rem;
}

.legal-hero .eyebrow::before {
  background: var(--color-cyan);
}

.legal-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.9rem;
  line-height: 1.1;
}

.legal-hero-meta {
  display: inline-block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  padding: 0.3rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

/* ── Content section ── */
.legal-section {
  padding: 4rem 0 6rem;
  background: var(--color-surface);
}

.legal-prose {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem 3.5rem;
  box-shadow: 0 4px 40px rgba(31, 58, 104, 0.07);
}

.legal-prose > p:first-child {
  margin-top: 0;
}

.legal-prose h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 2.5rem 0 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--color-border);
  letter-spacing: -0.01em;
}

.legal-prose h2:first-of-type {
  margin-top: 1.5rem;
}

.legal-prose p,
.legal-prose li {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--color-text);
  margin: 0 0 0.75rem;
}

.legal-prose ul {
  padding-left: 1.35rem;
  margin: 0.25rem 0 0.85rem;
}

.legal-prose ul li {
  margin-bottom: 0.4rem;
}

.legal-prose a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-prose a:hover {
  color: var(--color-accent);
}

.legal-prose hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0 2rem;
}

.legal-notice {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.65;
  padding: 1rem 1.25rem;
  background: rgba(31, 58, 104, 0.04);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 0;
}

@media (max-width: 860px) {
  .legal-prose {
    padding: 2.25rem 2rem;
  }
}

@media (max-width: 600px) {
  .legal-hero {
    padding: 4.5rem 0 3rem;
  }
  .legal-section {
    padding: 2.5rem 0 4rem;
  }
  .legal-prose {
    padding: 1.75rem 1.25rem;
  }
}

/* ════════════════════════════════════════════
   CAREERS  (.crs-*)
   ════════════════════════════════════════════ */

.crs-positions-section {
  background: var(--color-surface);
}

/* Open positions grid */
.crs-jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.crs-job-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.crs-job-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
  border-color: rgba(31, 58, 104, 0.18);
}

.crs-job-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.crs-exp-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(31, 58, 104, 0.08);
  border-radius: 100px;
  padding: 0.3rem 0.75rem;
  white-space: nowrap;
}

.crs-job-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
  letter-spacing: -0.01em;
}

.crs-job-card p {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin: 0;
}

.crs-job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.crs-job-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(76, 195, 224, 0.10);
  border: 1px solid rgba(76, 195, 224, 0.22);
  border-radius: 100px;
  padding: 0.25rem 0.7rem;
}

.crs-job-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary);
}

.crs-job-cta svg {
  transition: transform 0.2s;
}

.crs-job-card:hover .crs-job-cta svg {
  transform: translateX(3px);
}

/* Work-authorisation / diversity note re-styled as a light callout */
.crs-note {
  margin-top: 3rem;
}

/* Job detail: back link */
.crs-back-row {
  padding: 1.5rem 0 0;
}

.crs-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
}

.crs-back-link:hover {
  color: var(--color-primary);
}

/* Job detail: role meta chips reuse .ctc-trust-chip; badge for experience on dark hero */
.crs-hero-exp {
  color: rgba(255, 255, 255, 0.85) !important;
  background: rgba(76, 195, 224, 0.16) !important;
  border-color: rgba(76, 195, 224, 0.3) !important;
}

/* Application form: extend shared .ctc-field styling to <select> */
.ctc-field select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}

.ctc-field select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(31, 58, 104, 0.10);
  background: #fff;
}

/* Work authorisation radio group */
.crs-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.crs-radio-option {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--color-text);
  cursor: pointer;
}

.crs-radio-option input[type="radio"] {
  width: auto;
  min-height: 0;
  margin: 0.2rem 0 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

/* CV acknowledgement field (no file picker — attachment happens manually in the applicant's email client) */
.crs-file-field {
  border: 1.5px dashed var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  padding: 0.9rem;
}

.crs-file-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* Consent checkbox */
.crs-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.crs-consent input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin: 0.2rem 0 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.crs-consent a {
  color: var(--color-primary);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .crs-jobs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .crs-jobs-grid {
    grid-template-columns: 1fr;
  }
}
