:root {
  --purple: #5b1b68;
  --purple-dark: #35103f;
  --purple-mid: #783284;
  --teal: #16a6a3;
  --amber: #e6a821;
  --lavender: #f6eef8;
  --ink: #151019;
  --muted: #6f6074;
  --white: #ffffff;
  --line: rgba(91, 27, 104, 0.16);
  --shadow: 0 24px 70px rgba(53, 16, 63, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

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

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

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  width: min(1160px, calc(100% - 32px));
  height: 72px;
  padding: 10px 12px 10px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  box-shadow: 0 12px 42px rgba(53, 16, 63, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  width: 190px;
  flex: 0 0 auto;
}

.brand img,
.site-footer img {
  mix-blend-mode: multiply;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-left: auto;
  color: #403245;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a,
.dropdown-toggle {
  position: relative;
  padding: 8px 0;
}

.site-nav > a::after,
.nav-dropdown > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--purple);
  transition: width 220ms ease;
}

.site-nav > a:hover::after,
.nav-dropdown:hover > a::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-toggle {
  width: 18px;
  height: 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dropdown-toggle::before {
  content: "";
  position: absolute;
  inset: 5px 4px auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--purple);
  border-bottom: 2px solid var(--purple);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.nav-dropdown:hover .dropdown-toggle::before,
.nav-dropdown.is-open .dropdown-toggle::before {
  transform: translateY(3px) rotate(225deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  width: 280px;
  padding: 10px;
  display: grid;
  gap: 4px;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(53, 16, 63, 0.18);
  backdrop-filter: blur(18px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
}

.dropdown-menu a {
  padding: 12px 14px;
  border-radius: 8px;
  color: #403245;
  font-size: 0.92rem;
}

.dropdown-menu a:hover {
  color: var(--purple);
  background: var(--lavender);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.header-cta,
.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  box-shadow: 0 14px 30px rgba(91, 27, 104, 0.22);
}

.btn.secondary {
  color: var(--purple);
  background: var(--white);
  border: 1px solid var(--line);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 8px;
  background: var(--lavender);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--purple);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 150px max(24px, calc((100vw - 1160px) / 2)) 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.96fr);
  gap: 52px;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 18%, rgba(91, 27, 104, 0.12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #ffffff 44%, #f9f1fb 100%);
  z-index: -2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.grid-line {
  position: absolute;
  width: 150vw;
  height: 1px;
  left: -25vw;
  background: linear-gradient(90deg, transparent, rgba(91, 27, 104, 0.18), transparent);
  animation: drift 12s linear infinite;
}

.grid-line.one {
  top: 36%;
  transform: rotate(-10deg);
}

.grid-line.two {
  top: 62%;
  transform: rotate(8deg);
  animation-duration: 16s;
}

.pulse-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 0 rgba(91, 27, 104, 0.22);
  animation: pulse 2.8s infinite;
}

.dot-a {
  top: 24%;
  left: 12%;
}

.dot-b {
  top: 72%;
  left: 52%;
  animation-delay: 0.6s;
}

.dot-c {
  top: 28%;
  right: 12%;
  animation-delay: 1.2s;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--purple);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  max-width: 820px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.75;
}

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

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
  max-width: 640px;
}

.metrics div,
.floating-card,
.service-card,
.timeline-item,
.proof-grid div,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.metrics div {
  padding: 18px;
}

.metrics strong {
  display: block;
  color: var(--purple);
  font-size: 2rem;
  line-height: 1;
}

.metrics div:nth-child(2) strong {
  color: var(--teal);
}

.metrics div:nth-child(3) strong {
  color: var(--amber);
}

.metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.visual-photo {
  width: min(520px, 100%);
  border: 1px solid rgba(91, 27, 104, 0.18);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 85px rgba(53, 16, 63, 0.2);
  animation: float 7s ease-in-out infinite;
}

.hero .visual-photo {
  display: none;
}

.visual-photo img,
.page-hero-visual > img,
.image-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orbit-wrap {
  position: relative;
  width: min(470px, 82vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.small-orbit {
  position: absolute;
  right: -16px;
  bottom: 8px;
  width: 210px;
  padding: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(53, 16, 63, 0.16);
}

.hero .orbit-wrap {
  width: min(520px, 86vw);
}

.hero-mark {
  position: relative;
  z-index: 3;
  width: 78%;
  filter: drop-shadow(0 24px 35px rgba(91, 27, 104, 0.2));
  animation: float 5.8s ease-in-out infinite;
}

.orbit {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(91, 27, 104, 0.22);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

.orbit::after {
  content: "";
  position: absolute;
  top: 8%;
  left: 18%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--purple);
}

.orbit-two {
  inset: 16%;
  transform: rotate(62deg);
  animation-duration: 12s;
}

.orbit-three {
  inset: 0;
  transform: rotate(-22deg);
  animation-duration: 24s;
}

.floating-card {
  position: absolute;
  z-index: 4;
  width: 210px;
  padding: 18px;
  backdrop-filter: blur(14px);
}

.floating-card span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 900;
}

.floating-card strong {
  display: block;
  font-size: 1rem;
}

.card-top {
  top: 42px;
  right: 0;
  animation: float 6.2s ease-in-out infinite;
}

.card-bottom {
  bottom: 58px;
  left: 0;
  animation: float 6.8s ease-in-out infinite 0.5s;
}

.section {
  padding: 88px max(24px, calc((100vw - 1160px) / 2));
}

.page-hero {
  position: relative;
  min-height: 78vh;
  padding: 150px max(24px, calc((100vw - 1160px) / 2)) 70px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 48px;
  align-items: center;
  background:
    radial-gradient(circle at 78% 18%, rgba(91, 27, 104, 0.12), transparent 26%),
    linear-gradient(135deg, #ffffff 0%, #ffffff 48%, #fbf2fc 100%);
  overflow: hidden;
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  width: 130vw;
  height: 1px;
  left: -15vw;
  background: linear-gradient(90deg, transparent, rgba(91, 27, 104, 0.16), transparent);
  z-index: 0;
  animation: drift 14s linear infinite;
}

.page-hero::before {
  top: 36%;
  transform: rotate(-9deg);
}

.page-hero::after {
  top: 68%;
  transform: rotate(7deg);
  animation-duration: 18s;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero-visual {
  position: relative;
  min-height: 450px;
  display: grid;
  place-items: center;
}

.page-hero-visual > img {
  width: min(560px, 100%);
  aspect-ratio: 14 / 9;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}

.mini-orbit {
  position: absolute;
  right: -8px;
  bottom: -18px;
  width: 210px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(91, 27, 104, 0.12);
  box-shadow: 0 18px 44px rgba(53, 16, 63, 0.16);
}

.mini-orbit img {
  position: relative;
  z-index: 2;
  width: 78%;
  filter: drop-shadow(0 14px 22px rgba(91, 27, 104, 0.18));
}

.page-hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 5.4rem);
}

.image-feature,
.two-column,
.content-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.image-feature img {
  aspect-ratio: 14 / 9;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-feature p,
.two-column p,
.content-section p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.78;
}

.intro-strip {
  color: var(--white);
  background: var(--purple-dark);
}

.intro-strip p {
  margin: 0;
  max-width: 1000px;
  font-size: clamp(1.45rem, 3.1vw, 3rem);
  line-height: 1.18;
  font-weight: 900;
}

.section-heading {
  max-width: 670px;
  margin-bottom: 36px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

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

.service-card {
  position: relative;
  min-height: 270px;
  padding: 28px;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: auto 20px 20px auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(91, 27, 104, 0.08);
  transition: transform 220ms ease;
}

.service-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 30px 80px rgba(53, 16, 63, 0.18);
}

.service-card:hover::before {
  transform: scale(1.55);
}

.service-card.highlight {
  color: var(--white);
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
}

.service-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--white);
  background: var(--purple);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 900;
}

