:root {
  --bg: #05060a;
  --surface: rgba(14, 17, 24, 0.78);
  --surface-strong: #0e1118;

  --text: #f7f8fb;
  --muted: #8d95a5;

  --telegram: #2aabee;
  --telegram-soft: rgba(42, 171, 238, 0.16);

  --ai: #8b5cf6;
  --ai-soft: rgba(139, 92, 246, 0.18);

  --border: rgba(255, 255, 255, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(42, 171, 238, 0.08),
      transparent 26%
    ),
    radial-gradient(
      circle at 85% 20%,
      rgba(139, 92, 246, 0.09),
      transparent 28%
    ),
    var(--bg);

  color: var(--text);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  overflow-x: hidden;
}

button {
  font: inherit;
}


/* HERO */

.hero-scroll {
  height: 320vh;
  position: relative;
}

.hero-sticky {
  height: 100vh;

  position: sticky;
  top: 0;

  display: flex;
  align-items: center;

  padding: 7vw;

  overflow: hidden;
}

.hero-content {
  width: 100%;
  max-width: 1200px;

  position: relative;
  z-index: 5;
}

.status {
  width: fit-content;

  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 30px;

  padding: 8px 12px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);

  color: #c6ccda;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.14em;
}

.status-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--telegram);

  box-shadow:
    0 0 12px var(--telegram),
    0 0 24px rgba(42, 171, 238, 0.6);
}

.hero-title {
  display: flex;
  flex-direction: column;

  font-size: clamp(76px, 12vw, 180px);

  line-height: 0.88;

  letter-spacing: -0.015em;

  font-weight: 700;

  will-change: transform;
}

.hero-line {
  display: block;

  will-change:
    transform,
    opacity;

  transition:
    opacity 0.15s linear;
}

.line-build {
  background:
    linear-gradient(
      100deg,
      #ffffff,
      #ccefff
    );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.line-automate {
  background:
    linear-gradient(
      100deg,
      #ffffff 5%,
      #8fdcff 60%,
      #8b5cf6 120%
    );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.line-scale {
  background:
    linear-gradient(
      100deg,
      #ffffff,
      #b6a1ff
    );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  max-width: 620px;

  margin-top: 42px;

  color: var(--muted);

  font-size: clamp(17px, 1.8vw, 23px);

  line-height: 1.5;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  max-width: 720px;

  margin-top: 28px;
}

.hero-pills span,
.service-tags span {
  padding: 9px 13px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.015)
    );

  color: #bac1cf;

  font-size: 12px;

  backdrop-filter: blur(12px);
}

.telegram-button {
  margin-top: 34px;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 15px 22px;

  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;

  color: white;

  background:
    linear-gradient(
      135deg,
      #32b4f3,
      #218bd8
    );

  box-shadow:
    0 12px 40px rgba(42, 171, 238, 0.2);

  cursor: pointer;

  font-weight: 650;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.telegram-button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 16px 50px rgba(42, 171, 238, 0.3);
}

.telegram-icon {
  font-size: 14px;
}

.hero-glow {
  position: absolute;

  width: 520px;
  height: 520px;

  border-radius: 50%;

  filter: blur(70px);

  opacity: 0.6;

  pointer-events: none;

  will-change: transform;
}

.hero-glow-blue {
  top: 2%;
  right: 5%;

  background:
    radial-gradient(
      circle,
      rgba(42, 171, 238, 0.32),
      transparent 65%
    );
}

.hero-glow-purple {
  bottom: -10%;
  left: 30%;

  background:
    radial-gradient(
      circle,
      rgba(139, 92, 246, 0.26),
      transparent 65%
    );
}

.hero-scroll-hint {
  position: absolute;

  right: 7vw;
  bottom: 6vh;

  width: 170px;

  display: flex;
  flex-direction: column;
  gap: 9px;

  color: var(--muted);

  font-size: 10px;

  letter-spacing: 0.13em;
}

.hero-scroll-line {
  width: 100%;
  height: 2px;

  background:
    rgba(255,255,255,0.08);

  overflow: hidden;
}

