*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-main: #07060d;
  --bg-card: #0d0b16;
  --accent: #8b5cff;
  --accent-strong: #c26dff;
  --accent-deep: #6c4dff;
  --text-main: #ffffff;
  --text-gray: #a1a1a1;
  --text-muted: #a89fc9;
  --border-subtle: rgba(255, 255, 255, 0.05);
  --card-border: rgba(160, 120, 255, 0.28);
  --radius-lg: 29px;
  --radius-pill: 999px;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Onest", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

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

/* Background */

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at top, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top, #000 20%, transparent 70%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at top center,
    rgba(139, 92, 255, 0.22),
    transparent 60%
  );
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 1160px;
  padding: 0 20px;
  margin: 0 auto;
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: radial-gradient(
    46% 78% at 50% 0%,
    #1c1a24 0%,
    #141219 100%
  );
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-mark {
  width: 30px;
  height: 30px;
  display: block;
}

.logo-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #ffffff 0%, #d9c8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.18s ease-out;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link:hover::after {
  width: 100%;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-icon-link {
  color: #fff;
  display: flex;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.header-icon-link:hover {
  opacity: 1;
}

.icon {
  width: 18px;
  height: 18px;
  display: block;
}

/* Burger */

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 2px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 55px;
  z-index: 19;
}

.mobile-menu.open {
  display: flex;
}

.mobile-link {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
}

.mobile-link:hover {
  background: #110e1c;
  color: var(--text-main);
}

/* HERO */

.hero {
  padding: 80px 0 60px;
}

.hero-layout {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
}

.hero-kicker {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: clamp(56px, 14.5vw, 167px);
  line-height: 0.78;
  text-align: center;
  background: linear-gradient(
    90deg,
    #7c5cff 20%,
    #d46bff 50%,
    #7c5cff 80%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #8b5cff;
}

.hero-subtitle {
  margin: 26px auto 32px;
  font-size: 23px;
  line-height: 1.15;
  background: radial-gradient(
    62% 167% at 65% 0%,
    #f8f8f8 0%,
    #9e9e9d 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-actions {
  display: flex;
  justify-content: center;
}

/* BUTTONS */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  border: none;
  background: radial-gradient(circle at top left, #c26dff, #6c4dff);
  box-shadow: 0 18px 40px rgba(124, 77, 255, 0.5);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(124, 77, 255, 0.62);
}

/* SECTIONS */

.section {
  padding: 64px 0;
}

.section-title {
  margin: 0 0 32px;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 45px;
  line-height: 0.95;
  color: #fff;
}

/* CARDS (shared) */

.card,
.wf-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: radial-gradient(
    120% 90% at 50% 0%,
    #1a1724 0%,
    #0d0b16 100%
  );
  border: 1px solid transparent;
  background-clip: padding-box;
}

.card::before,
.wf-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    160deg,
    rgba(194, 109, 255, 0.55),
    rgba(255, 255, 255, 0.06) 40%,
    rgba(108, 77, 255, 0.45)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* SERVICES */

.cards-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
}

.card {
  padding: 34px 40px 36px;
  display: flex;
  flex-direction: column;
}

.card-dev {
  width: 410px;
  min-height: 363px;
}

.card-traffic {
  width: 524px;
  min-height: 363px;
}

