/* Theme & Variables */
:root {
  /* HSL Colors */
  --hue-purple: 270;
  --hue-blue: 210;
  --hue-green: 145;
  --hue-gold: 45;
  --hue-red: 350;
  --hue-cyan: 190;

  /* Theme Core (Default: Dark Mode) */
  --bg-color: #060913;
  --bg-grid: rgba(255, 255, 255, 0.015);
  
  --panel-bg: rgba(14, 20, 38, 0.55);
  --panel-border: rgba(255, 255, 255, 0.05);
  --panel-hover-border: rgba(0, 242, 254, 0.25);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dark: #475569;
  
  /* Gradation Accents */
  --grad-purple: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
  --grad-blue: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --grad-cyan: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  --grad-green: linear-gradient(135deg, #10b981 0%, #047857 100%);
  --grad-gold: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --grad-red: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
  
  --neon-glow: 0 0 30px rgba(126, 34, 206, 0.25);
  --neon-border-glow: 0 0 15px rgba(0, 242, 254, 0.35);

  --font-main: 'Noto Sans KR', 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
  
  /* Specific values from Mockup */
  --highlight-color: #fbbf24;
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-color: #f8fafc;
  --bg-grid: rgba(15, 23, 42, 0.02);
  
  --panel-bg: rgba(255, 255, 255, 0.7);
  --panel-border: rgba(15, 23, 42, 0.06);
  --panel-hover-border: rgba(59, 130, 246, 0.3);
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dark: #cbd5e1;
  
  --neon-glow: 0 0 30px rgba(59, 130, 246, 0.1);
  --shadow-card: 0 12px 40px 0 rgba(15, 23, 42, 0.08);
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-index: border-box;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.5s ease, color 0.3s ease;
}

/* Grid Background */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -2;
  pointer-events: none;
}

/* Ambient Glow Orbs */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(160px);
  z-index: -3;
  pointer-events: none;
  opacity: 0.25;
  transition: opacity 0.5s ease;
}

.bg-glow-purple {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #7e22ce 0%, transparent 70%);
  top: -200px;
  left: 10%;
}

.bg-glow-blue {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #2563eb 0%, transparent 70%);
  top: 20%;
  right: 5%;
}

[data-theme="light"] .bg-glow {
  opacity: 0.1;
}

/* Premium Glassmorphism Common Panel */
.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  text-decoration: none;
}

/* Header Styles */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 1rem 1.5rem 0 1.5rem;
  border-radius: 50px;
  transition: var(--transition-smooth);
}

.logo-circle {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.logo-text span {
  color: var(--text-muted);
  font-weight: 400;
}

/* Center Navigation: Responsive scrollable menu bar */
.header-nav {
  flex-grow: 1;
  margin: 0 2rem;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.header-nav::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  white-space: nowrap;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-list a:hover {
  color: var(--text-main);
}

.nav-list a.active {
  color: var(--text-muted);
}

.nav-list a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #2563eb;
  border-radius: 2px;
}

/* Header Right Options */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search i {
  position: absolute;
  left: 0.85rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.nav-search input {
  padding: 0.5rem 1rem 0.5rem 2.25rem;
  border-radius: 30px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-size: 0.8rem;
  outline: none;
  transition: var(--transition-smooth);
  width: 160px;
}

[data-theme="light"] .nav-search input {
  background-color: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.08);
}

.nav-search input:focus {
  width: 200px;
  border-color: #2563eb;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.15);
}

.btn-theme {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 0.5rem 1rem;
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

[data-theme="light"] .btn-theme {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.08);
}

.btn-theme:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #2563eb;
}

/* Hero Section Styles */
.hero-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 46% 54%;
  gap: 3.5rem;
  align-items: center;
}

/* Hero Left Column (Info) */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge-capsule {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.15rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--highlight-color);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

.hero-title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 1.75rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--highlight-color) 20%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.75rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 440px;
}

.btn-hero-start {
  background: #ffffff;
  color: #000000;
  padding: 1.1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.btn-hero-start:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.hero-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-search-bar i {
  position: absolute;
  left: 1.15rem;
  color: var(--text-muted);
}

.hero-search-bar input {
  flex-grow: 1;
  width: auto;
  min-width: 0;
  padding: 1.05rem 1.15rem 1.05rem 2.85rem;
  border-radius: 12px;
  background: rgba(14, 20, 38, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  outline: none;
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

[data-theme="light"] .hero-search-bar input {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(15, 23, 42, 0.1);
}

.hero-search-bar input:focus {
  border-color: #2563eb;
  background: rgba(14, 20, 38, 0.65);
  box-shadow: var(--shadow-card);
}

.btn-search-launch {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #000000;
  border: none;
  padding: 1.05rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  margin-left: 0.75rem;
  transition: var(--transition-smooth);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.btn-search-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
}

.btn-search-launch:active {
  transform: translateY(0);
}

/* Hero Right Column (Mockup Card with Glowing Back) */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neon-backglow {
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(126, 34, 206, 0.4) 0%, rgba(37, 99, 235, 0.4) 50%, transparent 70%);
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
  animation: glow-pulse 6s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.1); opacity: 1; }
}

