/**
 * KODELTA visual redesign v1.1
 */

:root {
  --header: 80px;
  --section-y: clamp(4rem, 7vw, 9.5rem);
  --shadow-lg: 0 28px 80px rgba(13, 27, 61, 0.14);
  --shadow-soft: 0 12px 40px rgba(13, 27, 61, 0.08);
}

body.has-dark-hero { --header: 84px; }

h1 { font-size: clamp(2.25rem, 4.8vw, 4.75rem); }
h2 { font-size: clamp(1.875rem, 2.8vw, 3.25rem); }
h3 { font-size: clamp(1.125rem, 1.4vw, 1.5rem); }

.lead { font-size: clamp(1.0625rem, 1.1vw, 1.25rem); line-height: 1.58; max-width: 40rem; }
.section { padding: var(--section-y) 0; }
.section-head__lead { max-width: 38rem; }

.btn--lg { min-height: 52px; padding: 0.85rem 1.6rem; font-size: 1rem; }

/* ── Hero ── */
.hero {
  min-height: min(820px, 100svh);
  padding: calc(var(--header) + 2.5rem) 0 clamp(3rem, 6vw, 5rem);
  align-items: stretch;
}

.hero__grid {
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 56% 44%;
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }
}

.hero__content { max-width: 640px; }

.hero__kicker {
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 0.08em;
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero__title-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__text {
  max-width: 640px;
  margin: 0 0 2rem;
  font-size: clamp(1.0625rem, 1.15vw, 1.25rem);
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.82);
}

.hero__actions { gap: 1rem; margin-bottom: 1.75rem; }

.hero__trust {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 201, 230, 0.22);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}

.hero__visual { position: relative; min-height: 340px; }

@media (min-width: 1024px) {
  .hero__visual { min-height: 480px; }
}

/* Product showcase */
.showcase {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  aspect-ratio: 1 / 0.92;
}

.showcase__routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.showcase__route {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: routeDraw 1.2s var(--ease) forwards;
}

.showcase__route--b { animation-delay: 0.15s; }
.showcase__route--c { animation-delay: 0.3s; }

@keyframes routeDraw {
  to { stroke-dashoffset: 0; }
}

