:root {
  --black: #000000;
  --white: #ffffff;
  --gray-100: #f9f9f9;
  --gray-400: #c6c6c6;
  --gray-700: #4d4d4d;
  --gray-900: #1a1a1a;
  --radius: 16px;
  --scroll: 0px;
  --scroll-ratio: 0;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--black);
  background: #f5f6fb;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  -webkit-overflow-scrolling: touch;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: auto auto 0 0;
  width: 55vw;
  height: 55vh;
  background: radial-gradient(circle at center, rgba(122, 90, 248, 0.28), transparent 70%);
  filter: blur(40px);
  opacity: 0.6;
  pointer-events: none;
  z-index: -2;
  transform: translate3d(calc(var(--scroll) * -0.02), calc(var(--scroll) * 0.03), 0);
}

body::after {
  inset: auto 0 10% auto;
  width: 45vw;
  height: 50vh;
  background: radial-gradient(circle at center, rgba(255, 149, 5, 0.3), transparent 70%);
  transform: translate3d(calc(var(--scroll) * 0.015), calc(var(--scroll) * 0.02), 0);
}

.flight-path {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.flight-path::before {
  content: '';
  position: absolute;
  left: -20vw;
  top: calc(20vh + var(--scroll) * 0.02);
  width: 160vw;
  height: 6px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 25%, rgba(255, 149, 5, 0.8) 50%, rgba(255, 255, 255, 0.4) 75%, rgba(255, 255, 255, 0) 100%);
  filter: blur(0.5px);
  transform: rotate(-12deg);
  opacity: .4;
}

.flight-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9505, #ffd16b);
  box-shadow: 0 0 20px rgba(255, 149, 5, 0.8);
  left: calc(10vw + var(--scroll-ratio) * 70vw);
  top: calc(18vh + var(--scroll-ratio) * 50vh);
  transform: translate(-50%, -50%);
  transition: top .15s ease-out, left .15s ease-out;
}

/* Layout base */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--gray-100);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

main {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  height: 36px;
}

.menu {
  display: flex;
  gap: 28px;
  align-items: center;
}

.menu a {
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: opacity .2s;
}

.menu a:hover {
  opacity: .6;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--black);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}

.btn.primary {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

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

.btn.ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.2);
}

.btn.ghost:hover {
  background: var(--white);
  border-color: var(--black);
}

/* Hero */
.hero {
  padding: 90px 0 50px;
  border: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 10% auto -30% 45%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255, 174, 0, 0.25), transparent 60%);
  filter: blur(12px);
  pointer-events: none;
}

.scroll-indicator {
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-indicator::after {
  content: '';
  width: 2px;
  height: 38px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  animation: indicator-dash 1.2s ease-in-out infinite;
}

@keyframes indicator-dash {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  60% {
    transform: scaleY(1);
    transform-origin: top;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

.hero-content {
  background: linear-gradient(135deg, #101010, #212121 60%, #2f2f2f);
  color: var(--white);
  border-radius: 32px;
  padding: min(6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: relative;
  z-index: 1;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.hero-text {
  max-width: 720px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero .subtitle {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
}

.hero-stats li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stats strong {
  font-size: 30px;
  letter-spacing: -0.02em;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.logo-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-mid {
  width: min(320px, 60vw);
  display: block;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.15));
}

/* Sections */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--gray-100);
  position: relative;
}

[data-reveal] {
  --reveal-translate: 60px;
  --reveal-scale: 0.98;
  opacity: 0;
  transform: translateY(var(--reveal-translate)) scale(var(--reveal-scale));
  transition: opacity .65s ease, transform .75s cubic-bezier(.19,1,.22,1.25);
}

[data-reveal].is-visible {
  opacity: 1;
  --reveal-translate: 0px;
  --reveal-scale: 1;
}

[data-parallax] {
  --parallax-speed: 0.04;
  --parallax-shift: calc(var(--scroll) * var(--parallax-speed) * -1);
  will-change: transform;
}

[data-parallax][data-reveal] {
  transform: translateY(calc(var(--reveal-translate) + var(--parallax-shift, 0px))) scale(var(--reveal-scale));
}

.surface {
  position: relative;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 30px;
  padding: 70px clamp(24px, 5vw, 72px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  margin-top: 60px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
}

.alternate {
  background: rgba(0, 0, 0, 0.04);
}

.soft-section {
  background: transparent;
  padding-top: 40px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head p {
  color: var(--gray-700);
}

.section-note {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7a5af8;
  margin-top: 12px;
  font-weight: 600;
}

h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--black);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  padding: 32px;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  color: var(--gray-700);
}

/* Cases */
.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.case {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  padding: 28px;
  background: rgba(0, 0, 0, 0.04);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.case .thumb {
  font-size: 24px;
  margin-bottom: 14px;
}

.case h4 {
  font-weight: 600;
  margin-bottom: 6px;
}

.case p {
  color: var(--gray-700);
  font-size: 15px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 0;
  max-height: 620px;
  overflow: hidden;
  transition: max-height .4s ease;
}

.products-wrapper {
  position: relative;
}

.products-wrapper.expanded .products-grid {
  max-height: none;
}

.product-card {
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 18px 32px rgba(18, 20, 33, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product-media {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 0;
  background: #000;
  transition: height .35s ease, object-fit .35s ease;
}

.product-card:hover .product-media {
  height: 360px;
  object-fit: contain;
}

.product-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-desc {
  color: var(--gray-700);
  font-size: 15px;
}

.products-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 64px;
  height: 160px;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(255,255,255,0.96), rgba(255,255,255,0));
  transition: opacity .3s ease;
}

 .products-wrapper.expanded .products-fade {
  opacity: 0;
  display: none;
}

.products-toggle {
  margin: 24px auto 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, border .2s ease;
}

.products-toggle svg {
  transition: transform .2s ease;
}

.products-wrapper.expanded .products-toggle svg {
  transform: rotate(180deg);
}

.products-wrapper.expanded .products-toggle span {
  color: var(--black);
}

.products-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.3);
}

.products-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: #101010;
  color: var(--white);
  border-radius: 24px;
  padding: 28px 32px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.products-cta p {
  margin: 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.85);
}

/* Stack */
.client-carousel {
  overflow: hidden;
  position: relative;
  padding: 12px 32px;
}

.client-carousel::before,
.client-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 1;
}

.client-carousel::before {
  left: 0;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
}

.client-carousel::after {
  right: 0;
  background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0));
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: carousel-scroll 18s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.client-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  filter: grayscale(1);
  opacity: 0.8;
  transition: filter .3s ease, opacity .3s ease;
  flex-shrink: 0;
}

