:root {
  --km-line: rgba(255, 255, 255, 0.13);
  --km-panel: rgba(23, 24, 27, 0.72);
  --km-soft: rgba(255, 255, 255, 0.06);
  --km-text: #f8fafc;
  --km-muted: #aeb4c1;
  --km-cyan: #54d2d0;
  --km-violet: #6366f1;
}

* {
  letter-spacing: 0;
}

html {
  scroll-padding-top: 92px;
}

body {
  font-family: "Ubuntu", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.km-logo {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #ffffff, #9ff6ef 45%, #6366f1);
  color: #050505;
  font-weight: 800;
}

.km-logo.small {
  width: 34px;
  height: 34px;
  font-size: 0.78rem;
}

.brand-copy {
  min-width: 142px;
}

.brand-copy small {
  white-space: nowrap;
}

.phone-link,
.lead-phone,
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #eef7f7;
  text-decoration: none;
}

.phone-link {
  min-height: 42px;
  border: 1px solid var(--km-line);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.phone-link:hover {
  border-color: rgba(84, 210, 208, 0.5);
  background: rgba(84, 210, 208, 0.08);
  color: #ffffff;
}

.lead-phone {
  width: fit-content;
  margin-top: 20px;
  border: 1px solid rgba(84, 210, 208, 0.35);
  border-radius: 999px;
  padding: 11px 15px;
  color: #ffffff;
  font-weight: 800;
  background: rgba(84, 210, 208, 0.08);
}

.lead-phone i {
  color: var(--km-cyan);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  color: #d8dee9;
  font-weight: 700;
}

.footer-links a:hover {
  color: #ffffff;
}

.km-kicker {
  margin-bottom: 18px;
  color: #bfe9e7;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.showcase-board {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(84, 210, 208, 0.08)),
    rgba(7, 8, 10, 0.96);
}

.board-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-right: 1px solid var(--km-line);
  background: rgba(255, 255, 255, 0.03);
}

.board-sidebar button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 12px;
  color: var(--km-muted);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.board-sidebar button:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--km-text);
  transform: translateX(2px);
}

.board-sidebar button.is-active {
  border-color: rgba(84, 210, 208, 0.32);
  background: rgba(84, 210, 208, 0.1);
  color: var(--km-text);
}

.board-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 22px;
  padding: clamp(18px, 3vw, 34px);
}

.board-top,
.metrics-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.board-top span {
  color: var(--km-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.board-top h2 {
  margin-top: 7px;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
}

.board-top a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  border-radius: 999px;
  background: white;
  padding: 12px 16px;
  color: #050505;
  font-weight: 700;
}

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

.metrics-strip div {
  min-width: 0;
  border: 1px solid var(--km-line);
  border-radius: 12px;
  background: var(--km-soft);
  padding: 16px;
}

.metrics-strip strong {
  display: block;
  font-size: 1.7rem;
}

.metrics-strip span {
  color: var(--km-muted);
  font-size: 0.9rem;
}

.mockup-grid {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mockup-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--km-line);
  border-radius: 16px;
  background: #111;
}

.mockup-card.large {
  grid-row: span 2;
}

.mockup-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 900ms ease;
}

.mockup-card:hover img {
  transform: scale(1.08);
}

.mockup-card figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  padding: 8px 12px;
  color: white;
  font-size: 0.84rem;
  backdrop-filter: blur(10px);
}

.logo-marquee {
  display: flex;
  width: max-content;
  animation: km-marquee 26s linear infinite;
}

