:root {
  --bg: #0b1220;
  --bg-soft: #111b2f;
  --surface: rgba(15, 26, 45, 0.78);
  --surface-strong: #121b2e;
  --surface-light: #f6f7fb;
  --text: #f6f8fc;
  --muted: #a9b4cb;
  --dark: #06101f;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #ff6b2d;
  --accent-soft: rgba(255, 107, 45, 0.18);
  --accent-2: #ffd16b;
  --success: #5be0a8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius: 28px;
  --radius-sm: 18px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  scroll-padding-top: 230px;
}

section,
.trusted-strip,
.footer,
#lead-form {
  scroll-margin-top: 230px;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: var(--text);
  overflow-x: clip;
  background:
    radial-gradient(circle at top left, rgba(255, 107, 45, 0.20), transparent 32%),
    radial-gradient(circle at 80% 10%, rgba(255, 209, 107, 0.12), transparent 25%),
    linear-gradient(180deg, #08111f 0%, #0c1628 56%, #08101c 100%);
}

body[data-theme='light'] {
  --bg: #eef3fb;
  --bg-soft: #ffffff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-light: #ffffff;
  --text: #0d1830;
  --muted: #465875;
  --dark: #e7edf8;
  --line: rgba(15, 23, 42, 0.10);
  --accent-soft: rgba(255, 107, 45, 0.12);
  --shadow: 0 24px 80px rgba(16, 24, 40, 0.08);
  background:
    radial-gradient(circle at top left, rgba(255, 107, 45, 0.12), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(255, 209, 107, 0.16), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, #f2f6fc 50%, #ebf1f9 100%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding-bottom: 120px;
}

.topbar {
  position: relative;
  top: auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(9, 17, 31, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.topbar > * {
  min-width: 0;
}

body[data-theme='light'] .topbar {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(18, 32, 61, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.brand-logo {
  display: block;
  width: clamp(88px, 7.2vw, 116px);
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

body[data-theme='light'] .brand {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.86));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero h1,
.section-heading h2,
.footer h2 {
  font-family: 'Space Grotesk', sans-serif;
}

.brand-copy small,
.section-heading p,
.lead,
.info-card p,
.case-card p,
.compare-side p,
.advantage-card p,
.package-card li,
.tool-result,
.testimonial-card p,
.faq-list p,
.footer p,
.signal-card p,
.trusted-strip p {
  color: var(--muted);
}

.brand-copy small {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  max-width: 150px;
}

.nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
  gap: clamp(7px, 0.75vw, 12px);
  min-width: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px;
  min-width: max-content;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

body[data-theme='light'] .theme-button,
body[data-theme='light'] .lang-button,
body[data-theme='light'] .topbar .button-ghost {
  background: rgba(255, 255, 255, 0.82);
}

.lang-button {
  min-width: 38px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.lang-button.is-active {
  background: var(--accent);
  color: #101010;
  border-color: transparent;
}

.nav a {
  font-size: clamp(0.78rem, 0.74vw, 0.88rem);
  font-weight: 700;
  color: #dce3f3;
  white-space: nowrap;
}

body[data-theme='light'] .nav a {
  color: #23324d;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

body[data-theme='light'] .menu-toggle span {
  background: #22314d;
}

.section {
  padding: 64px 0 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.88fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  min-height: auto;
  padding-top: clamp(36px, 5vw, 64px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
}

.hero h1 {
  margin: 0 0 20px;
  max-width: 680px;
  font-size: clamp(2.2rem, 4.45vw, 3.75rem);
  line-height: 1.08;
  text-wrap: balance;
}

.lead {
  max-width: 640px;
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.65;
}

.hero-actions,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff8d45);
  color: #101010;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:disabled,
button:disabled {
  cursor: wait;
  opacity: 0.64;
  transform: none;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 107, 45, 0.22);
}

.button-secondary {
  background: #edf1fa;
  color: #0d1525;
}

body[data-theme='light'] .button-secondary {
  background: #eff4fb;
  border: 1px solid rgba(16, 24, 40, 0.08);
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.hero-metrics article,
.signal-card,
.info-card,
.case-card,
.package-card,
.compare-card,
.advantage-card,
.portfolio-card,
.tool-card,
.testimonial-card,
.faq-list details,
.footer,
.trusted-strip,
.lead-form,
.niche-grid span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  min-width: 0;
}

.hero-copy,
.hero-panel,
.section-heading,
.audit-copy,
.tool-card,
.lead-form {
  min-width: 0;
}

.info-card p,
.case-card p,
.portfolio-card p,
.testimonial-card p,
.lead,
.section-heading p {
  overflow-wrap: anywhere;
}

.hero-metrics article {
  padding: 18px 16px;
}

.hero-metrics strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.signal-card {
  padding: 22px;
}

.signal-card span,
.compare-side span,
.package-label,
.portfolio-meta,
.testimonial-role {
  color: var(--accent-2);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.signal-card strong,
.compare-side strong,
.case-card h3,
.info-card h3,
.package-card h3,
.tool-card h2,
.testimonial-card h3 {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.3rem;
}

.signal-card-primary {
  background:
    linear-gradient(135deg, rgba(255, 107, 45, 0.22), rgba(255, 209, 107, 0.12)),
    var(--surface);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.signal-grid div {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

body[data-theme='light'] .signal-grid div {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 252, 0.88));
}

.signal-grid strong {
  display: block;
  margin-top: 8px;
}

.trusted-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 18px 24px;
}

.trusted-items {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #e7edf8;
  font-weight: 700;
}

body[data-theme='light'] .trusted-items {
  color: #536782;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading.left {
  margin-bottom: 18px;
}

.section-heading.split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading.split > * {
  min-width: 0;
}

.section-heading h2,
.footer h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.service-grid,
.case-grid,
.advantage-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.info-card,
.case-card,
.advantage-card,
.testimonial-card {
  padding: 24px;
}

.dark-panel {
  padding: 36px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top right, rgba(255, 107, 45, 0.14), transparent 28%),
    rgba(7, 14, 26, 0.96);
  border: 1px solid var(--line);
}

body[data-theme='light'] .dark-panel {
  background:
    radial-gradient(circle at top right, rgba(255, 107, 45, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.94));
  box-shadow: 0 28px 80px rgba(18, 32, 61, 0.08);
}

body[data-theme='light'] .dark-panel .eyebrow,
body[data-theme='light'] .dark-panel .package-label {
  color: var(--accent);
}

body[data-theme='light'] .dark-panel .package-card,
body[data-theme='light'] .tool-card,
body[data-theme='light'] .lead-form {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 252, 0.9)),
    var(--surface);
}

.package-grid,
.before-after-grid,
.portfolio-grid,
.dual-tools,
.niche-grid {
  display: grid;
  gap: 20px;
}

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

.package-card {
  padding: 28px;
}

.package-card ul {
  padding-left: 18px;
  line-height: 1.9;
}

.package-card strong {
  display: inline-block;
  margin-top: 20px;
  font-size: 1.2rem;
}

.package-card.featured {
  transform: translateY(-10px);
  background:
    linear-gradient(180deg, rgba(255, 107, 45, 0.18), rgba(255, 255, 255, 0.03)),
    var(--surface);
}

.case-image,
.portfolio-image {
  width: 100%;
  min-height: 160px;
  margin-bottom: 18px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 107, 45, 0.16), rgba(255, 209, 107, 0.12)),
    rgba(255, 255, 255, 0.06);
}

.case-image img,
.portfolio-image img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: block;
  object-fit: cover;
}

