/* Core Design Tokens */
:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --bg: #0f172a;
  --card-bg: #1e293b;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --border: #334155;
  --accent: #818cf8;
  --accent-secondary: #c084fc;
  --success: #10b981;
  --danger: #ef4444;
  --danger-hover: #dc2626;
}

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

body {
  font-family: 'DM Sans', 'Inter', 'Mulish', sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 140px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1000px;
  z-index: 1;
}

h1 {
  font-family: 'Lexend Giga', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(to right, #818cf8, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  body { padding-top: 110px; }
}

/* Header & Navigation */
.glass-header {
  position: fixed;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1000px;
  height: 72px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  z-index: 9000;
  display: flex;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.header-content {
  width: 100%;
  height: 100%;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-logo {
  height: 36px;
  width: auto;
}

.header-title {
  font-family: 'Lexend Giga', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(to right, #818cf8, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

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

.nav-btn {
  font-family: 'Lexend Giga', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.nav-btn:hover {
  background: rgba(79, 70, 229, 0.15);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.nav-btn:active {
  transform: scale(0.96);
}

.glass-header .mobile-menu-btn {
  display: none !important;
}

/* Active State */
.nav-btn.active {
  background: rgba(79, 70, 229, 0.2);
  border-color: var(--primary);
  color: white;
  cursor: default;
  pointer-events: none;
  box-shadow: inset 0 0 10px rgba(79, 70, 229, 0.2);
  transform: none !important;
}

@media (max-width: 768px) {
  .glass-header {
    width: calc(100% - 24px);
    top: 25px;
    height: 64px;
    border-radius: 16px;
  }

  .header-content {
    padding: 0 16px;
  }
  
  .header-title {
    display: block !important;
    font-size: 0.9rem;
  }

  .header-right {
    display: none; /* Hide desktop nav (Pricing / About / Terms live here) */
  }

  .glass-header .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
  }

  .mobile-menu-btn:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 450px) {
  .glass-header {
    height: 60px;
    top: 20px;
  }
  .header-logo {
    height: 24px;
  }
  .header-title {
    font-size: 0.8rem;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Mobile Drawer Styles */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 20000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  height: 100dvh;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  z-index: 20001;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.drawer-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-nav .nav-btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 0.9rem;
  text-align: left;
  justify-content: flex-start;
}

/* Analytics consent banner (GDPR) */
#consentBanner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  width: calc(100% - 32px);
  max-width: 640px;
  z-index: 60000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.6);
  font-size: 0.9rem;
  color: var(--text);
}

#consentBanner .consent-text {
  color: var(--text-muted);
  line-height: 1.4;
}

#consentBanner .consent-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.consent-btn {
  font-family: 'Lexend Giga', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  white-space: nowrap;
}

.consent-btn.consent-accept {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

@media (max-width: 520px) {
  #consentBanner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  #consentBanner .consent-actions {
    justify-content: center;
  }
}