.service-card:nth-child(2) .service-icon,
.service-card:nth-child(5) .service-icon {
  background: var(--teal);
}

.service-card:nth-child(3) .service-icon {
  background: var(--amber);
}

.highlight .service-icon {
  color: var(--purple);
  background: var(--white);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.36rem;
}

.service-card h2 {
  margin-bottom: 12px;
  font-size: 1.5rem;
  line-height: 1.12;
}

.service-card p,
.timeline-item p,
.proof-grid span,
.contact-card p,
.ai-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.text-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  margin-top: 12px;
  color: var(--purple);
  font-weight: 900;
}

.service-card.highlight .text-link {
  color: var(--white);
}

.text-link::after {
  content: "";
  width: 24px;
  height: 2px;
  margin: auto 0 auto 8px;
  background: currentColor;
  transition: width 180ms ease;
}

.text-link:hover::after {
  width: 40px;
}

.bullet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bullet-grid span {
  min-height: 70px;
  padding: 18px 18px 18px 48px;
  display: flex;
  align-items: center;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: #403245;
  font-weight: 800;
  box-shadow: 0 18px 45px rgba(53, 16, 63, 0.08);
}

.bullet-grid span::before {
  content: "";
  position: absolute;
  left: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 6px rgba(91, 27, 104, 0.1);
}

