:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #7c3aed;
  --accent-soft: #ede9fe;
  --accent-2: #10b981;
  --warning: #f59e0b;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius: 16px;
  --maxw: 1200px;
  --grid: rgba(15, 23, 42, 0.05);
  --focus: rgba(124, 58, 237, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #020617;
    --surface: #0f172a;
    --surface-2: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: #1e293b;
    --accent-soft: #2e1065;
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    --grid: rgba(241, 245, 249, 0.05);
  }
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent-soft: #ede9fe;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #020617;
  --surface: #0f172a;
  --surface-2: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: #1e293b;
  --accent-soft: #2e1065;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 80%);
  z-index: -1;
}

.bg-orb {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -2;
  opacity: 0.15;
  pointer-events: none;
}

.orb-1 { top: -200px; left: -100px; background: var(--accent); }
.orb-2 { bottom: -200px; right: -100px; background: var(--accent-2); }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0; /* Reduced from 16px */
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px; /* Slightly smaller */
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.brand img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 6px;
}

.brand .sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1px;
}

@media (max-width: 768px) {
  .nav {
    padding: 8px 0; /* Even more compact on mobile */
  }
  .brand .sub {
    display: none; /* Hide subtitle on mobile to save vertical space */
  }
  .desktop-only {
    display: none !important; /* Force hide any desktop-only containers */
  }
  .nav-right {
    gap: 8px;
  }
}

.navlinks {
  display: flex;
  gap: 8px;
}

.navlinks a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.navlinks a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn.primary:hover {
  background: color-mix(in srgb, var(--accent) 90%, black);
  box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.3);
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.btn.ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

.btn.small {
  padding: 6px 12px;
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(124, 58, 237, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

.hero {
  padding: 60px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 64px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -2px;
  margin: 16px 0 24px;
  background: linear-gradient(to bottom right, var(--text) 60%, var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 20px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

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

.hero-art {
  margin-top: 60px;
  position: relative;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.hero-art-container {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: 8px;
}

.hero-art img {
  width: 100%;
  border-radius: 18px;
  display: block;
}

.floating-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 6s ease-in-out infinite;
  z-index: 10;
}

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

.card-1 { top: 20%; left: -40px; }
.card-2 { bottom: 20%; right: -40px; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
}

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

.feature-card {
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
}

.feature-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-number {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.codebox {
  background: #0f172a;
  color: #f8fafc;
  padding: 20px;
  border-radius: 16px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.codebox pre { margin: 0; overflow: auto; }

.codebox .copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  padding: 24px 0;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
}

.faq-item p { padding-bottom: 24px; color: var(--muted); margin: 0; }

.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand h2 { font-weight: 800; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); max-width: 300px; }

.footer-links h4 { font-weight: 700; margin-bottom: 20px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--muted); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 90;
  padding: 100px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.mobile-menu[hidden] {
  display: none !important;
}

.responsive-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero h1 { font-size: 52px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-container { grid-template-columns: 1fr; gap: 40px; }
  .floating-card { display: none; }
}

@media (max-width: 768px) {
  .navlinks { display: none; }
  .mobile-nav-toggle { display: block; }
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 42px; letter-spacing: -1px; }
  .hero p { font-size: 18px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .responsive-grid { grid-template-columns: 1fr; gap: 30px; }
}

[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
