/* ═══════════════════════════════════════════
   AEGIS Security Bot - Main Stylesheet
   ═══════════════════════════════════════════ */

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

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a2e;
  --accent-blue: #5865F2;
  --accent-green: #57F287;
  --accent-red: #ED4245;
  --accent-yellow: #FEE75C;
  --accent-gold: #FFD700;
  --accent-purple: #9b59b6;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --border: rgba(88, 101, 242, 0.2);
  --glow: rgba(88, 101, 242, 0.3);
  --glass-bg: rgba(26, 26, 46, 0.6);
  --glass-border: rgba(88, 101, 242, 0.15);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-blue); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #6b73f5; }

/* ═══ NAVIGATION ═══ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.nav-logo .shield-icon {
  font-size: 1.6rem;
  color: var(--accent-blue);
  filter: drop-shadow(0 0 8px var(--glow));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width 0.3s ease;
  border-radius: 1px;
}

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

.nav-cta {
  padding: 10px 24px !important;
  background: var(--accent-blue) !important;
  color: var(--text-primary) !important;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
}

.nav-cta:hover {
  background: #4752c4 !important;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(88, 101, 242, 0.5) !important;
}

.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 40px 24px;
}

.mobile-nav.active { display: flex; flex-direction: column; gap: 20px; }

.mobile-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s ease;
}

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

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  font-family: 'Noto Sans KR', sans-serif;
}

.btn-primary {
  background: var(--accent-blue);
  color: white;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.btn-primary:hover {
  background: #4752c4;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.5);
}

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

.btn-outline:hover {
  border-color: var(--accent-blue);
  background: rgba(88, 101, 242, 0.1);
  transform: translateY(-3px);
}

.btn-danger {
  background: var(--accent-red);
  color: white;
  box-shadow: 0 4px 20px rgba(237, 66, 69, 0.4);
}

.btn-danger:hover {
  background: #c93b3e;
  transform: translateY(-2px);
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ═══ HERO ═══ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(88, 101, 242, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(87, 242, 135, 0.05) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(237, 66, 69, 0.05) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-shield {
  font-size: 5rem;
  margin-bottom: 24px;
  animation: pulse-glow 2s ease-in-out infinite;
  filter: drop-shadow(0 0 30px var(--glow));
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 30px var(--glow)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 50px rgba(88, 101, 242, 0.5)); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff, #c0c0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--accent-blue);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
}

/* ═══ SECTIONS ═══ */
.section {
  padding: 100px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-alt .section {
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══ CARDS ═══ */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-blue);
  box-shadow: 0 20px 60px rgba(88, 101, 242, 0.15), 0 0 40px rgba(88, 101, 242, 0.1);
}

/* ═══ STATS ═══ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}

.stat-card {
  text-align: center;
  padding: 28px 20px;
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ═══ ABOUT ═══ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.bot-profile-card {
  text-align: center;
  padding: 40px 32px;
}

.bot-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  margin: 0 auto 20px;
  box-shadow: 0 0 40px rgba(88, 101, 242, 0.3);
}

.bot-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.bot-tag {
  color: var(--accent-blue);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.bot-stats {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.bot-stat {
  text-align: center;
}

.bot-stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.bot-stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ═══ WHY AEGIS ═══ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card .why-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* ═══ FEATURES ═══ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px 24px;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

.feature-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 4px;
  letter-spacing: 0.5px;
}

.feature-badge.new {
  background: rgba(87, 242, 135, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(87, 242, 135, 0.3);
}

.feature-badge.improved {
  background: rgba(88, 101, 242, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(88, 101, 242, 0.3);
}

/* ═══ LOOKUP ═══ */
.lookup-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.lookup-box {
  padding: 36px;
}

.lookup-box h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.lookup-box > p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.lookup-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.lookup-input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: 'Noto Sans KR', sans-serif;
  outline: none;
  transition: border-color 0.3s ease;
}

.lookup-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.2);
}

