/* ============================================
   DNS INTEL - PREMIUM DESIGN SYSTEM
   Animated, Modern, Production-Ready
   ============================================ */

:root {
  /* Core Colors */
  --bg-primary: #0B1120;
  --bg-secondary: #111827;
  --bg-card: #162032;
  --bg-card-hover: #1f2937;
  --surface-dark: #162032;

  /* Text Colors */
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* Accent Colors */
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-yellow: #f59e0b;
  --accent-red: #ef4444;
  --accent-purple: #8b5cf6;

  /* Borders & Effects */
  --border-color: #374151;
  --border-subtle: rgba(255, 255, 255, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --gradient-button: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  --gradient-shimmer: linear-gradient(to right, #3b82f6 20%, #67e8f9 30%, #93c5fd 70%, #3b82f6 80%);
  --gradient-dark: linear-gradient(180deg, #0B1120 0%, #111827 100%);

  /* Shadows */
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.3);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-button: 0 10px 30px -10px rgba(14, 165, 233, 0.5);
}

/* ============================================
   ANIMATIONS & KEYFRAMES
   ============================================ */

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes blob {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary); }
  50% { box-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary); }
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes pulse {
  50% { opacity: .5; }
}

/* Animation Utilities */
.animate-shimmer { animation: shimmer 3s linear infinite; }
.animate-blob { animation: blob 7s infinite; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-ping { animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

/* ============================================
   BASE STYLES & SCROLLBAR
   ============================================ */

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

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gradient-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* ============================================
   ANIMATED BACKGROUND ELEMENTS
   ============================================ */

/* Nerve System Canvas */
#nerve-system {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* Floating Blob Orbs */
.blob-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(60px);
  opacity: 0.15;
}

.blob-1 {
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: var(--accent-blue);
  animation: blob 7s infinite;
}

.blob-2 {
  top: -50px;
  right: -100px;
  width: 350px;
  height: 350px;
  background: var(--accent-cyan);
  animation: blob 7s infinite;
  animation-delay: 2s;
}

.blob-3 {
  bottom: -100px;
  left: 20%;
  width: 400px;
  height: 400px;
  background: var(--accent-purple);
  animation: blob 7s infinite;
  animation-delay: 4s;
}

/* ============================================
   GLASS PANEL EFFECT
   ============================================ */

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

/* ============================================
   SHIMMER TEXT EFFECT
   ============================================ */

.text-shimmer {
  background: var(--gradient-shimmer);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(11, 17, 32, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-text span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 300;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

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

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

.nav-btn {
  padding: 0.625rem 1.25rem !important;
  background: var(--gradient-button) !important;
  border-radius: 8px !important;
  color: white !important;
  font-weight: 600 !important;
  box-shadow: var(--shadow-button);
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -10px rgba(14, 165, 233, 0.6);
}

.nav-btn-secondary {
  background: transparent !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-secondary) !important;
  box-shadow: none !important;
}

.nav-btn-secondary:hover {
  border-color: var(--accent-red) !important;
  color: var(--accent-red) !important;
  transform: none;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  z-index: 10;
  padding: 10rem 2rem 6rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--accent-cyan);
  animation: float 6s ease-in-out infinite;
}

.hero-badge .pulse-dot {
  position: relative;
  display: flex;
  width: 8px;
  height: 8px;
}

.hero-badge .pulse-dot::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hero-badge .pulse-dot::after {
  content: '';
  position: relative;
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.02em;
}

h1 span {
  background: var(--gradient-shimmer);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
  position: relative;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* Hero Logo */
.hero-logo {
  margin-bottom: 2rem;
}

.hero-logo img {
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(14, 165, 233, 0.4));
  animation: float 6s ease-in-out infinite;
}

/* Hero Video */
.hero-video-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto 3rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-video {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   SEARCH BOX (PREMIUM)
   ============================================ */

.search-container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.search-wrapper {
  position: relative;
}

.search-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-primary);
  border-radius: 18px;
  opacity: 0.3;
  filter: blur(8px);
  transition: opacity 0.3s;
}

.search-wrapper:focus-within::before {
  opacity: 0.6;
}

.search-box {
  position: relative;
  display: flex;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

.search-prefix {
  display: flex;
  align-items: center;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
}

.search-input {
  flex: 1;
  padding: 1.25rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-family: 'JetBrains Mono', monospace;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: none;
}

.search-btn {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 2rem;
  background: var(--gradient-button);
  border: none;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s;
}

.search-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, transparent, rgba(255, 255, 255, 0.2));
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.search-btn:hover::before {
  transform: translateY(0);
}

.search-btn:hover {
  transform: scale(1.02);
}

.search-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.search-btn .material-icons-round {
  font-size: 1.25rem;
}

