@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --radius: 0.875rem;
  --background: #fdfbfd;
  --foreground: #1a1325;
  --card: #ffffff;
  --card-foreground: #1a1325;
  --primary: #7c3aed;
  --primary-foreground: #ffffff;
  --secondary: #f4f1f9;
  --secondary-foreground: #2d2640;
  --muted: #f8f6fb;
  --muted-foreground: #6b5f7d;
  --accent: #f4f1f9;
  --accent-foreground: #2d2640;
  --border: #e8e4ef;
  --input: #e8e4ef;
  --ring: #7c3aed;
  --brand: #8b5cf6;
  --brand-foreground: #ffffff;
  --accent-orange: #f59e0b;
  --ink: #11101a;
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% 75%, rgba(251,146,60,0.85), transparent 60%), radial-gradient(ellipse 60% 50% at 50% 100%, rgba(251,191,36,0.7), transparent 55%), linear-gradient(180deg, #7c3aed 0%, #6d28d9 50%, #7c3aed 100%);
  --gradient-brand: linear-gradient(135deg, #8b5cf6, #7c3aed);
  --shadow-glow: 0 20px 60px -15px rgba(124,58,237,0.5);
  --shadow-card: 0 10px 30px -10px rgba(26,19,37,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
h1, h2, h3, h4 { font-family: 'Space Grotesk', system-ui, sans-serif; letter-spacing: -0.035em; font-weight: 700; }

/* Utility classes */
.bg-gradient-hero { background: var(--gradient-hero); }
.bg-gradient-brand { background: var(--gradient-brand); }
.shadow-glow { box-shadow: var(--shadow-glow); }
.shadow-card { box-shadow: var(--shadow-card); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 1rem 0;
}
.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.7);
  padding: 0.625rem 1rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.05);
  backdrop-filter: blur(20px);
}
.logo { display: flex; align-items: center; gap: 0.625rem; padding-left: 0.5rem; text-decoration: none; color: inherit; }
.logo-icon {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
  background: var(--gradient-brand); font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem; font-weight: 700; color: var(--brand-foreground);
}
.logo-text { font-family: 'Space Grotesk', sans-serif; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; }
.nav { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 768px) { .nav { display: flex; } }
.nav a {
  border-radius: 0.5rem; padding: 0.5rem 0.875rem; font-size: 0.875rem; font-weight: 500;
  color: var(--muted-foreground); text-decoration: none; transition: all 0.15s;
}
.nav a:hover { background: var(--secondary); color: var(--foreground); }
.nav a.active { background: var(--secondary); color: var(--foreground); }

/* Buttons */
.btn-ink {
  display: inline-flex; align-items: stretch; gap: 0; background: var(--ink);
  color: rgba(255,255,255,0.98); border-radius: 0.5rem; overflow: hidden;
  font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
  font-size: 0.875rem; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -8px rgba(17,16,26,0.45); }
.btn-ink span { display: flex; align-items: center; justify-content: center; }
.btn-ink .icon-block { background: var(--gradient-brand); }
.btn-ink .label { padding: 0.75rem 1.25rem; font-size: 0.875rem; }
.btn-ink.lg .label { padding: 1rem 1.5rem; font-size: 1rem; }
.btn-ink.lg .icon-block { padding: 0 1.5rem; }
.btn-ink .icon-block { padding: 0 1rem; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 0.75rem; background: var(--primary);
  padding: 0.75rem 1.5rem; color: var(--primary-foreground);
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
  box-shadow: var(--shadow-card); transition: all 0.15s;
  border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.btn-orange {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 0.75rem; background: var(--accent-orange);
  padding: 0.75rem 1.5rem; color: #fff;
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
  box-shadow: var(--shadow-card); transition: all 0.15s; border: none; cursor: pointer;
}
.btn-orange:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -8px rgba(245,158,11,0.45); }

