/* ============================================
   LANDING PAGE STYLES
============================================ */

/* HERO */
.hero {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 80px 80px;
  position: relative;
  overflow: hidden;
  gap: 60px;
  box-sizing: border-box;
}

/* HERO ANIMATED BACKGROUND */
.hero-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.hero-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.15), transparent 70%);
  top: -10%;
  left: -5%;
  animation: glowFloat1 12s ease-in-out infinite;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 70%);
  bottom: -10%;
  right: 10%;
  animation: glowFloat2 15s ease-in-out infinite;
}

.hero-glow-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1), transparent 70%);
  top: 40%;
  left: 50%;
  animation: glowFloat3 18s ease-in-out infinite;
}

@keyframes glowFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.1); }
  66% { transform: translate(-30px, 60px) scale(0.95); }
}

@keyframes glowFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, -30px) scale(1.15); }
  66% { transform: translate(40px, -50px) scale(0.9); }
}

@keyframes glowFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, 30px) scale(1.2); }
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-title {
  font-size: clamp(32px, 8vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}
.gradient-text {
  background: linear-gradient(135deg, var(--brand), #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--brand); }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* HERO VISUAL */
.hero-visual {
  position: relative; z-index: 1;
  flex-shrink: 1;
}
.phone-mockup {
  width: 240px;
  background: var(--bg-2);
  border: 2px solid var(--border);
  border-radius: 32px;
  padding: 20px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
}
.phone-screen { }
.mock-card {
  background: var(--bg-3);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
}
.mock-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #8b5cf6);
}
.mock-name { font-weight: 700; font-size: 16px; }
.mock-sub { font-size: 12px; color: var(--text-muted); }
.mock-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.mock-link {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.phone-qr {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}
.phone-qr img {
  border-radius: 12px;
  border: 2px solid var(--border);
}

/* SECTIONS */
.section { padding: 100px 80px; }
.section-dark { background: var(--bg-2); }
.container { max-width: 1100px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.section-header {
  text-align: center;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.section-title { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -1px; }
.section-sub { font-size: 18px; color: var(--text-muted); max-width: 500px; }

/* STEPS */
.steps {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 180px;
  max-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}
.step:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: var(--shadow-brand);
}
.step-num { font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: 1px; }
.step-icon { font-size: 32px; }
.step h3 { font-size: 18px; }
.step p { font-size: 14px; color: var(--text-muted); }
.step-arrow { font-size: 24px; color: var(--text-faint); }

/* CARD TYPES */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card-type {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
  position: relative;
}
.card-type:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.card-type.featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-brand);
}
.featured-tag {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}
.card-type-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.card-type h3 { font-size: 20px; }
.card-type p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
}

/* DEMO SECTION */
.demo-section {
  padding: 100px 20px;
  background: var(--bg);
}
.demo-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.demo-preview {
  display: flex;
  justify-content: center;
}
.demo-phone {
  width: 300px;
  height: 600px;
  background: #000;
  border-radius: 40px;
  border: 10px solid #222;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  overflow: hidden;
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
}
.demo-phone::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 100px; height: 20px;
  background: #222;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}
.demo-content {
  width: 100%;
  height: 100%;
  background: #fff;
  color: #000;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.5s ease;
}
.demo-avatar { 
  width: 80px; height: 80px; 
  border-radius: 50%; 
  background: #eee; 
  margin-bottom: 16px; 
  background-size: cover; 
  background-position: center; 
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.demo-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.demo-subtitle { font-size: 13px; color: #666; margin-bottom: 24px; text-align: center; }
.demo-links { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.demo-link { 
  width: 100%; 
  padding: 10px 16px; 
  background: #f5f5f5; 
  border: 1px solid #eee; 
  border-radius: 12px; 
  font-size: 14px; 
  font-weight: 600; 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  opacity: 0;
  animation: slideInDemo 0.5s ease forwards;
  transition: all 0.3s ease;
}
.demo-link-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.05);
  border-radius: 8px;
  flex-shrink: 0;
}
.demo-link-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

@keyframes slideInDemo {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes backgroundFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.demo-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.demo-controls h2 { font-size: 40px; font-weight: 900; letter-spacing: -1px; }
.demo-controls p { color: var(--text-muted); font-size: 18px; }
.demo-options { display: flex; flex-direction: column; gap: 16px; margin-top: 10px; }
.demo-opt {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
}
.demo-opt:hover { border-color: var(--brand); transform: translateX(10px); }
.demo-opt.active { border-color: var(--brand); background: rgba(249,115,22,0.1); }
.opt-icon { font-size: 24px; background: var(--bg-2); width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.opt-info strong { display: block; font-size: 16px; margin-bottom: 2px; }
.opt-info span { font-size: 13px; color: var(--text-muted); }

/* LOOP */
.loop-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 60px;
}
.loop-text { display: flex; flex-direction: column; gap: 20px; }
.loop-text h2 { font-size: 36px; font-weight: 800; letter-spacing: -1px; }
.loop-text p { color: var(--text-muted); font-size: 16px; line-height: 1.7; }
.loop-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.loop-step {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  width: 100%;
}
.loop-step.brand { border-color: var(--brand); color: var(--brand); font-weight: 700; }
.loop-arrow { color: var(--brand); font-size: 18px; }

/* CTA */
.cta-section { background: var(--bg-2); }
.cta-box {
  text-align: center;
  background: linear-gradient(135deg, rgba(249,115,22,0.08), rgba(139,92,246,0.08));
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: var(--radius-xl);
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-box h2 { font-size: 48px; font-weight: 900; letter-spacing: -1px; }
.cta-box p { font-size: 18px; color: var(--text-muted); }
.cta-note { font-size: 13px; color: var(--text-muted); }

/* FOOTER */
.footer {
  padding: 40px 80px;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* RESPONSIVE */
/* ============================================
   RESPONSIVE (TOTAL RESET)
============================================ */

/* Tablet & Smaller Desktop (1024px) */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 100px 24px 60px;
    gap: 40px;
  }
  .hero-content { max-width: 100%; align-items: center; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { transform: scale(0.9); }

  .demo-container { 
    grid-template-columns: 1fr; 
    text-align: center; 
    gap: 40px; 
  }
  .demo-text { align-items: center; }
  .demo-switcher { order: 2; width: 100%; max-width: 500px; margin: 0 auto; }
  .demo-preview { order: 1; }

  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .loop-box { grid-template-columns: 1fr; text-align: center; }
  .loop-text { align-items: center; }
}

/* Mobile (768px) */
@media (max-width: 768px) {
  .section { padding: 60px 20px; }
  .section-title { font-size: 28px; }
  .section-sub { font-size: 16px; }

  .hero { padding: 100px 16px 40px; }
  .hero-title { font-size: 32px; letter-spacing: -1px; }
  .hero-subtitle { font-size: 15px; }
  .hero-visual { transform: scale(0.8); margin-top: -20px; }
  .floating-badge { display: none; }

  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .stat-divider { display: none; }

  .steps { flex-direction: column; gap: 24px; align-items: center; }
  .step { width: 100%; max-width: 340px; }
  .step-arrow { transform: rotate(90deg); opacity: 0.3; }

  .cards-grid { grid-template-columns: 1fr; }
  .demo-phone { width: 260px; height: 520px; border-width: 8px; }
  
  .cta-box { padding: 40px 20px; }
  .cta-box h2 { font-size: 28px; }
  
  .footer { 
    padding: 40px 20px; 
    flex-direction: column; 
    gap: 20px; 
    text-align: center; 
  }
}

/* Very Small Screens (480px) */
@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .hero-visual { transform: scale(0.7); margin-top: -40px; }
  .demo-phone { width: 220px; height: 440px; }
  
  .demo-switcher-item { padding: 12px; gap: 10px; }
  .demo-switcher-item h4 { font-size: 14px; }
  .demo-switcher-item p { font-size: 12px; }
}