#hero-progress {
  width: 0%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      var(--telegram),
      var(--ai)
    );
}


/* SERVICES */

.services-scroll {
  height: 420vh;
  position: relative;
}

.services-sticky {
  height: 100vh;

  position: sticky;
  top: 0;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  padding: 24px;

  overflow: hidden;
}

.eyebrow {
  color: var(--telegram);

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.18em;
}

.services-sticky > .eyebrow {
  position: absolute;
  top: 8vh;
}

.service-card {
  width: min(920px, 86vw);

  min-height: 440px;

  display: flex;
  flex-direction: column;

  justify-content: space-between;

  padding:
    clamp(32px, 5vw, 70px);

  border:
    1px solid var(--border);

  border-radius: 34px;

  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(42, 171, 238, 0.12),
      transparent 28%
    ),
    radial-gradient(
      circle at 70% 90%,
      rgba(139, 92, 246, 0.12),
      transparent 32%
    ),
    var(--surface);

  backdrop-filter: blur(24px);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 30px 100px rgba(0,0,0,0.46);

  transform:
    translateY(30px)
    scale(0.87);

  opacity: 0.65;

  will-change:
    transform,
    opacity;
}

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-number {
  color: var(--telegram);

  font-size: 13px;
  font-weight: 700;
}

.service-badge {
  padding: 7px 10px;

  border:
    1px solid var(--border);

  border-radius: 999px;

  color: var(--muted);

  font-size: 9px;

  letter-spacing: 0.14em;
}

.service-card h2 {
  max-width: 750px;

  margin-top: 40px;

  font-size:
    clamp(44px, 7vw, 94px);

  line-height: 0.98;

  letter-spacing: -0.012em;
}

.service-card p {
  max-width: 610px;

  margin-top: 24px;

  color: var(--muted);

  font-size:
    clamp(16px, 1.7vw, 21px);

  line-height: 1.5;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin-top: 25px;
}

.scroll-indicator {
  position: absolute;

  bottom: 6vh;

  width: min(400px, 70vw);

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 10px;

  color: var(--muted);

  font-size: 10px;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-track {
  width: 100%;

  height: 2px;

  background:
    rgba(255,255,255,0.07);

  overflow: hidden;
}

.scroll-progress {
  width: 0%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      var(--telegram),
      var(--ai)
    );
}


/* CTA */

.cta {
  min-height: 100vh;

  display: flex;
  align-items: center;

  padding: 8vw;

  position: relative;

  overflow: hidden;
}

.cta::before {
  content: "";

  position: absolute;

  width: 650px;
  height: 650px;

  right: -10%;
  bottom: -30%;

  background:
    radial-gradient(
      circle,
      rgba(139, 92, 246, 0.18),
      transparent 65%
    );

  filter: blur(40px);
}

.cta-content {
  width: 100%;
  max-width: 1200px;

  position: relative;
  z-index: 2;
}

.cta h2 {
  max-width: 1050px;

  font-size:
    clamp(58px, 9vw, 132px);

  line-height: 0.94;

  letter-spacing: -0.015em;
}

.cta h2 span {
  display: block;

  background:
    linear-gradient(
      90deg,
      var(--telegram),
      var(--ai)
    );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  background-clip: text;
}

.cta-content > p {
  max-width: 560px;

  margin-top: 35px;

  color: var(--muted);

  font-size: 19px;
  line-height: 1.5;
}


/* MOBILE */

/* =========================
   TABLET
   ========================= */

