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

/* ==========================================================================
   Toolhub Design System & Global Tokens
   ========================================================================== */
:root {
  --bg-dark: #07090e;
  --bg-card: rgba(18, 23, 38, 0.65);
  --bg-card-hover: rgba(26, 33, 54, 0.85);

  --accent-primary: #6366f1;   /* Electric Indigo */
  --accent-secondary: #a855f7; /* Vibrant Purple */

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(168, 85, 247, 0.4);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-card: 20px;
  --radius-lg: 24px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(168, 85, 247, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(56, 189, 248, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, #a855f7 65%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Navigation Bar (Top Sticky Header)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Glowing Active Navigation Link Pill */
.nav-link.active {
  color: #ffffff;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
  border: 1px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  border-radius: 2px;
  box-shadow: 0 0 8px #a855f7;
}

/* Language Switcher Styling */
.lang-switcher {
  display: inline-flex;
  align-items: center;
}

.lang-select {
  background: rgba(18, 23, 38, 0.9);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-select:hover, .lang-select:focus {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Buttons & Primary CTA Controls
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(168, 85, 247, 0.6);
  background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  border-radius: 8px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 6.5rem 0 4.5rem;
  text-align: center;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-card);
  color: #c084fc;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  line-height: 1.12;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* Stats Bar Redesign */
.stats-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 3.5rem;
  padding: 1.25rem 2.75rem;
  background: rgba(18, 22, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  gap: 3rem;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(168, 85, 247, 0.2), rgba(52, 211, 153, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 0.5rem;
}

.stat-item:hover {
  transform: translateY(-3px) scale(1.02);
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1.5rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.stat-item:nth-child(1) .stat-value {
  background: linear-gradient(135deg, #a5b4fc 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(165, 180, 252, 0.3));
}

.stat-item:nth-child(2) .stat-value {
  background: linear-gradient(135deg, #34d399 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(52, 211, 153, 0.3));
}

.stat-item:nth-child(3) .stat-value {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.35));
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ==========================================================================
   Section Headers (Reusable Component)
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* ==========================================================================
   Products Matrix Grid Section
   ========================================================================== */
.products-section {
  padding: 6rem 0;
}

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

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.15);
}

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

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.2);
}

.product-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-card);
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(129, 140, 248, 0.3);
}

.product-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.product-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.product-features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.product-features li::before {
  content: '⚡';
  font-size: 0.75rem;
}

/* ==========================================================================
   Why Toolhub Section
   ========================================================================== */
.why-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 15, 25, 0.6) 100%);
}

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

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 2.25rem;
  backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
}

.why-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.why-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

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

/* ==========================================================================
   3-Card Pricing Section UI Enhancements
   ========================================================================== */
.pricing-section {
  padding: 6.5rem 0;
  position: relative;
}

.pricing-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 3.5rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-toggle-wrapper .toggle-text {
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.pricing-toggle-wrapper .toggle-text.active {
  color: var(--text-primary);
  font-weight: 600;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
  background: #ffffff;
}

.save-badge {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(168, 85, 247, 0.2));
  color: #f472b6;
  border: 1px solid rgba(244, 114, 182, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-card);
  letter-spacing: 0.05em;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.2);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 365px));
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.25);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(30, 27, 60, 0.95), rgba(15, 18, 35, 0.98));
  border: 1.5px solid rgba(168, 85, 247, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(168, 85, 247, 0.3);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  padding: 2px;
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.35rem 1.25rem;
  border-radius: var(--radius-card);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.6);
  white-space: nowrap;
}

