/* ── Reset & Base ─────────────────────────────────── */
:root {
  --bg-dark: #f8fafc;
  --bg-gradient: radial-gradient(circle at top right, #e2e8f0, #f8fafc);
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.3);
  
  --accent: #7c3aed;
  --success: #059669;
  --danger: #dc2626;
  --warning: #d97706;
  
  --font-sans: 'Inter', -apple-system, sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Animated Background Blobs ────────────────────── */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.5;
  animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
  top: -10%; left: -10%;
  width: 500px; height: 500px;
  background: var(--primary);
  animation-delay: 0s;
}

.blob-2 {
  bottom: -20%; right: -10%;
  width: 600px; height: 600px;
  background: var(--accent);
  animation-delay: -5s;
}

.blob-3 {
  top: 40%; left: 50%;
  width: 400px; height: 400px;
  background: #0ea5e9;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ── Typography & Utilities ───────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(to right, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 700px;
  margin-inline: auto;
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--text-muted);
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.05);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ── Navbar ───────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 16px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

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

.nav-links a:not(.btn) {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--primary);
}

/* ── Hero Section ─────────────────────────────────── */
.hero {
  padding-top: 180px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
  margin-bottom: 60px;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-inline: auto;
}

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

.glass-mockup {
  width: 320px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  margin: 0 auto;
  transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.glass-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-10px);
}

.mockup-header {
  padding: 12px 16px;
  background: rgba(0,0,0,0.2);
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mockup-body {
  padding: 40px 24px;
  text-align: center;
}

.shield-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.4));
  animation: pulse 2s infinite alternate ease-in-out;
}

@keyframes pulse {
  from { transform: scale(0.95); }
  to { transform: scale(1.05); }
}

/* ── Feature Grid ─────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0,0,0,0.1);
}

.icon-wrapper {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.1);
}

.icon-wrapper.blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.icon-wrapper.red { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.icon-wrapper.green { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.icon-wrapper.purple { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.icon-wrapper.yellow { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.icon-wrapper.pink { background: rgba(236, 72, 153, 0.2); color: #f472b6; }

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── CTA Section ──────────────────────────────────── */
.cta-card {
  text-align: center;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.cta-card h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

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

.cta-btn svg {
  margin-right: -4px;
}

/* ── Screenshots ──────────────────────────────────── */
.screenshots-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.screenshot-img {
  width: 18%;
  min-width: 150px;
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.screenshot-img:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(31, 38, 135, 0.2);
  z-index: 10;
}

/* ── Footer ───────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 60px 0 24px;
  background: rgba(248, 250, 252, 0.6);
  backdrop-filter: blur(10px);
}

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

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

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

.link-column h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.link-column a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.link-column a:hover {
  color: var(--text-main);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Animations ───────────────────────────────────── */
.animate-fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Scroll Fade Elements */
.fade-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── How It Works ─────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  text-align: center;
}

.step-card {
  padding: 32px;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin: 0 auto 24px;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.step-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-muted);
}

/* ── Testimonials ─────────────────────────────────── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
}

.stars {
  color: var(--warning);
  font-size: 1.25rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: 1.1rem;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 24px;
  flex-grow: 1;
}

.author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.author-info strong {
  display: block;
  color: var(--text-main);
}

.author-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── FAQ ──────────────────────────────────────────── */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  background: none;
  border: none;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer p {
  padding-bottom: 24px;
  color: var(--text-muted);
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .hero h1 { font-size: 3rem; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
  .nav-links { display: none; } /* Simplified for mobile */
  .footer-content { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 32px; }
}
