/* ============================================
   SELF-HOSTED FONTS (CLS & Performance Optimized)
   ============================================ */

/* Inter (Metric-Matched Overrides to Eliminate Fallback Layout Shift) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  ascent-override: 90%;
  descent-override: 22.4%;
  line-gap-override: 0%;
  size-adjust: 100%;
  src: url('../fonts/inter-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  ascent-override: 90%;
  descent-override: 22.4%;
  line-gap-override: 0%;
  size-adjust: 100%;
  src: url('../fonts/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  ascent-override: 90%;
  descent-override: 22.4%;
  line-gap-override: 0%;
  size-adjust: 100%;
  src: url('../fonts/inter-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  ascent-override: 90%;
  descent-override: 22.4%;
  line-gap-override: 0%;
  size-adjust: 100%;
  src: url('../fonts/inter-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  ascent-override: 90%;
  descent-override: 22.4%;
  line-gap-override: 0%;
  size-adjust: 100%;
  src: url('../fonts/inter-700.woff2') format('woff2');
}

/* JetBrains Mono (Metric-Matched Overrides) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  ascent-override: 94%;
  descent-override: 26%;
  line-gap-override: 0%;
  size-adjust: 100%;
  src: url('../fonts/jetbrains-mono-400.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  ascent-override: 94%;
  descent-override: 26%;
  line-gap-override: 0%;
  size-adjust: 100%;
  src: url('../fonts/jetbrains-mono-500.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  ascent-override: 94%;
  descent-override: 26%;
  line-gap-override: 0%;
  size-adjust: 100%;
  src: url('../fonts/jetbrains-mono-700.woff2') format('woff2');
}

:root {
  --bg-color: #0a0a0f;
  --card-bg: rgba(18, 18, 26, 0.75);
  --bg-secondary: rgba(18, 18, 26, 0.75);
  --accent-primary: #00ff88;
  --accent-secondary: #00b4d8;
  --text-main: #e8e8e8;
  --text-primary: #e8e8e8;
  --text-muted: #8a8a9a;
  --border-color: #22222d;
  --danger: #ff3366;
  --warning: #ffcc00;
  --success: #00ff88;

  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-card: rgba(18, 18, 26, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(16px);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.text-muted {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.text-muted small {
  font-size: 0.85rem;
}

p.text-muted {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: #0F1115;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.page-transition-overlay.leaving {
  opacity: 1;
  pointer-events: all;
}

/* ============================================
   ANIMATION FOUNDATION
   ============================================ */

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Global smooth transitions */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Body is immediately visible for instant initial paint & zero LCP render delay */
body {
  opacity: 1;
}

/* ============================================
   SCROLL REVEAL SYSTEM
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   NAVBAR ANIMATIONS
   ============================================ */
.navbar {
  transition: background 0.3s ease,
              backdrop-filter 0.3s ease,
              box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(15, 17, 21, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 255, 136, 0.1);
}

.nav-links a {
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-primary, #00FF88);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ============================================
   BUTTON ANIMATIONS
   ============================================ */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease,
              box-shadow 0.2s ease,
              background 0.2s ease,
              color 0.2s ease;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.25);
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: translateY(0px);
  box-shadow: none;
}

/* Ripple on click */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: scale(0);
  animation: rippleAnim 0.5s linear;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ============================================
   CARD ANIMATIONS
   ============================================ */
.card {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(0, 255, 136, 0.15);
  border-color: rgba(0, 255, 136, 0.3);
}

/* ============================================
   HERO ANIMATIONS (LCP Render Delay Optimized)
   ============================================ */
.hero-title {
  /* Critical LCP Element: Immediate opacity 1 for instant 0ms element render delay */
  opacity: 1;
}

.hero h2 {
  animation: heroFadeIn 0.4s ease 0.05s both;
}

.hero-subtitle {
  /* Immediate opacity 1 to prevent LCP render delay on hero paragraph text */
  opacity: 1;
}

.hero-cta {
  animation: heroFadeIn 0.4s ease 0.1s both;
}

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

/* ============================================
   FAQ ACCORDION ANIMATIONS
   ============================================ */
.faq-item summary {
  cursor: pointer;
  transition: color 0.2s ease;
  list-style: none;
}

