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

:root {
  --bg: #080812;
  --bg-card: rgba(22, 22, 40, 0.7);
  --text: #e8e8f0;
  --text-dim: #8888a0;
  --accent: #6c63ff;
  --accent2: #a78bfa;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========== Background Orbs ========== */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
}
.orb-1 { width: 700px; height: 700px; background: #6c63ff; top: -250px; right: -150px; animation: orbFloat 22s ease-in-out infinite; }
.orb-2 { width: 500px; height: 500px; background: #a78bfa; bottom: -100px; left: -150px; animation: orbFloat 26s ease-in-out 3s infinite reverse; }
.orb-3 { width: 450px; height: 450px; background: #4f46e5; top: 55%; right: 25%; animation: orbFloat 19s ease-in-out 7s infinite; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.08); }
  50% { transform: translate(-25px, 35px) scale(0.93); }
  75% { transform: translate(-50px, -15px) scale(1.04); }
}

/* ========== Navigation ========== */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  padding: 8px 20px;
  background: rgba(108, 99, 255, 0.15);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 8px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
}
.nav-cta:hover { background: rgba(108, 99, 255, 0.25); border-color: var(--accent); }

/* ========== Hero ========== */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 24px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: 20px;
  color: var(--accent2);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #6c63ff 20%, #a78bfa 50%, #c084fc 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-dim);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #6c63ff, #8b5cf6);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(108, 99, 255, 0.35);
  transition: all 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(108, 99, 255, 0.5); }
.btn-primary:active { transform: translateY(0); }

.btn-large { padding: 16px 40px; font-size: 1.1rem; border-radius: 14px; }

.btn-outline {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid rgba(108, 99, 255, 0.35);
  border-radius: 12px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--accent); background: rgba(108, 99, 255, 0.08); }

/* ========== Hero Showcase Frames ========== */
.hero-showcase {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 56px;
}

.showcase-frame {
  width: 160px;
  height: 160px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.showcase-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(108,99,255,0.08));
}

.frame-1 {
  animation: framePulse 4s ease-in-out infinite;
  background-image: radial-gradient(circle at 30% 40%, rgba(108,99,255,0.3) 0%, transparent 60%),
                    radial-gradient(circle at 70% 60%, rgba(167,139,250,0.2) 0%, transparent 50%);
}
.frame-2 {
  animation: framePulse 4s ease-in-out 1.3s infinite;
  background-image: radial-gradient(circle at 50% 30%, rgba(78,205,128,0.25) 0%, transparent 60%),
                    radial-gradient(circle at 40% 70%, rgba(108,99,255,0.15) 0%, transparent 50%);
}
.frame-3 {
  animation: framePulse 4s ease-in-out 2.6s infinite;
  background-image: radial-gradient(circle at 60% 50%, rgba(245,158,11,0.25) 0%, transparent 60%),
                    radial-gradient(circle at 30% 30%, rgba(167,139,250,0.2) 0%, transparent 50%);
}

@keyframes framePulse {
  0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
  50% { transform: translateY(-10px) scale(1.04); opacity: 0.85; }
}

/* ========== Sections ========== */
section { position: relative; z-index: 1; padding: 80px 24px; }

.section-heading {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 48px;
}

/* ========== Model Cards ========== */
.models { max-width: 1000px; margin: 0 auto; }

.model-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.model-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}

.model-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, #6c63ff);
  transform: scaleX(0);
  transition: transform 0.35s;
}
.model-card:hover::before { transform: scaleX(1); }

.model-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.model-icon { font-size: 2.2rem; margin-bottom: 14px; }

.model-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.model-card p {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.model-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(108, 99, 255, 0.15);
  color: var(--accent);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.default-tag { background: rgba(78, 205, 128, 0.12); color: #4ade80; }

/* ========== Features ========== */
.features { max-width: 1000px; margin: 0 auto; }

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

.feature-item {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform 0.3s;
}
.feature-item:hover { transform: translateY(-4px); }

.feature-icon { font-size: 1.8rem; margin-bottom: 12px; }

.feature-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }

.feature-item p { color: var(--text-dim); font-size: 0.82rem; line-height: 1.55; }

/* ========== How It Works ========== */
.how-it-works { max-width: 800px; margin: 0 auto; }

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 200px;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c63ff, #8b5cf6);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.3);
}

.step h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }

.step p { color: var(--text-dim); font-size: 0.8rem; }

.step-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, rgba(108,99,255,0.4), rgba(108,99,255,0.1));
  margin-top: 24px;
  flex-shrink: 0;
}

/* ========== CTA Section ========== */
.cta-section { text-align: center; }

.cta-content {
  max-width: 500px;
  margin: 0 auto;
  padding: 56px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(108, 99, 255, 0.15);
  border-radius: 24px;
}

.cta-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.cta-content p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* ========== Footer ========== */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 24px;
  color: var(--text-dim);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}
.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ========== Scroll Reveal ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .hero h1 { font-size: 2.4rem; }
  .hero-showcase { flex-wrap: wrap; }
  .showcase-frame { width: 100px; height: 100px; border-radius: 12px; }

  .model-cards { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }

  .steps { flex-direction: column; align-items: center; gap: 20px; }
  .step-connector {
    width: 2px;
    height: 40px;
    margin: 0;
    background: linear-gradient(180deg, rgba(108,99,255,0.4), rgba(108,99,255,0.1));
  }
}

@media (max-width: 500px) {
  .nav { padding: 16px 20px; }
  .hero { padding: 40px 16px 60px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .section-heading { font-size: 1.6rem; }
}