:root {
  --primary: #E8EEF4;
  --accent: #4A9FC4;
  --bg: #242B38;
  --text: #C8D0DA;
  --border: #3A4454;
  --white: #1C222D;
  --card: #2A3342;
  --muted: #8B95A5;
  --nav-height: 64px;
  --max-width: 1120px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: Inter, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #0F1419;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ——— Nav ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: invert(1);
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.logo:hover img {
  opacity: 0.85;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
}

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

.nav-toggle:hover span {
  background: var(--accent);
}

.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;
}

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

.nav-links {
  display: none;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

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

.nav-links.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #0F1419;
}

.btn-primary:hover {
  background: #6BB4D4;
  color: #0F1419;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-linkedin {
  background: #0A66C2;
  color: #FFFFFF;
  padding: 0.7rem 1.25rem;
  font-size: 0.95rem;
}

.btn-linkedin:hover {
  background: #1A7FD4;
  color: #FFFFFF;
}

/* ——— Sections ——— */
section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg);
}

h1, h2, h3 {
  color: var(--primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  max-width: 28ch;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

/* Ragged-right is the readable default; "pretty" just avoids the lonely
   one-word last lines that make the right edge look untidy. */
p {
  text-wrap: pretty;
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-slide,
  .hero-slides {
    transition: none;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 4.5rem;
  background:
    radial-gradient(ellipse 70% 80% at 75% 45%, rgba(74, 159, 196, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(74, 159, 196, 0.06) 0%, transparent 50%),
    var(--bg);
  min-height: calc(70vh - var(--nav-height));
  display: flex;
  align-items: center;
}

/* Base readability gradient — sits under the mesh */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(36, 43, 56, 0.92) 0%,
      rgba(36, 43, 56, 0.55) 42%,
      rgba(36, 43, 56, 0.12) 68%,
      rgba(36, 43, 56, 0) 100%
    );
}

/* Mesh above the veil so interaction is visible */
.hero-mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Anchor the hero copy to the same left edge as the rest of the page
   content, while keeping a comfortable reading measure. */
.hero-content > * {
  max-width: 40rem;
}

.hero-content h1,
.hero-content h2,
.hero-content .lead {
  text-shadow: 0 1px 18px rgba(28, 34, 45, 0.85), 0 0 40px rgba(28, 34, 45, 0.5);
}

/* Slides 2–4 use h2 (single h1 per page) but must match the first slide's look. */
.hero-slide h1,
.hero-slide h2 {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  max-width: 18ch;
}

.hero .lead {
  font-size: 1.15rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1.5rem;
}

.hero-link {
  font-weight: 500;
  color: var(--primary);
  padding: 0.5rem 0;
}

.hero-link:hover {
  color: var(--accent);
}

/* ——— Hero carousel ——— */
.hero-slides {
  position: relative;
  overflow: hidden;
  /* Height is driven by JS so the CTA hugs the active headline. */
  transition: height 0.4s ease;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-dots {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot:hover {
  transform: scale(1.25);
}

.hero-dot.is-active {
  background: var(--accent);
}

@media (max-width: 719px) {
  .hero-veil {
    background:
      linear-gradient(
        180deg,
        rgba(36, 43, 56, 0.75) 0%,
        rgba(36, 43, 56, 0.45) 55%,
        rgba(36, 43, 56, 0.25) 100%
      );
  }
}

/* ——— Problem grid ——— */
.problem-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(74, 159, 196, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
}

.icon-wrap svg {
  width: 24px;
  height: 24px;
}

.problem-item p {
  font-size: 0.95rem;
  color: var(--text);
}

.who-for {
  display: inline-block;
  margin-bottom: 2.5rem;
  padding: 0.65rem 1.1rem;
  background: var(--bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: var(--text);
}

.who-for strong {
  color: var(--primary);
}

/* ——— Services ——— */
.services-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.service-card .icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  margin-bottom: 0.85rem;
}

.service-card .icon-wrap svg {
  width: 20px;
  height: 20px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text);
}

/* ——— Timeline ——— */
.timeline {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.5rem;
  counter-reset: step;
}

.timeline-step {
  position: relative;
  padding-left: 3.5rem;
}

.timeline-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: #0F1419;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-step p {
  font-size: 0.95rem;
  color: var(--text);
}

.how-note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: var(--text);
}

/* ——— Results / social proof ——— */
.proof-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.proof-case,
.proof-quote {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  min-width: 0;
}

.proof-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  margin-bottom: 1rem;
}

.proof-math {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.proof-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.proof-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1.1;
  white-space: nowrap;
}

.proof-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
  text-align: right;
}

