:root {
  --bg: #030919;
  --line: rgba(111, 146, 255, 0.15);
  --card: linear-gradient(160deg, rgba(22, 30, 58, 0.95), rgba(15, 22, 43, 0.95));
  --text: #f2f6ff;
  --muted: #8f9ab8;
  --blue: #00d5ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(2, 8, 22, 0.86) 0%, rgba(2, 7, 20, 0.94) 100%),
    url("../assets/site-bg.png") center top / cover fixed no-repeat;
}

a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 72px 0; border-top: 1px solid rgba(255,255,255,0.04); }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(2, 8, 22, 0.85);
  border-bottom: 1px solid rgba(92, 114, 173, 0.2);
}
.nav { min-height: 64px; display: flex; align-items: center; gap: 20px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.left-logo {
  height: 34px;
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 5px rgba(64, 216, 255, 0.2));
}
.brand-text {
  font-size: 16px;
  font-weight: 700;
  color: #dce8ff;
  line-height: 1;
}
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(76, 218, 255, 0.35));
}
.footer-brand-text {
  font-size: 22px;
  font-weight: 700;
  color: #dce8ff;
}
.menu { margin-left: auto; display: flex; gap: 24px; font-size: 13px; color: #b6c0da; }
.menu a:hover { color: #fff; }
.nav-cta { display: flex; gap: 10px; }

.btn {
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #032234;
  background: linear-gradient(180deg, #18e8ff, #00c6f2);
  box-shadow: 0 10px 24px rgba(0, 198, 242, 0.23);
}
.btn-dark {
  color: #d5dff7;
  background: linear-gradient(180deg, rgba(18, 25, 48, 0.95), rgba(8, 13, 28, 0.95));
  border-color: rgba(115, 132, 179, 0.34);
}
.btn-outline {
  border-color: rgba(0, 213, 255, 0.45);
  color: #9eeeff;
  background: rgba(0, 213, 255, 0.08);
}
.btn-small { padding: 9px 14px; font-size: 12px; }

.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; border-radius: 10px; }
.menu-toggle span { display: block; height: 2px; background: white; }
.menu-toggle span + span { margin-top: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.chip {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #7feeff;
  border: 1px solid rgba(0, 213, 255, 0.28);
  background: rgba(0, 213, 255, 0.08);
}
h1 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff 10%, #8be9ff 38%, #7fb5ff 62%, #bea6ff 88%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroTextShift 7s ease-in-out infinite;
}
h1 span { color: inherit; }
.lead {
  margin: 0;
  max-width: 700px;
  color: #9da7c2;
  font-size: clamp(18px, 1.35vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.actions { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }

.hero-card {
  border: 1px solid rgba(120, 136, 182, 0.26);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(170deg, rgba(33, 40, 72, 0.5), rgba(12, 16, 29, 0.84));
}
.hero-screen {
  min-height: 228px;
  border-radius: 14px;
  border: 1px solid rgba(102, 119, 164, 0.3);
  overflow: hidden;
  background: radial-gradient(400px 160px at 60% 20%, rgba(61, 95, 214, 0.2), rgba(17, 23, 43, 0.6));
}
.hero-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  filter: contrast(1.08) saturate(1.07) brightness(1.03);
}
.hero-caption {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid rgba(123, 137, 179, 0.3);
  padding: 10px 12px;
  background: rgba(12, 18, 35, 0.78);
}
.hero-caption strong { font-size: 14px; }
.hero-caption p { margin: 4px 0 0; font-size: 12px; color: #8e9abb; }

h2 { margin: 0 0 8px; font-size: 48px; letter-spacing: -0.02em; }
.sub { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.cards { display: grid; gap: 16px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  border-radius: 14px;
  border: 1px solid rgba(108, 128, 182, 0.28);
  background: var(--card);
  min-height: 165px;
  padding: 18px;
}
.card h3 { margin: 0 0 10px; font-size: 28px; line-height: 1.1; letter-spacing: -0.01em; }
.card p { margin: 0; color: #99a6c7; line-height: 1.5; font-size: 14px; }
.center { display: flex; justify-content: center; margin-top: 20px; }
.services-grid .service-card {
  min-height: 220px;
}
.service-card h3 {
  font-size: 30px;
  margin-bottom: 10px;
}
.service-card ul {
  margin: 12px 0 0;
  padding-left: 0;
  list-style: none;
  color: #8ea0cb;
  font-size: 13px;
  line-height: 1.5;
}
.service-card li {
  position: relative;
  padding-left: 28px;
}
.service-card li + li {
  margin-top: 4px;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #15e8ff, #9a8eff);
  box-shadow: 0 0 8px rgba(21, 232, 255, 0.35);
}
.services-bottom {
  text-align: center;
  margin-top: 24px;
}
.services-bottom p {
  margin: 0 0 10px;
  color: #9aa8c8;
  font-size: 14px;
}

.row-title { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.case {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  position: relative;
  overflow: hidden;
}
.case-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.case::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 10, 24, 0.08) 18%, rgba(4, 10, 24, 0.92) 76%);
  pointer-events: none;
}
.case-media {
  position: absolute;
  inset: 0;
}
.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: 0.9;
}
.case > * {
  position: relative;
  z-index: 1;
}
.case-hit {
  z-index: 3;
}
.case-link {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  color: #66e6ff;
  font-weight: 600;
  z-index: 4;
  position: relative;
}
.case h3 { margin-top: 0; }
.tags {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  order: 3;
}
.tags span {
  font-size: 11px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(141, 156, 199, 0.15);
  border: 1px solid rgba(130, 144, 186, 0.35);
}
.case a {
  margin-top: 12px;
  color: #58dfff;
  font-size: 14px;
  display: inline-block;
  order: 2;
}

.steps .card { min-height: 160px; }
.steps span { display: block; font-size: 36px; font-weight: 800; color: rgba(0, 213, 255, 0.45); margin-bottom: 12px; }
.steps h3 { font-size: 24px; margin-bottom: 8px; }

.faq-wrap { max-width: 840px; }
.faq-wrap details {
  border: 1px solid rgba(109, 126, 172, 0.34);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 26, 47, 0.86), rgba(10, 15, 28, 0.86));
  padding: 14px 16px;
}
.faq-wrap details + details { margin-top: 10px; }
.faq-wrap summary { cursor: pointer; font-size: 17px; font-weight: 600; }
.faq-wrap p { margin: 8px 0 0; color: #95a4ca; }

.cta {
  background:
    radial-gradient(700px 280px at 20% 20%, rgba(0, 158, 219, 0.2), transparent 70%),
    radial-gradient(700px 260px at 90% 50%, rgba(74, 79, 201, 0.2), transparent 70%);
}
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: 48px; }
.cta-inner p { margin: 0; color: #96a4c5; }
.center-actions { justify-content: center; }

.footer { padding: 44px 0 28px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 28px; }
.footer h4 { margin: 0 0 12px; font-size: 12px; color: #93a0c3; letter-spacing: 0.08em; }
.footer p { margin: 12px 0 0; color: #8c99bb; line-height: 1.55; }
.footer a { display: block; margin-top: 8px; color: #d5def8; }
.footer .btn { display: inline-flex; margin-top: 14px; }
.footer .brand-logo { height: 56px; }
.copyright {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #7482a5;
  font-size: 12px;
  text-align: center;
}

.contact-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
}

.contact-modal.is-open {
  display: flex;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 20, 0.78);
  backdrop-filter: blur(4px);
}

.contact-modal__panel {
  position: relative;
  width: min(720px, calc(100% - 24px));
  border: 1px solid rgba(109, 126, 172, 0.34);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 26, 47, 0.96), rgba(10, 15, 28, 0.96));
  padding: 20px;
  z-index: 1;
}

.contact-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(115, 132, 179, 0.34);
  background: rgba(8, 13, 28, 0.95);
  color: #d5dff7;
  border-radius: 8px;
  cursor: pointer;
}

