:root {
  --bg: #06050c;
  --bg-soft: #0e0b1c;
  --surface: rgba(18, 15, 35, 0.78);
  --surface-border: rgba(157, 118, 255, 0.25);
  --text: #f4efff;
  --text-dim: #bfb5d9;
  --primary: #8b5cf6;
  --primary-strong: #6f3ef0;
  --radius: 18px;
  --shadow: 0 22px 60px rgba(93, 54, 176, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(1300px 700px at 85% -20%, rgba(126, 80, 241, 0.22), transparent 60%),
    radial-gradient(1000px 700px at 0% 0%, rgba(80, 53, 161, 0.24), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 700ms ease;
}

body.is-ready {
  opacity: 1;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(14px);
  pointer-events: none;
  z-index: -1;
}

.ambient-1 {
  width: 340px;
  aspect-ratio: 1 / 1;
  right: -70px;
  top: 120px;
  background: radial-gradient(circle at 40% 40%, rgba(156, 115, 255, 0.55), rgba(156, 115, 255, 0.04));
  animation: floatA 10s ease-in-out infinite;
}

.ambient-2 {
  width: 290px;
  aspect-ratio: 1 / 1;
  left: -80px;
  top: 52%;
  background: radial-gradient(circle at 50% 50%, rgba(111, 62, 240, 0.45), rgba(111, 62, 240, 0));
  animation: floatB 12s ease-in-out infinite;
}

.container {
  width: min(1080px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  background: rgba(6, 5, 12, 0.66);
  border-bottom: 1px solid rgba(139, 92, 246, 0.16);
  z-index: 10;
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.4rem;
}

.nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  transition: color 200ms ease;
}

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

.nav-cta {
  color: var(--text);
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(151, 117, 255, 0.35);
  border-radius: 12px;
  background: rgba(143, 96, 255, 0.08);
  transition: transform 200ms ease, border-color 200ms ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(183, 154, 255, 0.6);
}

.hero {
  padding-top: 1.35rem;
  padding-bottom: 2.8rem;
}

.hero-tag {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(166, 132, 255, 0.26);
  color: #dccbff;
  font-size: 0.88rem;
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  margin-top: 0.2rem;
  font-size: clamp(2rem, 5.2vw, 4rem);
  line-height: 1.08;
  max-width: 14ch;
}

.hero-text {
  margin-top: 1.2rem;
  color: var(--text-dim);
  max-width: 66ch;
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  font-weight: 700;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 10px 28px rgba(116, 74, 217, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(116, 74, 217, 0.5);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stats {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-stats li {
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  background: var(--surface);
  padding: 0.8rem 1rem;
}

.hero-stats strong {
  display: block;
  font-size: 1.25rem;
  font-family: "Sora", sans-serif;
}

.hero-stats span {
  font-size: 0.92rem;
  color: var(--text-dim);
}

.section {
  position: relative;
  padding: 1rem 0 1.55rem;
}

#services.section,
#workflow.section,
#cases.section {
  margin-top: 2.6rem;
  padding: 1.25rem clamp(1rem, 2.4vw, 1.4rem) 1.45rem;
  border: 1px solid rgba(157, 118, 255, 0.26);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(16, 13, 30, 0.86), rgba(11, 9, 22, 0.8));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

#contact.section {
  margin-top: 2.6rem;
}

#services.section {
  margin-top: 1.95rem;
}

#services.section::before,
#workflow.section::before,
#cases.section::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  top: 1.05rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(173, 138, 255, 0), rgba(173, 138, 255, 0.56), rgba(173, 138, 255, 0));
}

.kicker {
  margin: 0 0 0.15rem;
  font-family: "Sora", sans-serif;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  color: #ceb3ff;
  text-transform: uppercase;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b98fff;
}

.section-head {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
  padding-top: 0.45rem;
}

h2 {
  font-size: clamp(1.28rem, 2.65vw, 1.9rem);
  max-width: 24ch;
}

.services-simple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  background: var(--surface);
  padding: 1.2rem;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(188, 159, 255, 0.6);
  background: rgba(23, 18, 43, 0.84);
}

.card h3 {
  font-size: 1.05rem;
}

.card p {
  margin: 0.7rem 0 0;
  color: var(--text-dim);
}

.card-label {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #c9adff;
}

.service-main {
  background:
    linear-gradient(155deg, rgba(126, 82, 238, 0.3), rgba(24, 18, 44, 0.65)),
    rgba(18, 15, 35, 0.84);
}

.service-main h3 {
  font-size: 1.1rem;
}

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.process-item {
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  background: rgba(18, 15, 35, 0.72);
  padding: 1rem 1.1rem;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0.7rem;
  align-items: start;
}

.process-number {
  font-family: "Sora", sans-serif;
  font-size: 0.76rem;
  color: #e8ddff;
  width: 42px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(191, 158, 255, 0.5);
  background: rgba(137, 93, 244, 0.24);
}

.process-item h3 {
  font-size: 1.03rem;
}

.process-item p {
  margin: 0.5rem 0 0;
  color: var(--text-dim);
}

.cases-list {
  border: 1px solid rgba(168, 127, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(17, 14, 31, 0.74);
  padding: 0.3rem 1rem;
}

.case-item {
  padding: 1rem 0.3rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(160, 126, 238, 0.2);
}

.case-item:last-child {
  border-bottom: 0;
}

.case-client {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c9adff;
}

.case-item h3 {
  margin-top: 0.35rem;
  font-size: 1.03rem;
}

.case-item p {
  margin: 0.55rem 0 0;
  color: var(--text-dim);
}

.case-metric {
  margin: 0;
  white-space: nowrap;
  font-size: 0.83rem;
  color: #f0e7ff;
  border: 1px solid rgba(194, 166, 255, 0.5);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(132, 87, 236, 0.25);
}

.cases-cta {
  margin-top: 1rem;
}

.contact {
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(182, 148, 255, 0.35);
  background:
    linear-gradient(145deg, rgba(111, 62, 240, 0.32), rgba(111, 62, 240, 0.06)),
    rgba(18, 14, 35, 0.82);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 4vw, 2.4rem);
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.contact p {
  color: #e0d3ff;
}

.site-footer {
  padding: 1.8rem 0 2rem;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-wrap p,
.footer-wrap a {
  margin: 0;
  color: var(--text-dim);
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms ease, transform 520ms ease;
  transition-delay: var(--delay, 0ms);
}

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

@media (max-width: 960px) {
  .services-simple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-item {
    flex-direction: column;
    gap: 0.8rem;
  }

  .case-metric {
    white-space: normal;
  }

  .contact {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .nav {
    display: none;
  }

  .ambient {
    display: none;
  }

  .hero {
    padding-top: 1rem;
  }

  #services.section,
  #workflow.section,
  #cases.section {
    margin-top: 2rem;
    border-radius: 16px;
    padding: 1rem 0.95rem 1.2rem;
  }

  #contact.section {
    margin-top: 2rem;
  }

  #services.section {
    margin-top: 1.35rem;
  }

  #services.section::before,
  #workflow.section::before,
  #cases.section::before {
    left: 0.95rem;
    right: 0.95rem;
    top: 0.8rem;
  }

  .hero-stats,
  .services-simple {
    grid-template-columns: 1fr;
  }

  .process-item {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(1080px, calc(100% - 1.5rem));
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes floatA {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(18px) translateX(-6px);
  }
}

@keyframes floatB {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-16px) translateX(8px);
  }
}
