@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600&display=swap');
@import url('https://unpkg.com/@phosphor-icons/web@2.0.3/src/light/style.css');

:root {
  --bg: #05060f;
  --bg-secondary: rgba(19, 24, 40, 0.8);
  --card: rgba(17, 22, 39, 0.7);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: #f5f7ff;
  --muted: rgba(245, 247, 255, 0.7);
  --accent: #66ffee;
  --accent-2: #a077ff;
  --accent-3: #5ab1ff;
  --shadow: 0 25px 60px rgba(3, 5, 15, 0.9);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, rgba(102, 255, 238, 0.12), transparent 45%),
    radial-gradient(circle at 20% 20%, rgba(160, 119, 255, 0.18), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

body::before,
body::after {
  content: '';
  position: fixed;
  width: clamp(320px, 40vw, 540px);
  height: clamp(320px, 40vw, 540px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 255, 238, 0.4), transparent 65%);
  filter: blur(60px);
  z-index: -2;
  animation: drift 26s ease-in-out infinite;
  opacity: 0.6;
}

body::before {
  top: -10%;
  left: -5%;
}

body::after {
  bottom: -20%;
  right: -5%;
  background: radial-gradient(circle, rgba(160, 119, 255, 0.35), transparent 60%);
  animation-direction: reverse;
}