@media (max-width: 1024px) {

  .hero-sticky {
    padding: 6vw;
  }

  .hero-content {
    max-width: 850px;
  }

  .hero-title {
    font-size: clamp(72px, 13vw, 130px);
    line-height: 0.91;
  }

  .hero-description {
    max-width: 560px;
    font-size: 19px;
  }

  .hero-glow {
    width: 420px;
    height: 420px;
  }

  .service-card {
    width: min(880px, 90vw);
    min-height: 420px;
  }

  .service-card h2 {
    font-size: clamp(42px, 7vw, 74px);
  }

  .cta h2 {
    font-size: clamp(58px, 10vw, 105px);
  }
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 700px) {

  .hero-scroll {
    height: 280vh;
  }

  .hero-sticky {
    height: 100svh;

    align-items: center;

    padding:
      max(28px, env(safe-area-inset-top))
      20px
      max(30px, env(safe-area-inset-bottom));

    overflow: hidden;
  }

  .hero-content {
    width: 100%;
    max-width: none;
  }

  .status {
    max-width: 100%;

    margin-bottom: 22px;

    padding: 7px 10px;

    font-size: 9px;
    letter-spacing: 0.1em;

    white-space: nowrap;
  }

  .hero-title {
    width: 100%;

    font-size: clamp(56px, 19vw, 84px);
    line-height: 0.94;

    letter-spacing: -0.01em;
  }

  .hero-line {
    max-width: 100%;
  }

  .hero-description {
    max-width: 94%;

    margin-top: 26px;

    font-size: 16px;
    line-height: 1.45;
  }

  .hero-pills {
    width: 100%;

    gap: 7px;

    margin-top: 20px;
  }

  .hero-pills span,
  .service-tags span {
    padding: 7px 10px;

    font-size: 10px;
  }

  .telegram-button {
    min-height: 48px;

    margin-top: 26px;

    padding: 13px 18px;

    font-size: 14px;
  }

  .hero-glow {
    width: 300px;
    height: 300px;

    filter: blur(55px);
  }

  .hero-glow-blue {
    top: 5%;
    right: -30%;
  }

  .hero-glow-purple {
    left: 5%;
    bottom: 0;
  }

  .hero-scroll-hint {
    right: 20px;
    bottom: 18px;

    width: 125px;

    font-size: 8px;
  }


  /* SERVICES */

  .services-scroll {
    height: 370vh;
  }

  .services-sticky {
    height: 100svh;

    padding: 20px;

    justify-content: center;
  }

  .services-sticky > .eyebrow {
    top: 5vh;

    font-size: 9px;
  }

  .service-card {
    width: 100%;

    min-height: 54svh;
    max-height: 68svh;

    padding: 26px 22px;

    border-radius: 24px;

    overflow: hidden;
  }

  .service-top {
    flex-shrink: 0;
  }

  .service-card h2 {
    max-width: 100%;

    margin-top: 26px;

    font-size: clamp(35px, 11vw, 52px);
    line-height: 1;

    overflow-wrap: break-word;
  }

  .service-card p {
    margin-top: 17px;

    font-size: 15px;
    line-height: 1.45;
  }

  .service-tags {
    gap: 6px;

    margin-top: 18px;
  }

  .scroll-indicator {
    bottom: 3vh;

    width: 60vw;

    font-size: 8px;
  }


  /* CTA */

  .cta {
    min-height: 100svh;

    padding:
      60px
      20px
      max(45px, env(safe-area-inset-bottom));
  }

  .cta .status {
    white-space: normal;
  }

  .cta h2 {
    max-width: 100%;

    font-size: clamp(48px, 14vw, 72px);
    line-height: 0.98;
  }

  .cta-content > p {
    max-width: 95%;

    margin-top: 26px;

    font-size: 16px;
  }

  .cta::before {
    width: 400px;
    height: 400px;

    right: -45%;
    bottom: -10%;
  }
}


/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 390px) {

  .hero-title {
    font-size: clamp(50px, 18vw, 70px);
  }

  .status {
    font-size: 8px;
  }

  .hero-pills span {
    font-size: 9px;
  }

  .service-card {
    padding: 22px 18px;
  }

  .service-card h2 {
    font-size: clamp(32px, 10vw, 45px);
  }

  .cta h2 {
    font-size: clamp(44px, 13vw, 62px);
  }
}


/* =========================
   SHORT SCREENS
   ========================= */

@media (max-height: 700px) and (max-width: 700px) {

  .hero-title {
    font-size: clamp(48px, 15vw, 68px);
  }

  .hero-description {
    margin-top: 18px;
  }

  .hero-pills {
    margin-top: 14px;
  }

  .telegram-button {
    margin-top: 18px;
  }

  .service-card {
    min-height: 62svh;
  }
}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