.main-feature-card {
  width: 100%;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Card Content Grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.app-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.app-info h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.5px;
}

.app-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.app-bullets {
  list-style: none;
  margin: 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.app-bullets li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.bullet-green { background-color: #10b981; }
.bullet-blue { background-color: #3b82f6; }
.bullet-purple { background-color: #a855f7; }

.btn-app-launch {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: #000000;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.3);
}

.btn-app-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 242, 254, 0.45);
}

/* Sub Action Side Cards */
.sub-action-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  justify-content: center;
}

.sub-card {
  padding: 1.15rem;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.sub-card i {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.sub-card span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sub-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.03);
}

.sub-card.active {
  border-color: rgba(0, 242, 254, 0.3);
  background: rgba(0, 242, 254, 0.05);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.08) inset;
}

.sub-card.active i,
.sub-card.active span {
  color: var(--accent-cyan, #00f2fe);
}

/* Card Divider */
.card-divider {
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  margin: 1.5rem 0;
}

/* Card Bottom Stats */
.card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.stat-divider {
  width: 1px;
  height: 25px;
  background-color: rgba(255, 255, 255, 0.06);
}

/* Floating Decor Animation */
.decor {
  position: absolute;
  color: var(--text-muted);
  opacity: 0.25;
  pointer-events: none;
  font-size: 2.2rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.decor-chart { top: 12%; right: 40%; font-size: 1.8rem; animation: float 6s ease-in-out infinite; }
.decor-search { bottom: 25%; left: 8%; font-size: 1.6rem; animation: float 7s ease-in-out infinite 1s; }
.decor-slate { top: 22%; left: 35%; font-size: 1.8rem; animation: float 8s ease-in-out infinite 2s; }
.decor-star { bottom: 35%; right: 45%; font-size: 1.7rem; color: #fbbf24; opacity: 0.5; animation: float 5s ease-in-out infinite 0.5s; }
.decor-sheet { bottom: 15%; right: 8%; font-size: 1.9rem; animation: float 9s ease-in-out infinite 1.5s; }

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(8deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Bottom App Portal Grid Styles */
.tools-portal-section {
  background-color: #ffffff;
  color: #000000;
  border-radius: 50px 50px 0 0;
  padding: 5rem 3rem;
  position: relative;
  z-index: 10;
  margin-top: 3rem;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.3);
  transition: background-color 0.5s ease;
}

[data-theme="light"] .tools-portal-section {
  background-color: #f1f5f9;
}

.portal-header-wrapper {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.portal-badge {
  display: inline-block;
  background-color: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: #2563eb;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.portal-section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.75px;
  margin-bottom: 1rem;
}

.portal-section-subtitle {
  color: #64748b;
  font-size: 1rem;
}

/* Card Tools Grid */
.tools-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
}

.tool-card {
  padding: 2.25rem 2rem;
  border-radius: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 310px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
  transition: var(--transition-smooth);
}

[data-theme="light"] .tool-card {
  background-color: #ffffff;
  border-color: rgba(15, 23, 42, 0.05);
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.25);
}

.tool-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.badge-active { background-color: rgba(16, 185, 129, 0.1); color: #10b981; }
.badge-demo { background-color: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.badge-ready { background-color: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.badge-soon { background-color: rgba(100, 116, 139, 0.1); color: #64748b; }

.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.icon-green { background: var(--grad-green); }
.icon-red { background: var(--grad-red); }
.icon-purple { background: var(--grad-purple); }
.icon-gold { background: var(--grad-gold); }
.icon-blue { background: var(--grad-blue); }
.icon-cyan { background: var(--grad-cyan); }

.tool-meta {
  flex-grow: 1;
}

.tool-meta h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.tool-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
}

.tool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  padding-top: 1.25rem;
  margin-top: 1rem;
}

.tool-category {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

.btn-card-launch {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-smooth);
}

.btn-card-launch:hover:not(.disabled) {
  transform: translateX(3px);
  color: #1d4ed8;
}

.btn-card-launch.disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

/* Rich Footer Section */
.rich-footer {
  background-color: #050b14;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 3rem 2rem 3rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

[data-theme="light"] .rich-footer {
  background-color: #f8fafc;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: #64748b;
}

.footer-top-grid {
  max-width: 1300px;
  margin: 0 auto 3rem auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  text-align: left;
}

.footer-left-brand {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cdb-badge {
  background-color: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  font-family: var(--font-display);
}

.brand-title h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-main);
}

.brand-links {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  line-height: 1.5;
}

.divider-dot {
  color: var(--text-muted);
  font-weight: bold;
}

.visitor-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.stat-group h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.stat-group p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.stat-group p span {
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.stats-link {
  font-size: 0.85rem;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  margin-top: 4px;
  display: inline-block;
  transition: opacity 0.2s;
}

.stats-link:hover {
  opacity: 0.8;
}

.footer-right-columns {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-col {
  min-width: 100px;
}

.footer-col h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  font-family: var(--font-main);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text-main);
}

.footer-bottom-bar {
  max-width: 1300px;
  margin: 0 auto;
  border-top: 1px solid var(--panel-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-copyright {
  font-weight: 400;
}

.footer-built-with {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}


/* Responsive Styles */
@media (max-width: 1200px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .hero-left {
    align-items: center;
    text-align: center;
  }
  .hero-actions {
    align-items: center;
  }
  .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    gap: 1rem;
    border-radius: 20px;
    margin: 1rem;
    padding: 1.25rem;
  }
  .header-nav {
    width: 100%;
    margin: 0.5rem 0;
  }
  .header-right {
    width: 100%;
    justify-content: space-between;
  }
  .nav-search input {
    width: 100%;
  }
  .nav-search input:focus {
    width: 100%;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .card-right {
    display: none; /* Mobile optimization */
  }
}

/* Real-time Visitor Stats Styling */
.header-visits {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-right: 0.5rem;
  transition: var(--transition-smooth);
}

.header-visits i {
  color: #a855f7; /* Purple icon */
}

.header-visits strong {
  color: #fbbf24; /* Highlight gold */
}

.tool-visits-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  margin-left: 0.5rem;
}

/* Category Filter Tabs Styling */
.category-tabs-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem auto;
  max-width: 1300px;
  padding: 1.25rem;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.category-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-main);
}

.category-tab-btn:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.category-tab-btn.active {
  background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
  border-color: transparent;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

[data-theme="light"] .category-tab-btn.active {
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

/* Category App Count Badge */
.category-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.05);
  color: #64748b;
  font-size: 0.75rem;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
  margin-left: 4px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.category-tab-btn.active .category-count-badge {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .category-count-badge {
  background-color: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .category-tab-btn.active .category-count-badge {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Category Icons */
.category-tab-btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.category-tab-btn:hover i {
  transform: scale(1.15);
}

@media (max-width: 768px) {
  .category-tabs-wrapper {
    padding: 0.75rem;
    gap: 0.5rem;
    border-radius: 16px;
    margin: 1.5rem 1rem;
  }
  
  .category-tab-btn {
    padding: 0.6rem 0.9rem;
    font-size: 0.78rem;
    border-radius: 12px;
  }
}


.tool-visits-count i {
  color: #3b82f6; /* Blue eye icon */
}

/* Middle Frequently Used Tools Section */
.frequent-tools-middle-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
  position: relative;
}

.middle-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.middle-section-title {
  font-family: var(--font-main);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.middle-section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
}

.frequent-tools-middle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.frequent-tool-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

[data-theme="light"] .frequent-tool-card {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.05);
}

.frequent-tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(800px circle at var(--x, 0) var(--y, 0), rgba(255, 255, 255, 0.06), transparent 40%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.frequent-tool-card:hover::before {
  opacity: 1;
}

.frequent-tool-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.1), 0 0 25px rgba(0, 242, 254, 0.05) inset;
}

[data-theme="light"] .frequent-tool-card:hover {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.08);
}

.freq-card-badge {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 0.65rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #000000;
  padding: 0.2rem 0.6rem;
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
  z-index: 2;
  letter-spacing: 0.5px;
}

.freq-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  z-index: 2;
}

[data-theme="light"] .freq-icon-wrapper {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.06) 0%, rgba(15, 23, 42, 0.02) 100%);
  border-color: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.frequent-tool-card:hover .freq-icon-wrapper {
  transform: scale(1.08);
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  border-color: transparent;
  color: #000000;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.freq-card-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  z-index: 2;
}

.freq-card-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.freq-visits {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.3rem;
}

.freq-visits i {
  color: #3b82f6;
}

.freq-launch-arrow {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.frequent-tool-card:hover .freq-launch-arrow {
  color: var(--accent-cyan, #00f2fe);
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .frequent-tools-middle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .frequent-tools-middle-grid {
    grid-template-columns: 1fr;
  }
  
  .middle-section-title {
    font-size: 1.8rem;
  }
  
  .frequent-tools-middle-section {
    padding: 2.5rem 1rem;
  }
}
