:root {
  --bg: #080b12;
  --bg-soft: #101521;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.13);
  --text: #f7f8fc;
  --muted: #a9b2c7;
  --line: rgba(255, 255, 255, 0.14);
  --primary: #7c5cff;
  --cyan: #3fe7ff;
  --pink: #ff5cb8;
  --radius-xl: 32px;
  --radius-lg: 22px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(124, 92, 255, 0.25), transparent 34rem),
    radial-gradient(circle at 82% 18%, rgba(63, 231, 255, 0.16), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: "Inter", "Noto Sans SC", system-ui, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  display: block;
  width: 100%;
}

button {
  font: inherit;
}

.cursor-dot {
  position: fixed;
  z-index: 100;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition:
    width 0.18s ease,
    height 0.18s ease,
    background 0.18s ease;
}

.cursor-dot.is-active {
  width: 54px;
  height: 54px;
  background: rgba(124, 92, 255, 0.16);
  mix-blend-mode: screen;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 32rem;
  height: 32rem;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.33;
  pointer-events: none;
}

.ambient-one {
  left: -12rem;
  top: 18rem;
  background: var(--primary);
}

.ambient-two {
  right: -14rem;
  top: 50rem;
  background: var(--cyan);
}

.section-pad {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 112px 0;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 36px), var(--max));
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 11, 18, 0.68);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
  transition:
    padding 0.25s ease,
    background 0.25s ease;
}

.site-header.is-scrolled {
  padding: 10px 16px;
  background: rgba(8, 11, 18, 0.86);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff;
}

.nav-links {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 1fr minmax(360px, 0.82fr);
  align-items: center;
  gap: 62px;
  padding-top: 150px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(48px, 8vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

h1 span {
  display: block;
  background: linear-gradient(110deg, #fff, #b9f7ff 38%, #cbbdff 70%, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.hero-text {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 46px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

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

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff;
  box-shadow: 0 18px 40px rgba(124, 92, 255, 0.32);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero-stats {
  display: grid;
  max-width: 520px;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hero-stats div,
.service-card,
.process,
.contact {
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(20px);
}

.hero-stats div {
  padding: 18px;
  border-radius: 18px;
}

.hero-stats strong {
  display: block;
  font-size: 36px;
  line-height: 1;
}

.hero-stats span {
  color: var(--muted);
  font-size: 13px;
}

.hero-stage {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.hero-stage img {
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  display: grid;
  gap: 4px;
  min-width: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8, 11, 18, 0.72);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.floating-card span {
  color: var(--muted);
  font-size: 12px;
}

.card-top {
  top: 9%;
  right: -7%;
}

.card-bottom {
  bottom: 8%;
  left: -8%;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 38px;
  padding: 24px 0;
  animation: marquee 24s linear infinite;
}

.marquee span {
  color: rgba(255, 255, 255, 0.42);
  font-size: clamp(22px, 4vw, 54px);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.intro {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 70px;
  align-items: start;
}

.intro p:last-child,
.section-head p,
.service-card p,
.process p,
.contact p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.section-head {
  display: grid;
  max-width: 760px;
  margin-bottom: 34px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.filter {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.filter:hover,
.filter.active {
  background: #fff;
  color: #080b12;
  transform: translateY(-2px);
}

.case-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.case-card {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.2);
  transform-style: preserve-3d;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.case-card.is-hidden {
  display: none;
}

.case-card.wide {
  grid-column: span 2;
}

.case-card.tall {
  grid-row: span 2;
  min-height: 838px;
}

.case-card img {
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96);
  transition:
    transform 0.65s ease,
    filter 0.35s ease;
}

.case-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.86));
}

.case-card:hover img {
  filter: saturate(1.1) contrast(1.04);
  transform: scale(1.08);
}

.case-info {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  transform: translateZ(38px);
}

.case-info span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #dce6ff;
  font-size: 12px;
}

.case-info p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 260px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.service-card span {
  color: var(--cyan);
  font-weight: 900;
}

.process {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 52px;
  padding: 48px;
  border-radius: var(--radius-xl);
}

.timeline {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.timeline li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.timeline span {
  grid-row: span 2;
  color: var(--pink);
  font-weight: 900;
}

.timeline strong {
  font-size: 20px;
}

.timeline p {
  margin-bottom: 0;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 54px;
  padding: 52px;
  border-radius: var(--radius-xl);
}

.contact div {
  max-width: 760px;
}

.case-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.76);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(14px);
  transition: opacity 0.25s ease;
}

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

.modal-panel {
  display: grid;
  width: min(980px, 100%);
  max-height: 88vh;
  grid-template-columns: 1.06fr 0.9fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #111622;
  box-shadow: var(--shadow);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.case-modal.is-open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-image {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.modal-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
}

.modal-tags {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.modal-description {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.modal-close {
  position: fixed;
  top: 24px;
  right: 26px;
  z-index: 2;
  width: 48px;
  height: 48px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 30px;
}

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

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

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .cursor-dot {
    display: none;
  }

  .hero,
  .intro,
  .process,
  .modal-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 36px;
  }

  .case-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-card.wide,
  .case-card.tall {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 430px;
  }

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

@media (max-width: 720px) {
  .section-pad {
    width: min(calc(100% - 28px), var(--max));
    padding: 78px 0;
  }

  .site-header {
    top: 12px;
    width: calc(100% - 24px);
  }

  .nav-links {
    position: fixed;
    inset: 72px 12px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(8, 11, 18, 0.95);
  }

  .nav-links a {
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  body.menu-open .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .brand span:last-child {
    display: none;
  }

  h1 {
    font-size: clamp(48px, 16vw, 72px);
  }

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

  .card-top,
  .card-bottom {
    right: 14px;
    left: auto;
  }

  .card-bottom {
    bottom: -18px;
  }

  .process,
  .contact {
    padding: 28px;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }

  .modal-panel {
    max-height: 84vh;
    overflow-y: auto;
  }

  .modal-image {
    min-height: 320px;
  }

  .modal-copy {
    padding: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