.bullet-grid span:nth-child(2n)::before {
  background: var(--teal);
}

.bullet-grid span:nth-child(3n)::before {
  background: var(--amber);
}

.cta-band {
  margin: 0 max(24px, calc((100vw - 1160px) / 2)) 90px;
  padding: clamp(30px, 5vw, 58px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3.6vw, 3.4rem);
}

.service-card.highlight p {
  color: rgba(255, 255, 255, 0.78);
}

.ai-section {
  background: #fbf8fc;
}

.ai-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 28px;
}

.ai-panel p:last-child {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.timeline-item {
  padding: 28px;
  background: var(--white);
}

.timeline-item span {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 900;
}

.timeline-item:nth-child(2) span {
  color: var(--teal);
}

.timeline-item:nth-child(3) span {
  color: var(--amber);
}

.proof-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: start;
}

.proof-grid {
  display: grid;
  gap: 16px;
}

.proof-grid div {
  padding: 24px;
}

.proof-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--purple);
  font-size: 1.1rem;
}

.contact-section {
  padding-top: 40px;
}

.contact-card {
  padding: clamp(32px, 6vw, 70px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(91, 27, 104, 0.95), rgba(53, 16, 63, 0.98)),
    url("assets/webbytes-mark.png") right 5% center / 440px auto no-repeat;
}

.contact-card p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-card .eyebrow {
  color: #f5dfff;
}

.contact-card .btn.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

.site-footer {
  padding: 32px 24px 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 170px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(91, 27, 104, 0.24);
  }
  70% {
    box-shadow: 0 0 0 22px rgba(91, 27, 104, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(91, 27, 104, 0);
  }
}

@keyframes drift {
  0% {
    translate: -10% 0;
  }
  100% {
    translate: 10% 0;
  }
}

@media (max-width: 920px) {
  .site-header {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
  }

  .brand {
    width: 160px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .site-header.nav-open .site-nav {
    display: grid;
    width: 100%;
    gap: 6px;
    margin: 4px 0 0;
    padding: 8px 0 4px;
  }

  .site-header.nav-open .site-nav a {
    padding: 12px 4px;
  }

  .site-header.nav-open .nav-dropdown {
    display: grid;
    gap: 0;
  }

  .site-header.nav-open .nav-dropdown > a {
    padding: 12px 4px;
  }

  .site-header.nav-open .dropdown-toggle {
    position: absolute;
    top: 8px;
    right: 2px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--lavender);
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    padding: 0 0 0 12px;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .dropdown-menu::before {
    display: none;
  }

  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu {
    display: none;
    transform: none;
  }

  .nav-dropdown.is-open .dropdown-menu {
    display: grid;
    transform: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 130px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .service-grid,
  .timeline,
  .ai-panel,
  .proof-section,
  .page-hero,
  .image-feature,
  .two-column,
  .content-section {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding-top: 130px;
  }

  .page-hero-visual {
    min-height: 390px;
  }

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

@media (max-width: 620px) {
  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4.6rem);
  }

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

  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .floating-card {
    position: relative;
    width: 100%;
    inset: auto;
    margin-top: 12px;
  }

  .hero-visual {
    min-height: auto;
    align-content: center;
  }

  .small-orbit {
    display: none;
  }

  .mini-orbit {
    width: 150px;
    right: 8px;
    bottom: -8px;
  }

  .orbit-wrap {
    width: min(360px, 90vw);
  }

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

  .btn {
    width: 100%;
  }

  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .cta-band {
    margin-left: 18px;
    margin-right: 18px;
  }
}

@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;
  }
}