.rate-limit-info {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.rate-limit-info span {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Floating DNS Labels */
.dns-float-label {
  position: absolute;
  padding: 0.75rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  animation: float 6s ease-in-out infinite;
  display: none;
}

@media (min-width: 768px) {
  .dns-float-label {
    display: block;
  }
}

.dns-float-label.top-right {
  top: -3rem;
  right: -2rem;
  animation-delay: 1s;
}

.dns-float-label.bottom-left {
  bottom: -2rem;
  left: -2rem;
  animation-delay: 2s;
  color: var(--accent-blue);
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
  position: relative;
  z-index: 10;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px -15px rgba(14, 165, 233, 0.2);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

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

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ============================================
   RESULTS SECTION
   ============================================ */

.results-container {
  display: none;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.results-container.active {
  display: block;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.results-domain {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
}

.grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 700;
}

.grade-A { background: rgba(16, 185, 129, 0.2); color: var(--accent-green); }
.grade-B { background: rgba(59, 130, 246, 0.2); color: var(--accent-blue); }
.grade-C { background: rgba(245, 158, 11, 0.2); color: var(--accent-yellow); }
.grade-D { background: rgba(239, 68, 68, 0.2); color: var(--accent-red); }
.grade-F { background: rgba(239, 68, 68, 0.3); color: var(--accent-red); }

.results-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  overflow-x: auto;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.result-card h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.records-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
}

.records-table th,
.records-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.records-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-success { background: rgba(16, 185, 129, 0.2); color: var(--accent-green); }
.status-warning { background: rgba(245, 158, 11, 0.2); color: var(--accent-yellow); }
.status-error { background: rgba(239, 68, 68, 0.2); color: var(--accent-red); }
.status-info { background: rgba(59, 130, 246, 0.2); color: var(--accent-blue); }

.propagation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.propagation-card {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 1rem;
}

.propagation-card h5 {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.propagation-card .region {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.propagation-card .latency {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-top: 0.5rem;
}

.issues-list {
  list-style: none;
}

.issue-item {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  display: flex;
  gap: 1rem;
}

.issue-critical { background: rgba(239, 68, 68, 0.1); border-left: 3px solid var(--accent-red); }
.issue-warning { background: rgba(245, 158, 11, 0.1); border-left: 3px solid var(--accent-yellow); }
.issue-info { background: rgba(59, 130, 246, 0.1); border-left: 3px solid var(--accent-blue); }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-button);
  color: white;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -10px rgba(14, 165, 233, 0.6);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn-block { width: 100%; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* ============================================
   PRICING SECTION
   ============================================ */

.pricing-hero {
  position: relative;
  z-index: 10;
  padding: 10rem 2rem 4rem;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  position: relative;
  z-index: 10;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px -15px rgba(14, 165, 233, 0.2);
}

.pricing-featured {
  border-color: var(--accent-cyan);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.1) 0%, var(--bg-card) 50%);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-header {
  margin-bottom: 1.5rem;
}

.pricing-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.price .amount {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price .period {
  color: var(--text-muted);
  font-size: 1rem;
}

.price-note {
  color: var(--accent-green);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.pricing-features .check {
  color: var(--accent-green);
  font-weight: 600;
}

/* Pricing Preview on Homepage */
.pricing-preview {
  position: relative;
  z-index: 10;
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 165, 233, 0.03) 100%);
}

.pricing-subtitle {
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.pricing-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.pricing-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.3s, border-color 0.3s;
}

.pricing-preview-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.pricing-preview-card.featured {
  border-color: var(--accent-cyan);
  position: relative;
}

.preview-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
}

.preview-price {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.preview-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-preview-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.pricing-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Referral Section */
.referral-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  position: relative;
  z-index: 10;
}

.referral-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
}

.referral-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.referral-card h2 {
  margin-bottom: 1rem;
}

.referral-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.referral-card strong {
  color: var(--accent-cyan);
}

.referral-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.referral-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 12px;
}

.step-num {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.referral-max-benefit {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid var(--accent-cyan);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}

.referral-max-benefit p {
  margin: 0;
  color: var(--text-primary);
}

/* FAQ Section */
.faq-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
  position: relative;
  z-index: 10;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-item h4 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ============================================
   AUTH PAGES (LOGIN/REGISTER)
   ============================================ */

.auth-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  z-index: 10;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.4));
}