.showcase__screen,
.showcase__chip {
  position: absolute;
  border: 1px solid rgba(0, 201, 230, 0.28);
  background: rgba(8, 18, 41, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  animation: layerIn 0.7s var(--ease) both;
}

.showcase__screen--main {
  top: 4%;
  left: 2%;
  width: 72%;
  padding: 0.65rem;
  z-index: 3;
  animation-delay: 0.1s;
}

.showcase__screen--crm {
  top: 28%;
  right: 0;
  width: 48%;
  padding: 0.5rem;
  z-index: 2;
  animation-delay: 0.25s;
}

.showcase__chip {
  padding: 0.65rem 0.85rem;
  font-size: 0.75rem;
  z-index: 4;
}

.showcase__chip strong {
  display: block;
  color: var(--white);
  font-size: 0.8125rem;
  margin-bottom: 0.15rem;
}

.showcase__chip span { color: rgba(255, 255, 255, 0.62); }

.showcase__chip--lead { bottom: 28%; left: 4%; animation-delay: 0.4s; border-color: rgba(0, 201, 230, 0.5); }
.showcase__chip--bot { bottom: 8%; left: 18%; animation-delay: 0.5s; }
.showcase__chip--metric {
  bottom: 14%;
  right: 6%;
  animation-delay: 0.55s;
  background: linear-gradient(135deg, rgba(16, 61, 145, 0.85), rgba(0, 201, 230, 0.35));
}

.showcase__label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

@keyframes layerIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* UI mocks */
.ui-mock { border-radius: 6px; overflow: hidden; background: #0f1a33; }
.ui-mock__bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ui-mock__bar span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.ui-mock__bar span:first-child { background: #ff6b6b; }
.ui-mock__bar span:nth-child(2) { background: #ffd166; }
.ui-mock__bar span:nth-child(3) { background: #06d6a0; }
.ui-mock__nav {
  flex: 1;
  height: 6px;
  margin-left: 0.5rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}
.ui-mock__hero { padding: 0.85rem 0.75rem 0.65rem; }
.ui-mock__line {
  height: 8px;
  margin-bottom: 0.45rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  width: 72%;
}
.ui-mock__line--lg { height: 14px; width: 88%; margin-bottom: 0.65rem; }
.ui-mock__line--sm { height: 6px; width: 60%; }
.ui-mock__cta {
  width: 38%;
  height: 22px;
  margin-top: 0.5rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.ui-mock__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  padding: 0 0.75rem 0.75rem;
}
.ui-mock__grid div {
  aspect-ratio: 1.2;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 201, 230, 0.12);
}
.ui-mock--crm { display: grid; grid-template-columns: 28% 1fr; min-height: 120px; }
.ui-mock__sidebar { background: rgba(0, 201, 230, 0.08); border-right: 1px solid rgba(255, 255, 255, 0.06); }
.ui-mock__main { padding: 0.55rem; display: grid; gap: 0.4rem; }
.ui-mock__row { display: flex; align-items: center; gap: 0.45rem; }
.ui-mock__badge {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan); flex-shrink: 0;
}
.ui-mock__badge--2 { background: var(--turquoise); opacity: 0.7; }
.ui-mock__badge--3 { background: var(--blue); opacity: 0.8; }

/* ── Service grid ── */
.service-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.35rem;
  }
  .service-card { grid-column: span 2; }
  .service-card--accent:nth-child(1) { grid-column: span 3; }
  .service-card--accent:nth-child(2) { grid-column: span 3; }
  .service-card:nth-child(3),
  .service-card:nth-child(4),
  .service-card:nth-child(5) { grid-column: span 2; }
}

.service-card {
  display: grid;
  grid-template-rows: auto 1fr;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 280ms var(--ease), box-shadow 280ms, border-color 280ms;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 201, 230, 0.45);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.service-card--accent {
  border-top: 3px solid var(--cyan);
  background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
}

.service-card__num {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.06em;
}

.service-card__visual {
  position: relative;
  aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, #0d1b3d 0%, #103d91 55%, rgba(0, 201, 230, 0.25) 100%);
  overflow: hidden;
}

.service-card__preview {
  position: absolute;
  inset: 18% 12% 12%;
  border-radius: 6px;
  border: 1px solid rgba(0, 201, 230, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.service-card__preview--site::before,
.service-card__preview--crm::before,
.service-card__preview--code::before,
.service-card__preview--nodes::before,
.service-card__preview--bot::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
}

.service-card__body {
  position: relative;
  padding: 1.35rem 1.35rem 1.5rem;
}

.service-card__body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.service-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue);
}

/* ── Flow / system ── */
.section--system { overflow: hidden; }

.flow {
  position: relative;
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .flow {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    padding-top: 1rem;
  }
  .flow__track {
    position: absolute;
    top: 2.1rem;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    opacity: 0.35;
  }
}

.flow__node {
  position: relative;
  padding: 1.1rem 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 201, 230, 0.18);
  transition: border-color 300ms, background 300ms;
}

.flow__node.is-active,
.flow__node:hover {
  border-color: rgba(0, 201, 230, 0.55);
  background: rgba(0, 201, 230, 0.08);
}

.flow__dot {
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 201, 230, 0.18);
}

.flow__step {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 0.35rem;
}

.flow__body strong { display: block; margin-bottom: 0.35rem; font-size: 1rem; }
.flow__body p { margin: 0; font-size: 0.875rem; color: rgba(255, 255, 255, 0.68); line-height: 1.5; }