.faq-item summary:hover {
  color: var(--accent-primary, #00FF88);
}

.faq-item[open] summary {
  color: var(--accent-primary, #00FF88);
}

.faq-item p {
  animation: faqOpen 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes faqOpen {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   GLOW PULSE on accent elements
   ============================================ */
/* ============================================
   GLOW PULSE on accent elements (GPU-Composited)
   ============================================ */
@keyframes glowPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

.btn-primary {
  position: relative;
  overflow: visible;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
  opacity: 0.3;
  animation: glowPulse 3s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
  will-change: opacity;
}

.btn-primary:hover::before {
  animation: none;
  opacity: 0.85;
}

.btn-primary:hover {
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.5);
}

/* ============================================
   LOGO ANIMATION
   ============================================ */
.logo svg {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover svg {
  transform: rotate(10deg) scale(1.1);
  filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.6));
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Background animated grid (GPU-Composited) */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.bg-grid::before {
  content: '';
  position: absolute;
  top: -48px;
  left: -48px;
  width: calc(100% + 96px);
  height: calc(100% + 96px);
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridDrift 20s linear infinite;
  will-change: transform;
}

@keyframes gridDrift {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(48px, 48px, 0); }
}

.bg-grid::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 255, 136, 0.015) 50%,
    transparent 100%
  );
  animation: scanLine 8s linear infinite;
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}

@keyframes scanLine {
  0%   { transform: translate3d(0, -200px, 0); }
  100% { transform: translate3d(0, calc(100vh + 200px), 0); }
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

.logo svg {
  color: var(--accent-primary);
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 700;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-family: var(--font-sans);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00ff88 0%, #00d2aa 50%, #00b4d8 100%);
  color: #050a0f !important;
  box-shadow: 0 4px 18px rgba(0, 255, 136, 0.32), 0 0 25px rgba(0, 180, 216, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1aff96 0%, #05e5ba 50%, #1ec5ec 100%);
  box-shadow: 0 8px 28px rgba(0, 255, 136, 0.48), 0 0 35px rgba(0, 180, 216, 0.3);
  transform: translateY(-3px);
  color: #030608 !important;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(0, 255, 136, 0.08);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.22);
  transform: translateY(-3px);
}

/* Cards */
.card {
  background-color: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.36);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 255, 136, 0.18);
  border-color: rgba(0, 255, 136, 0.35);
}

.card:hover::before {
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  box-shadow: 0 0 15px var(--accent-primary);
}

.card-icon {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover .card-icon {
  color: var(--accent-primary);
  transform: scale(1.1);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Forms & Inputs */
.input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.25), 0 0 20px rgba(0, 255, 136, 0.15);
}

.form-control.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 2px rgba(255, 51, 102, 0.25), 0 0 20px rgba(255, 51, 102, 0.15);
}

/* Main Content Area */
main {
  flex: 1;
  padding: 4rem 0;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-primary);
}

.breadcrumb span {
  color: var(--border-color);
}

/* Page Headers */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Tool Specific Layouts */
.tool-container {
  max-width: 700px;
  margin: 0 auto 5rem auto;
}

/* SEO Articles */
.seo-article {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
  padding-top: 4rem;
}

.seo-article h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--accent-secondary);
}

.seo-article h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 1rem 0;
}

