* {
  box-sizing: border-box;
}

:root {
  --bg: #071426;
  --bg-strong: #030914;
  --panel: #0f223b;
  --panel-soft: #132a47;
  --text: #f8fbff;
  --muted: #a9b8cc;
  --soft: rgba(255, 255, 255, .06);
  --line: rgba(92, 200, 255, .22);
  --blue: #5cc8ff;
  --cyan: #22d3ee;
  --green: #34d399;
  --amber: #f59e0b;
  --shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 0%, rgba(34, 211, 238, .18), transparent 34%),
    radial-gradient(circle at 10% 8%, rgba(52, 211, 153, .11), transparent 26%),
    linear-gradient(180deg, #08182b 0%, var(--bg) 45%, var(--bg-strong) 100%);
  min-width: 320px;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent 72%);
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  margin: 0 auto;
  padding: 12px max(24px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 20, 38, .96);
  border-bottom: 1px solid rgba(92, 200, 255, .12);
}

.brand {
  font-weight: 900;
  letter-spacing: 0;
}

.nav nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav nav a {
  transition: color .2s ease, transform .2s ease;
}

.nav nav a:hover {
  color: var(--blue);
  transform: translateY(-2px);
}

.hero {
  width: min(1180px, calc(100% - 48px));
  margin: 54px auto 56px;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr);
  gap: 48px;
  align-items: center;
}

.badge,
.eyebrow,
.section-heading span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #c8f4ff;
  background: rgba(92, 200, 255, .1);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 26px 0 22px;
  font-size: clamp(44px, 5.4vw, 70px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 18px 0;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero p,
.section-heading p,
.about p,
.contact p,
.lead {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .24);
}

.btn.primary {
  color: #04111f;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-color: transparent;
}

.btn.secondary {
  background: rgba(255, 255, 255, .05);
}

.btn.secondary:hover {
  border-color: var(--line);
  background: rgba(92, 200, 255, .08);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.trust-strip span,
.tech-list span {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  color: #d9e8f8;
  background: rgba(255, 255, 255, .045);
  font-size: 14px;
  font-weight: 800;
}

.hero-card,
.service-grid article,
.case-card,
.proof-item,
.steps div,
.contact {
  background: linear-gradient(180deg, rgba(19, 42, 71, .94), rgba(8, 24, 43, .94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 16px;
  border-radius: 24px;
  transition: transform .25s ease, border-color .25s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 200, 255, .48);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.card-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  opacity: .75;
}

.card-top p {
  margin: 0 0 0 auto;
  font-size: 13px;
}

.project-preview img {
  display: block;
  width: 100%;
  height: clamp(280px, 34vw, 420px);
  margin-top: 14px;
  object-fit: cover;
  object-position: left top;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  box-shadow: 0 22px 46px rgba(0, 0, 0, .28);
}

.demo-label {
  display: inline-flex;
  margin-top: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(92, 200, 255, .28);
  border-radius: 999px;
  color: #c8f4ff;
  background: rgba(92, 200, 255, .1);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.demo-label + img {
  margin-top: 10px;
}

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

.kpi-row {
  margin: 24px 0 14px;
}

.kpi-row div,
.mini-grid div {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .055);
}

small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.kpi-row strong {
  font-size: clamp(24px, 3vw, 34px);
}

.chart-panel {
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  background: rgba(255, 255, 255, .04);
}

.chart-bars {
  height: 180px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.chart-bars span {
  flex: 1;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, var(--blue), #2563eb);
  animation: growBars .9s ease both;
}

.chart-bars span:nth-child(1) { height: 34%; opacity: .5; }
.chart-bars span:nth-child(2) { height: 62%; opacity: .68; }
.chart-bars span:nth-child(3) { height: 48%; opacity: .58; }
.chart-bars span:nth-child(4) { height: 82%; }
.chart-bars span:nth-child(5) { height: 72%; opacity: .82; }
.chart-bars span:nth-child(6) { height: 90%; background: linear-gradient(180deg, var(--green), var(--cyan)); }

.chart-legend {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mini-grid {
  margin-top: 14px;
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 86px 0;
  border-top: 1px solid rgba(92, 200, 255, .15);
  scroll-margin-top: 72px;
}

.proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 72px;
  border-top: 0;
}

.proof-item {
  padding: 22px;
  border-radius: 18px;
  box-shadow: none;
}

.proof-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 34px;
}

.proof-item span {
  color: var(--muted);
  line-height: 1.5;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-heading span {
  margin-inline: auto;
}

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

.service-grid article {
  min-width: 0;
  padding: 24px;
  border-radius: 20px;
  box-shadow: none;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.service-grid article:hover,
.case-card:hover {
  transform: translateY(-5px);
  border-color: rgba(92, 200, 255, .46);
  background: linear-gradient(180deg, rgba(23, 51, 86, .98), rgba(9, 28, 50, .98));
}

.icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: #04111f;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 16px;
  font-size: 12px;
  font-weight: 900;
}

.service-grid p,
.case-card p,
.steps p,
.case-card li {
  color: var(--muted);
  line-height: 1.6;
}

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

.case-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.screenshot-slot {
  position: relative;
  display: block;
  width: 100%;
  min-height: 230px;
  padding: 22px;
  cursor: zoom-in;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  border-top: 0;
  border-right: 0;
  border-left: 0;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(92, 200, 255, .24), rgba(52, 211, 153, .1)),
    #0b1728;
  overflow: hidden;
}

.screenshot-slot img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: left top;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, .34);
  transition: transform .28s ease, filter .28s ease, box-shadow .28s ease;
}