/* ── Cases ── */
.section--cases { background: linear-gradient(180deg, #fff 0%, var(--surface) 100%); }

.cases-grid {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 960px) {
  .cases-grid {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: auto auto;
  }
  .case-card--featured {
    grid-row: span 2;
  }
}

.case-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 280ms var(--ease), box-shadow 280ms;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.case-card--featured .case-card__media { aspect-ratio: 16 / 11; }

.case-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy);
}

.case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card__mock {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0d1b3d, #103d91 50%, rgba(0, 201, 230, 0.35));
}

.case-card__mock-ui {
  width: 72%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 201, 230, 0.3);
  background: rgba(8, 18, 41, 0.85);
}

.case-card__mock-bar { height: 14px; background: rgba(255, 255, 255, 0.06); }
.case-card__mock-content {
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
}
.case-card__mock-content span {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}
.case-card__mock-content span:first-child { width: 80%; height: 12px; }
.case-card__mock-content span:nth-child(2) { width: 55%; }
.case-card__mock-content span:nth-child(3) { width: 65%; }

.case-card__body { padding: 1.25rem 1.35rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.case-card__meta { margin: 0 0 0.5rem; font-size: 0.8125rem; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: 0.04em; }
.case-card__body h3 { margin-bottom: 0.45rem; font-size: 1.25rem; }
.case-card--featured .case-card__body h3 { font-size: 1.5rem; }
.case-card__task { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }

.case-card__result {
  margin: auto 0 0;
  padding: 0.85rem 0 0;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--navy);
  line-height: 1.5;
}

.case-card__result span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.25rem;
}

.case-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue);
}

/* ── Results ── */
.results-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 768px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .results-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .result-card:nth-child(1),
  .result-card:nth-child(2) { grid-column: span 3; }
  .result-card:nth-child(n+3) { grid-column: span 2; }
}

.result-card {
  padding: 1.5rem 1.35rem;
  background: var(--white);
  border-left: 3px solid var(--cyan);
  box-shadow: var(--shadow-soft);
}

.result-card__num {
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 0.65rem;
}

.result-card h3 { margin-bottom: 0.45rem; font-size: 1.125rem; }
.result-card p { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }

