/* 
  AelixLab Premium Stylesheet
  Design Aesthetics: Glassmorphism, Neon Gradients, Light/Dark Modes, Micro-animations
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Custom Variables & Themes --- */
:root {
  /* Font Family definitions */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Global Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Light Theme variables (default) */
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #ffffff;
  
  --card-bg: rgba(255, 255, 255, 0.7);
  --card-border: rgba(226, 232, 240, 0.8);
  --card-shadow: 0 10px 30px -10px rgba(148, 163, 184, 0.15), 0 1px 3px rgba(148, 163, 184, 0.05);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-inverse: #ffffff;

  --color-primary: #2563eb;
  --color-secondary: #7c3aed;
  --color-accent: #0284c7;
  --color-success: #16a34a;
  --color-warning: #ea580c;
  --color-danger: #dc2626;

  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #8b5cf6 100%);
  --gradient-text: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%);
  --gradient-glow: rgba(37, 99, 235, 0.15);
  
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --input-focus: #3b82f6;

  --scrollbar-bg: #e2e8f0;
  --scrollbar-thumb: #cbd5e1;
  --scrollbar-thumb-hover: #94a3b8;
}

[data-theme="dark"] {
  /* Dark Theme variables */
  --bg-primary: #030712;
  --bg-secondary: #0b0f19;
  --bg-tertiary: #111827;

  --card-bg: rgba(17, 24, 39, 0.65);
  --card-border: rgba(37, 99, 235, 0.18);
  --card-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(37, 99, 235, 0.03);

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-inverse: #030712;

  --color-primary: #3b82f6;
  --color-secondary: #a78bfa;
  --color-accent: #38bdf8;
  --color-success: #4ade80;
  --color-warning: #fb923c;
  --color-danger: #f87171;

  --gradient-primary: linear-gradient(135deg, #38bdf8 0%, #3b82f6 50%, #8b5cf6 100%);
  --gradient-text: linear-gradient(135deg, #38bdf8 0%, #c084fc 100%);
  --gradient-glow: rgba(56, 189, 248, 0.2);

  --input-bg: #1f2937;
  --input-border: #374151;
  --input-focus: #38bdf8;

  --scrollbar-bg: #111827;
  --scrollbar-thumb: #374151;
  --scrollbar-thumb-hover: #4b5563;
}

/* --- Base Resets & Typography --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--scrollbar-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  border: 1px solid transparent;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--gradient-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--gradient-glow);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-main);
  border-color: var(--card-border);
  box-shadow: var(--card-shadow);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--bg-secondary);
  border-color: var(--color-primary);
}

.btn-icon {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}
.btn-icon:hover {
  transform: scale(1.05);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.lang-select {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  border-radius: 12px;
  padding: 10px 32px 10px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}
[data-theme="dark"] .lang-select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}
.lang-select:hover {
  border-color: var(--color-primary);
  transform: translateY(-1px);
}
.lang-select option {
  background: var(--bg-tertiary);
  color: var(--text-main);
}


.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1), 0 0 30px var(--gradient-glow);
}

/* --- Header / Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.7);
  border-bottom: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition-normal), border var(--transition-normal);
}
[data-theme="dark"] header {
  background: rgba(3, 7, 18, 0.7);
}

header.scrolled {
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}
.logo-icon {
  width: 42px;
  height: 42px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}
.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}
.nav-link:hover {
  color: var(--text-main);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-link.active {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hamburger Menu Icon */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.burger-menu span {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 180px 0 100px 0;
  overflow: hidden;
}

/* Animated gradient blobs in background */
.hero-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float-blob 20s infinite alternate;
}
.blob-1 {
  width: 400px;
  height: 400px;
  background: rgba(59, 130, 246, 0.2);
  top: -100px;
  right: -50px;
}
.blob-2 {
  width: 350px;
  height: 350px;
  background: rgba(139, 92, 246, 0.15);
  bottom: -50px;
  left: -100px;
  animation-duration: 25s;
}
@keyframes float-blob {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 50px) scale(1.1); }
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 540px;
}
.hero-cta {
  display: flex;
  gap: 16px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.dashboard-mockup {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/3;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255,255,255,0.1);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
[data-theme="dark"] .dashboard-mockup {
  background: linear-gradient(135deg, rgba(17,24,39,0.7) 0%, rgba(3,7,18,0.4) 100%);
}
.mockup-header {
  height: 32px;
  background: rgba(0,0,0,0.15);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 6px;
}
.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}
.mockup-dot:nth-child(2) { background: #eab308; }
.mockup-dot:nth-child(3) { background: #22c55e; }

.mockup-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 32px);
  justify-content: space-between;
}
.mockup-code-block {
  font-family: monospace;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  color: var(--color-primary);
  flex-grow: 1;
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}
.mockup-code-block::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to top, var(--bg-tertiary) 0%, transparent 100%);
  opacity: 0.5;
}
.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mockup-stat {
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  text-align: center;
}
.mockup-stat-val {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-heading);
}
.mockup-stat-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* --- Section Formatting --- */
.section {
  padding: 100px 0;
  position: relative;
}
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px auto;
}
.section-tag {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 12px;
  display: inline-block;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* --- Features Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.feature-card {
  padding: 40px;
  text-align: left;
}
.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Interactive Toolbox (Live Web Demos) --- */
.toolbox-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  background: var(--bg-secondary);
  padding: 8px;
  border-radius: 16px;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.toolbox-tabs::-webkit-scrollbar {
  display: none;
}
.toolbox-tab-btn {
  background: transparent;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.toolbox-tab-btn:hover {
  color: var(--text-main);
}
.toolbox-tab-btn.active {
  background: var(--bg-tertiary);
  color: var(--color-primary);
  box-shadow: var(--card-shadow);
}

.toolbox-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}
.toolbox-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tool-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.tool-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tool-output-container {
  display: flex;
  flex-direction: column;
}
.tool-output-card {
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-style: dashed;
}

/* Form Styling */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: 10px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Tool Specifc UI Elements */
/* Citation Tool */
.citation-result-text {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 4px solid var(--color-primary);
  min-height: 80px;
}
/* LaTeX Table Tool */
.latex-grid-scroller {
  overflow-x: auto;
  margin-bottom: 16px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
}
.latex-grid {
  border-collapse: collapse;
  width: 100%;
  min-width: 400px;
}
.latex-grid th, .latex-grid td {
  border: 1px solid var(--card-border);
  padding: 8px;
  background: var(--bg-tertiary);
}
.latex-grid input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-main);
  padding: 4px;
}
.latex-output-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  background: rgba(0,0,0,0.2);
  padding: 16px;
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-all;
  flex-grow: 1;
  margin-bottom: 16px;
  overflow-y: auto;
  max-height: 250px;
  color: var(--color-secondary);
}

