@property --ring-progress {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --purple: #af62e7;
  --purple-deep: #7412f4;
  --purple-soft: #f4e6ff;
  --line: #ead9f5;
  --ink: #080808;
  --muted: #49454f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Mulish", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-header {
  position: fixed;
  top: clamp(16px, 4vw, 54px);
  left: 50%;
  z-index: 20;
  width: min(78vw, 1120px);
  min-height: 72px;
  display: grid;
  grid-template-columns: 180px 1fr 56px 210px;
  align-items: center;
  padding: 8px clamp(20px, 3.5vw, 50px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 60px rgba(87, 26, 146, 0.06);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: 64px;
}

.brand-logo {
  width: 100%;
  height: auto;
  display: block;
}

.brand-logo-dark {
  display: none;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 5vw, 78px);
  font-size: clamp(0.9rem, 1.05vw, 1.18rem);
  font-weight: 500;
}

.nav-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 30;
  display: grid;
  gap: 6px;
  min-width: 230px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 50px rgba(87, 26, 146, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-dropdown a {
  padding: 11px 14px;
  border-radius: 12px;
  color: #17131c;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  color: var(--purple-deep);
  background: #f8efff;
}

.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.contact-button,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--purple-deep), var(--purple));
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(125, 29, 242, 0.15);
}

.contact-button {
  justify-self: end;
  width: 150px;
  min-height: 46px;
  font-size: clamp(0.9rem, 1.05vw, 1.1rem);
  transform: translateX(-24px);
}

main {
  overflow: hidden;
}

.tech-hero {
  width: min(920px, calc(100% - 40px));
  margin: clamp(210px, 15vw, 240px) auto 72px;
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.9rem, 5vw, 4.55rem);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 620px;
  margin: 42px auto 54px;
  color: #111;
  font-size: clamp(1.2rem, 1.75vw, 1.62rem);
  line-height: 1.45;
  font-weight: 500;
}

.hero-phones {
  position: relative;
  width: min(620px, 90vw);
  height: clamp(310px, 37vw, 450px);
  margin: 0 auto;
  isolation: isolate;
}

.hero-phones::before {
  position: absolute;
  inset: 24% 6% 18%;
  z-index: -1;
  border-radius: 14%;
  background:
    radial-gradient(ellipse at center, rgba(175, 98, 231, 0.42), rgba(175, 98, 231, 0.2) 42%, rgba(175, 98, 231, 0) 72%),
    linear-gradient(90deg, #fff 0 10%, #f6effc 38%, #e2c2f5 100%);
  content: "";
  filter: blur(16px);
}

.hero-phone {
  position: absolute;
  bottom: -132px;
  width: clamp(250px, 30vw, 340px);
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.24));
}

.hero-phone-left {
  left: 14%;
  transform: rotate(-8deg);
  transform-origin: 50% 100%;
}

.hero-phone-right {
  right: 10%;
  z-index: 2;
  transform: rotate(6deg);
  transform-origin: 50% 100%;
}

.precision-section {
  width: min(1180px, calc(100% - 54px));
  margin: 0 auto;
  padding: 78px 0 0;
}

.precision-section h2 {
  margin: 0 0 72px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1;
  font-weight: 950;
}

.pill-row {
  display: flex;
  gap: 44px;
  margin-bottom: 24px;
}

.tech-pill {
  min-width: 176px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  color: #fff;
  background: var(--purple);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.tech-pill.is-active {
  color: var(--purple);
  background: #fff;
  border-color: var(--purple);
}

.tech-pill:hover {
  transform: translateY(-1px);
}

.feature-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
  min-height: 580px;
  padding: clamp(44px, 6vw, 58px);
  border: 1px solid #eee6f5;
  border-radius: 8px;
  overflow: hidden;
}

.feature-copy {
  display: grid;
  align-content: center;
  gap: 42px;
}

.feature-copy h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  font-weight: 600;
}

.feature-copy p {
  max-width: 360px;
  margin: 0;
  color: #0a0a0a;
  font-size: clamp(1.2rem, 2.1vw, 1.75rem);
  line-height: 1.5;
  font-weight: 500;
}

.feature-arrows {
  display: flex;
  gap: 44px;
  align-items: center;
  margin-top: 20px;
}

.feature-arrow {
  width: 52px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--purple);
  border-radius: 50%;
  color: #090909;
  background: #fff;
  font: inherit;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.feature-next {
  color: #fff;
  background: var(--purple);
}

.feature-visual {
  min-height: 395px;
  align-self: stretch;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(90deg, #fff 0 24%, #f5ecfb 48%, #dcb8f2 100%);
}

.feature-visual img {
  width: min(68%, 360px);
  margin-bottom: -102px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.16));
  transition: opacity 260ms ease, transform 260ms ease;
}

.feature-visual img.is-changing {
  opacity: 0;
  transform: translateY(18px);
}

