:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-900: #1e3a8a;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  
  --primary: var(--blue-600);
  --background: #000000;
  --card: var(--slate-900);
  --card-dark: var(--slate-950);
  --border: var(--slate-700);
  --text-primary: #ffffff;
  --text-secondary: var(--slate-300);
  --success: #10b981;
  --danger: #ef4444;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px max(5%, 32px);
  background: transparent;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
  transition: all 0.3s ease;
}

.brand {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Merriweather', serif;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.8;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
  position: relative;
}

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

.hero {
  padding: 120px max(5%, 32px) 80px;
  min-height: 100vh;
}

.hero-card {
  background: linear-gradient(to bottom right, var(--slate-900), var(--slate-800));
  border-radius: 40px;
  padding: 80px 60px;
  border: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 9, 235, 0.15), transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
}

.hero-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15), transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--cyan-400);
  font-weight: 700;
  margin: 0 0 24px 0;
  position: relative;
  z-index: 1;
}

h1 {
  font-size: 56px;
  line-height: 1.1;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-family: 'Merriweather', serif;
  position: relative;
  z-index: 1;
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.typewriter {
  display: inline-block;
  overflow: hidden;
  border-right: 0.15em solid var(--primary);
  white-space: nowrap;
  animation: typing 3.5s steps(100, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: var(--primary);
  }
}

.cta-row {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.cta {
  display: inline-block;
  padding: 15px 24px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.cta.primary {
  background: var(--primary);
  color: white;
}

.cta.primary:hover {
  background: var(--blue-700);
  border-radius: 16px;
}

.cta.ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--slate-400);
}

.cta.ghost:hover {
  background: rgba(51, 65, 85, 0.5);
  border-radius: 16px;
}

.cta.full-width {
  width: 100%;
}

.hero-stats {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 60px;
}

.stat {
  background: linear-gradient(to bottom right, var(--slate-800), var(--slate-900));
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.stat:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-400);
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan-400);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.feature-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 60px;
}

.feature-grid article {
  padding: 36px;
  border-radius: 24px;
  background: linear-gradient(to bottom right, var(--slate-800), var(--slate-900));
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-grid article:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.feature-grid h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-grid p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 40px;
}

.auth-container {
  width: 100%;
  max-width: 480px;
}

.auth-card {
  background: linear-gradient(to bottom right, var(--slate-900), var(--slate-800));
  border-radius: 24px;
  padding: 48px 40px;
  border: 1px solid var(--border);
}

.auth-card h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  text-align: center;
}

.auth-subtitle {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 32px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  background: var(--slate-800);
  padding: 4px;
  border-radius: 12px;
}

.tab {
  flex: 1;
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab.active {
  background: var(--primary);
  color: white;
}

.auth-form {
  display: grid;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.field input {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--slate-800);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--slate-700);
}

.field input::placeholder {
  color: var(--slate-500);
}

.panel {
  background: linear-gradient(to bottom right, var(--slate-900), var(--slate-800));
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--border);
}

.panel h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  font-family: 'Merriweather', serif;
}

.list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--slate-800);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.list-item:hover {
  background: var(--slate-700);
  border-color: var(--primary);
}

.list-item strong {
  font-weight: 600;
  color: var(--text-primary);
}

.list-item span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.muted {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.qr-card {
  margin-top: 32px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 32px;
  background: linear-gradient(to bottom right, var(--slate-900), var(--slate-800));
  border-radius: 24px;
  border: 1px solid var(--border);
}

.qr-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  font-family: 'Merriweather', serif;
  color: var(--text-primary);
}

.qr-card canvas {
  border-radius: 12px;
  background: white;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.status {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--slate-800);
  color: var(--text-primary);
}