.auth-header h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: var(--text-secondary);
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.success-message {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.oauth-btn:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.oauth-google:hover { border-color: #4285f4; }
.oauth-twitter:hover { border-color: #1da1f2; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input {
  padding: 0.875rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.auth-toggle {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.auth-toggle a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-toggle a:hover {
  text-decoration: underline;
}

/* ============================================
   DASHBOARD
   ============================================ */

.dashboard-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  position: relative;
  z-index: 10;
}

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.dashboard-header p {
  color: var(--text-secondary);
}

.dashboard-loading {
  text-align: center;
  padding: 4rem 2rem;
}

.dashboard-loading .loading-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
}

.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-header h2 {
  font-size: 1.25rem;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.card-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Subscription Info */
.sub-info {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1rem;
}

.sub-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.sub-detail {
  display: flex;
  flex-direction: column;
}

.sub-detail .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.sub-detail .value {
  font-weight: 600;
}

.sub-warning {
  grid-column: 1 / -1;
  color: var(--accent-yellow);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* API Keys */
.new-key-display {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--accent-green);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.new-key-alert {
  color: var(--accent-green);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.key-value {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-secondary);
  padding: 0.75rem;
  border-radius: 8px;
}

.key-value code {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  word-break: break-all;
}

.copy-btn {
  padding: 0.375rem 0.75rem;
  background: var(--primary);
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.copy-btn:hover {
  opacity: 0.8;
}

.api-keys-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.api-key-item {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 12px;
}

.api-key-item.inactive {
  opacity: 0.6;
}

.key-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 200px;
}

.key-prefix {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--accent-cyan);
}

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

.key-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.key-actions {
  display: flex;
  gap: 0.5rem;
}

.no-keys {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

/* Referral */
.referral-reward {
  color: var(--accent-green);
  font-size: 0.875rem;
}

.referral-code-box,
.referral-link-box {
  margin-bottom: 1rem;
}

.referral-code-box span,
.referral-link-box span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.referral-code,
.referral-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-secondary);
  padding: 0.75rem;
  border-radius: 8px;
}

.referral-code code,
.referral-link code {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  word-break: break-all;
}

.referral-code code {
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 12px;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ============================================
   LOADING & NOTIFICATIONS
   ============================================ */

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

.notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  z-index: 1000;
  animation: slideIn 0.3s ease;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.notification-success {
  background: var(--accent-green);
  color: white;
}

.notification-error {
  background: var(--accent-red);
  color: white;
}

.notification.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  position: relative;
  z-index: 10;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
  background: rgba(11, 17, 32, 0.5);
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--accent-cyan);
}

/* ============================================
   LEGAL PAGES (Privacy, Terms)
   ============================================ */

.legal-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  padding: 10rem 2rem 4rem;
}

.legal-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-content .last-updated {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 3rem;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 1.5rem 0 0.75rem;
}

.legal-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.legal-section ul li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.legal-section a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-section a:hover {
  color: var(--accent-cyan);
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-hero {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 10rem 2rem 3rem;
}

.contact-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.contact-hero h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-content {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(14, 165, 233, 0.15);
}

.contact-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(6, 182, 212, 0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon .material-icons-round {
  font-size: 2rem;
  color: var(--primary);
}

.contact-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.contact-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--accent-cyan);
}

.contact-info-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 3rem;
}

.contact-info-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.faq-compact {
  display: grid;
  gap: 1.5rem;
}

.faq-compact .faq-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.faq-compact .faq-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.faq-compact .faq-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.faq-compact .faq-item p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

.contact-cta {
  text-align: center;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.contact-cta h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.contact-cta p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ============================================
   DARK/LIGHT MODE TOGGLE
   ============================================ */

.theme-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  padding: 0.875rem;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* ============================================
   CODE BLOCKS
   ============================================ */

.code-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  overflow-x: auto;
  white-space: pre;
}

.code-comment {
  color: var(--text-muted);
}

/* ============================================
   COMING SOON PAGE
   ============================================ */

.coming-soon-hero {
  padding-top: 12rem;
}

.coming-soon-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.coming-soon-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 3rem 0;
}

.cs-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.9375rem;
}

.cs-icon {
  font-size: 1.25rem;
}

.coming-soon-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.api-preview {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  z-index: 10;
}

.api-preview h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .hero {
    padding: 8rem 1rem 4rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .search-box {
    flex-direction: column;
  }

  .search-btn {
    width: 100%;
    justify-content: center;
    border-radius: 0 0 14px 14px;
  }

  .search-prefix {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .results-header {
    flex-direction: column;
    text-align: center;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-preview-grid {
    grid-template-columns: 1fr;
  }

  .coming-soon-features {
    flex-direction: column;
    align-items: center;
  }

  .coming-soon-cta {
    flex-direction: column;
  }

  .referral-details {
    grid-template-columns: 1fr 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 1.5rem;
  }

  .dashboard-container {
    padding: 6rem 1rem 2rem;
  }

  .sub-details {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .api-key-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .blob {
    opacity: 0.1;
  }
}

/* ============================================
   TRUST BADGES / SOCIAL PROOF
   ============================================ */

.trust-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.trust-section p {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all 0.3s;
}

.trust-logos:hover {
  opacity: 0.8;
  filter: grayscale(0%);
}

.trust-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-weight: 600;
}

.trust-logo-icon {
  width: 24px;
  height: 24px;
  background: var(--text-muted);
  border-radius: 4px;
}