.lookup-input::placeholder { color: #555; }

.lookup-result {
  min-height: 80px;
}

.result-clean {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(87, 242, 135, 0.1);
  border: 1px solid rgba(87, 242, 135, 0.3);
  border-radius: 10px;
  color: var(--accent-green);
  font-weight: 500;
}

.result-danger {
  padding: 20px;
  background: rgba(237, 66, 69, 0.1);
  border: 1px solid rgba(237, 66, 69, 0.3);
  border-radius: 10px;
}

.result-danger .danger-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-red);
  font-weight: 700;
  margin-bottom: 12px;
}

.result-danger .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(237, 66, 69, 0.15);
  font-size: 0.9rem;
}

.detail-label { color: var(--text-secondary); }
.detail-value { font-weight: 600; }

.severity-bar {
  display: flex;
  gap: 3px;
  align-items: center;
}

.severity-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.severity-dot.filled { background: var(--accent-red); }
.severity-dot.empty { background: rgba(255,255,255,0.15); }

/* Risk gauge */
.risk-gauge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
}

.risk-gauge {
  position: relative;
  width: 140px;
  height: 140px;
}

.risk-gauge svg {
  transform: rotate(-90deg);
}

.risk-gauge-bg {
  fill: none;
  stroke: rgba(255,255,255,0.1);
  stroke-width: 8;
}

.risk-gauge-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}

.risk-gauge-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.risk-score {
  font-size: 2rem;
  font-weight: 900;
}

.risk-label-small {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.risk-level-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 10px;
}

.risk-flags {
  margin-top: 16px;
}

.risk-flag-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ═══ PRICING ═══ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  padding: 36px 28px;
  position: relative;
}

.pricing-card.popular {
  border-color: var(--accent-blue);
  box-shadow: 0 0 40px rgba(88, 101, 242, 0.2);
  transform: scale(1.03);
}

.pricing-card.popular:hover {
  transform: scale(1.03) translateY(-8px);
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent-blue);
  color: white;
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

.pricing-icon { font-size: 2rem; margin-bottom: 12px; }

.pricing-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-blue);
  margin-bottom: 4px;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.pricing-tagline {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
  opacity: 0.8;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li.included { color: var(--text-primary); }
.pricing-features li .check { color: var(--accent-green); }
.pricing-features li .cross { color: var(--accent-red); opacity: 0.5; }

.pricing-card .btn { width: 100%; justify-content: center; }

/* ═══ STEPS ═══ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.step-card {
  text-align: center;
  padding: 40px 28px;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 auto 20px;
  box-shadow: 0 0 30px rgba(88, 101, 242, 0.3);
}

.step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ═══ LEADERBOARD ═══ */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.leaderboard-table thead th {
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  background: rgba(88, 101, 242, 0.05);
}

.leaderboard-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.95rem;
}

.leaderboard-table tbody tr {
  transition: background 0.2s ease;
}