.status[data-tone="success"] {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.status[data-tone="error"] {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.hidden {
  display: none !important;
}

.app-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  padding-top: 80px;
}

.sidebar {
  background: var(--slate-900);
  padding: 24px 12px;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.sidebar-nav a:hover {
  color: var(--text-primary);
  background: var(--slate-800);
}

.sidebar-nav a.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
}

.page {
  padding: 48px max(5%, 32px);
  display: grid;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 16px;
  }

  .hero {
    padding: 100px 16px 48px;
  }

  .hero-card {
    padding: 48px 32px;
    border-radius: 24px;
  }

  h1 {
    font-size: 36px;
  }

  .page {
    padding: 24px 16px;
  }

  .auth-card {
    padding: 32px 24px;
  }

  .qr-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Navbar Styles */
.navbar > div {
  max-width: 7xl;
  margin: 0 auto;
  padding: 0 max(5%, 32px);
}

.nav-links.hidden {
  display: none;
}

.nav-links.hidden.md\:flex {
  display: flex !important;
}

.mobile-menu-btn {
  display: none;
}

.mobile-menu {
  display: none;
}

.mobile-menu.hidden {
  display: none;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.menu-toggle:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
}

@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu:not(.hidden) {
    display: block;
  }
}

/* FAQ Section */
.faq-section {
  width: 100%;
  padding: 48px 32px;
  background: var(--slate-950);
}

.faq-section h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 32px;
  position: sticky;
  top: 100px;
}

.faq-list {
  display: grid;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: opacity 0.2s ease;
  padding-right: 32px;
}

.faq-button:hover {
  opacity: 0.7;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #22d3ee;
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  padding-right: 32px;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #cbd5e1;
}

/* Footer */
.footer {
  width: 100%;
  background: var(--background);
  border-top: 1px solid var(--border);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(51, 65, 85, 0.5);
  border: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icon:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.grid {
  display: grid;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sm\:grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.md\:grid-cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (min-width: 1024px) {
  .md\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.col-span-2 {
  grid-column: span 2;
}

.sm\:col-span-3 {
  grid-column: span 3;
}

@media (min-width: 768px) {
  .sm\:col-span-3 {
    grid-column: span 3;
  }
}

.md\:col-span-2 {
  grid-column: span 2;
}

@media (min-width: 1024px) {
  .md\:col-span-2 {
    grid-column: span 2;
  }
}

.gap-6 {
  gap: 24px;
}

.gap-8 {
  gap: 32px;
}

.sm\:gap-8 {
  gap: 32px;
}

@media (min-width: 768px) {
  .sm\:gap-8 {
    gap: 32px;
  }
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-2 {
  margin-bottom: 8px;
}

.mt-6 {
  margin-top: 24px;
}

.mb-8 {
  margin-bottom: 32px;
}

.mb-12 {
  margin-bottom: 48px;
}

.py-12 {
  padding-top: 48px;
  padding-bottom: 48px;
}

.py-16 {
  padding-top: 64px;
  padding-bottom: 64px;
}

.sm\:py-16 {
  padding-top: 64px;
  padding-bottom: 64px;
}

.px-4 {
  padding-left: 16px;
  padding-right: 16px;
}

.sm\:px-8 {
  padding-left: 32px;
  padding-right: 32px;
}

.pt-6 {
  padding-top: 24px;
}

.pt-8 {
  padding-top: 32px;
}

.sm\:pt-8 {
  padding-top: 32px;
}

.border-t {
  border-top: 1px solid var(--border);
}

.max-w-7xl {
  max-width: 80rem;
}

.max-w-xs {
  max-width: 20rem;
}

.text-xs {
  font-size: 0.75rem;
}

.sm\:text-sm {
  font-size: 0.875rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.sm\:text-2xl {
  font-size: 1.875rem;
}

.text-foreground\/60 {
  color: rgba(255, 255, 255, 0.6);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.sm\:flex-row {
  flex-direction: row;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.gap-4 {
  gap: 16px;
}

.gap-3 {
  gap: 12px;
}

.leading-5 {
  line-height: 1.25rem;
}

.space-y-2 {
  display: grid;
  gap: 8px;
}

.space-y-3 {
  display: grid;
  gap: 12px;
}

/* Hero Icons */
.hero-icons {
  display: none;
  gap: 8px;
  margin-bottom: 32px;
}

.hero-icons.hidden {
  display: none;
}

@media (min-width: 640px) {
  .hero-icons {
    display: flex;
  }
}

.icon-shield,
.icon-compare {
  width: 24px;
  height: 24px;
  color: #22d3ee;
}
