@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ========== RESET ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

:root {
  --bg: #0a0a0f;
  --bg2: #101018;
  --card: #14141f;
  --card-h: #1a1a2e;
  --tx: #fff;
  --tx2: #a0a0b8;
  --tx3: #6b6b80;
  --blue: #4f46e5;
  --purple: #7c3aed;
  --g: linear-gradient(135deg, #4f46e5, #7c3aed);
  --g-h: linear-gradient(135deg, #6366f1, #8b5cf6);
  --glow-b: rgba(79, 70, 229, .4);
  --glow-p: rgba(124, 58, 237, .35);
  --brd: rgba(255, 255, 255, .06);
  --brd-g: rgba(79, 70, 229, .3);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --ease: all .4s cubic-bezier(.25, .46, .45, .94);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--tx);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased
}

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

ul {
  list-style: none
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px
}

/* ========== LOADER ========== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity .6s ease
}

.loader.done {
  opacity: 0;
  pointer-events: none
}

.loader-ring {
  width: 52px;
  height: 52px;
  border: 3px solid var(--brd);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .75s linear infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.loader-label {
  font-size: .9rem;
  color: var(--tx2);
  font-weight: 500
}

.loader-pct {
  font-size: 2rem;
  font-weight: 800;
  background: var(--g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

/* ========== FULLSCREEN INTRO ========== */
.intro-wrapper {
  position: relative;
  height: 400vh
}

/* tall scroll runway */
.intro-sticky {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 10
}

#intro-canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.intro-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .15) 40%, rgba(0, 0, 0, .5) 100%);
  transition: opacity .4s ease;
  z-index: 2;
  pointer-events: none;
}

.intro-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -1px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .7);
  margin-bottom: 12px;
}

.intro-sub {
  font-size: clamp(.95rem, 1.6vw, 1.15rem);
  color: var(--tx2);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .6)
}

.intro-scroll-hint {
  margin-top: 48px;
  animation: bounce 2s ease-in-out infinite
}

.intro-chevron {
  display: block;
  width: 28px;
  height: 28px;
  border-right: 2px solid var(--tx2);
  border-bottom: 2px solid var(--tx2);
  transform: rotate(45deg);
  opacity: .6;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(12px)
  }
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 18px 0;
  transition: var(--ease);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
}

.navbar.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0)
}

.navbar.scrolled {
  background: rgba(10, 10, 15, .82);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--brd);
  padding: 12px 0
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.5px;
  background: var(--g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--tx2);
  transition: color .3s;
  position: relative
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--g);
  border-radius: 2px;
  transition: width .3s
}

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

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

.nav-cta {
  padding: 10px 24px;
  background: var(--g);
  border: none;
  border-radius: var(--r-xl);
  color: #fff;
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
  box-shadow: 0 2px 12px var(--glow-b)
}

.nav-cta:hover {
  background: var(--g-h);
  box-shadow: 0 4px 24px var(--glow-b);
  transform: translateY(-1px)
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--tx);
  border-radius: 2px;
  transition: var(--ease)
}

/* ========== HERO (after intro) ========== */
.hero {
  text-align: center;
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--glow-p) 0%, transparent 70%);
  opacity: .18;
  pointer-events: none
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(79, 70, 229, .12);
  border: 1px solid rgba(79, 70, 229, .25);
  border-radius: var(--r-xl);
  font-size: .8rem;
  font-weight: 600;
  color: #a78bfa;
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-transform: uppercase
}

.tag-dot {
  width: 6px;
  height: 6px;
  background: #a78bfa;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite
}

@keyframes pulse {

  0%,
  100% {
    opacity: .5;
    transform: scale(1)
  }

  50% {
    opacity: 1;
    transform: scale(1.4)
  }
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px
}

.gradient-text {
  background: var(--g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--tx2);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--g);
  border: none;
  border-radius: var(--r-xl);
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
  box-shadow: 0 4px 20px var(--glow-b)
}

.btn-primary:hover {
  background: var(--g-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow-b)
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform .3s
}

.btn-primary:hover svg {
  transform: translateX(3px)
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-xl);
  color: var(--tx);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease)
}

.btn-secondary:hover {
  border-color: var(--blue);
  background: rgba(79, 70, 229, .08);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(79, 70, 229, .12)
}

/* ========== SHARED SECTION ========== */
.section {
  padding: 120px 0;
  position: relative
}

.section-header {
  text-align: center;
  margin-bottom: 64px
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(79, 70, 229, .1);
  border: 1px solid rgba(79, 70, 229, .2);
  border-radius: var(--r-xl);
  font-size: .75rem;
  font-weight: 600;
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px
}

.section-desc {
  font-size: 1.05rem;
  color: var(--tx2);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7
}