/* Abstract Analyzer Tool */
.analyzer-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.metric-box {
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  text-align: center;
}
.metric-val {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
}
.metric-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.keywords-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.keyword-tag {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Word Cloud Tool */
.wordcloud-canvas-wrapper {
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.wordcloud-canvas-wrapper canvas {
  max-width: 100%;
}
.wordcloud-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 40px;
}

/* Statistics Calculator Tool */
.stats-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.stats-result-box {
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.stats-result-box:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.3);
}
.stats-result-val {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2px;
}
.stats-result-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.stats-actions {
  display: flex;
  gap: 12px;
}
.stats-actions .btn {
  flex: 1;
}

/* Lorem Academic Tool */
.lorem-output-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-main);
  max-height: 320px;
  overflow-y: auto;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  margin-bottom: 16px;
}
.lorem-output-text p {
  margin-bottom: 16px;
  text-indent: 2em;
}
.lorem-output-text p:last-child {
  margin-bottom: 0;
}
.lorem-settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* --- Pricing Toggle Switch --- */
.pricing-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}
.pricing-toggle-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  cursor: pointer;
}
.pricing-toggle-label.active {
  color: var(--text-main);
}
.pricing-toggle {
  position: relative;
  width: 56px;
  height: 30px;
  background: var(--input-border);
  border-radius: 30px;
  cursor: pointer;
  transition: background var(--transition-fast);
  border: none;
  padding: 0;
}
.pricing-toggle.yearly {
  background: var(--gradient-primary);
}
.pricing-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.pricing-toggle.yearly::after {
  transform: translateX(26px);
}
.pricing-save-badge {
  background: rgba(34, 197, 94, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Price animation */
.price-val {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.price-val.switching {
  opacity: 0;
  transform: translateY(-8px);
}

/* --- Products & Software Catalog --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.product-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-badge {
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  width: max-content;
  margin-bottom: 20px;
}
.product-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.product-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}
.product-features-list {
  list-style: none;
  margin-bottom: 30px;
}
.product-features-list li {
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-features-list li::before {
  content: "✓";
  color: var(--color-success);
  font-weight: bold;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
}
.product-price {
  display: flex;
  flex-direction: column;
}
.price-val {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
}
.price-type {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* --- License Dashboard Simulation --- */
.dashboard-card {
  padding: 40px;
  margin-top: 40px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
}
.dashboard-sidebar {
  border-right: 1px solid var(--card-border);
  padding-right: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.db-tab-btn {
  background: transparent;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-fast);
}
.db-tab-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-main);
}
.db-tab-btn.active {
  background: var(--gradient-primary);
  color: #ffffff;
}
.dashboard-content-panel {
  display: none;
  animation: fadeIn var(--transition-normal);
}
.dashboard-content-panel.active {
  display: block;
}

/* Keys list */
.keys-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.key-card {
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.key-details h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.key-code {
  font-family: monospace;
  background: var(--bg-tertiary);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  font-size: 0.9rem;
  user-select: all;
  color: var(--color-primary);
}

/* --- Modal Base --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.6);
  backdrop-filter: blur(4px);
}
.modal-wrapper {
  position: relative;
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  border-radius: 24px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  padding: 24px 30px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-size: 1.4rem;
}
.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}
.modal-close:hover {
  color: var(--text-main);
}
.modal-body {
  padding: 30px;
}

/* --- Checkout Simulation --- */
.checkout-product-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--card-border);
  margin-bottom: 24px;
}
.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.payment-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.payment-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--color-primary);
}
.payment-btn.active {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.05);
  color: var(--color-primary);
}