.portfolio-card {
  overflow: hidden;
}

body[data-theme='light'] .package-card.featured {
  background:
    linear-gradient(180deg, rgba(255, 107, 45, 0.14), rgba(255, 255, 255, 0.98)),
    var(--surface);
}

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

.case-card {
  position: relative;
  overflow: hidden;
}

.case-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 107, 45, 0.12);
  filter: blur(6px);
}

.case-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.case-stats span {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.before-after-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compare-card {
  overflow: hidden;
}

.compare-side {
  padding: 24px;
}

.compare-side + .compare-side {
  border-top: 1px solid var(--line);
}

.compare-side.accent {
  background: linear-gradient(180deg, rgba(255, 107, 45, 0.14), transparent);
}

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

.portfolio-section .section-heading {
  align-items: center;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.filter-button.is-active {
  background: var(--accent);
  color: #111;
  border-color: transparent;
}

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

.portfolio-card {
  padding: 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent),
    var(--surface);
}

.portfolio-card h3 {
  margin: 12px 0 8px;
}

.audit-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 26px;
  align-items: start;
}

.check-list {
  margin: 24px 0 0;
  padding-left: 18px;
  line-height: 1.9;
}

.lead-form,
.tool-card {
  padding: 28px;
}

.lead-form {
  display: grid;
  gap: 14px;
}