.result-row {
  width: min(1040px, calc(100% - 54px));
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(70px, 9vw, 132px);
  align-items: center;
  margin: 106px auto 120px;
}

.ring {
  --ring-progress: 0deg;
  width: 220px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111;
  font-size: 2rem;
  font-weight: 700;
  background:
    radial-gradient(circle at center, #fff 0 42%, transparent 43%),
    radial-gradient(circle at center, #f5ecfb 0 57%, transparent 58%),
    conic-gradient(var(--purple) 0 var(--ring-progress), transparent var(--ring-progress) 360deg);
  transform: scale(0.86);
}

.result-row.is-visible .ring {
  animation:
    ringPop 780ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both,
    ringFill 1200ms cubic-bezier(0.22, 1, 0.36, 1) 180ms forwards;
}

.result-row h2,
.network-band h2 {
  margin: 0 0 30px;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.08;
  font-weight: 900;
}

.result-row p,
.network-band p {
  margin: 0;
  color: #18151e;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.45;
  font-weight: 500;
}

.network-band {
  position: relative;
  width: min(1180px, calc(100% - 54px));
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(330px, 0.92fr) minmax(440px, 1.08fr);
  gap: 34px;
  align-items: center;
  margin: 0 auto 130px;
  padding: clamp(42px, 6vw, 62px);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(108deg, #fff 0 39%, #f3e8ff 57%, #7d1df2 100%);
}

.network-band p {
  max-width: 470px;
  color: #433e49;
  font-size: clamp(1rem, 1.5vw, 1.36rem);
  line-height: 1.6;
}

.primary-action {
  width: 190px;
  min-height: 54px;
  margin-top: 34px;
  font-size: 1.15rem;
}

.network-phones {
  position: relative;
  align-self: stretch;
  min-height: 360px;
}

.network-phone {
  position: absolute;
  width: min(300px, 40vw);
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.24));
}

.network-phone-left {
  left: 10%;
  z-index: 1;
  bottom: -75px;
  transform: rotate(-14deg);
}

.network-phone-right {
  right: 5%;
  z-index: 4;
  bottom: -75px;
  transform: rotate(9deg);
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(34px, 6vw, 92px);
  padding: clamp(64px, 7vw, 86px) max(58px, calc((100vw - 1280px) / 2));
  color: #fff;
  background: #000;
}

.site-footer h2 {
  margin: 0 0 34px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.1;
  font-weight: 800;
}

.site-footer p {
  margin: 0 0 22px;
  color: #d0d0d0;
  font-size: 1.05rem;
  line-height: 1.55;
}

.footer-column {
  min-width: 0;
}

.social-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.social-links a {
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #d7a4ff;
  border-radius: 50%;
  color: #f4dcff;
}

.social-links svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.7;
}

.footer-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 26px;
  color: #fff;
}

.footer-row a,
.footer-links a {
  color: #fff;
}

.footer-icon {
  display: block;
  width: 28px;
  height: 28px;
  color: #d8d8d8;
}

.footer-links {
  display: grid;
  gap: 22px;
  font-size: 1.08rem;
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 720ms ease, transform 720ms ease;
}

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

@keyframes ringPop {
  0% {
    transform: scale(0.86);
  }
  62% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes ringFill {
  to {
    --ring-progress: 324deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ring {
    --ring-progress: 324deg;
    transform: none;
  }

  .result-row.is-visible .ring {
    animation: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto auto;
    width: calc(100% - 28px);
    min-height: 58px;
    padding: 7px 14px;
  }

  .brand {
    width: 46px;
  }

  .nav-links {
    display: none;
  }

  .contact-button {
    width: auto;
    min-height: 40px;
    padding: 0 22px;
  }

  .tech-hero {
    margin-top: 96px;
  }

  .precision-section h2 {
    margin-bottom: 34px;
  }

  .pill-row {
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .tech-pill {
    min-width: 120px;
  }

  .feature-panel,
  .result-row,
  .network-band,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .feature-visual {
    min-height: 430px;
  }

  .result-row {
    gap: 36px;
    text-align: center;
  }

  .ring {
    justify-self: center;
  }

  .network-band {
    min-height: 720px;
  }

  .network-phones {
    min-height: 350px;
  }

  .network-phone {
    width: min(240px, 58vw);
  }

  .network-phone-left {
    left: 16%;
    bottom: 8px;
  }

  .network-phone-right {
    right: 10%;
    bottom: 12px;
  }

  .site-footer {
    padding-inline: 32px;
  }
}

@media (max-width: 560px) {
  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .hero-copy p,
  .result-row p {
    font-size: 1.08rem;
  }

  .hero-phones {
    height: 310px;
  }

  .hero-phone {
    width: 245px;
  }

  .hero-phone-left {
    left: -4%;
  }

  .hero-phone-right {
    right: -4%;
  }

  .precision-section,
  .result-row,
  .network-band {
    width: calc(100% - 32px);
  }

  .feature-panel {
    padding: 28px 22px;
  }
}