/* Sections */
.section-hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  color: var(--primary-foreground);
  padding: 8rem 1.5rem 4rem;
  margin-top: -5.5rem;
}
.section-hero .content { max-width: 72rem; margin: 0 auto; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px; background: rgba(255,255,255,0.15);
  padding: 0.375rem 1rem; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2);
}
.section-hero h1 { margin-top: 2rem; font-size: 3.5rem; line-height: 0.95; }
.section-hero .subtitle { margin: 1.5rem auto 0; max-width: 42rem; font-size: 1rem; opacity: 0.85; }
@media (min-width: 768px) { .section-hero h1 { font-size: 4.5rem; } .section-hero .subtitle { font-size: 1.125rem; } }
@media (min-width: 1024px) { .section-hero h1 { font-size: 5.5rem; } }

/* Marquee */
.marquee-container { position: relative; overflow: hidden; padding: 0.5rem 0; }
.marquee-track {
  display: flex; width: max-content; gap: 0.75rem;
  animation: marquee-x 40s linear infinite;
}
.marquee-container.reverse .marquee-track { animation-direction: reverse; }
.marquee-item {
  white-space: nowrap; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.1);
  padding: 0.5rem 1.25rem; font-size: 0.875rem; font-weight: 600;
  color: #fff; backdrop-filter: blur(12px); flex-shrink: 0;
}
@keyframes marquee-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Video section */
.video-section { padding: 5rem 1.5rem; background: var(--background); }
.video-section .content { max-width: 64rem; margin: 0 auto; text-align: center; }
.video-container {
  margin-top: 3rem; overflow: hidden; border-radius: 1.5rem;
  background: #000; box-shadow: var(--shadow-glow); border: 1px solid var(--border);
}
.video-container video { width: 100%; aspect-ratio: 16/9; display: block; }

