:root {
  --bg: #03050d;
  --panel: rgba(7, 10, 22, .78);
  --panel-strong: rgba(10, 14, 30, .9);
  --line: rgba(139, 61, 255, .42);
  --line-soft: rgba(141, 160, 196, .18);
  --text: #f8f9ff;
  --muted: #bac2d2;
  --dim: #838b9f;
  --purple: #8c3dff;
  --purple-2: #5f22d9;
  --blue: #2583ff;
  --green: #35cdb8;
  --shadow: 0 26px 90px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0, rgba(96, 40, 195, .24), transparent 34rem),
    linear-gradient(180deg, #050712 0%, #03050d 58%, #02040a 100%);
  font-family: Manrope, "Segoe UI", sans-serif;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .28;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}

body.modal-open { overflow: hidden; }

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

button,
input,
textarea { font: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #a76cff;
  outline-offset: 3px;
}

.landing {
  width: min(100%, 1536px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 72px 30px;
  overflow: hidden;
}

.site-header {
  position: relative;
  z-index: 20;
  height: 62px;
  display: grid;
  grid-template-columns: 310px 1fr;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(141, 160, 196, .12);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  border: 1px solid rgba(139, 61, 255, .55);
  border-radius: 10px;
  color: #fff;
  background: rgba(17, 10, 31, .58);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-header > *,
.nav,
.hero,
.start,
.market-trust {
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 139px;
  height: auto;
  display: block;
}

.brand span {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(42, 198, 255, .35);
  border-radius: 999px;
  color: #f7fbff;
  background: rgba(31, 195, 255, .07);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: grid;
  grid-template-columns: 58px 80px 70px 102px 118px 44px;
  justify-content: flex-end;
  gap: clamp(16px, 2.4vw, 36px);
  align-items: center;
}

.nav a {
  text-align: center;
  color: #f5f7ff;
  font-size: 16px;
  font-weight: 700;
  transition: color .2s ease;
}

.nav a:hover { color: #b88cff; }

.header-cta {
  justify-self: end;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 1px solid var(--purple);
  border-radius: 12px;
  background: rgba(17, 10, 31, .58);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(140, 61, 255, .1);
}

.header-cta svg,
.metrics svg,
.form-icon svg,
.card-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-cta svg {
  width: 20px;
  height: 20px;
  color: #a65cff;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 408px;
  gap: 52px;
  align-items: center;
  min-height: 456px;
  padding: 30px 8px 24px 24px;
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: .86;
  transition: opacity .35s ease;
}

.hero-bg.is-loading img { opacity: 0; }

.hero-bg:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #03050d 0%, rgba(3,5,13,.82) 18%, rgba(3,5,13,.16) 48%, rgba(3,5,13,.74) 82%, #03050d 100%),
    linear-gradient(180deg, rgba(3,5,13,.2) 0%, rgba(3,5,13,.1) 54%, #03050d 100%);
}

.media-loader {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(255,255,255,.22);
  border-top-color: #fff;
  border-radius: 50%;
  animation: media-loader-spin .82s linear infinite;
}

[data-media-loader]:not(.is-loading) .media-loader { display: none; }

@keyframes media-loader-spin {
  to { transform: rotate(360deg); }
}

.hero-copy,
.lead-form {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow {
  width: max-content;
  max-width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0 18px;
  border: 1px solid rgba(156, 77, 255, .72);
  border-radius: 999px;
  color: #f7f1ff;
  background:
    linear-gradient(180deg, rgba(21, 10, 45, .72), rgba(7, 8, 22, .62));
  box-shadow: 0 0 22px rgba(139, 61, 255, .24), inset 0 1px rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow:before {
  content: "";
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  background: #a950ff;
  filter: drop-shadow(0 0 10px rgba(169, 80, 255, .7));
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v6a5 5 0 0 1-10 0V4ZM5 5H3v3a4 4 0 0 0 4 4M19 5h2v3a4 4 0 0 1-4 4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v6a5 5 0 0 1-10 0V4ZM5 5H3v3a4 4 0 0 0 4 4M19 5h2v3a4 4 0 0 1-4 4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.eyebrow-mobile { display: none; }

h1,
h2,
h3,
p { margin: 0; }

h1 {
  max-width: 515px;
  font-size: clamp(46px, 4.1vw, 58px);
  line-height: .98;
  letter-spacing: 0;
  font-weight: 900;
}

h1 span {
  display: block;
  color: var(--purple);
}

.lead {
  max-width: 505px;
  margin-top: 18px;
  color: #d4d8e4;
  font-size: 17px;
  line-height: 1.5;
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 30px;
}

.metrics div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
}

.metrics svg {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  color: var(--purple);
  filter: drop-shadow(0 0 14px rgba(140, 61, 255, .62));
}

.metrics b {
  color: #fff;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

.metrics span {
  margin-top: 4px;
  color: #c2c8d8;
  font-size: 13px;
  font-weight: 700;
}

.lead-form {
  display: grid;
  gap: 11px;
  padding: 25px;
  border: 1px solid rgba(143, 73, 255, .38);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 12%, rgba(143,73,255,.16), transparent 34%),
    linear-gradient(180deg, rgba(10,14,28,.92), rgba(5,8,18,.94));
  box-shadow: 0 0 54px rgba(120, 45, 255, .16), inset 0 1px rgba(255,255,255,.04);
}

.form-title {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 10px;
}

.form-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #8b3cff, #44128e);
  box-shadow: 0 14px 35px rgba(140,61,255,.34);
}

.form-icon svg {
  width: 25px;
  height: 25px;
}

.lead-form h2 {
  color: #fff;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
}

.lead-form .form-title p {
  margin-top: 8px;
  color: #c7cdd9;
  font-size: 14px;
  line-height: 1.45;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: #fff;
  background: rgba(5, 8, 18, .42);
  font-size: 14px;
  font-weight: 700;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input {
  height: 46px;
  padding: 0 12px;
}

textarea {
  height: 92px;
  min-height: 92px;
  padding: 11px 12px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder { color: #a8afbd; }

input:focus,
textarea:focus {
  outline: 2px solid rgba(143, 73, 255, .42);
  border-color: transparent;
  background: rgba(7, 11, 24, .72);
}

input.is-invalid,
textarea.is-invalid {
  border-color: #ff4d6d;
  background: rgba(255, 77, 109, .1);
  box-shadow: 0 0 0 3px rgba(255, 77, 109, .16);
}

input.is-invalid:focus,
textarea.is-invalid:focus {
  outline: 2px solid rgba(255, 77, 109, .34);
  border-color: #ff4d6d;
}

.submit-button {
  height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #7440ff, #8716d4);
  box-shadow: 0 15px 34px rgba(113, 53, 255, .3);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.submit-button:disabled {
  cursor: wait;
  opacity: .76;
}

.form-note {
  color: #aeb5c4;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

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

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(1, 3, 10, .72);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.contact-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  padding: 30px 34px 26px;
  border: 1px solid rgba(143, 73, 255, .24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 22% 32%, rgba(123, 55, 255, .18), transparent 18rem),
    linear-gradient(180deg, rgba(8, 13, 29, .99), rgba(4, 7, 17, .99));
  box-shadow: 0 30px 90px rgba(0,0,0,.62), inset 0 1px rgba(255,255,255,.04);
}

.contact-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 9px;
  color: #fff;
  background: rgba(255,255,255,.05);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.contact-modal h2 {
  margin: 0 42px 16px 0;
  color: #fff;
  font-size: clamp(34px, 5.4vw, 46px);
  line-height: 1.08;
  font-weight: 900;
}

.contact-modal h2 span { color: var(--purple); }

.contact-modal__lead {
  margin: 0 0 28px;
  color: #b8bfd0;
  font-size: 18px;
  line-height: 1.55;
}

.contact-modal__person {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}

.contact-modal__person img {
  width: 210px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(143, 73, 255, .26);
  border-radius: 14px;
  background: rgba(143, 73, 255, .08);
}

.contact-modal__person h3 {
  margin: 0;
  color: #fff;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 900;
}

.contact-modal__person p {
  margin: 12px 0 18px;
  color: #b8bfd0;
  font-size: 16px;
  line-height: 1.45;
}

.contact-modal__person ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-modal__person li {
  position: relative;
  padding-left: 32px;
  color: #c7ccda;
  font-size: 15px;
  font-weight: 700;
}

.contact-modal__person li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(169, 80, 255, .85);
  border-radius: 50%;
  color: #fff;
  background: rgba(143, 73, 255, .18);
  font-size: 13px;
}

.contact-modal__actions {
  display: grid;
  gap: 10px;
}

.contact-modal__actions a {
  min-height: 88px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 24px;
  grid-template-rows: auto auto;
  column-gap: 18px;
  align-items: center;
  align-items: center;
  padding: 14px 24px;
  border: 1px solid rgba(143, 73, 255, .18);
  border-radius: 13px;
  color: #fff;
  background: rgba(9, 13, 30, .76);
  font-size: 21px;
  font-weight: 900;
}

.contact-modal__actions b { align-self: end; }
.contact-modal__actions small {
  grid-column: 2;
  align-self: start;
  color: #aeb5c7;
  font-size: 15px;
  font-weight: 700;
}
.contact-modal__actions i {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: #c8ccda;
  font-size: 28px;
  font-style: normal;
}

.contact-modal__icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #8c3dff, #6420d0);
  box-shadow: 0 12px 28px rgba(140,61,255,.28);
  font-size: 18px;
  font-weight: 900;
}

.contact-modal__icon.telegram { background: linear-gradient(135deg, #6fd4ff, #1396e8); }
.contact-modal__icon.max { background: linear-gradient(135deg, #9c5cff, #5623d7); }

.contact-modal__note {
  margin: 26px 0 0;
  color: #aeb5c7;
  font-size: 14px;
  line-height: 1.45;
}

.start {
  position: relative;
  z-index: 2;
  margin-top: 6px;
}

.start h2 {
  margin-bottom: 8px;
  text-align: center;
  color: #fff;
  font-size: 31px;
  line-height: 1.15;
  font-weight: 900;
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  perspective: 1200px;
}

.start-card {
  position: relative;
  min-height: 312px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(139, 61, 255, .55);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(21, 8, 53, .84), rgba(7, 10, 24, .94));
  box-shadow: inset 0 1px rgba(255,255,255,.04);
  transform: translateY(0) scale(1);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), border-color .28s ease, box-shadow .28s ease, filter .28s ease;
  animation: cardFloatIn .58s cubic-bezier(.2,.8,.2,1) both;
}

.start-card:nth-child(2) { animation-delay: 70ms; }
.start-card:nth-child(3) { animation-delay: 140ms; }

.start-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(174, 112, 255, .86);
  box-shadow: 0 24px 70px rgba(0,0,0,.34), 0 0 42px rgba(123, 68, 255, .18), inset 0 1px rgba(255,255,255,.06);
}

.start-card:hover .card-icon {
  transform: translateY(-2px) rotate(-4deg) scale(1.07);
  box-shadow: 0 14px 38px rgba(143,73,255,.28);
}

.start-card:hover a {
  background: rgba(143, 73, 255, .14);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

.start-card:hover img {
  transform: translateX(-6px) scale(1.04);
}

.start-card:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 10%, rgba(143, 61, 255, .28), transparent 23rem),
    linear-gradient(180deg, transparent 35%, rgba(3,5,13,.52) 100%);
}

.start-card > * {
  position: relative;
  z-index: 1;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #fff;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-icon.purple { background: linear-gradient(135deg, #9344ff, #641dd0); }
.card-icon.blue { background: linear-gradient(135deg, #47a4ff, #1f66ff); }
.card-icon.green { background: linear-gradient(135deg, #4fd4c0, #1d9d8d); }

.start-card h3 {
  max-width: 285px;
  color: #fff;
  font-size: 20px;
  line-height: 1.17;
  font-weight: 900;
}

.start-card p {
  max-width: 285px;
  margin-top: 8px;
  color: #c6ccda;
  font-size: 14px;
  line-height: 1.45;
}

.start-card ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 18px;
  padding: 0;
  list-style: none;
}

.start-card li {
  position: relative;
  padding-left: 21px;
  color: #d9deeb;
  font-size: 13px;
  line-height: 1.25;
}

.start-card li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  color: #fff;
  background: var(--purple);
  font-size: 9px;
  font-weight: 900;
}

.simulator-card li:before { background: var(--blue); }
.cases-card li:before { background: var(--green); }

.start-card a {
  width: min(100%, 298px);
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: auto;
  border: 1px solid currentColor;
  border-radius: 9px;
  color: #c990ff;
  background: rgba(5, 8, 18, .42);
  font-size: 14px;
  font-weight: 900;
  transition: background .22s ease, box-shadow .22s ease, transform .22s ease;
}

.start-card a span {
  font-size: 20px;
  line-height: 1;
}

.simulator-card {
  border-color: rgba(37, 131, 255, .6);
  background:
    linear-gradient(90deg, rgba(4, 9, 22, .96) 0%, rgba(4, 13, 32, .9) 48%, rgba(4, 9, 22, .42) 100%),
    url("assets/simulator-card-bg-v2.png") center right / cover no-repeat;
}

.simulator-card a { color: #3d95ff; }

.cases-card {
  border-color: rgba(53, 205, 184, .52);
  background:
    linear-gradient(90deg, rgba(6, 42, 42, .98), rgba(5, 13, 24, .78)),
    url("about-detail/assets/case-smartshell-trophies.png") center right / auto 100% no-repeat;
}

.cases-card a { color: #5be0cc; }

.manager-card img {
  position: absolute;
  right: -58px;
  top: 0;
  z-index: 0;
  width: 68%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  filter: drop-shadow(0 16px 26px rgba(0,0,0,.5));
  opacity: .96;
  mask-image: linear-gradient(90deg, transparent 0, #000 28%);
  transition: transform .32s cubic-bezier(.2,.8,.2,1);
}

.manager-card h3,
.manager-card p,
.manager-card ul,
.manager-card a {
  max-width: 260px;
}

.phone-preview {
  position: absolute;
  right: 48px;
  top: 42px;
  width: 115px;
  height: 205px;
  padding: 19px 14px 14px;
  border: 1px solid rgba(83, 132, 255, .36);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(12, 20, 45, .92), rgba(6, 11, 27, .96));
  box-shadow: 0 24px 55px rgba(0,0,0,.42);
  transform: rotate(-13deg);
  opacity: .92;
}

.phone-preview:before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 24px;
  height: 3px;
  border-radius: 99px;
  background: rgba(140, 158, 194, .55);
  transform: translateX(-50%);
}

.phone-preview i {
  display: block;
  height: 26px;
  margin-bottom: 8px;
  border-radius: 7px;
  background: rgba(255,255,255,.045);
}

.phone-preview b {
  display: block;
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,.055);
  font-size: 10px;
  line-height: 1.35;
}

.market-trust {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin-top: 26px;
  padding: 0 24px;
  overflow: hidden;
}

.market-trust p {
  color: #d7dbea;
  font-size: 17px;
  font-weight: 700;
}

.trusted-marquee {
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.trusted-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 62px;
  animation: trustedMarquee 34s linear infinite;
  will-change: transform;
}

.trusted-track span {
  color: rgba(221, 226, 240, .52);
  font-size: clamp(17px, 1.36vw, 24px);
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}

.trusted-marquee:hover .trusted-track { animation-play-state: paused; }

.mobile-form-slot,
.mobile-lead-cta {
  display: none;
}

@keyframes trustedMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 31px)); }
}

@keyframes cardFloatIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1220px) {
  .landing { padding: 16px 28px 28px; }
  .site-header { grid-template-columns: 250px 1fr; }
  .nav { gap: 24px; }
  .hero {
    grid-template-columns: 1fr 380px;
    gap: 28px;
    padding-left: 0;
  }
  .hero-bg { inset: 0; }
  .start-grid { gap: 16px; }
  .phone-preview { right: 24px; opacity: .58; }
}

@media (max-width: 980px) {
  .site-header {
    height: auto;
    grid-template-columns: 1fr auto;
    row-gap: 16px;
    padding-bottom: 16px;
  }
  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(139, 61, 255, .36);
    border-radius: 14px;
    background: rgba(5, 8, 18, .96);
    box-shadow: 0 24px 70px rgba(0,0,0,.45);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease;
  }
  body.menu-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 9px;
  }
  .nav a:hover {
    background: rgba(143, 73, 255, .12);
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 44px 0 20px;
    max-width: 100%;
  }
  .hero-bg { inset: 0; opacity: .72; }
  .lead-form { max-width: 520px; }
  .start-grid { grid-template-columns: 1fr; }
  .manager-card img { width: 165px; }
  .phone-preview { right: 42px; }
  .market-trust { grid-template-columns: 1fr; padding: 0; }
}

@media (max-width: 620px) {
  .landing {
    width: 100%;
    max-width: 100vw;
    padding: 12px 14px calc(96px + env(safe-area-inset-bottom));
  }
  .site-header {
    grid-template-columns: 1fr auto;
    padding-bottom: 12px;
  }
  .brand { justify-content: flex-start; }
  .brand span { display: none; }
  .header-cta { justify-self: stretch; }
  .nav a { font-size: 14px; }
  .menu-toggle {
    grid-column: 2;
    grid-row: 1;
  }
  .hero {
    width: 100vw;
    max-width: 100vw;
    min-height: calc(100svh - 78px);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 26px 14px 20px;
  }
  .eyebrow {
    width: auto;
    max-width: min(100%, 362px);
    min-height: 0;
    align-items: center;
    padding: 8px 14px;
    white-space: normal;
    line-height: 1.25;
    font-size: 10px;
    text-align: left;
  }
  .eyebrow-desktop { display: none; }
  .eyebrow-mobile { display: inline; }
  h1 {
    max-width: min(100%, 362px);
    font-size: 29px;
    overflow-wrap: anywhere;
  }
  h1 span { overflow-wrap: anywhere; }
  .hero-copy,
  .lead,
  .metrics,
  .lead-form {
    max-width: min(100%, 362px);
  }
  .lead {
    font-size: 15px;
    overflow-wrap: break-word;
  }
  .metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .metrics div {
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 5px;
  }
  .metrics svg {
    width: 21px;
    height: 21px;
  }
  .metrics b {
    font-size: 13px;
    white-space: nowrap;
  }
  .metrics span { font-size: 10px; }
  .lead-form {
    padding: 18px;
    scroll-margin-top: 18px;
  }
  .form-title { grid-template-columns: 44px 1fr; }
  .form-icon { width: 44px; height: 44px; }
  .lead-form h2 { font-size: 24px; }
  .start h2 { font-size: 26px; }
  .start-card { min-height: 0; padding: 18px; }
  .start-card:hover {
    transform: translateY(-4px) scale(1.008);
  }
  .manager-card img,
  .phone-preview { display: none; }
  .cases-card { background: linear-gradient(145deg, rgba(6,42,42,.92), rgba(5,13,24,.94)); }
  .mobile-form-slot {
    display: block;
    margin-top: 26px;
  }
  .mobile-form-slot .lead-form {
    max-width: min(100%, 362px);
    margin: 0 auto;
  }
  .mobile-lead-cta {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 80;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #7440ff, #2583ff);
    box-shadow: 0 18px 46px rgba(37, 131, 255, .32);
    font-size: 16px;
    font-weight: 900;
  }
  .contact-modal {
    align-items: end;
    padding: 0;
  }
  .contact-modal__panel {
    width: 100%;
    max-height: 94svh;
    overflow-y: auto;
    padding: 24px 22px;
    border-radius: 22px 22px 0 0;
    transform: translateY(100%);
    transition: transform .24s ease;
  }
  .contact-modal__person {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
  }
  .contact-modal__person img {
    width: 112px;
  }
  .contact-modal__person h3 { font-size: 21px; }
  .contact-modal__person p { font-size: 14px; }
  .contact-modal__person li { font-size: 13px; }
  .contact-modal__actions a {
    min-height: 78px;
    grid-template-columns: 50px minmax(0, 1fr) 20px;
    padding: 12px 16px;
    font-size: 18px;
  }
  .contact-modal__icon {
    width: 50px;
    height: 50px;
  }
  .contact-modal.is-open .contact-modal__panel {
    transform: translateY(0);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