.case-card:hover .screenshot-slot img,
.screenshot-slot:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
  box-shadow: 0 28px 58px rgba(0, 0, 0, .44);
}

.screenshot-slot:focus-visible {
  outline: 3px solid rgba(92, 200, 255, .65);
  outline-offset: -6px;
}

.zoom-hint {
  position: absolute;
  left: 50%;
  bottom: 36px;
  z-index: 2;
  transform: translate(-50%, 8px);
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: var(--text);
  background: rgba(3, 9, 20, .78);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  white-space: nowrap;
}

.screenshot-slot:hover .zoom-hint,
.screenshot-slot:focus-visible .zoom-hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

.screenshot-slot.marketing {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, .22), rgba(92, 200, 255, .12)),
    #121726;
}

.screenshot-slot.automation {
  background:
    linear-gradient(135deg, rgba(52, 211, 153, .22), rgba(34, 211, 238, .12)),
    #081b24;
}

.case-content {
  padding: 24px;
}

.tag {
  margin-top: 0;
  color: var(--blue) !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-details {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.case-details div {
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}

.case-details dt {
  margin-bottom: 5px;
  color: #dffcf0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-details dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.split,
.about {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 14px;
}

.steps div {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px;
  border-radius: 18px;
  box-shadow: none;
}

.steps strong {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 18px;
}

.steps p {
  margin: 0;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.about p {
  margin-top: 8px;
}

.about-copy {
  align-self: center;
}

.profile-card {
  position: relative;
  justify-self: center;
  width: min(75%, 390px);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(19, 42, 71, .94), rgba(8, 24, 43, .94));
  box-shadow: var(--shadow);
}

.profile-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}

.profile-card figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(3, 9, 20, .76);
  backdrop-filter: blur(14px);
}

.profile-card strong,
.profile-card span {
  display: block;
}

.profile-card strong {
  font-size: 18px;
}

.profile-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.contact {
  width: min(1180px, calc(100% - 48px));
  margin: 68px auto;
  padding: clamp(48px, 7vw, 78px) 28px;
  text-align: center;
  border-radius: 28px;
}

.contact .eyebrow {
  margin-inline: auto;
}

.buttons.center {
  justify-content: center;
}

footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 56px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

footer p {
  margin: 0;
}

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

.footer-links a {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  color: #d9e8f8;
  background: rgba(255, 255, 255, .045);
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.footer-links a:hover {
  transform: translateY(-2px);
  border-color: var(--line);
  background: rgba(92, 200, 255, .08);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(1, 6, 14, .82);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-panel {
  width: min(1120px, 100%);
  max-height: min(86vh, 820px);
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(92, 200, 255, .28);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(19, 42, 71, .98), rgba(8, 24, 43, .98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
}

.lightbox-panel img {
  display: block;
  width: 100%;
  max-height: calc(86vh - 90px);
  object-fit: contain;
  border-radius: 14px;
  background: #030914;
}

.lightbox-panel figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 101;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: var(--text);
  background: rgba(3, 9, 20, .86);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  transition: transform .2s ease, background .2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  transform: translateY(-2px);
  background: rgba(92, 200, 255, .16);
}

@keyframes growBars {
  from {
    transform: scaleY(.3);
    transform-origin: bottom;
  }
  to {
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1040px) {
  .hero,
  .split,
  .about {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-card {
    transform: none;
  }

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

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    gap: 14px;
    padding: 12px 16px;
  }

  .nav nav {
    display: none;
  }

  .hero,
  .section,
  .contact,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .hero {
    margin-top: 30px;
    gap: 34px;
  }

  h1 {
    font-size: clamp(38px, 13vw, 54px);
  }

  .buttons,
  .buttons.center {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .proof,
  .service-grid,
  .case-grid,
  .kpi-row,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .proof {
    padding-top: 16px;
    padding-bottom: 54px;
  }

  .hero-card,
  .service-grid article,
  .case-card,
  .contact {
    border-radius: 20px;
  }

  .hero-card {
    padding: 18px;
  }

  .project-preview img {
    height: 250px;
  }

  .chart-bars {
    height: 150px;
    gap: 10px;
  }

  .screenshot-slot {
    min-height: 210px;
    padding: 16px;
  }

  .screenshot-slot img {
    height: 190px;
  }

  .zoom-hint {
    opacity: 1;
    transform: translate(-50%, 0);
    bottom: 28px;
  }

  .steps div {
    gap: 14px;
  }

  .profile-card {
    width: min(100%, 360px);
  }

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

  .lightbox {
    padding: 14px;
  }

  .lightbox-panel {
    padding: 10px;
    border-radius: 18px;
  }

  .lightbox-panel img {
    max-height: calc(86vh - 80px);
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 420px) {
  .trust-strip span,
  .tech-list span {
    width: 100%;
    text-align: center;
  }

  .card-top p {
    display: none;
  }
}
