:root {
  --ink: #101114;
  --muted: #646874;
  --line: #e8eaf0;
  --paper: #fbfbfd;
  --lime: #b9f24a;
  --aqua: #2fd0c7;
  --coral: #ff6b57;
  --blue: #5267ff;
  --yellow: #ffd45a;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(16, 17, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(251, 251, 253, 0.84);
  border-bottom: 1px solid rgba(232, 234, 240, 0.8);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(16, 17, 20, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  font-size: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  transition: color 180ms ease;
}

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

.nav-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-action {
  min-width: 84px;
  padding: 0 18px;
  background: var(--lime);
  border: 1px solid #a4dc31;
}

.primary-button,
.secondary-button {
  padding: 0 22px;
}

.primary-button {
  background: var(--ink);
  color: #ffffff;
}

.primary-button.light {
  background: #ffffff;
  color: var(--ink);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
}

.nav-action:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(34px, 6vw, 86px);
  min-height: calc(100svh - 72px);
  padding: clamp(52px, 8vw, 104px) clamp(20px, 5vw, 72px) clamp(34px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(251, 251, 253, 0.96) 0%, rgba(251, 251, 253, 0.8) 52%, rgba(251, 251, 253, 0.36) 100%),
    url("images/mini-banner.jpg") center / cover no-repeat;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(58px, 11vw, 150px);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 680px;
  margin: 28px 0 0;
  color: #363a43;
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 520px;
}

.hero-visual::before {
  position: absolute;
  inset: 8% 0 0 4%;
  content: "";
  background:
    linear-gradient(90deg, rgba(82, 103, 255, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(82, 103, 255, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  border-radius: 8px;
  transform: rotate(-4deg);
}

.hero-image-slot {
  position: absolute;
  width: min(250px, 44vw);
  aspect-ratio: 500 / 889;
  background: var(--slot-image) center / cover no-repeat;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-image-slot::after {
  position: absolute;
  inset: 14px;
  content: "";
  border: 1px dashed rgba(16, 17, 20, 0.28);
  border-radius: 6px;
}

.hero-image-main {
  --slot-image: url("images/app1.jpg");
  z-index: 2;
  transform: rotate(6deg) translateX(-20px);
}

.hero-image-side {
  --slot-image: url("images/app2.jpg");
  z-index: 1;
  width: min(220px, 40vw);
  transform: rotate(-12deg) translate(118px, 58px);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 clamp(20px, 5vw, 72px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stats-band div {
  display: grid;
  gap: 4px;
  padding: 24px;
  background: #ffffff;
}

.stats-band strong {
  font-size: clamp(19px, 2vw, 26px);
}

.stats-band span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: clamp(76px, 11vw, 136px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin-bottom: clamp(30px, 5vw, 56px);
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.72fr);
  gap: clamp(30px, 6vw, 96px);
  align-items: start;
  padding-bottom: 24px;
}

.works-section {
  padding-top: 24px;
  padding-bottom: 36px;
}

.about-layout {
  display: grid;
  gap: 22px;
  color: #343842;
  font-size: clamp(16px, 1.7vw, 19px);
}

.about-layout p {
  margin: 0;
}

.services-section {
  background: #ffffff;
  border-block: 1px solid var(--line);
}

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

.service-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
}

.service-card h3,
.work-item h3 {
  margin: 0px 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.service-card p,
.work-item p {
  margin: 0;
  color: var(--muted);
}

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

.work-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.work-item > div:last-child {
  min-width: 0;
}

.work-image {
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 18px;
  width: 180px;
  max-width: 180px;
/*  border: 2px solid var(--ink);*/
  background: center / cover no-repeat;
}

.image-mint {
  background-image: url("images/rocket_logo.jpg");
}

.image-sun {
  background-image: url("images/weather_logo.jpg");
}

.image-app-one {
  background-image: url("images/pranker_logo.jpg");
}

.image-app-two {
  background-image: url("images/file_logo.jpg");
}

.image-app-three {
  background-image: url("images/scanner_logo.jpg");
}

.work-type {
  color: var(--blue);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.store-link {
  display: inline-flex;
  width: 154px;
  margin-top: 16px;
  border-radius: 8px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.store-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.store-link img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin: 0 clamp(20px, 5vw, 72px) 16px;
  padding: clamp(36px, 7vw, 70px);
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
}

.contact-section .eyebrow {
  color: var(--lime);
}

.contact-section h2 {
  max-width: 860px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px) 40px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 920px) {
  .site-header {
    min-height: 66px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 56px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-image-slot {
    width: 210px;
  }

  .hero-image-side {
    transform: rotate(-12deg) translate(84px, 44px);
  }

  .stats-band,
  .about-section,
  .service-grid,
  .work-list,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .work-item {
    grid-template-columns: 1fr;
  }

  .contact-section {
    align-items: start;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand-text {
    max-width: 124px;
    line-height: 1.1;
  }

  .nav-action {
    min-width: 72px;
  }

  .hero,
  .section {
    padding-inline: 16px;
  }

  .hero h1 {
    font-size: clamp(52px, 18vw, 84px);
  }

  .hero-visual {
    min-height: 350px;
  }

  .hero-image-main {
    transform: rotate(5deg) translateX(-24px) scale(0.86);
  }

  .hero-image-side {
    transform: rotate(-12deg) translate(66px, 40px) scale(0.82);
  }

  .stats-band,
  .contact-section {
    margin-inline: 16px;
  }

  .stats-band div,
  .service-card {
    padding: 20px;
  }

  .site-footer {
    flex-direction: column;
    padding-inline: 16px;
  }
}