/* Features */
.features-section { background: rgba(244,241,249,0.4); padding: 5rem 1.5rem; }
.features-section .content { max-width: 72rem; margin: 0 auto; }
.section-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--primary);
}
.features-grid {
  display: grid; gap: 1.5rem; margin-top: 3.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.feature-card {
  border-radius: 1rem; border: 1px solid var(--border); background: var(--card);
  padding: 1.75rem; box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.feature-icon {
  display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 0.75rem;
  background: var(--gradient-brand); font-size: 1.5rem;
  box-shadow: var(--shadow-card);
}
.feature-card h3 { margin-top: 1.25rem; font-size: 1.125rem; }
.feature-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }

/* CTA Section */
.cta-section { padding: 5rem 1.5rem; max-width: 80rem; margin: 0 auto; }
.cta-box {
  position: relative; overflow: hidden; border-radius: 1.5rem;
  background: var(--gradient-hero); color: var(--primary-foreground);
  padding: 2.5rem; text-align: center; box-shadow: var(--shadow-glow);
}
@media (min-width: 768px) { .cta-box { padding: 4rem; } }
.cta-box h2 { font-size: 2.25rem; line-height: 1.1; }
@media (min-width: 768px) { .cta-box h2 { font-size: 3rem; } }
.cta-box p { margin: 1rem auto 0; max-width: 36rem; opacity: 0.85; }
.cta-box a { color: inherit; font-weight: 600; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: rgba(244,241,249,0.4); }
.footer-inner { max-width: 80rem; margin: 0 auto; padding: 3rem 1.5rem; display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4 { font-size: 0.875rem; font-weight: 600; }
.footer ul { margin-top: 0.75rem; list-style: none; }
.footer li { margin-top: 0.5rem; }
.footer a { color: var(--muted-foreground); text-decoration: none; font-size: 0.875rem; transition: color 0.15s; }
.footer a:hover { color: var(--foreground); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.25rem; text-align: center; font-size: 0.75rem; color: var(--muted-foreground); }

/* About page */
.page-section { padding: 5rem 1.5rem; }
.page-section .content { max-width: 64rem; margin: 0 auto; }
.about-hero { padding: 5rem 1.5rem; background: var(--gradient-hero); color: var(--primary-foreground); text-align: center; }
.about-hero h1 { font-size: 2.25rem; line-height: 1.1; }
@media (min-width: 768px) { .about-hero h1 { font-size: 3rem; } }
.about-hero p { margin-top: 1.25rem; max-width: 42rem; margin-left: auto; margin-right: auto; opacity: 0.8; }
.stats-grid { display: grid; gap: 1.5rem; margin-top: 4rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat-card { border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 2rem; text-align: center; box-shadow: var(--shadow-card); }
.stat-card .num { font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; font-weight: 700; color: var(--primary); }
.stat-card .label { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* Download page */
.download-grid { display: grid; gap: 1.5rem; margin-top: 3rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.download-card { border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 2rem; box-shadow: var(--shadow-card); }
.download-card .num {
  display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 0.75rem;
  font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 700; color: #fff;
}
.download-card h2 { margin-top: 1.25rem; font-size: 1.25rem; }
.download-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* Install page */
.steps-grid { display: grid; gap: 2rem; margin-top: 3.5rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.steps-card { border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 2rem; box-shadow: var(--shadow-card); }
.steps-card h2 { font-size: 1.5rem; }
.steps-card ol { margin-top: 1.5rem; list-style: none; }
.steps-card li { display: flex; gap: 1rem; margin-top: 1rem; }
.steps-card li:first-child { margin-top: 0; }
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 9999px; flex-shrink: 0;
  background: var(--gradient-hero); color: var(--primary-foreground);
  font-family: 'Space Grotesk', sans-serif; font-size: 0.875rem; font-weight: 700;
}
.steps-card li span:last-child { padding-top: 0.375rem; font-size: 0.875rem; }
.troubleshoot { margin-top: 3.5rem; border-radius: 1rem; border: 1px solid var(--border); background: rgba(244,241,249,0.4); padding: 2rem; }
.troubleshoot h3 { font-size: 1.25rem; }
.troubleshoot ul { margin-top: 1rem; list-style: none; }
.troubleshoot li { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.troubleshoot strong { color: var(--foreground); }
.troubleshoot a { color: var(--primary); text-decoration: underline; }

/* Tools page */
.tools-grid { display: grid; gap: 1.5rem; margin-top: 3.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tool-card { border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 1.75rem; box-shadow: var(--shadow-card); transition: transform 0.2s, box-shadow 0.2s; }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.tool-card h2 { font-size: 1.125rem; }
.tool-card ul { margin-top: 1rem; list-style: none; }
.tool-card li { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.tool-card li::before { content: ''; width: 6px; height: 6px; border-radius: 9999px; background: var(--accent-orange); flex-shrink: 0; }

/* Contact page */
.contact-grid { display: grid; gap: 1.5rem; margin-top: 3rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.contact-card { border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 1.75rem; box-shadow: var(--shadow-card); text-decoration: none; color: inherit; display: block; transition: transform 0.2s, box-shadow 0.2s; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.contact-card .icon { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 0.75rem; background: var(--gradient-brand); font-size: 1.5rem; }
.contact-card h3 { margin-top: 1.25rem; font-size: 1.125rem; }
.contact-card p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* Form */
.form-card { margin-top: 3.5rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 2rem; box-shadow: var(--shadow-card); }
.form-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; }
.form-group input,
.form-group textarea {
  margin-top: 0.5rem; width: 100%; border-radius: 0.75rem; border: 1px solid var(--border);
  background: var(--background); padding: 0.75rem 1rem; font-size: 0.875rem;
  font-family: inherit; color: inherit; outline: none;
}
.form-group input:focus,
.form-group textarea:focus { box-shadow: 0 0 0 2px var(--primary); }

/* Utility */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-14 { margin-top: 3.5rem; }
.mt-16 { margin-top: 4rem; }
.mb-4 { margin-bottom: 1rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.w-full { width: 100%; }
.inline-flex { display: inline-flex; }
.text-muted { color: var(--muted-foreground); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.underline { text-decoration: underline; }
