:root {
  --bg: #05000c;
  --bg-soft: #0c0417;
  --card: rgba(20, 9, 38, 0.72);
  --card-strong: rgba(35, 12, 62, 0.82);
  --text: #ffffff;
  --muted: #cfc3df;
  --purple: #a855f7;
  --purple-strong: #7c1dff;
  --pink: #ff4df2;
  --cyan: #6ee7ff;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 30px 90px rgba(139, 35, 255, 0.28);
  --radius: 28px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.28), transparent 32rem),
    radial-gradient(circle at 80% 20%, rgba(255, 77, 242, 0.14), transparent 26rem),
    linear-gradient(180deg, #030008 0%, var(--bg) 44%, #090015 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section-padding {
  padding: 100px 0;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.5;
  z-index: -2;
}

.glow-one {
  background: var(--purple-strong);
  top: 8%;
  left: -120px;
}

.glow-two {
  background: var(--pink);
  right: -140px;
  top: 45%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 0, 12, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.navbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 205px;
}

.brand img {
  width: 100%;
  filter: drop-shadow(0 0 22px rgba(168, 85, 247, 0.7));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
}

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

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  transition: width 0.2s ease;
}

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

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

.nav-cta {
  padding: 12px 18px;
  border: 1px solid rgba(168, 85, 247, 0.55);
  border-radius: 999px;
  color: var(--text);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.18);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px auto;
  background: var(--text);
  border-radius: 999px;
  transition: 0.2s ease;
}

.hero {
  min-height: calc(100vh - 86px);
  display: flex;
  align-items: center;
  padding-top: 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(168, 85, 247, 0.32);
  border-radius: 999px;
  color: #eadbff;
  background: rgba(168, 85, 247, 0.12);
  box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.08);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1,
.section-title h2,
.cta-card h2 {
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(3rem, 7vw, 6.9rem);
  max-width: 890px;
}

.gradient-text {
  background: linear-gradient(120deg, #fff 0%, #d7b4ff 30%, var(--pink) 68%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 42px rgba(168, 85, 247, 0.15);
}

.hero p,
.section-title p,
.cta-card p,
.service-card p,
.project-card p,
.timeline-item p {
  color: var(--muted);
  line-height: 1.72;
}

.hero p {
  margin-top: 24px;
  max-width: 670px;
  font-size: 1.11rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--purple-strong), var(--pink));
  box-shadow: 0 16px 48px rgba(168, 85, 247, 0.38), inset 0 1px 0 rgba(255,255,255,0.35);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
  color: #f5ecff;
}

.btn-secondary:hover {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 12px 36px rgba(168, 85, 247, 0.15);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 42px;
  max-width: 720px;
}

.stats article {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.052);
}

.stats strong {
  display: block;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-card {
  position: relative;
  min-height: 580px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 12%, rgba(168, 85, 247, 0.28), transparent 22rem),
    linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.025));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 55%);
  pointer-events: none;
}

.code-window {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 28px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.44);
  box-shadow: inset 0 0 30px rgba(168, 85, 247, 0.12);
}

.window-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.46);
}

pre {
  white-space: pre-wrap;
  color: #eadbff;
  font-size: 0.98rem;
  line-height: 1.62;
}

.floating-logo {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: min(92%, 560px);
  transform: translateX(-50%);
  padding: 18px;
  border-radius: 28px;
  background: rgba(5, 0, 12, 0.18);
}

.floating-logo img {
  width: 100%;
  filter: drop-shadow(0 0 38px rgba(168, 85, 247, 0.95));
}

.tech-strip {
  border-block: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  overflow: hidden;
}

.strip-content {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 52px);
  flex-wrap: wrap;
  color: #e8d5ff;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.83rem;
}

.section-title {
  max-width: 790px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-title.align-left {
  text-align: left;
  margin: 0;
}

.section-title h2,
.cta-card h2 {
  margin-top: 18px;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
}

.section-title p {
  margin: 20px auto 0;
  max-width: 650px;
  font-size: 1rem;
}

.align-left p {
  margin-left: 0;
}

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

.service-card,
.project-card,
.timeline-item,
.cta-card {
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 70px rgba(0,0,0,0.24);
}

.service-card {
  position: relative;
  min-height: 280px;
  padding: 28px;
  border-radius: 26px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto -70px -90px auto;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.28);
  filter: blur(24px);
}

.service-card:hover,
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(168, 85, 247, 0.5);
}

.icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(168,85,247,0.30), rgba(255,77,242,0.16));
  border: 1px solid rgba(255,255,255,0.12);
  color: #f7eaff;
  font-weight: 900;
  margin-bottom: 26px;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.22);
}

.service-card h3,
.project-card h3,
.timeline-item h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
}

.projects-section {
  background:
    radial-gradient(circle at center, rgba(168, 85, 247, 0.15), transparent 35rem),
    rgba(255,255,255,0.012);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  position: relative;
  padding: 30px;
  min-height: 330px;
  border-radius: 28px;
  transition: 0.2s ease;
  overflow: hidden;
}

.project-card.featured {
  background:
    linear-gradient(150deg, rgba(124, 29, 255, 0.4), rgba(255, 77, 242, 0.12)),
    var(--card-strong);
  box-shadow: var(--shadow);
}

.tag {
  display: inline-flex;
  margin-bottom: 42px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ecdfff;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
  font-size: 0.78rem;
  font-weight: 800;
}

.project-card p {
  margin-bottom: 26px;
}

.project-card a {
  position: absolute;
  left: 30px;
  bottom: 30px;
  color: #fff;
  font-weight: 800;
}

.process-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 50px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 22px;
  padding: 24px;
  border-radius: 24px;
}

.timeline-item span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(168, 85, 247, 0.17);
  border: 1px solid rgba(168, 85, 247, 0.32);
  color: #fff;
  font-weight: 900;
}

.cta-section {
  padding: 70px 0 110px;
}

.cta-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
  padding: clamp(28px, 6vw, 60px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 77, 242, 0.18), transparent 24rem),
    linear-gradient(135deg, rgba(124, 29, 255, 0.25), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
}

.cta-card p {
  max-width: 650px;
  margin-top: 18px;
}

.cta-actions {
  justify-content: flex-end;
  margin: 0;
}

.footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 34px 0;
  background: rgba(0,0,0,0.28);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer img {
  width: 135px;
  filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.48));
}

.footer a {
  font-weight: 800;
  color: #fff;
}

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

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

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.22s;
}

.delay-3 {
  transition-delay: 0.32s;
}

@media (max-width: 1040px) {
  .hero-grid,
  .process-grid,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-card {
    min-height: 520px;
  }

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

  .project-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 780px) {
  .navbar {
    min-height: 76px;
  }

  .brand {
    width: 160px;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 25;
  }

  .nav-links {
    position: fixed;
    inset: 76px 16px auto 16px;
    display: grid;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(9, 0, 21, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
  }

  body.menu-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  body.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .section-padding {
    padding: 72px 0;
  }

  .hero {
    padding-top: 52px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.9rem);
  }

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

  .hero-card {
    min-height: 470px;
  }

  .code-window {
    left: 16px;
    right: 16px;
    top: 16px;
  }

  pre {
    font-size: 0.82rem;
  }

  .floating-logo {
    bottom: 18px;
    width: 96%;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

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

@media (max-width: 440px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .hero-actions,
  .cta-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .service-card,
  .project-card,
  .timeline-item {
    padding: 22px;
  }
}