.seo-article p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.seo-article ul {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.seo-article li {
  margin-bottom: 0.5rem;
}

/* SEO Article Tables & Comparison Matrices */
.seo-article table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2.5rem 0;
  color: var(--text-muted);
  background: rgba(18, 18, 26, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.seo-article th,
.seo-article td {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: middle;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: background-color 0.2s ease;
}

.seo-article th:last-child,
.seo-article td:last-child {
  border-right: none;
}

.seo-article tr:last-child td {
  border-bottom: none;
}

.seo-article th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main, #e8e8e8);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-bottom: 2px solid rgba(0, 255, 136, 0.35);
}

.seo-article th:nth-child(2) {
  background: linear-gradient(180deg, rgba(0, 255, 136, 0.16) 0%, rgba(0, 255, 136, 0.04) 100%);
  color: var(--accent-primary, #00ff88);
  text-shadow: 0 0 12px rgba(0, 255, 136, 0.35);
}

.seo-article td:first-child {
  color: var(--text-main, #e8e8e8);
  font-weight: 600;
  width: 36%;
}

.seo-article td:nth-child(2) {
  color: var(--accent-primary, #00ff88);
  font-weight: 600;
  width: 34%;
  background: rgba(0, 255, 136, 0.02);
}

.seo-article td:nth-child(3) {
  color: var(--text-muted, #8a8a9a);
  width: 30%;
}

.seo-article tr:hover td {
  background-color: rgba(0, 255, 136, 0.04);
}

.seo-article tr:hover td:nth-child(2) {
  background-color: rgba(0, 255, 136, 0.08);
}

@media (max-width: 650px) {
  .seo-article table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 500px;
  }
  .seo-article th,
  .seo-article td {
    padding: 0.85rem 0.75rem;
    font-size: 0.85rem;
  }
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-top: auto;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 26, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
    gap: 1.25rem;
    border-radius: 0 0 12px 12px;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .hamburger {
    display: block;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* Grids */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

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

/* Tablet & Mobile Typography and Spacing */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.5rem !important; }
  .page-title { font-size: 2.2rem; }
  .tools-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem !important; margin-bottom: 1rem !important; }
  .hero-subtitle { font-size: 1.1rem !important; margin-bottom: 2rem !important; }
  .container { padding: 0 1.5rem; }
  
  .page-title { font-size: 1.8rem; }
  .page-subtitle { font-size: 1rem; }
  
  .tools-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  
  .card { padding: 1.5rem; }
  
  /* Make inline styled hero container padding smaller */
  .hero > .container { padding: 3rem 0 4rem 0 !important; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem !important; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
  
  .features-grid { grid-template-columns: 1fr; }
  .nav-content { padding: 0.5rem 0; }
  
  .card-icon { width: 28px; height: 28px; }
  .card-title { font-size: 1.1rem; }
}

/* Loaders */
.skeleton-loader {
  display: none;
  width: 100%;
  margin-top: 2rem;
}
.skeleton-loader.active {
  display: block;
}
.skeleton-line {
  height: 20px;
  background: linear-gradient(90deg, #12121a 25%, #1a1a24 50%, #12121a 75%);
  background-size: 200% 100%;
  animation: pulse 1.5s infinite linear;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.skeleton-line:nth-child(1) { width: 40%; height: 24px; }
.skeleton-line:nth-child(2) { width: 100%; }
.skeleton-line:nth-child(3) { width: 80%; }
@keyframes pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Utilities */
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-success { color: var(--success); }
.text-mono { font-family: var(--font-mono); }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* FAQ Accordion Styles */
.faq-accordion {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(18, 18, 26, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(18, 18, 26, 0.8);
}

.faq-item[open] {
  border-color: rgba(0, 255, 136, 0.35);
  background: rgba(18, 18, 26, 0.85);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 16px rgba(0, 255, 136, 0.08);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-primary);
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  font-size: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.2s ease;
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--accent-primary);
}

.faq-item summary:hover {
  background: rgba(0, 255, 136, 0.04);
}

.faq-item p {
  padding: 0 1.5rem 1.25rem 1.5rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle,
      rgba(0, 255, 136, 0.04) 0%,
      transparent 70%
    );
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: opacity 0.3s ease;
    will-change: transform;
  }
}

/* ─── Direct Answer Block (Featured Snippet Optimization) ─── */
.direct-answer {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.06) 0%, rgba(0, 180, 216, 0.04) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 255, 136, 0.18);
  border-left: 4px solid var(--accent-primary);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin: 1.25rem 0 2rem 0;
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.06);
}
.direct-answer p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.7;
}

/* ===== HOMEPAGE SECTIONS ===== */
.hero-container {
  text-align: center;
  padding: 4rem 0 6rem 0;
}
.hero-title-main {
  font-size: 3.2rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 40%, #c7d2fe 75%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero-container > p:not(.hero-subtitle):not(.text-muted) {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.85rem;
  line-height: 1.7;
  font-size: 1.08rem;
  color: rgba(232, 232, 232, 0.9);
}
.hero-subtitle-highlight {
  font-size: 1.85rem;
  background: linear-gradient(135deg, #00ff88 0%, #00b4d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 3rem auto;
}
.hero-cta-wrapper {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}
.tools-section {
  padding: 4rem 0;
}
.tools-intro-container {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem auto;
  padding: 0 1rem;
}
.tools-intro-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.text-primary-strong {
  color: var(--accent-primary);
}
.why-section {
  padding: 4rem 0;
  background: rgba(18, 18, 26, 0.5);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.feature-card-center {
  text-align: center;
  background: rgba(18, 18, 26, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 2.25rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.feature-card-center:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 136, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 136, 0.1);
}
.feature-icon-wrapper-1 {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
  transition: transform 0.3s ease;
}
.feature-card-center:hover .feature-icon-wrapper-1 {
  transform: scale(1.1);
}
.feature-icon-wrapper-2 {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 180, 216, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  color: var(--accent-secondary);
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.15);
  transition: transform 0.3s ease;
}
.feature-card-center:hover .feature-icon-wrapper-2 {
  transform: scale(1.1);
}
.feature-icon-wrapper-3 {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 51, 102, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  color: var(--danger);
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.15);
  transition: transform 0.3s ease;
}
.feature-card-center:hover .feature-icon-wrapper-3 {
  transform: scale(1.1);
}
.feature-icon-wrapper-4 {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 204, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  color: var(--warning);
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.15);
  transition: transform 0.3s ease;
}
.feature-card-center:hover .feature-icon-wrapper-4 {
  transform: scale(1.1);
}
.feature-icon {
  width: 32px;
  height: 32px;
}
.feature-title {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  color: var(--text-main);
}
.feature-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ===== TOOL CARDS ===== */
.btn-full-width {
  width: 100%;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  padding: 4rem 0;
  background-color: rgba(18, 18, 26, 0.3);
}
.faq-container-override {
  padding-top: 0;
  border-top: none;
}
.faq-cta-wrapper {
  text-align: center;
  margin-top: 3rem;
}
.btn-inline-block {
  display: inline-block;
}