body.is-loaded {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

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

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

p {
  color: var(--muted);
}

section {
  position: relative;
  padding: clamp(4rem, 7vw, 6.5rem) clamp(1.5rem, 6vw, 6rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.5em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  display: inline-block;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(8px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: rgba(5, 6, 15, 0.45);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border 0.3s ease, padding 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 6, 15, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  padding-block: 0.2rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem clamp(1.5rem, 6vw, 5rem);
}

.logo {
  display: inline-flex;
  align-items: center;
  max-width: 280px;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.55);
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
}

.nav__links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.nav__links a {
  position: relative;
  color: var(--muted);
}

.nav__links a::after {
  content: '';
  position: absolute;
  inset: auto 0 -6px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav__links a:hover::after,
.nav__links a:focus-visible::after {
  opacity: 1;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.nav__tray {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 80vw);
  height: 100vh;
  background: rgba(5, 6, 15, 0.96);
  display: flex;
  flex-direction: column;
  padding: 5rem 2.5rem;
  gap: 1.5rem;
  transition: right 0.4s ease;
  backdrop-filter: blur(20px);
}

.nav__tray.is-open {
  right: 0;
}

.nav__tray a {
  font-size: 1rem;
  letter-spacing: 0.2em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(102, 255, 238, 0.9), rgba(90, 177, 255, 0.9));
  color: #05060f;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: inset -4px -4px 18px rgba(255, 255, 255, 0.4),
    inset 6px 6px 22px rgba(0, 0, 0, 0.35),
    0 25px 40px rgba(90, 177, 255, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: inset -3px -3px 16px rgba(255, 255, 255, 0.5),
    inset 4px 4px 18px rgba(4, 10, 26, 0.4),
    0 30px 60px rgba(90, 177, 255, 0.35);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  box-shadow: inset -2px -2px 12px rgba(255, 255, 255, 0.08), inset 4px 4px 14px rgba(0, 0, 0, 0.5);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  padding-top: clamp(6rem, 12vw, 12rem);
  perspective: 1600px;
}

.hero__text h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.hero__text p {
  font-size: 1.1rem;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero__mockup {
  background: radial-gradient(circle at top right, rgba(102, 255, 238, 0.45), transparent 40%),
    rgba(9, 17, 35, 0.7);
  border: 1px solid var(--stroke);
  border-radius: 2.5rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  transform-style: preserve-3d;
  animation: float 10s ease-in-out infinite;
}

.hero__mockup img {
  width: 100%;
  border-radius: 1.5rem;
  transform: translateZ(50px);
}

.featured {
  text-align: center;
  background: rgba(5, 6, 15, 0.6);
}

.featured__logos {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  opacity: 0.7;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.section-subtext {
  max-width: 620px;
  margin: 1rem 0 2.5rem;
  color: var(--muted);
}

.testimonials {
  padding-bottom: 5rem;
}

.testimonial-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block: 2rem;
  padding-inline: clamp(1rem, 5vw, 4rem);
}

.testimonial {
  min-width: min(320px, 80vw);
  border-radius: 1.5rem;
  border: 1px solid var(--stroke);
  background: var(--card);
  backdrop-filter: blur(12px);
  padding: 2rem;
  scroll-snap-align: start;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.testimonial__result {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.process__cards,
.feature-grid,
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  border-radius: 2rem;
  border: 1px solid var(--stroke);
  background: rgba(9, 12, 25, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.6s ease;
  position: relative;
}

.portfolio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(102, 255, 238, 0.2), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.portfolio-card:hover::before,
.portfolio-card:focus-within::before {
  opacity: 1;
}

.portfolio-card__media {
  height: 220px;
  background-size: cover;
  background-position: center;
  filter: saturate(120%);
  transform: translateZ(25px);
}

.portfolio-card__meta {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transform: translateZ(35px);
}

.portfolio-card__result {
  margin-top: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.portfolio__cta {
  text-align: center;
  margin-top: 2.5rem;
}

.portfolio-filter {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.portfolio-filter button {
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.portfolio-filter button.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05060f;
  border-color: transparent;
}

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

.is-tilting {
  will-change: transform;
}

.glass-card {
  position: relative;
  padding: 2rem;
  border-radius: 1.75rem;
  border: 1px solid var(--stroke);
  background: var(--card);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.glass-card:hover,
.glass-card:focus-within,
.feature:hover,
.feature:focus-within {
  transform: translate3d(0, -10px, 30px);
  box-shadow: 0 35px 80px rgba(5, 6, 15, 0.6);
}

.process__image {
  border-radius: 1.25rem;
  height: 160px;
  margin-bottom: 1rem;
  background-size: cover;
  background-position: center;
  filter: saturate(130%);
}

.process__image.consult {
  background-image: linear-gradient(135deg, rgba(102, 255, 238, 0.4), rgba(5, 6, 15, 0.9)),
    url('https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=800&q=80');
}

.process__image.design {
  background-image: linear-gradient(135deg, rgba(90, 177, 255, 0.4), rgba(5, 6, 15, 0.9)),
    url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=800&q=80');
}

.process__image.deploy {
  background-image: linear-gradient(135deg, rgba(160, 119, 255, 0.4), rgba(5, 6, 15, 0.9)),
    url('https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=800&q=80');
}

.feature {
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--stroke);
  background: rgba(8, 10, 20, 0.7);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.feature i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.mission {
  background: linear-gradient(135deg, rgba(102, 255, 238, 0.12), rgba(160, 119, 255, 0.08));
}

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

.plan {
  border-radius: 2rem;
  border: 1px solid var(--stroke);
  padding: 2.5rem;
  background: var(--card);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.plan h3 {
  margin-top: 0;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  color: var(--muted);
}

.plan ul li {
  margin-bottom: 0.6rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.plan ul li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.plan--pro {
  border-image: linear-gradient(135deg, var(--accent), var(--accent-2)) 1;
  position: relative;
}

.plan--pro::after {
  content: 'Recommended';
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05060f;
  padding: 0.3rem 1.2rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

details {
  padding: 1.4rem;
  border-radius: 1.25rem;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}

details summary {
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.05em;
}

details[open] {
  border-color: rgba(102, 255, 238, 0.6);
}

.contact-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--stroke);
  border-radius: 2rem;
  padding: 3rem;
  backdrop-filter: blur(20px);
}

.contact-panel form {
  display: grid;
  gap: 1rem;
}

.contact-panel input,
.contact-panel textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 6, 15, 0.6);
  color: var(--text);
  font-family: inherit;
}

footer {
  background: rgba(0, 0, 0, 0.6);
  padding: 3rem clamp(1.5rem, 6vw, 4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.footer__socials {
  display: flex;
  gap: 0.8rem;
}

.footer__socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__legal {
  margin-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.blog-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.blog-card {
  border-radius: 1.75rem;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem;
  backdrop-filter: blur(18px);
}

.blog-card h3 {
  margin-top: 0;
}

.page-hero {
  padding-block: clamp(6rem, 10vw, 8rem);
  text-align: center;
}

.page-hero p {
  max-width: 640px;
  margin-inline: auto;
}

@media (max-width: 900px) {
  .nav__links {
    display: none;
  }
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .hero {
    grid-template-columns: 1fr;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px) rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: translateY(-12px) rotateX(1deg) rotateY(-1deg);
  }
  100% {
    transform: translateY(0px) rotateX(0deg) rotateY(0deg);
  }
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(10%, -8%, 0) scale(1.1);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (max-width: 600px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  section {
    padding-inline: 1.5rem;
  }
  .contact-panel {
    padding: 2rem;
  }
}