/* ── Process path ── */
.process-path {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .process-path { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .process-path { grid-template-columns: repeat(3, 1fr); }
}

.process-card {
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.process-card__num {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.process-card h3 { margin-bottom: 0.85rem; }

.process-card__meta {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.process-card__meta dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.process-card__meta dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--graphite);
  line-height: 1.45;
}

.tech-note {
  margin: 2rem 0 0;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border-left: 3px solid var(--blue);
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ── FAQ ── */
.container--faq { max-width: 860px; }

.faq { display: grid; gap: 0.65rem; }

.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 200ms;
}

.faq__item.is-open {
  border-color: rgba(0, 201, 230, 0.45);
  box-shadow: var(--shadow-soft);
}

.faq__question { margin: 0; font-size: inherit; font-weight: inherit; }

.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.faq__trigger .icon {
  flex-shrink: 0;
  transition: transform 250ms var(--ease);
  color: var(--cyan);
}

.faq__item.is-open .faq__trigger .icon { transform: rotate(180deg); }

.faq__panel {
  padding: 0 1.25rem 1.15rem;
  color: var(--muted);
  line-height: 1.6;
}

.faq__panel p { margin: 0; }

.faq__panel[hidden] { display: none; }

/* ── Final CTA ── */
.cta-final {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .cta-final { grid-template-columns: 0.95fr 1.05fr; gap: 3rem; }
}

.cta-final__steps {
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.cta-final__steps li {
  position: relative;
  padding-left: 1.35rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
}

.cta-final__steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.cta-final__form {
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  color: var(--graphite);
  box-shadow: var(--shadow-lg);
}

.cta-final__form .lead-form__intro {
  color: var(--muted);
  opacity: 1;
}

.cta-final__form .field label { color: var(--navy); font-size: 0.9375rem; }

.cta-final__form .field input,
.cta-final__form .field select,
.cta-final__form .field textarea {
  min-height: 52px;
  padding: 0.85rem 1rem;
  border-color: #dde5ef;
  background: #f8fafc;
}

.cta-final__form .field textarea { min-height: 132px; }

.cta-final__form .field input:focus,
.cta-final__form .field select:focus,
.cta-final__form .field textarea:focus {
  border-color: var(--cyan);
  background: var(--white);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 201, 230, 0.2);
}

.cta-final__form .btn--primary {
  width: 100%;
  min-height: 52px;
  font-size: 1rem;
}

/* ── Header tweaks ── */
.site-logo img {
  width: clamp(130px, 12vw, 168px);
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

.menu a { font-size: 0.9375rem; }

.site-header.is-scrolled { height: 72px; }
.site-header.is-scrolled .site-header__inner { height: 72px; }

@media (min-width: 900px) {
  .site-nav__panel { display: block !important; }
  .site-nav__panel[hidden] { display: block !important; }
}

/* Reveal (content visible without JS) */
[data-reveal] {
  opacity: 1;
  transform: none;
}

.js-ready [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Mobile hero */
@media (max-width: 1023px) {
  .hero__visual { order: 3; max-width: 420px; }
  .showcase__screen--crm { display: none; }
  .showcase__chip--bot { display: none; }
}

@media (max-width: 899px) {
  .hero__title { font-size: clamp(2.125rem, 9vw, 2.75rem); }
  .service-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .case-card--featured { grid-row: auto; }
}

.cases-grid--archive {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.cases-grid--archive .case-card--featured {
  grid-row: auto;
}

@media (prefers-reduced-motion: reduce) {
  .showcase__route,
  .showcase__screen,
  .showcase__chip { animation: none !important; stroke-dashoffset: 0 !important; }
  .js-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* v1.1.1 corrections: soften geometry + improve readability */
:root {
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --border-soft: rgba(16, 61, 145, 0.12);
  --shadow-card: 0 12px 32px rgba(13, 27, 61, 0.08);
  --shadow-card-hover: 0 18px 48px rgba(13, 27, 61, 0.14);

  --ease-out-smooth: cubic-bezier(.22, 1, .36, 1);

  --text-display: clamp(46px, 4.2vw, 64px);
  --text-h1: clamp(40px, 3.6vw, 56px);
  --text-h2: clamp(32px, 2.8vw, 42px);
  --text-h3: clamp(21px, 1.8vw, 27px);
  --text-lead: clamp(18px, 1.4vw, 20px);
  --text-body: clamp(16px, 1.15vw, 18px);
}

h1 { font-size: var(--text-h1); line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: var(--text-h2); line-height: 1.12; }
h3 { font-size: var(--text-h3); line-height: 1.25; }
.lead { font-size: var(--text-lead); line-height: 1.55; }

/* Hero typography */
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
    gap: clamp(40px, 6vw, 88px);
  }
}

.hero__content { max-width: 720px; }

.hero__kicker {
  margin-bottom: 0.95rem; /* 14–18px */
}

.hero__title {
  max-width: 720px;
  font-size: var(--text-display);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
  gap: 0.02em;
  margin: 0 0 1.6rem;
}

.hero__title span { display: block; }

.hero__title-accent {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  color: var(--cyan) !important;
  -webkit-text-fill-color: var(--cyan) !important;
}

.hero__text { margin-bottom: 1.95rem; }

@media (max-width: 1023px) {
  .hero__title {
    max-width: 680px;
    font-size: clamp(42px, 7vw, 56px);
  }
}

@media (max-width: 767px) {
  .hero__title {
    max-width: none;
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.025em;
  }
}

/* Soft radii for key cards */
.service-card,
.case-card,
.process-card,
.result-card,
.faq__item,
.accordion__item {
  border-radius: var(--radius-md);
}

.service-card {
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    transform 220ms var(--ease-out-smooth),
    box-shadow 220ms var(--ease-out-smooth),
    border-color 220ms var(--ease-out-smooth);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.service-card--accent {
  border-top: 0 !important;
  position: relative;
}
.service-card--accent::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 22px;
  width: 72px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--cyan), var(--turquoise));
  pointer-events: none;
}

.service-card__visual {
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

.service-card__preview {
  border-radius: var(--radius-sm);
}

.case-card {
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  transition:
    transform 220ms var(--ease-out-smooth),
    box-shadow 220ms var(--ease-out-smooth),
    border-color 220ms var(--ease-out-smooth);
}
.case-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.case-card--featured {
  border-radius: 24px;
}

.case-card__media {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.case-card__mock-ui {
  border-radius: 10px;
}

.process-card {
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.process-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 201, 230, 0.25);
  background: rgba(0, 201, 230, 0.08);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 0.85rem;
}

.faq__item {
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Checkbox consent (size + alignment + errors) */
.lead-form {
  border: 1px solid rgba(16, 61, 145, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 64px rgba(1, 18, 48, 0.18);
  padding: 1.75rem;
}

.lead-form--estimate {
  /* estimate page is usually inside dark sections */
  background: rgba(255, 255, 255, 0.97);
}

.cta-final__form {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.cta-final__form .lead-form {
  padding: 1.75rem !important;
}

.lead-form .field label {
  font-size: 0.94rem;
  color: var(--navy);
}

.lead-form .field input,
.lead-form .field select,
.lead-form .field textarea {
  background: #f8fafc !important;
  border-color: rgba(16, 61, 145, 0.12) !important;
  border-radius: 12px !important;
}

.lead-form .field textarea {
  min-height: 132px;
}

.lead-form .btn {
  border-radius: 11px !important;
  min-height: 50px;
}

.form-consent {
  display: grid;
  gap: 8px;
}

.form-consent__label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  cursor: pointer;
  position: relative;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.form-consent__input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-consent__control {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid rgba(16, 61, 145, 0.42);
  border-radius: 6px;
  background: #fff;
  transition: 160ms ease;
}

.form-consent__input:checked + .form-consent__control {
  border-color: var(--cyan);
  background: var(--cyan);
}

.form-consent__input:checked + .form-consent__control::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: translateY(-1px) rotate(-45deg);
}

.form-consent__input:focus-visible + .form-consent__control {
  outline: 3px solid rgba(0, 201, 230, 0.28);
  outline-offset: 3px;
}

.form-consent__text a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.form-consent__error {
  font-size: 13px;
  color: #ff6b6b;
}

.form-consent.is-error .form-consent__control {
  border-color: #ff6b6b;
  background: #fff1f1;
}

/* Flowchart: smooth SVG paths + rounded nodes */
.flow__track { display: none; }
.flow { position: relative; }

.flow__svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.flow__svg--mobile { display: none; }

.flow__svg--desktop .flow__path {
  stroke: url(#flowGradient);
}

.flow__svg--mobile .flow__path {
  stroke: rgba(0, 201, 230, 0.65);
}

.flow__path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.62;
  transition: opacity 200ms var(--ease-out-smooth), filter 200ms var(--ease-out-smooth);
}

.flow__path.is-active {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(0, 201, 230, 0.35));
}

.flow__node {
  z-index: 1;
  border-radius: 16px;
  padding: 1rem 0.95rem 1.1rem;
}

.flow__dot {
  width: 10px;
  height: 10px;
  margin-bottom: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 201, 230, 0.42);
  box-shadow: 0 0 0 4px rgba(0, 201, 230, 0.12);
}

.flow__node.is-active .flow__dot {
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(0, 201, 230, 0.22);
}

@media (max-width: 899px) {
  .flow__svg--desktop { display: none; }
  .flow__svg--mobile { display: block; }
}