.plan-name {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.plan-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  min-height: 2.7rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-amount {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.featured .price-amount {
  background: linear-gradient(135deg, #ffffff 30%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.plan-features li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 1px solid rgba(129, 140, 248, 0.3);
}

.featured .plan-features li::before {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(168, 85, 247, 0.4));
  color: #e9d5ff;
  border-color: rgba(192, 132, 252, 0.5);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.pricing-card .btn-full {
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
}

.featured .btn-primary {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.5);
  border: none;
  transition: all 0.3s ease;
}

.featured .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(168, 85, 247, 0.7);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 6rem 0;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.faq-item.active {
  border-color: rgba(168, 85, 247, 0.5);
  border-left: 4px solid #a855f7;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.faq-question {
  padding: 1.5rem 1.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--accent-secondary);
  transition: transform 0.3s ease;
}

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

/* Collapsed with a 0fr/1fr grid row rather than a fixed max-height, so long
   translations (German, Russian) can never be clipped mid-sentence. */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.35s ease, padding 0.35s ease;
  padding: 0 1.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-answer > * {
  min-height: 0;
  overflow: hidden;
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
  padding: 0 1.75rem 1.5rem;
}

/* ==========================================================================
   Legal & Contact Pages (privacy.html, terms.html, contact.html)
   ========================================================================== */
/* ==========================================================================
   Legal & Privacy Pages Premium Redesign (privacy.html, terms.html)
   ========================================================================== */
.privacy-hero {
  padding: 5.5rem 0 3rem;
  text-align: center;
  position: relative;
}

.privacy-meta-bar {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0.6rem 1.5rem;
  background: rgba(18, 23, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  font-size: 0.88rem;
  color: var(--text-secondary);
  backdrop-filter: blur(12px);
}

.meta-divider {
  color: var(--border-hover);
}

.meta-item strong {
  color: var(--text-primary);
}

/* Quick Navigation Pills */
.privacy-nav-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin: 1rem 0 3rem;
}

.pill-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 1.1rem;
  background: rgba(18, 23, 38, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  backdrop-filter: blur(12px);
  transition: var(--transition-fast);
}

.pill-link:hover {
  color: #ffffff;
  border-color: var(--accent-secondary);
  background: rgba(168, 85, 247, 0.15);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.3);
  transform: translateY(-2px);
}

.privacy-glass-card {
  background: rgba(18, 23, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 3.5rem;
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  margin-bottom: 5rem;
  position: relative;
}

.privacy-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6366f1, #a855f7, transparent);
}

/* Alert Banner Box */
.privacy-alert-box {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.1), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: var(--radius-card);
  margin-bottom: 3.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.alert-icon {
  font-size: 2rem;
  line-height: 1;
}

.alert-content h2,
.alert-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fef08a;
  margin-bottom: 0.4rem;
}

.alert-content p {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Section Blocks */
.legal-section-block {
  margin-bottom: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.legal-section-block:last-of-type {
  border-bottom: none;
  margin-bottom: 2rem;
}

.section-badge-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.legal-section-block h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

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

.legal-feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.legal-feature-list li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-feature-list li strong {
  color: #ffffff;
  display: block;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

/* Mini Cards inside Privacy */
.privacy-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.highlight-mini-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 18px;
  padding: 1.75rem;
  transition: var(--transition-smooth);
}

.highlight-mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.08);
}

.highlight-mini-card .card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.highlight-mini-card h3,
.highlight-mini-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.highlight-mini-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.contact-email-link {
  color: var(--accent-secondary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--accent-secondary);
  transition: var(--transition-fast);
}

.contact-email-link:hover {
  color: #e9d5ff;
  border-bottom-style: solid;
}

.privacy-contact-footer {
  text-align: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-card);
  padding: 2.75rem 2rem;
  margin-top: 3rem;
}

.privacy-contact-footer h3 {
  font-size: 1.6rem;
  margin-bottom: 0.65rem;
}

.privacy-contact-footer p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  max-width: 580px;
  margin: 0 auto 1.75rem;
}

.legal-box, .contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  margin-bottom: 4rem;
}

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

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 2.25rem;
  text-align: center;
  backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer {
  background: #040508;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 3rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .brand-logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-column h4,
.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-secondary);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   i18n, Accessibility & Utilities
   ========================================================================== */

/* The document ships with English markup. When a different locale is being
   applied we hide the body for that one frame to avoid a visible text swap.
   js/i18n.js always removes this class, including on a load failure. */
html.i18n-pending body {
  visibility: hidden;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: 0.75rem 1.5rem;
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* A single visible focus ring for keyboard users across every control. */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent-secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Programmatic focus targets (scroll anchors) should not draw a ring. */
section:focus,
main:focus,
[tabindex="-1"]:focus:not(:focus-visible) {
  outline: none;
}

.price-note {
  margin: -1.25rem 0 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.price-note[hidden] {
  display: none;
}

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

.contact-response-box {
  text-align: center;
}

.changelog-box {
  max-width: 780px;
  margin: 0 auto;
}

.changelog-box time {
  color: var(--text-muted);
  font-weight: 500;
}

/* Respect the OS "reduce motion" setting: keep state changes, drop the travel. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Mobile Responsive Adjustments
   ========================================================================== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: rgba(7, 9, 14, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .stats-bar {
    flex-direction: column;
    gap: 1.75rem;
    padding: 1.5rem 2rem;
  }
  .stat-item:not(:last-child)::after {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
