:root {
  --color-bg: #0f172a;
  --color-primary: #6366f1;
  --color-primary-hover: #4f46e5;
  --color-secondary: #ec4899;
  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-card-bg: rgba(30, 41, 59, 0.7);
  --color-card-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-bg);
  background-image:
    /* Mesh gradient overlay */
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    /* Contour lines (isohipsy) */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(99, 102, 241, 0.03) 2px,
      rgba(99, 102, 241, 0.03) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(99, 102, 241, 0.03) 2px,
      rgba(99, 102, 241, 0.03) 4px
    ),
    /* Beautiful gradients */
    radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(236, 72, 153, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 70%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 50%, rgba(15, 23, 42, 0.95) 100%);
  background-attachment: fixed;
  color: var(--color-text-main);
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    /* Additional contour lines for depth */
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 50px,
      rgba(99, 102, 241, 0.02) 50px,
      rgba(99, 102, 241, 0.02) 52px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 50px,
      rgba(236, 72, 153, 0.02) 50px,
      rgba(236, 72, 153, 0.02) 52px
    );
  pointer-events: none;
  z-index: 0;
}

/* Navbar */
.navbar {
  background: rgba(15, 23, 42, 0.9) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-card-border);
}

.navbar-brand {
  color: var(--color-text-main) !important;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.nav-link {
  color: var(--color-text-muted) !important;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.show {
  color: var(--color-text-main) !important;
}

.dropdown-menu {
  background: #1e293b;
  border: 1px solid var(--color-card-border);
  box-shadow: var(--glass-shadow);
}

.dropdown-item {
  color: var(--color-text-muted);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-main);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  color: white;
}

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

.btn-outline-primary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-text-main);
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  /* Increased top padding for fixed navbar */
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  line-height: 4rem;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Generator Tabs */
.qr-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.qr-type-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-card-border);
  border-radius: 12px;
  padding: 1rem 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 90px;
}

.qr-type-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.qr-type-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--color-primary);
  color: var(--color-text-main);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

.qr-type-btn svg {
  width: 24px;
  height: 24px;
  margin-bottom: 0.5rem;
}

/* Inputs */
.form-label {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-card-border);
  color: var(--color-text-main);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
  background: rgba(0, 0, 0, 0.3);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
  color: var(--color-text-main);
}

.type-fields {
  display: none;
  animation: fadeIn 0.3s ease;
}

.type-fields.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

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

/* Preview Area */
.preview-container {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  display: inline-block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 100%;
}

#qr-preview-canvas {
  max-width: 100%;
  height: auto !important;
  display: block;
}

.alert-glass {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.9rem;
}

.alert-glass a {
  color: white;
  text-decoration: underline;
}

/* Features Section */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--color-text-main);
  position: relative;
  z-index: 1;
}

/* Accordion glass effect */
.accordion-item {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.accordion-button {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #f8fafc !important;
  border: none !important;
}

.accordion-button:not(.collapsed) {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #f8fafc !important;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.accordion-button:hover {
  background: rgba(99, 102, 241, 0.1) !important;
}

.accordion-body {
  background: rgba(15, 23, 42, 0.5) !important;
  color: #cbd5e1 !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feature-card {
  padding: 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 
    0 20px 60px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  color: var(--color-primary);
  background: rgba(99, 102, 241, 0.1);
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

/* Pricing */
.pricing-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pricing-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.pricing-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 
    0 20px 60px rgba(99, 102, 241, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.pricing-card:hover::after {
  opacity: 1;
}

.pricing-card.featured {
  border-color: rgba(99, 102, 241, 0.6);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.15) 0%, rgba(30, 41, 59, 0.6) 100%);
  box-shadow: 
    0 8px 32px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 40px rgba(99, 102, 241, 0.2);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.8), transparent);
}

.pricing-card h3 {
  color: var(--color-text-main);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
}

.pricing-card ul {
  flex-grow: 1;
}

.pricing-card ul li {
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.pricing-card ul li::before {
  content: "✓";
  color: var(--color-secondary);
  margin-right: 0.5rem;
  font-weight: bold;
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-card-border);
  background: rgba(15, 23, 42, 0.9);
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding-top: 6rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .qr-type-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .qr-type-btn {
    padding: 0.75rem 0.25rem;
    min-height: 80px;
  }

  .qr-type-btn small {
    font-size: 0.75rem;
  }

  .glass-card {
    padding: 1.5rem;
  }

  .pricing-card {
    margin-bottom: 1rem;
  }
}