/* ===== INTERNAL LINK MESH & FOOTER ARCHITECTURE ===== */

/* Global Footer 3-Column Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-primary);
  display: inline-block;
}

.footer-col-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-col-links a:hover {
  color: var(--accent-primary);
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 550px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Tool Page Guide Cards & Related Tools Grid */
.guide-feature-card {
  margin: 3rem 0 2rem 0;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(0, 180, 216, 0.06));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.guide-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 0 10px var(--accent-primary);
}

.related-tools-mesh {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.tool-link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  background: rgba(18, 18, 26, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tool-link-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 136, 0.18);
}

/* Blog Callout CTA Widgets */
.blog-cta-widget {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(0, 180, 216, 0.08));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.blog-cta-content {
  flex: 1;
  min-width: 260px;
}

.blog-cta-badge {
  display: inline-block;
  background: rgba(0, 255, 136, 0.15);
  color: var(--accent-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.blog-cta-text {
  margin: 0;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.6;
}

.blog-cta-text a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.blog-cta-text a:hover {
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

/* ===== BLOG LAYOUT & CARDS ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0 3.5rem 0;
}

.blog-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

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

.blog-tag {
  display: inline-block;
  background: rgba(0, 255, 136, 0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(0, 255, 136, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
}

.blog-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

/* Blog Content & Tables Across All Blog Posts */
.blog-table,
.blog-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2.5rem 0;
  color: var(--text-muted);
  background: rgba(18, 18, 26, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.blog-table th,
.blog-table td,
.blog-content table th,
.blog-content table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: middle;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: background-color 0.2s ease;
}

.blog-table th:last-child,
.blog-table td:last-child,
.blog-content table th:last-child,
.blog-content table td:last-child {
  border-right: none;
}

.blog-table tr:last-child td,
.blog-content table tr:last-child td {
  border-bottom: none;
}

.blog-table th,
.blog-content table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main, #e8e8e8);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-bottom: 2px solid rgba(0, 255, 136, 0.35);
}

.blog-table tr:hover td,
.blog-content table tr:hover td {
  background-color: rgba(0, 255, 136, 0.04);
}

@media (max-width: 650px) {
  .blog-table,
  .blog-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 480px;
  }
}

/* Informational & Policy Pages Typography */
.about-content,
.privacy-content,
.terms-content {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.about-content h2,
.privacy-content h2,
.terms-content h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-secondary);
}

.about-content p,
.privacy-content p,
.terms-content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-content ul,
.privacy-content ul,
.terms-content ul {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-content li,
.privacy-content li,
.terms-content li {
  margin-bottom: 0.5rem;
}

/* Contact Grid & Dropdown */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.contact-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.custom-select-menu {
  background: rgba(18, 18, 26, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(0, 255, 136, 0.3) !important;
}

/* 404 Error Page */
.error-card {
  background: rgba(18, 18, 26, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  max-width: 540px;
  margin: 0 auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 255, 136, 0.1);
}

/* Adsterra Advertisement Slots */
.ad-slot-banner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 90px;
  max-width: 728px;
  margin: 2.5rem auto;
  padding: 0.5rem;
  background: rgba(18, 18, 26, 0.45);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
}

.ad-slot-native {
  min-height: 250px;
  max-width: 800px;
  margin: 3rem auto;
  padding: 1.5rem;
  background: var(--glass-card, rgba(18, 18, 26, 0.75));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.36);
}

.ad-label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  opacity: 0.75;
}

/* Screen reader only utility for accessibility tree */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