.card-title {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 27px;
  line-height: 1.05;
  background: linear-gradient(90deg, #d46bff 0%, #8b5cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
}

.card-text {
  margin-top: auto;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  color: #cfcfd4;
  position: relative;
  z-index: 2;
}

/* code window */

.code-window {
  position: relative;
  width: 100%;
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
}

.code-line {
  display: flex;
  gap: 6px;
  height: 6px;
}

.code-line.indent {
  padding-left: 18px;
}

.code-line i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.code-line .kw {
  background: rgba(194, 109, 255, 0.6);
}
.code-line .str {
  background: rgba(124, 92, 255, 0.55);
}
.code-line .fn {
  background: rgba(255, 255, 255, 0.28);
}

.w-3 { width: 18px; }
.w-4 { width: 24px; }
.w-5 { width: 30px; }
.w-6 { width: 36px; }
.w-7 { width: 42px; }
.w-8 { width: 48px; }
.w-9 { width: 54px; }
.w-10 { width: 60px; }
.w-11 { width: 66px; }
.w-12 { width: 72px; }
.w-14 { width: 84px; }

.app-tiles {
  position: absolute;
  right: 22px;
  top: 96px;
  width: 110px;
  height: 170px;
  pointer-events: none;
}

.app-tile {
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.app-tile svg {
  width: 52px;
  height: 52px;
}

.tile-a {
  top: 0;
  right: 0;
  background: linear-gradient(145deg, #2b2340, #15121d);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(8deg);
}

.tile-b {
  top: 90px;
  right: 50px;
  width: 78px;
  height: 78px;
  background: linear-gradient(145deg, #c26dff, #6c4dff);
  transform: rotate(-10deg);
}

.tile-b svg {
  width: 44px;
  height: 44px;
}

/* traffic chart */

.traffic-chart {
  width: 100%;
  height: 150px;
  display: block;
  margin-bottom: 22px;
}

/* WORKFLOW */

.workflow {
  padding: 100px 0;
  position: relative;
}

.workflow .section-title {
  margin-bottom: 60px;
}

.workflow-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.wf-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.wf-right-top {
  display: flex;
  justify-content: space-between;
  gap: 21px;
}

.wf-card {
  flex-shrink: 0;
}

.wf-text {
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  z-index: 3;
}

.wf-text h3 {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 27px;
  line-height: 1.2;
  background: linear-gradient(90deg, #ebeaea 0%, #9e9e9d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wf-text h3 span {
  background: linear-gradient(90deg, #d46bff 0%, #7c5cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wf-text p {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: #cfcfd4;
}

.wf-num {
  position: absolute;
  right: 18px;
  bottom: -30px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 200px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.045);
  pointer-events: none;
  z-index: 1;
}

/* Step 1 — Analysis */

.wf-analysis {
  width: 344px;
  height: 575px;
}

.wf-analysis .wf-num {
  font-size: 220px;
  bottom: -10px;
  right: 10px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.05);
}

.phone {
  position: absolute;
  left: 84px;
  top: 140px;
  width: 300px;
  height: 520px;
  border-radius: 48px;
  background: linear-gradient(180deg, #1f1c2a 0%, #141119 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  padding: 30px 26px;
  z-index: 2;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ph-bar {
  width: 130px;
  height: 22px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
}

.ph-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ph-row > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 120px;
}

.ph-logo {
  width: 36px;
  height: 36px;
}

.ph-line {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.09);
}

.ph-msg {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 18px;
  border-radius: 20px 20px 0 0;
  background: rgba(255, 255, 255, 0.04);
  width: 230px;
}

.w-40 { width: 40%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-60 { width: 60%; }
.w-65 { width: 65%; }
.w-70 { width: 70%; }
.w-80 { width: 80%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }

.ph-call {
  position: absolute;
  left: -52px;
  top: 300px;
  width: 190px;
  height: 56px;
  border-radius: 14px;
  background: #24212d;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 16px;
}

.ph-time {
  font-family: "Open Sans", sans-serif;
  font-size: 10px;
  line-height: 14px;
  color: #818181;
}

.ph-name {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
  color: #f8f8f8;
}

.ph-btn {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #c26dff, #6c4dff);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(139, 92, 255, 0.55);
}

.ph-btn svg {
  width: 18px;
  height: 18px;
}

/* Step 4 — Scaling */

.wf-scaling {
  width: 345px;
  height: 259px;
}

.scale-chart {
  position: absolute;
  left: 28px;
  bottom: 0;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  height: 120px;
  z-index: 2;
}

.scale-chart .axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 112px;
  padding-bottom: 6px;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #7f7a92;
}

.scale-chart .axis span::before {
  content: "\2261";
  margin-right: 4px;
  opacity: 0.7;
}

.scale-chart svg {
  width: 160px;
  height: 110px;
  display: block;
}

/* Step 3 — Testing */

.wf-testing {
  width: 222px;
  height: 259px;
}

.gauge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.gauge svg {
  width: 100%;
  height: auto;
  display: block;
}

.wf-text-bottom {
  top: auto;
  bottom: 24px;
  left: 20px;
}

.wf-testing .wf-text h3 {
  font-size: 24px;
}

.wf-testing .wf-num {
  font-size: 150px;
  right: 10px;
  bottom: -18px;
}

/* Step 2 — Design */

.wf-design {
  width: 588px;
  height: 288px;
}

.wf-design .wf-text {
  max-width: 400px;
}

.wf-design .wf-num {
  font-size: 230px;
  right: 60px;
  bottom: -34px;
  color: rgba(255, 255, 255, 0.06);
  z-index: 2;
}

.road {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.design-tiles {
  position: absolute;
  left: 0;
  bottom: -30px;
  width: 220px;
  height: 160px;
  z-index: 2;
}

.design-tiles .tile-a {
  left: -14px;
  top: 10px;
  width: 112px;
  height: 112px;
  right: auto;
  transform: rotate(-6deg);
}

.design-tiles .tile-b {
  left: 112px;
  top: 52px;
  width: 92px;
  height: 92px;
  right: auto;
  transform: rotate(10deg);
}

.design-phone {
  position: absolute;
  right: -20px;
  top: 72px;
  width: 240px;
  height: 300px;
  border-radius: 40px;
  background: linear-gradient(180deg, #211e2c 0%, #16131d 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: rotate(-10deg);
  z-index: 1;
}

/* CTA */

.cta {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 800px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(139, 92, 255, 0.22),
    transparent 65%
  );
  z-index: -1;
}

.cta-inner {
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.cta-title {
  margin: 0 0 32px;
  font-size: 40px;
  line-height: 1.3;
  font-weight: 400;
}

.cta-title span {
  display: inline-block;
  font-weight: 700;
  background: linear-gradient(90deg, #d46bff 0%, #7c5cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-btn {
  padding-inline: 48px;
  font-size: 18px;
}

/* FOOTER */

.footer {
  min-height: 359px;
  border-top: 1px solid var(--border-subtle);
  background: radial-gradient(
    46% 78% at 50% 0%,
    #1c1a24 0%,
    #141219 100%
  );
  padding: 40px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.logo-footer .logo-mark {
  width: 26px;
  height: 26px;
}

.logo-footer .logo-text {
  font-size: 18px;
}

.footer-mail {
  font-size: 14px;
  color: var(--text-gray);
  text-decoration: none;
}

.footer-mail:hover {
  text-decoration: underline;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social-link {
  width: 44px;
  height: 44px;
  background: linear-gradient(180deg, #8b5cff 0%, #c26dff 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.15s ease;
}

.footer-social-link:hover {
  transform: translateY(-2px);
}

.footer-middle {
  display: flex;
  flex-direction: column;
  align-self: flex-end;
  gap: 8px;
}

.footer-copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #8f8f8f;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

.footer-link {
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--accent-strong);
}

/* RESPONSIVE */

@media (max-width: 1000px) {
  .cards-grid {
    flex-direction: column;
    align-items: center;
  }

  .card-dev,
  .card-traffic {
    width: 100%;
    max-width: 524px;
  }

  .workflow-grid {
    flex-direction: column;
    align-items: center;
  }

  .wf-right {
    width: 100%;
    max-width: 588px;
    align-items: center;
  }

  .wf-right-top {
    width: 100%;
    justify-content: center;
  }

  .wf-design {
    width: 100%;
    max-width: 588px;
  }

  .footer-inner {
    align-items: center;
  }

  .footer-middle {
    order: 3;
    width: 100%;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding: 10px 0;
  }

  .nav,
  .header-icons {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.2;
  }

  .hero-subtitle br {
    display: none;
  }

  .section-title {
    font-size: 35px;
  }

  .card {
    padding: 28px 24px 30px;
  }

  .card-title {
    font-size: 23px;
  }

  .app-tiles {
    top: 80px;
    right: 10px;
    transform: scale(0.8);
    transform-origin: top right;
  }

  .wf-right-top {
    flex-direction: column;
    align-items: center;
  }

  .wf-analysis {
    width: 100%;
    max-width: 349px;
  }

  .wf-scaling,
  .wf-testing {
    width: 100%;
    max-width: 349px;
    height: 259px;
  }

  .wf-testing .gauge svg {
    width: 222px;
    margin: 0 auto;
  }

  .wf-design {
    height: 300px;
  }

  .wf-design .wf-text {
    max-width: 100%;
  }

  .wf-design .wf-num {
    right: 20px;
  }

  .design-phone {
    right: -80px;
  }

  .cta {
    padding: 80px 0;
  }

  .cta-title {
    font-size: 28px;
  }

  .cta-btn {
    width: 100%;
    max-width: 260px;
  }

  .footer {
    min-height: 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 34px;
  }

  .footer-nav {
    align-items: flex-start;
  }

  .footer-middle {
    align-items: flex-start;
    text-align: left;
  }
}