.logo-marquee span {
  margin-inline: 8px;
  border: 1px solid var(--km-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 14px 22px;
  color: #e8edf3;
  font-weight: 700;
  white-space: nowrap;
}

.glass-card,
.package-card,
.lead-panel {
  border: 1px solid var(--km-line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.glass-card {
  min-height: 230px;
  padding: 26px;
  transition: transform 220ms ease, border-color 220ms ease;
}

.glass-card:hover,
.package-card:hover,
.reference-card:hover {
  border-color: rgba(84, 210, 208, 0.45);
  transform: translateY(-6px);
}

.glass-card i,
.package-icon {
  color: var(--km-cyan);
  font-size: 2rem;
}

.glass-card h3,
.package-card h3 {
  margin-top: 22px;
  font-size: 1.28rem;
  font-weight: 700;
}

.glass-card p,
.package-card p {
  margin-top: 12px;
  color: var(--km-muted);
  line-height: 1.65;
}

.package-card {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  padding: 26px;
  transition: transform 220ms ease, border-color 220ms ease;
}

.package-card > span {
  margin-top: 20px;
  color: var(--km-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.package-card ul {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  color: #d8dde6;
  list-style: none;
}

.package-card li {
  display: flex;
  gap: 8px;
}

.package-card li::before {
  content: "\F26A";
  color: var(--km-cyan);
  font-family: bootstrap-icons;
}

.package-card button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin-top: auto;
  border-radius: 12px;
  background: white;
  color: #050505;
  font-weight: 700;
}

.package-card.is-featured {
  border-color: rgba(84, 210, 208, 0.45);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.42), rgba(84, 210, 208, 0.2));
}

.process-section {
  background:
    radial-gradient(circle at 18% 10%, rgba(84, 210, 208, 0.14), transparent 28%),
    radial-gradient(circle at 82% 28%, rgba(99, 102, 241, 0.16), transparent 30%),
    #050505;
}

.process-grid {
  display: grid;
  width: min(1120px, calc(100vw - 32px));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.process-grid article {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--km-line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  padding: 26px;
}

.process-grid article::after {
  position: absolute;
  right: -34px;
  bottom: -46px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(84, 210, 208, 0.24);
  border-radius: 50%;
  content: "";
}

.process-grid span {
  color: var(--km-cyan);
  font-size: 0.85rem;
  font-weight: 800;
}

.process-grid h3 {
  margin-top: 28px;
  font-size: 1.35rem;
  font-weight: 700;
}

.process-grid p {
  margin-top: 14px;
  color: var(--km-muted);
  line-height: 1.7;
}

.reference-rail {
  display: grid;
  grid-auto-columns: minmax(320px, 430px);
  grid-auto-flow: column;
  gap: 18px;
  width: 100%;
  max-width: 1280px;
  margin-top: 48px;
  overflow-x: auto;
  padding: 0 24px 18px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.reference-rail::-webkit-scrollbar {
  display: none;
}

.reference-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid var(--km-line);
  border-radius: 16px;
  background: #101114;
  transition: transform 220ms ease, border-color 220ms ease;
}

.reference-card img {
  height: 265px;
  width: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 850ms ease;
}

.reference-card:hover img {
  transform: scale(1.07);
}

.reference-card span {
  margin: 22px 22px 0;
  color: var(--km-cyan);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.reference-card h3 {
  margin: 10px 22px 24px;
  font-size: 1.45rem;
  font-weight: 700;
}

.rail-btn {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--km-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  transition: transform 180ms ease, background 180ms ease;
}

.rail-btn:hover {
  background: white;
  color: #050505;
  transform: translateY(-2px);
}

.lead-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 70px);
  width: min(1120px, calc(100vw - 32px));
  padding: clamp(22px, 5vw, 54px);
}

.lead-copy h2 {
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  font-weight: 700;
  line-height: 0.98;
}

.lead-copy p {
  margin-top: 24px;
  color: var(--km-muted);
  line-height: 1.75;
}

.lead-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.lead-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--km-line);
  border-radius: 999px;
  padding: 10px 13px;
  color: #edf2f7;
  font-weight: 700;
}

.lead-badges i {
  color: var(--km-cyan);
}

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

.form-alert {
  grid-column: 1 / -1;
  border: 1px solid var(--km-line);
  border-radius: 14px;
  padding: 15px 18px;
  line-height: 1.55;
}

.form-alert--success {
  border-color: rgba(84, 210, 208, 0.42);
  background: rgba(84, 210, 208, 0.1);
  color: #dffdfb;
}

.form-alert--error {
  border-color: rgba(255, 108, 108, 0.42);
  background: rgba(255, 108, 108, 0.1);
  color: #ffe5e5;
}

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

.lead-form label {
  display: grid;
  gap: 8px;
  color: #e9edf4;
  font-weight: 700;
}

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

.lead-form .input {
  min-height: 52px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.lead-form textarea.input {
  min-height: 130px;
  resize: vertical;
}

.lead-form select option {
  background: #111;
  color: white;
}

.consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px !important;
  color: var(--km-muted) !important;
  font-weight: 500 !important;
}

.consent input {
  margin-top: 4px;
  accent-color: var(--km-cyan);
}

.form-submit {
  width: 100%;
  min-height: 54px;
  border-radius: 12px;
}

@keyframes km-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1024px) {
  .showcase-board {
    grid-template-columns: 1fr;
  }

  .board-sidebar {
    display: none;
  }

  .lead-panel {
    grid-template-columns: 1fr;
  }

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

  .phone-link {
    width: 100%;
    justify-content: center;
  }
}

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

  .board-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .metrics-strip,
  .mockup-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .mockup-card.large {
    grid-row: auto;
  }

  .reference-rail {
    grid-auto-columns: minmax(286px, 86vw);
  }

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

  .lead-copy h2 {
    font-size: 2.5rem;
  }

  .lead-phone {
    width: 100%;
    justify-content: center;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
