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

:root {
  --bg: #0a0a0f;
  --bg-card: #13131a;
  --bg-card-hover: #1a1a24;
  --text: #e8e8ef;
  --text-muted: #9898a8;
  --accent: #bb86fc;
  --accent-light: #d4b0ff;
  --accent-dim: rgba(187, 134, 252, 0.15);
  --gradient: linear-gradient(135deg, #bb86fc, #6c63ff);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1100px;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--accent-light); }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(187, 134, 252, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(187, 134, 252, 0.45);
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.85rem;
  background: var(--gradient);
  color: #fff;
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 140px 0 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}

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

.hero-visual {
  flex: 0 0 auto;
}

/* Phone mockup */
.phone-mockup {
  width: 260px;
  height: 520px;
  background: #1a1a24;
  border-radius: 36px;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(187, 134, 252, 0.1);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0f0f18;
  border-radius: 26px;
  overflow: hidden;
  padding: 16px;
}

.screen-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.template-grid-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.template-card-preview {
  aspect-ratio: 9/16;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(187, 134, 252, 0.2), rgba(108, 99, 255, 0.2));
  animation: shimmer 2s ease-in-out infinite alternate;
}

.template-card-preview:nth-child(2) { animation-delay: 0.3s; }
.template-card-preview:nth-child(3) { animation-delay: 0.6s; }
.template-card-preview:nth-child(4) { animation-delay: 0.9s; }
.template-card-preview:nth-child(5) { animation-delay: 1.2s; }
.template-card-preview:nth-child(6) { animation-delay: 1.5s; }

@keyframes shimmer {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* ── Features ─────────────────────────────────────────────── */
.features {
  padding: 100px 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 56px;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: background 0.2s, border-color 0.2s;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(187, 134, 252, 0.2);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Use Cases ────────────────────────────────────────────── */
.use-cases {
  padding: 80px 0;
  background: var(--bg-card);
}

.use-cases-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.use-case-tag {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 500;
  background: var(--accent-dim);
  color: var(--accent-light);
  border: 1px solid rgba(187, 134, 252, 0.2);
}

/* ── About ────────────────────────────────────────────────── */
.about {
  padding: 100px 0;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── CTA ──────────────────────────────────────────────────── */
.cta {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(187, 134, 252, 0.06) 100%);
}

.cta-container {
  text-align: center;
}

.cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  padding: 60px 0 0;
  border-top: 1px solid var(--border);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── Mobile Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }

  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-container { flex-direction: column; text-align: center; }
  .hero-text h1 { font-size: 2.2rem; }
  .hero-subtitle { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }

  .phone-mockup { width: 200px; height: 400px; }

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

  .section-title { font-size: 1.7rem; margin-bottom: 40px; }

  .about-stats { gap: 24px; }

  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer-links { gap: 40px; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-text h1 { font-size: 2.6rem; }
}