.client-carousel:hover .client-logos {
  filter: grayscale(0);
  opacity: 1;
}

.client-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  flex: 0 0 140px;
  padding: 0 4px;
}

.logo-covil {
  overflow: hidden;
  border-radius: 12px;
}

.logo-covil img {
  transform: scale(1.4);
}

.client-logo img {
  max-height: 54px;
  max-width: 140px;
  width: auto;
  transition: transform .2s ease;
}

.client-logo img:hover {
  transform: translateY(-4px);
}

.logo-covil img:hover {
  transform: scale(1.4) translateY(-4px);
}

@keyframes carousel-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.3333%);
  }
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack span {
  padding: 10px 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.04);
  font-weight: 500;
  font-size: 14px;
}

/* Contact */
.contact form {
  display: grid;
  gap: 14px;
  max-width: 500px;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #dcdce8;
  font-family: inherit;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.9);
  transition: border .2s, box-shadow .2s;
}

input:focus,
textarea:focus {
  border-color: #7a5af8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(122, 90, 248, 0.15);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  cursor: pointer;
}

.contact-callout {
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
  transition: opacity 0.3s;
}

.contact-link:hover {
  opacity: 0.7;
}

.contact-link svg {
  width: 20px;
  height: 20px;
}


/* Footer */
footer {
  text-align: center;
  padding: 60px 0;
  color: var(--gray-700);
  font-size: 14px;
}

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

  body::before,
  body::after,
  [data-parallax] {
    transform: none !important;
  }

  .flight-path,
  .flight-path::before,
  .flight-dot {
    display: none !important;
  }
}

/* Responsive tweaks */
@media (max-width: 720px) {
  .hero-content {
    padding: 48px 28px;
  }

  .hero-stats {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .surface {
    padding: 50px 28px;
    margin-top: 40px;
  }

  .scroll-indicator {
    display: none;
  }
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .container {
    width: 95%;
  }

  .nav {
    padding: 12px 0;
  }

  .logo {
    height: 32px;
  }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }

  .menu.active {
    display: flex;
  }

  .menu a {
    padding: 12px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .menu a:last-child {
    border-bottom: none;
  }

  .btn {
    padding: 10px 18px;
    font-size: 14px;
  }

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

  .hero-content {
    padding: 32px 20px;
    gap: 32px;
  }

  .hero h1 {
    font-size: clamp(28px, 8vw, 48px);
  }

  .hero .subtitle {
    font-size: 16px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hero-stats li {
    padding: 14px;
  }

  .hero-stats strong {
    font-size: 24px;
  }

  .hero-stats span {
    font-size: 12px;
  }

  .section {
    padding: 60px 0;
  }

  .surface {
    padding: 36px 20px;
    margin-top: 28px;
  }

  h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card {
    padding: 24px;
  }

  .cases {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .case {
    padding: 20px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .products-fade {
    height: 120px;
    bottom: 50px;
  }

  .products-cta {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .products-cta p {
    max-width: none;
  }

  .client-carousel {
    padding: 12px 16px;
  }

  .client-carousel::before,
  .client-carousel::after {
    width: 40px;
  }

  .client-logo {
    min-width: 100px;
    flex: 0 0 100px;
  }

  .client-logo img {
    max-height: 40px;
    max-width: 100px;
  }

  .contact-callout {
    padding: 20px;
  }

  .contact-links {
    flex-direction: column;
    gap: 12px;
  }

  footer {
    padding: 40px 0;
    font-size: 12px;
  }
}

/* Hamburger menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--black);
  transition: all 0.3s;
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 540px) {
  body {
    background: #f7f8fb;
  }

  .hero-content {
    padding: 28px 18px;
    gap: 24px;
    text-align: center;
  }

  .hero-text {
    margin: 0 auto;
  }

  .hero-cta {
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 48px 0;
  }

  .surface {
    border-radius: 18px;
    padding: 28px 18px;
    margin-top: 18px;
  }

  h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .grid {
    gap: 16px;
  }

  .card,
  .case,
  .product-card {
    border-radius: 18px;
    padding: 20px;
  }

  .products-cta {
    padding: 22px 20px;
    gap: 14px;
  }

  .products-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