.contact-modal__panel h3 {
  margin: 0;
  font-size: 36px;
}

.contact-modal__panel > p {
  margin: 8px 0 16px;
  color: #93a2c8;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: #c2cce9;
  font-size: 13px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(109, 126, 172, 0.34);
  border-radius: 10px;
  background: rgba(16, 23, 43, 0.92);
  color: #f2f6ff;
  padding: 10px 12px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 92px;
}

.case-page-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.case-kpi {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}

.case-kpi .card {
  min-height: unset;
}

.case-kpi strong {
  font-size: 24px;
  color: #71e8ff;
}

.case-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #9fb0d3;
}

.case-list li + li {
  margin-top: 6px;
}

.case-steps {
  display: grid;
  gap: 10px;
}

.case-steps .card {
  min-height: unset;
}

.case-detail-card {
  margin-top: 16px;
}

.case-detail-card h4 {
  margin: 0 0 10px;
  color: #35deff;
  font-size: 34px;
  letter-spacing: 0.02em;
}

.case-detail-card p {
  margin: 0;
  color: #d5def8;
  line-height: 1.52;
}

.case-detail-card section + section {
  margin-top: 24px;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-tags span {
  border: 1px solid rgba(130, 144, 186, 0.45);
  background: rgba(141, 156, 199, 0.16);
  border-radius: 10px;
  padding: 8px 12px;
  color: #d7e2ff;
  font-size: 14px;
}

@keyframes heroTextShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (max-width: 1024px) {
  h1 { font-size: clamp(36px, 7.2vw, 56px); }
  h2 { font-size: clamp(34px, 6vw, 48px); }
  .hero-grid, .cards-3, .cards-4, .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .brand-logo { height: 36px; }
  .footer .brand-logo { height: 46px; }
  .container { width: min(1120px, calc(100% - 24px)); }
  .menu-toggle { display: inline-block; margin-left: auto; }
  .menu {
    position: absolute;
    top: 64px;
    left: 12px;
    right: 12px;
    background: #0a132a;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }
  .menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-cta { display: none; }
  .left-logo { height: 30px; }
  .brand-text { font-size: 15px; }
  .hero-grid, .cards-3, .cards-2, .cards-4, .footer-grid { grid-template-columns: 1fr; }
  .lead {
    font-size: clamp(16px, 4.2vw, 20px);
    line-height: 1.48;
  }
  .contact-form__row { grid-template-columns: 1fr; }
  .case-page-grid { grid-template-columns: 1fr; }
  .case-kpi { grid-template-columns: 1fr; }
  .row-title { flex-direction: column; align-items: start; }
  .section { padding: 56px 0; }
}