.leaderboard-table tbody tr:hover {
  background: rgba(88, 101, 242, 0.08);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #000; }
.rank-2 { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #000; }
.rank-3 { background: linear-gradient(135deg, #CD7F32, #A0522D); color: #fff; }
.rank-other { background: var(--bg-card); color: var(--text-secondary); }

.premium-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.premium-free { background: rgba(255,255,255,0.1); color: var(--text-secondary); }
.premium-basic { background: rgba(88, 101, 242, 0.2); color: var(--accent-blue); }
.premium-pro { background: rgba(155, 89, 182, 0.2); color: var(--accent-purple); }
.premium-enterprise { background: rgba(255, 215, 0, 0.2); color: var(--accent-gold); }

/* ═══ COMPARISON TABLE ═══ */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table thead th {
  padding: 16px 24px;
  text-align: left;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border);
  background: rgba(88, 101, 242, 0.08);
}

.comparison-table thead th:first-child {
  border-radius: 8px 0 0 0;
}

.comparison-table thead th:last-child {
  border-radius: 0 8px 0 0;
  text-align: center;
  color: var(--accent-blue);
}

.comparison-table thead th:nth-child(2) {
  text-align: center;
}

.comparison-table tbody td {
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.92rem;
}

.comparison-table tbody td:nth-child(2),
.comparison-table tbody td:nth-child(3) {
  text-align: center;
  font-size: 1.1rem;
}

.comparison-table tbody tr {
  transition: background 0.2s ease;
}

.comparison-table tbody tr:hover {
  background: rgba(88, 101, 242, 0.05);
}

.comparison-table tbody td.yes {
  color: var(--accent-green);
}

.comparison-table tbody td.no {
  color: var(--accent-red);
  opacity: 0.6;
}

.comparison-table tbody td.partial {
  color: var(--accent-yellow);
}

/* ═══ TESTIMONIALS ═══ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 32px;
}

.testimonial-text {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--accent-blue);
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.testimonial-server {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ═══ FAQ ═══ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-family: 'Noto Sans KR', sans-serif;
}

.faq-question:hover {
  border-color: var(--accent-blue);
  background: rgba(88, 101, 242, 0.08);
}

.faq-question .arrow {
  transition: transform 0.3s ease;
  color: var(--accent-blue);
}

.faq-item.active .faq-question { 
  border-radius: 12px 12px 0 0;
  border-color: var(--accent-blue);
}

.faq-item.active .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: rgba(88, 101, 242, 0.04);
  border: 1px solid var(--accent-blue);
  border-top: none;
  border-radius: 0 0 12px 12px;
}

.faq-answer-inner {
  padding: 20px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ═══ FOOTER ═══ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 24px 30px;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-group h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-group a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ═══ SCROLL TO TOP ═══ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 998;
  border: none;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.5);
}

/* ═══ ANIMATIONS ═══ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Loading Spinner */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}

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

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.popular { transform: scale(1); }
  .pricing-card.popular:hover { transform: translateY(-8px); }
  .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links { display: none; }

  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-desc { font-size: 0.95rem; }
  .hero-shield { font-size: 3.5rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .lookup-section { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .steps-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }

  .section-title { font-size: 1.7rem; }
  .section { padding: 60px 16px; }
  .section-alt .section { padding: 60px 16px; }

  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; justify-content: center; }

  .leaderboard-table { font-size: 0.8rem; }
  .leaderboard-table thead th,
  .leaderboard-table tbody td { padding: 10px 12px; }

  .lookup-input-group { flex-direction: column; }
  .stat-value { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.8rem; }
  .nav-container { height: 60px; }
}

/* ═══ COMMANDS PAGE ═══ */
.commands-header {
  padding-top: 120px;
  text-align: center;
  margin-bottom: 40px;
}

.cmd-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cmd-filter-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.cmd-filter-btn:hover,
.cmd-filter-btn.active {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
}

.cmd-search {
  max-width: 500px;
  margin: 0 auto 40px;
  position: relative;
}

.cmd-search input {
  width: 100%;
  padding: 14px 18px 14px 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: 'Noto Sans KR', sans-serif;
  outline: none;
  transition: border-color 0.3s ease;
}

.cmd-search input:focus {
  border-color: var(--accent-blue);
}

.cmd-search i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.cmd-category {
  margin-bottom: 48px;
}

.cmd-category-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.cmd-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cmd-card {
  padding: 24px;
}

.cmd-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 8px;
  font-family: 'Courier New', monospace;
}

.cmd-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

.cmd-example {
  background: var(--bg-primary);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--accent-green);
  font-family: 'Courier New', monospace;
  margin-bottom: 10px;
}

.cmd-permission {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.perm-all { background: rgba(87, 242, 135, 0.15); color: var(--accent-green); }
.perm-mod { background: rgba(254, 231, 92, 0.15); color: var(--accent-yellow); }
.perm-admin { background: rgba(237, 66, 69, 0.15); color: var(--accent-red); }
.perm-owner { background: rgba(255, 215, 0, 0.15); color: var(--accent-gold); }

@media (max-width: 768px) {
  .cmd-grid { grid-template-columns: 1fr; }
}

/* ═══ TERMS PAGE ═══ */
.terms-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.terms-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.terms-content .terms-date {
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 0.9rem;
}

.terms-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--accent-blue);
}

.terms-content p,
.terms-content li {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.terms-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.terms-content ul li { margin-bottom: 6px; }
