/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 100px 0;
}

.hero-content {
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  opacity: .85;
  margin-bottom: 2rem;
}

.cta-button {
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 800;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 10px 30px rgba(99, 102, 241, .3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, .5);
}

/* 3D hero graphic */
.glasses-container {
  perspective: 1000px;
  position: relative;
}

.glasses-3d {
  width: 100%;
  max-width: 500px;
  height: 500px;
  position: relative;
  animation: rotate3d 20s infinite linear;
  transform-style: preserve-3d;
}

@keyframes rotate3d {
  0% {
    transform: rotateY(0) rotateX(10deg);
  }

  100% {
    transform: rotateY(360deg) rotateX(10deg);
  }
}

.glasses-icon {
  font-size: 300px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 20px 40px rgba(99, 102, 241, .3));
}

/* Features (equal height) */
.features {
  padding: 100px 0;
}

.features .row {
  align-items: stretch;
}

.feature-card {
  min-height: 280px;
  padding: 40px;
  border-radius: 20px;
  margin-bottom: 0;
  transition: all .5s ease;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(180deg, rgba(99, 91, 255, .06), rgba(34, 211, 238, .04));
}

.dark-mode .feature-card {
  background: linear-gradient(180deg, rgba(22, 32, 55, .9), rgba(22, 32, 55, .75));
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .15), transparent 60%);
  transform: rotate(35deg);
  transition: all .5s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(99, 102, 241, .25);
}

.feature-icon {
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: .75rem;
}

.feature-text {
  margin-top: auto;
}

/* How It Works (animated timeline) */
.how-it-works {
  padding: 100px 0;
  position: relative;
}

.steps {
  position: relative;
}

.steps-track {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-warm));
  box-shadow: 0 0 30px rgba(34, 211, 238, .25);
}

.step-card {
  position: relative;
  padding: 40px;
  border-radius: 16px;
  transition: transform .3s ease, box-shadow .3s ease;
  background: linear-gradient(180deg, rgba(99, 91, 255, .07), rgba(34, 211, 238, .05));
  border: 1px solid var(--border);
}

.dark-mode .step-card {
  background: linear-gradient(180deg, rgba(22, 32, 55, .9), rgba(22, 32, 55, .75));
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, .25);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(99, 102, 241, .35);
  position: relative;
  z-index: 1;
}

/* connector dots aligned on the track */
.step-card::after {
  content: '';
  position: absolute;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #fff0 40%), linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .15), 0 0 24px rgba(34, 211, 238, .35);
}

@media (max-width:991px) {
  .steps-track {
    left: 24px;
    right: auto;
    top: auto;
    bottom: 24px;
    width: 4px;
    height: calc(100% - 40px);
  }

  .step-card {
    margin-left: 28px;
  }

  .step-card::after {
    left: -6px;
    transform: none;
    top: 44px;
  }
}

/* 3D Model */
.model-section {
  padding: 70px 0;
}

.model-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(99, 91, 255, .06), rgba(34, 211, 238, .04));
}

.model-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .95rem;
  opacity: .9;
  padding: 8px 2px;
  margin-top: 8px;
}

.model-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Gallery Slider (scrollbar hidden) */
.gallery-section {
  padding: 50px 0 90px;
}

.slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(100% - 72px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 10px;

  /* hide scrollbar cross-browser */
  -ms-overflow-style: none;
  /* IE/Edge */
  scrollbar-width: none;
  /* Firefox */
}

.slider::-webkit-scrollbar {
  display: none;
}

/* Chrome/Safari */

.slide {
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(99, 91, 255, .06), rgba(34, 211, 238, .04));
}

.dark-mode .slide {
  background: linear-gradient(180deg, rgba(22, 32, 55, .9), rgba(22, 32, 55, .75));
}

.slide img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.slider-controls {
  display: flex;
  gap: 8px;
}

.slider-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 8px 20px rgba(99, 102, 241, .35);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #a5b4fc;
  opacity: .5;
}

.slider-dots button.active {
  opacity: 1;
  width: 22px;
  height: 8px;
  border-radius: 8px;
}

@media (min-width:768px) {
  .slider {
    grid-auto-columns: calc(50% - 12px);
  }
}

@media (min-width:1200px) {
  .slider {
    grid-auto-columns: calc(33.333% - 11px);
  }
}

/* CTA */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.cta-section h2 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 2rem;
}

/* Responsive tweaks */
@media (max-width:768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .glasses-3d {
    height: 300px;
  }

  .glasses-icon {
    font-size: 200px;
  }

  .slide img {
    height: 260px;
  }
}

/* ===== Hero layout improvements ===== */
.hero { padding-top: 130px; padding-bottom: 90px; }
.hero-lead { max-width: 52ch; }
.hero-actions{
  display:flex; gap:12px; flex-wrap:wrap;
  align-items:center; justify-content:flex-start;
}
.hero-actions .cta-button{
  display:inline-flex; align-items:center; gap:10px;
}
.cta-secondary{
  display:inline-flex; align-items:center; gap:8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  background: rgba(99, 91, 255, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta-secondary:hover{ transform: translateY(-2px); box-shadow: 0 10px 26px rgba(99, 102, 241, .18); }

.hero-badges{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-bottom: 14px;
  justify-content:flex-start;
}
.hero-badge{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(99, 91, 255, .06);
  font-weight: 700;
  font-size: .95rem;
}

.hero-trust{
  display:flex; gap:12px; flex-wrap:wrap;
  margin-top: 18px;
  opacity: .95;
}
.trust-item{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(34, 211, 238, .06);
}

/* Center hero on mobile */
@media (max-width: 991px){
  .hero{ text-align:center; }
  .hero-actions, .hero-badges, .hero-trust{ justify-content:center; }
}

/* Avoid heavy animation on small screens */
@media (max-width: 768px){
  .glasses-3d{ animation: none; }
}

/* Model viewer responsive height */
.smart-model{
  width:100%;
  height: 420px;
  border-radius: 16px;
  overflow:hidden;
  display:block;
}
@media (max-width: 768px){
  .smart-model{ height: 320px; }
}

/* ===== Contact section cards ===== */
.contact-sub{ opacity:.9; max-width: 60ch; margin: 0 auto; }
.contact-card{
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(99, 91, 255, .06), rgba(34, 211, 238, .04));
  padding: 22px;
  height: 100%;
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
}
.dark-mode .contact-card{
  background: linear-gradient(180deg, rgba(22, 32, 55, .9), rgba(22, 32, 55, .75));
}
.contact-icon{
  width: 52px; height: 52px; border-radius: 14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color:#fff; font-size: 1.25rem;
  margin-bottom: 12px;
  box-shadow: 0 10px 26px rgba(99, 102, 241, .28);
}
.contact-title{ font-weight: 900; margin-bottom: 8px; }
.contact-text a{ color: inherit; text-decoration: none; }
.contact-text a:hover{ text-decoration: underline; }

.contact-btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  margin-top: 10px;
  padding: 12px 14px;
  width: 100%;
  border-radius: 14px;
  text-decoration:none;
  color:#fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(99, 102, 241, .30);
}
.contact-note{
  display:flex; align-items:center; justify-content:center; gap:10px;
  opacity:.9;
}
