/* ==========================================================================
   ZeroSEO — DESIGN SYSTEM & STYLES (v2.0 Web Edition)
   Aesthetic: Apple-Grade Glassmorphism, Dark Mode, Vibrant Lane Accents
   ========================================================================== */

:root {
  --bg-main: #0a0d14;
  --bg-card: rgba(18, 24, 38, 0.7);
  --bg-card-hover: rgba(26, 34, 52, 0.85);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-card-border-glow: rgba(139, 92, 246, 0.3);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Lane Brand Colors */
  --lane-seo: #10b981;      /* Emerald */
  --lane-aeo: #8b5cf6;      /* Purple */
  --lane-geo: #06b6d4;      /* Cyan */
  --lane-llmo: #f59e0b;     /* Amber */
  --lane-neo: #00c73c;      /* Naver Green */
  
  --primary-accent: #6366f1;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --fire-gradient: linear-gradient(135deg, #f97316 0%, #ef4444 50%, #ec4899 100%);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.25);
  --shadow-lane-seo: 0 0 25px rgba(16, 185, 129, 0.2);
  --shadow-lane-neo: 0 0 25px rgba(0, 199, 60, 0.25);
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-google: 'Roboto', 'Google Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.hidden {
  display: none !important;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

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

/* Background Ambient Orbs */
.glow-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb-1 {
  top: -10%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6366f1, #3b82f6);
}

.orb-2 {
  top: 40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #a855f7, #ec4899);
  animation-duration: 25s;
  animation-delay: -5s;
}

.orb-3 {
  bottom: -20%;
  left: 10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #10b981, #06b6d4);
  animation-duration: 30s;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 13, 20, 0.75);
  border-bottom: 1px solid var(--bg-card-border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: inset 0 0 12px rgba(99, 102, 241, 0.2);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(180deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--lane-geo);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 6px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--bg-card-border);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-main);
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-link i {
  width: 16px;
  height: 16px;
}

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

.nav-link.active {
  color: #fff;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

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

/* Google Auth Elements */
.auth-wrapper {
  display: flex;
  align-items: center;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 16px rgba(66, 133, 244, 0.25);
}

.user-profile-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.btn-logout-link {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.btn-logout-link:hover {
  color: #f87171;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  border: none;
  font-size: 0.92rem;
}

.btn-github {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
}

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

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 50px 0 36px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #6366f1;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
  animation: pulse 1.8s infinite;
}

/* Live Telemetry Counter Badge */
.live-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.counter-pulse {
  width: 6px;
  height: 6px;
  background-color: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulseGreen 1.6s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.25;
  margin-bottom: 18px;
}

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

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

/* Audit Input Bar */
.audit-input-container {
  max-width: 840px;
  margin: 0 auto;
}

.input-glow-wrapper {
  display: flex;
  align-items: center;
  background: rgba(18, 24, 38, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 8px 10px 8px 20px;
  box-shadow: var(--shadow-md), 0 0 35px rgba(99, 102, 241, 0.15);
  transition: all var(--transition-normal);
}

.input-glow-wrapper:focus-within {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: var(--shadow-md), 0 0 45px rgba(99, 102, 241, 0.35);
}

.input-icon {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  margin-right: 12px;
}

.input-glow-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: #fff;
}

.input-glow-wrapper input::placeholder {
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.95rem;
}

.demo-samples {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.samples-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sample-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-card-border);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sample-chip:hover, .sample-chip.active {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-info {
  background: rgba(6, 182, 212, 0.2);
  color: #22d3ee;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

/* Tab Management */
.tab-pane {
  display: none;
  animation: fadeIn 0.35s ease;
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}

.tab-pane.active {
  display: block;
}

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

/* Loading Scanner */
.audit-loading {
  margin: 40px auto;
  max-width: 600px;
  padding: 48px 32px;
  background: var(--bg-card);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.scanner-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #6366f1, #a855f7, transparent);
  box-shadow: 0 0 15px #6366f1;
  animation: scanLine 2s infinite ease-in-out;
}

@keyframes scanLine {
  0% { top: 0%; opacity: 0; }
  30% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary-accent);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.8s linear infinite;
}

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

.loading-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin-top: 24px;
  overflow: hidden;
}

.loading-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--primary-gradient);
  transition: width 0.4s ease;
}

/* Audit Results Dashboard */
.overview-header-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.summary-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.audit-target-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.domain-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 2px 0 4px;
}

.audit-timestamp {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.score-radial-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.score-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.25), rgba(18, 24, 38, 0.9));
  border: 3px solid #6366f1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding-top: 24px;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.35);
}

.score-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
}

.score-max {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.score-grade-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.grade-s {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--bg-card-border);
}

.metric-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

.metric-value {
  font-size: 0.94rem;
  font-weight: 700;
}