.lead-form label,
.tool-form label {
  display: grid;
  gap: 8px;
  color: #edf1fa;
}

body[data-theme='light'] .lead-form label,
body[data-theme='light'] .tool-form label {
  color: #22314d;
}

.lead-form input,
.lead-form select,
.lead-form textarea,
.tool-form select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

body[data-theme='light'] .lead-form input,
body[data-theme='light'] .lead-form select,
body[data-theme='light'] .lead-form textarea,
body[data-theme='light'] .tool-form select {
  border-color: rgba(15, 23, 42, 0.10);
  background: rgba(244, 247, 252, 0.9);
}

.lead-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 0;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: #ff8a8a;
}

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

.tool-form {
  display: grid;
  gap: 16px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.option-grid label {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

body[data-theme='light'] .option-grid label {
  background: rgba(245, 248, 253, 0.9);
}

.tool-result {
  margin: 0;
  line-height: 1.7;
}

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

.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
}

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

.niche-grid span {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 18px;
  text-align: center;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-list details {
  padding: 22px 24px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 88px;
  padding: 32px;
}

.sticky-cta {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 18;
  flex-direction: column;
  gap: 10px;
}

.sticky-cta a {
  display: inline-flex;
  justify-content: center;
  min-width: 170px;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(8, 15, 28, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

body[data-theme='light'] .sticky-cta a {
  background: rgba(255, 255, 255, 0.94);
  color: #0d1830;
}

body[data-theme='light'] .sticky-cta a:first-child {
  background: linear-gradient(135deg, var(--accent), #ff8d45);
  color: #101010;
  border-color: transparent;
}

@media (max-width: 1500px) {
  .brand-copy {
    display: none;
  }

  .desktop-cta-secondary {
    display: none;
  }

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

@media (max-width: 1280px) {
  .site-shell {
    width: min(calc(100% - 28px), var(--container));
  }
}

@media (max-width: 1180px) {
  .desktop-cta-primary {
    display: none;
  }

  .topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .nav {
    order: 3;
    flex: 1 0 100%;
    justify-content: center;
    padding-top: 2px;
    flex-wrap: wrap;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  }
}

@media (max-width: 1100px) {
  .hero,
  .audit-layout,
  .dual-tools,
  .package-grid,
  .case-grid,
  .before-after-grid,
  .portfolio-grid,
  .testimonial-grid,
  .service-grid,
  .advantage-grid,
  .niche-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  .section-heading.split,
  .footer {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 780px) {
  html {
    scroll-padding-top: 130px;
  }

  section,
  .trusted-strip,
  .footer,
  #lead-form {
    scroll-margin-top: 130px;
  }

  .site-shell {
    width: min(calc(100% - 20px), var(--container));
  }

  .topbar {
    display: grid;
    position: sticky;
    top: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
  }

  .brand {
    max-width: 100%;
    padding-right: 8px;
  }

  .brand-logo {
    width: min(48vw, 170px);
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin-left: auto;
  }

  .menu-toggle[aria-expanded='true'] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded='true'] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: start;
    padding-top: 10px;
  }

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

  .nav a {
    width: 100%;
    padding: 10px 0;
  }

  .desktop-cta {
    display: none;
  }

  .topbar-actions {
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .lang-switcher {
    justify-content: center;
  }

  .hero,
  .hero-metrics,
  .signal-grid,
  .service-grid,
  .package-grid,
  .case-grid,
  .before-after-grid,
  .advantage-grid,
  .portfolio-grid,
  .dual-tools,
  .testimonial-grid,
  .niche-grid,
  .option-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

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

  .hero-actions,
  .footer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dark-panel {
    padding: 26px 18px;
  }

  .footer {
    padding: 24px 18px 100px;
  }

  .sticky-cta {
    display: flex;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .sticky-cta a {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(2.15rem, 14vw, 3.4rem);
  }

  .section {
    padding-top: 48px;
  }

  .trusted-strip,
  .hero-metrics article,
  .signal-card,
  .info-card,
  .case-card,
  .package-card,
  .compare-side,
  .advantage-card,
  .portfolio-card,
  .tool-card,
  .testimonial-card,
  .faq-list details,
  .footer,
  .lead-form {
    border-radius: 20px;
  }
}