/* ========== FEATURES ========== */
.features {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%)
}

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--brd);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  transition: var(--ease);
  position: relative;
  overflow: hidden
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--g);
  opacity: 0;
  transition: opacity .4s
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--brd-g);
  background: var(--card-h);
  box-shadow: 0 12px 40px rgba(79, 70, 229, .2), 0 4px 16px rgba(0, 0, 0, .5)
}

.feature-card:hover::before {
  opacity: 1
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 70, 229, .1);
  border: 1px solid rgba(79, 70, 229, .2);
  border-radius: var(--r-md);
  margin-bottom: 24px;
  transition: var(--ease)
}

.feature-card:hover .feature-icon {
  background: rgba(79, 70, 229, .18);
  box-shadow: 0 0 20px var(--glow-b)
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  color: #a78bfa
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px
}

.feature-card p {
  font-size: .95rem;
  color: var(--tx2);
  line-height: 1.65
}

/* ========== SPECS ========== */
.specs {
  background: var(--bg);
  overflow: hidden
}

.specs::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--glow-b) 0%, transparent 70%);
  opacity: .08;
  pointer-events: none
}

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

.spec-card {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--brd);
  border-radius: var(--r-lg);
  padding: 44px 24px;
  transition: var(--ease);
  position: relative;
  overflow: hidden
}

.spec-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--g);
  opacity: 0;
  transition: opacity .4s
}

.spec-card:hover {
  transform: translateY(-6px);
  border-color: var(--brd-g);
  box-shadow: 0 12px 40px rgba(79, 70, 229, .2), 0 4px 16px rgba(0, 0, 0, .5)
}

.spec-card:hover::after {
  opacity: 1
}

.spec-value {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 900;
  background: var(--g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -1px
}

.spec-label {
  font-size: .9rem;
  color: var(--tx2);
  font-weight: 500
}

/* ========== GALLERY ========== */
.gallery {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%)
}

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

.gallery-item {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  border: 1px solid var(--brd)
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.25, .46, .45, .94)
}

.gallery-item:hover img {
  transform: scale(1.06)
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, .6) 0%, transparent 50%);
  pointer-events: none
}

.gallery-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--ease)
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0)
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  background: var(--bg)
}

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

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--brd);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  transition: var(--ease)
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--brd-g);
  box-shadow: 0 12px 40px rgba(79, 70, 229, .2), 0 4px 16px rgba(0, 0, 0, .5)
}

.t-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 20px
}

.testimonial-card blockquote {
  font-size: .95rem;
  color: var(--tx2);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic
}

.t-author {
  display: flex;
  align-items: center;
  gap: 14px
}

.t-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--g);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
  flex-shrink: 0
}

.t-author h4 {
  font-size: .95rem;
  font-weight: 600
}

.t-author span {
  font-size: .8rem;
  color: var(--tx3)
}

/* ========== CTA ========== */
.cta {
  background: var(--bg2);
  text-align: center;
  position: relative;
  overflow: hidden
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--glow-p) 0%, transparent 65%);
  opacity: .12;
  pointer-events: none
}

.cta-content {
  position: relative;
  z-index: 2
}

.cta h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px
}

.cta p {
  font-size: 1.05rem;
  color: var(--tx2);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--brd);
  padding: 48px 0
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.footer-copy {
  font-size: .85rem;
  color: var(--tx3)
}

.footer-socials {
  display: flex;
  gap: 16px
}

.footer-socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--brd);
  border-radius: 50%;
  color: var(--tx2);
  transition: var(--ease)
}

.footer-socials a:hover {
  border-color: var(--blue);
  color: var(--tx);
  background: rgba(79, 70, 229, .12);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--glow-b)
}

.footer-socials svg {
  width: 18px;
  height: 18px
}

/* ========== ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0)
}

.fade-in-stagger>* {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease
}

.fade-in-stagger.visible>*:nth-child(1) {
  transition-delay: .05s
}

.fade-in-stagger.visible>*:nth-child(2) {
  transition-delay: .15s
}

.fade-in-stagger.visible>*:nth-child(3) {
  transition-delay: .25s
}

.fade-in-stagger.visible>*:nth-child(4) {
  transition-delay: .35s
}

.fade-in-stagger.visible>* {
  opacity: 1;
  transform: translateY(0)
}

/* ========== RESPONSIVE ========== */
@media(max-width:1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr)
  }

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

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto
  }
}

@media(max-width:768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, .96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 999
  }

  .nav-links.active {
    display: flex
  }

  .nav-links a {
    font-size: 1.2rem
  }

  .nav-hamburger {
    display: flex;
    z-index: 1001
  }

  .nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px)
  }

  .nav-hamburger.active span:nth-child(2) {
    opacity: 0
  }

  .nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px)
  }

  .features-grid {
    grid-template-columns: 1fr
  }

  .gallery-grid {
    grid-template-columns: 1fr
  }

  .section {
    padding: 80px 0
  }

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

@media(max-width:480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center
  }

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

  .spec-card {
    padding: 28px 16px
  }
}