.text-emerald { color: #34d399; }
.text-cyan { color: #22d3ee; }
.text-green { color: #00c73c; }
.text-amber { color: #fbbf24; }
.text-red { color: #f87171; }

/* Terminal Inspector Card */
.crawler-terminal-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.terminal-header {
  background: rgba(0, 0, 0, 0.4);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--bg-card-border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.terminal-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--lane-geo);
  padding: 2px 6px;
  border-radius: 4px;
}

.terminal-body {
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: #cbd5e1;
  background: #06090e;
  flex: 1;
  overflow-y: auto;
  max-height: 220px;
}

.t-line {
  margin-bottom: 4px;
}

.t-prompt {
  color: #6366f1;
  font-weight: bold;
}

.t-url {
  color: #38bdf8;
}

.t-success {
  color: #34d399;
}

.t-warn {
  color: #fbbf24;
}

.t-fail {
  color: #f87171;
}

/* 5 Lanes Grid */
.lanes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.lane-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.lane-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}

.lane-card.seo-lane { border-top: 3px solid var(--lane-seo); }
.lane-card.aeo-lane { border-top: 3px solid var(--lane-aeo); }
.lane-card.geo-lane { border-top: 3px solid var(--lane-geo); }
.lane-card.llmo-lane { border-top: 3px solid var(--lane-llmo); }
.lane-card.neo-lane { border-top: 3px solid var(--lane-neo); box-shadow: var(--shadow-lane-neo); }

.lane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.lane-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lane-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.lane-tag.highlight {
  background: rgba(0, 199, 60, 0.2);
  color: #00c73c;
  border: 1px solid rgba(0, 199, 60, 0.4);
}

.lane-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.lane-score-tag {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 8px;
}

.lane-target-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.5;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin-bottom: 20px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
}

.check-icon {
  font-size: 1rem;
  line-height: 1;
  margin-top: 2px;
}

.check-icon.pass { color: #34d399; }
.check-icon.warn { color: #fbbf24; }
.check-icon.fail { color: #f87171; }

.check-text {
  flex: 1;
}

.check-text strong {
  color: #f1f5f9;
}

.check-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.lane-actions {
  padding-top: 14px;
  border-top: 1px solid var(--bg-card-border);
}

.btn-lane-fix {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  color: #f8fafc;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-lane-fix:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Case Study Banner */
.case-study-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(16, 185, 129, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 28px;
}

.case-study-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.case-study-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.case-study-text h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.case-study-text p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 650px;
}

.case-study-stats {
  display: flex;
  gap: 16px;
}

.stat-pill {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 120px;
}

.stat-num {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #34d399;
}

.stat-lbl {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Generators Tab */
.section-intro {
  text-align: center;
  margin-bottom: 32px;
}

.section-intro h2 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.section-intro p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.generator-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.gen-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-card-border);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: var(--radius-xl);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gen-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.gen-nav-btn.active {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
  color: #fff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
}

.gen-subpane {
  display: none;
}

.gen-subpane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.gen-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.92rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-group textarea {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  resize: vertical;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

.form-guide {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #e2e8f0;
  cursor: pointer;
}

.custom-checkbox input {
  accent-color: var(--primary-accent);
  width: 16px;
  height: 16px;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bg-card-border);
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.code-actions {
  display: flex;
  gap: 8px;
}

.btn-copy, .btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--bg-card-border);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy:hover, .btn-download:hover {
  background: rgba(255, 255, 255, 0.16);
}

.code-block {
  background: #06090e;
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Simulator Tab */
.sim-selector {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.sim-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-card-border);
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: var(--radius-xl);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sim-tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.sim-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

.naver-n { background: #03c75a; color: #fff; }
.google-g { background: #4285f4; color: #fff; }
.perplexity-p { background: #1fb8cd; color: #fff; }

.sim-frame {
  display: none;
  max-width: 860px;
  margin: 0 auto;
}

.sim-frame.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

/* Naver Search Mockup */
.naver-search-mockup {
  background: #ffffff;
  color: #1e1e1e;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.naver-search-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.naver-logo {
  color: #03c75a;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.naver-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid #03c75a;
  border-radius: 4px;
  padding: 8px 14px;
  background: #fff;
}

.naver-search-box .query-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: #111;
}

.naver-search-box i {
  color: #03c75a;
}

.naver-briefing-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.briefing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.briefing-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.briefing-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #03c75a;
}

.briefing-subtitle {
  font-size: 0.78rem;
  color: #64748b;
}

.briefing-paragraph {
  font-size: 0.96rem;
  line-height: 1.6;
  color: #1e293b;
  margin-bottom: 16px;
}

.naver-citation-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

.citation-source-icon {
  font-size: 1.4rem;
}

.citation-source-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.citation-domain {
  font-size: 0.76rem;
  font-weight: 700;
  color: #03c75a;
}

.citation-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #0f172a;
}

.citation-badge {
  background: #ecfdf5;
  color: #059669;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #a7f3d0;
}

.briefing-table-container {
  overflow-x: auto;
}

.briefing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.briefing-table th, .briefing-table td {
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  text-align: left;
}

.briefing-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #334155;
}

/* Google AI Overview Mockup */
.google-search-mockup {
  background: #ffffff;
  color: #202124;
  border-radius: var(--radius-lg);
  padding: 24px;
}

.google-search-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.google-logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: #4285f4;
}

.google-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 8px 16px;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.1);
}

.google-ai-overview-box {
  background: #f8fafd;
  border: 1px solid #e1e3e1;
  border-radius: 16px;
  padding: 20px;
}

.aio-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f0fe;
  color: #1a73e8;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.aio-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1f1f1f;
  margin-bottom: 16px;
}

.aio-citation-chip {
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 8px 12px;
  max-width: 320px;
}

.chip-site {
  font-size: 0.72rem;
  color: #5f6368;
}

.chip-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #1a0dab;
}