.card-input-wrapper {
  position: relative;
  margin-bottom: 16px;
}
.card-input-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* --- FAQ Accordion --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-radius: 16px;
  overflow: hidden;
}
.faq-trigger {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 24px;
  text-align: left;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
}
.faq-trigger:hover {
  border-color: var(--color-primary);
}
.faq-arrow {
  transition: transform var(--transition-normal);
}
.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}
.faq-content {
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  border-top: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out, padding var(--transition-normal);
  padding: 0 24px;
}
.faq-item.active .faq-content {
  max-height: 200px;
  padding: 24px;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 30px;
}
.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.contact-item-text h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.contact-item-text p {
  color: var(--text-muted);
}

/* --- Footer --- */
footer {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--card-border);
  padding: 80px 0 30px 0;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
}
.footer-links-col h4 {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links-col a:hover {
  color: var(--color-primary);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--card-border);
  font-size: 0.9rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  html { font-size: 15px; }

  /* Navigation mobile slide-in menu */
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-tertiary);
    border-top: 1px solid var(--card-border);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transition: left var(--transition-normal);
    z-index: 1000;
  }
  .nav-links.active {
    left: 0;
  }
  .burger-menu {
    display: flex;
  }

  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  
  .tool-layout {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .toolbox-tabs {
    width: 100%;
    flex-direction: column;
  }
  .toolbox-tab-btn {
    width: 100%;
  }
  .analyzer-metrics {
    grid-template-columns: 1fr;
  }
}