.proof-case > p {
  font-size: 0.95rem;
  color: var(--text);
}

.proof-quote {
  display: flex;
  flex-direction: column;
}

.proof-quote blockquote {
  margin: 0;
  flex: 1;
}

.proof-quote blockquote::before {
  content: "\201C";
  display: block;
  font-size: 2.4rem;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.proof-quote blockquote p {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--primary);
}

.proof-quote footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.proof-quote cite {
  font-style: normal;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
}

.proof-cta {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.proof-cta a {
  font-weight: 500;
}

/* Real client case study (vs. the illustrative example above) */
.proof-tag.filled {
  background: var(--accent);
  border-color: var(--accent);
  color: #0F1419;
}

.case-study h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.25rem 0 0.5rem;
}

.case-study p {
  max-width: 42rem;
  margin-bottom: 0.85rem;
}

.case-study p strong,
.case-study li strong {
  color: var(--primary);
}

.case-study ul {
  list-style: none;
  max-width: 42rem;
  margin: 0 0 0.25rem;
}

.case-study li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.4rem;
  font-size: 0.95rem;
  color: var(--text);
}

.case-study li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.case-result {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: var(--text);
  max-width: 42rem;
}

.case-result strong {
  color: var(--primary);
}

/* ——— About ——— */
.about-layout {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
  align-items: start;
}

.about-photo {
  max-width: 320px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  background: var(--card);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-text p {
  margin-bottom: 1.15rem;
}

.about-text .btn {
  margin-top: 0.5rem;
}

/* ——— Pricing ——— */
.pricing-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: var(--shadow);
  position: relative;
}

.price-badge {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0F1419;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.price-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.5rem 0 0.25rem;
  letter-spacing: -0.02em;
}

.price-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.price-card ul {
  list-style: none;
  margin-top: 1.25rem;
  flex: 1;
}

.price-card li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text);
  padding-left: 1.35rem;
  position: relative;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.pricing-bands {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}

.pricing-band {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.pricing-band h3 {
  margin-bottom: 0.65rem;
}

.pricing-band p {
  font-size: 0.95rem;
  color: var(--text);
}

.payment-note {
  margin-top: 1.75rem;
  font-size: 0.95rem;
  color: var(--text);
}

/* ——— Contact ——— */
.booking-cta {
  margin: 2rem 0 0;
}

.contact-form {
  margin-top: 2rem;
  max-width: 32rem;
  display: grid;
  gap: 1.15rem;
}

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

.form-field label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--primary);
}

.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--primary);
  width: 100%;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 159, 196, 0.25);
}

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

.form-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  margin-top: 1.25rem;
  max-width: 32rem;
  padding: 1rem 1.15rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.95rem;
  color: var(--text);
}

.form-status.is-visible {
  display: block;
}

.form-status a {
  font-weight: 500;
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  background: var(--white);
}

.footer-inner {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 30ch;
  margin-top: 0.25rem;
}

.footer-nav a,
.footer-contact a {
  color: var(--muted);
  font-size: 0.95rem;
  width: fit-content;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--accent);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--primary);
}

.footer-brand img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: invert(1);
}

.footer-meta {
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin: 0;
}

.footer-privacy {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ——— Breakpoints ——— */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }

  .nav-links a {
    padding: 0.5rem 0.85rem;
  }

  .problem-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

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

  .proof-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .proof-case {
    grid-column: 1 / -1;
  }

  .proof-math {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .proof-stat {
    display: block;
    text-align: center;
    padding: 0.9rem 0.75rem;
  }

  .proof-label {
    margin-top: 0.3rem;
    text-align: center;
  }

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

  .timeline-step {
    padding-left: 0;
    padding-top: 3.25rem;
  }

  .timeline-step::before {
    top: 0;
    left: 0;
  }

  .about-layout {
    grid-template-columns: 280px 1fr;
    gap: 3rem;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .price-card.featured {
    transform: scale(1.02);
  }

  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
  }
}

@media (min-width: 1280px) {
  section {
    padding: 5rem 0;
  }

  .hero {
    padding: 5rem 0 5.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-layout {
    grid-template-columns: 320px 1fr;
    gap: 4rem;
  }

  .pricing-bands {
    grid-template-columns: 1fr 1fr;
  }
}

/* ——— 404 ——— */
.notfound {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 75% 45%, rgba(74, 159, 196, 0.14) 0%, transparent 55%),
    var(--bg);
}

.notfound .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.notfound-code {
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}

.notfound h1 {
  max-width: none;
  margin-bottom: 0;
}

.notfound .lead {
  margin-bottom: 0.5rem;
}