/* Perplexity Mockup */
.perplexity-mockup {
  background: #191a1a;
  color: #e5e5e5;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pplx-query h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.pplx-sources-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.pplx-source-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #232424;
  border: 1px solid #363737;
  padding: 8px 12px;
  border-radius: 8px;
}

.pplx-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1fb8cd;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.pplx-source-text {
  display: flex;
  flex-direction: column;
}

.pplx-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

.pplx-snippet {
  font-size: 0.72rem;
  color: #8e8e8e;
}

.pplx-answer {
  font-size: 0.96rem;
  line-height: 1.7;
  color: #d1d5db;
}

/* Playbook Grid */
.playbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.rule-card {
  padding: 24px;
}

.rule-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  position: absolute;
  top: 16px;
  right: 20px;
}

.rule-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.rule-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

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

/* Measurement Tab */
.measure-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
}

.measure-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cloud-sync-status {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cloud-sync-status.active {
  color: #34d399;
}

.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-target {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

.timeline-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.timeline-dates {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.timeline-status {
  text-align: right;
}

.days-left-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--bg-card-border);
  padding: 40px 0;
  margin-top: 40px;
  position: relative;
  z-index: 1;
  background: rgba(10, 13, 20, 0.9);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand .footer-logo {
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}

.footer-brand p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.86rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #fff;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-dialog {
  max-width: 650px;
  width: 100%;
  background: #0f1422;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 24px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  margin-bottom: 20px;
}

.modal-body p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ==========================================================================
   AUTHENTIC GOOGLE OAUTH ACCOUNT CHOOSER (Material / Google Design)
   ========================================================================== */
.google-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.google-modal-backdrop.hidden {
  display: none;
}

.google-auth-card {
  width: 100%;
  max-width: 448px;
  background: #ffffff;
  color: #202124;
  border-radius: 28px;
  padding: 36px 36px 28px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
  font-family: var(--font-google);
  position: relative;
  overflow: hidden;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.google-auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.google-auth-logo {
  margin-bottom: 14px;
}

.google-auth-title {
  font-size: 1.55rem;
  font-weight: 500;
  color: #1f1f1f;
  letter-spacing: -0.2px;
  margin-bottom: 4px;
}

.google-auth-subtitle {
  font-size: 0.95rem;
  color: #444746;
}

.google-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.google-account-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e0e2e0;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  font-family: var(--font-google);
}

.google-account-item:hover {
  background: #f0f4f9;
  border-color: #c4c7c5;
}

.acc-avatar-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f0fe;
}

.acc-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.add-icon-wrap {
  background: #f1f3f4;
  color: #5f6368;
}

.add-icon-wrap i {
  width: 20px;
  height: 20px;
}

.acc-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.acc-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1f1f1f;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.acc-email {
  font-size: 0.78rem;
  color: #5f6368;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.acc-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: #0b57d0;
  background: #d3e3fd;
  padding: 3px 8px;
  border-radius: 999px;
}

.google-custom-entry-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-input-form {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: #f8fafd;
  border-radius: 12px;
  border: 1px solid #c2e7ff;
}

.custom-input-form.hidden {
  display: none;
}

.custom-input-form input {
  flex: 1;
  border: 1px solid #747775;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.88rem;
  color: #1f1f1f;
  outline: none;
  font-family: var(--font-google);
}

.custom-input-form input:focus {
  border-color: #0b57d0;
  border-width: 2px;
}

.btn-google-confirm {
  background: #0b57d0;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-google);
  transition: background var(--transition-fast);
}

.btn-google-confirm:hover {
  background: #0842a0;
}

.google-auth-footer {
  padding-top: 14px;
  border-top: 1px solid #e0e2e0;
}

.google-auth-notice {
  font-size: 0.74rem;
  color: #747775;
  line-height: 1.45;
  margin-bottom: 16px;
}

.google-auth-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-google-cancel {
  background: transparent;
  border: none;
  color: #0b57d0;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-google);
}

.btn-google-cancel:hover {
  background: #f0f4f9;
}

/* Toast */
.auth-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 400;
  background: #101726;
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(52, 211, 153, 0.25);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 600;
  animation: slideUp 0.3s ease;
}

.auth-toast.hidden {
  display: none;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-icon {
  color: #34d399;
  width: 18px;
  height: 18px;
}

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

/* Responsive */
@media (max-width: 900px) {
  .overview-header-grid {
    grid-template-columns: 1fr;
  }
  .gen-grid {
    grid-template-columns: 1fr;
  }
  .measure-grid {
    grid-template-columns: 1fr;
  }
  .case-study-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-title {
    font-size: 2rem;
  }
  .header-actions {
    gap: 8px;
  }
}
