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

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --border: rgba(255, 255, 255, 0.06);
  --text: #e4e4ed;
  --text-muted: #7a7a8e;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(99, 102, 241, 0.12), transparent),
    radial-gradient(ellipse 40% 40% at 80% 70%, rgba(217, 119, 87, 0.08), transparent);
}

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  padding: 6px 20px;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #6366f1, #d97757, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  transition: all 0.2s;
  text-decoration: none !important;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* === Section Common === */
section { padding: 100px 0; }

h2 {
  font-size: 40px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 56px;
}

/* === Demos === */
.demos { background: var(--surface); }

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  justify-items: center;
}

.demo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 400px;
}

.phone-frame {
  width: 270px;
  height: 480px;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: #000;
}

.phone-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-info { text-align: center; }

.demo-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tag-color, var(--accent));
  background: color-mix(in srgb, var(--tag-color, var(--accent)) 15%, transparent);
  border-radius: 6px;
  padding: 4px 12px;
  margin-bottom: 8px;
}

.demo-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.demo-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === Features === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* === How It Works === */
.how-it-works { background: var(--surface); }

.steps {
  max-width: 640px;
  margin: 56px auto 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-num {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.08);
}

.step-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* === Tech Stack === */
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}

.pill {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 20px;
  transition: all 0.2s;
}

.pill:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

/* === Footer === */
footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

footer p {
  font-size: 14px;
  color: var(--text-muted);
}

/* === Responsive === */
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .phone-frame { width: 220px; height: 390px; }
  .demo-grid { gap: 48px; }
  .feature-grid { grid-template-columns: 1fr; }
}
