
:root {
  --bg: #0a0a0f;
  --bg-card: #14141e;
  --bg-card-hover: #1c1c28;
  --border: #2a2a35;
  --border-focus: #4f46e5;
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  
  --primary: #4f46e5;
  --primary-glow: rgba(79, 70, 229, 0.5);
  --secondary: #8b5cf6;
  
  --fake: #ef4444;
  --fake-glow: rgba(239, 68, 68, 0.3);
  --fake-track: rgba(239, 68, 68, 0.1);
  
  --real: #10b981;
  --real-glow: rgba(16, 185, 129, 0.3);
  --real-track: rgba(16, 185, 129, 0.1);
  
  --radius: 16px;
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --input-bg: rgba(0, 0, 0, 0.2);
  --nav-bg: rgba(10, 10, 15, 0.8);
  --hero-card: rgba(20, 20, 30, 0.8);
  --strong-text: #ffffff;
  --grid-color: rgba(255, 255, 255, 0.03);
}

:root[data-theme="light"] {
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --primary-glow: rgba(79, 70, 229, 0.2);
  
  --glass-bg: rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.08);
  --input-bg: rgba(255, 255, 255, 0.8);
  --nav-bg: rgba(255, 255, 255, 0.9);
  --hero-card: rgba(255, 255, 255, 0.9);
  --strong-text: #0f172a;
  --grid-color: rgba(0, 0, 0, 0.05);
  --orb-opacity: 0.15;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

img, video {
  max-width: 100%;
  height: auto;
}


h1, h2, h3, h4, .sec-badge, .nav-logo {
  font-family: var(--font-display);
}

.grad {
  background: linear-gradient(135deg, var(--secondary), #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: 
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: var(--orb-opacity, 0.4);
  animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
  top: -10%; left: -10%;
  width: 40vw; height: 40vw;
  background: var(--primary);
}

.orb-2 {
  bottom: 20%; right: -10%;
  width: 30vw; height: 30vw;
  background: var(--secondary);
  animation-delay: -5s;
}

.orb-3 {
  top: 40%; left: 40%;
  width: 25vw; height: 25vw;
  background: #ec4899;
  opacity: 0.2;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 10%) scale(1.1); }
  100% { transform: translate(-5%, 5%) scale(0.9); }
}


.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 15px 20px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .nav-logo {
  order: 1;
}

.navbar .nav-links {
  order: 3;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--primary-glow);
}

.logo-icon svg { width: 20px; height: 20px; color: white; }
.logo-icon.small { width: 28px; height: 28px; border-radius: 8px; }
.logo-icon.small svg { width: 16px; height: 16px; }

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

.nav-btn {
  background: var(--glass-bg);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  color: var(--text) !important;
}

.nav-btn:hover {
  background: var(--text);
  color: var(--bg) !important;
  transform: translateY(-2px);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  order: 2;
}

.theme-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: var(--transition);
}

.theme-desktop { display: flex; }
.theme-mobile { display: none; }

.theme-btn:hover {
  color: var(--text);
  background: rgba(128, 128, 128, 0.1);
}

.theme-btn svg { width: 22px; height: 22px; }

:root[data-theme="light"] .sun-icon { display: none; }
:root[data-theme="dark"] .moon-icon { display: none; }
:root:not([data-theme="light"]) .moon-icon { display: none; } 

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

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


.section {
  padding: 100px 20px;
  position: relative;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}


.hero {
  min-height: 100vh;
  padding: 160px 20px 100px;
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.2);
  padding: 8px 24px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #818cf8;
  margin-bottom: 24px;
  white-space: nowrap;
  width: fit-content;
  transition: var(--transition);
}

.pulse-dot {
  width: 10px; height: 10px;
  background: #818cf8;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(129, 140, 248, 0.7);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(129, 140, 248, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(129, 140, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(129, 140, 248, 0); }
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}



.hero-ctas {
  display: flex;
  gap: 20px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-primary svg { width: 20px; height: 20px; }

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px var(--primary-glow);
  background: #4338ca;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
}


.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.analytics-dash {
  background: var(--hero-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ad-header {
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ad-card {
  background: var(--input-bg);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.ad-val {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-display);
  margin-bottom: 4px;
}

.ad-lbl {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

.ad-bar-stack {
  display: flex;
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.ad-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: white;
  transition: width 1s ease-in-out;
}

.ad-bar.fake { background: var(--fake); }
.ad-bar.real { background: var(--real); }

.ad-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.ad-tag {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.ad-tag:hover, .ad-tag.active {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.ad-insight-result {
  background: var(--input-bg);
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text);
  border-radius: 0 8px 8px 0;
  min-height: 60px;
  display: flex;
  align-items: center;
}


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

.sec-badge {
  display: inline-block;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 600;
}

.sec-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.sec-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 900px;
  margin: 0 auto;
  text-wrap: balance;
}


.analyze-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  position: relative;
  z-index: 10;
}

.ta-wrapper {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--input-bg);
  transition: var(--transition);
  margin-bottom: 30px;
}

.ta-wrapper:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.ta-topbar {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.02);
}

.ta-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.ta-label svg { width: 18px; height: 18px; color: var(--primary); }

#newsText {
  width: 100%;
  padding: 20px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.7;
  resize: vertical;
  outline: none;
}

#newsText::placeholder { color: #4b5563; }

.ta-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  background: rgba(255,255,255,0.02);
}

.char-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.char-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ef4444; 
  transition: var(--transition);
}

.char-dot.valid { background: #10b981; }
.char-dot.warn { background: #f59e0b; }

.example-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ex-tag {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.ex-tag:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

.history-refresh-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.history-refresh-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
  transform: translateY(-1px);
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 20px;
  border-radius: 16px;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px var(--primary-glow);
}

.submit-btn svg { width: 22px; height: 22px; }

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px var(--primary-glow);
  filter: brightness(1.1);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.spinner {
  width: 20px; height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}

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


.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.result-glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--border);
  transition: background 0.5s ease;
}

.result-glow.fake-glow { 
  background: var(--fake); 
  box-shadow: 0 0 40px var(--fake-glow), 0 0 100px rgba(239, 68, 68, 0.1); 
  animation: pulse-fake 3s infinite;
}
.result-glow.real-glow { 
  background: var(--real); 
  box-shadow: 0 0 40px var(--real-glow), 0 0 100px rgba(16, 185, 129, 0.1); 
  animation: pulse-real 3s infinite;
}

@keyframes pulse-fake {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
@keyframes pulse-real {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.result-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.verdict-box {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
}

.verdict-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
}

.verdict-icon.fake-icon { background: var(--fake-track); border: 1px solid rgba(239, 68, 68, 0.2); color: var(--fake); }
.verdict-icon.real-icon { background: var(--real-track); border: 1px solid rgba(16, 185, 129, 0.2); color: var(--real); }

.verdict-label {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1.1;
  margin-bottom: 4px;
}

.verdict-label.fake-text { color: var(--fake); }
.verdict-label.real-text { color: var(--real); }

.verdict-sub {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.conf-ring {
  position: relative;
  width: 120px; height: 120px;
}

.ring-svg { transform: rotate(-90deg); width: 100%; height: 100%; }

.ring-bg {
  fill: none; stroke: var(--border); stroke-width: 8;
}

.ring-prog {
  fill: none; stroke: var(--primary); stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ring-prog.fake-stroke { stroke: var(--fake); }
.ring-prog.real-stroke { stroke: var(--real); }

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.ring-pct { font-size: 1.4rem; font-weight: 800; font-family: var(--font-display); }
.ring-lbl { font-size: 0.7rem; text-transform: uppercase; color: var(--text-muted); font-weight: 600; letter-spacing: 0.5px; }

.prob-section {
  margin-bottom: 40px;
}

.prob-title {
  font-size: 1.2rem;
  margin-bottom: 24px;
  font-weight: 600;
}

.prob-item { margin-bottom: 20px; }

.prob-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1.05rem;
}

.pdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.fake-pdot { background: var(--fake); }
.real-pdot { background: var(--real); }

.prob-pct { font-family: var(--font-display); font-weight: 800; }

.prob-track {
  height: 12px;
  background: var(--input-bg);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.prob-fill {
  height: 100%;
  border-radius: 6px;
  width: 0; 
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.fake-pfill { background: linear-gradient(90deg, #b91c1c, #ef4444); }
.real-pfill { background: linear-gradient(90deg, #047857, #10b981); }

.explain-box {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
}

.explain-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary);
}

.explain-header svg { width: 24px; height: 24px; }

.explain-body {
  color: var(--text);
  line-height: 1.8;
  font-size: 1.05rem;
}

.explain-body p { margin-bottom: 16px; }
.explain-body p:last-child { margin-bottom: 0; }
.explain-body strong { color: var(--strong-text); font-weight: 600; }


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

.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 20px;
  transition: var(--transition);
  text-align: left;
}

.feat-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-focus);
  background: var(--bg-card-hover);
}

.feat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 24px 0;
}

.feat-icon svg { width: 24px; height: 24px; }

.icon-indigo { background: rgba(79, 70, 229, 0.1); color: #818cf8; }
.icon-cyan { background: rgba(6, 182, 212, 0.1); color: #22d3ee; }
.icon-violet { background: rgba(139, 92, 246, 0.1); color: #a78bfa; }
.icon-emerald { background: rgba(16, 185, 129, 0.1); color: #34d399; }

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

.feat-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 24px 0;
  text-align: left;
  text-wrap: balance;
  line-height: 1.6;
}

.feat-tag {
  display: inline-block;
  background: rgba(255,255,255,0.05);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}


.steps-row {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.step-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px 30px 40px;
  border-radius: 24px;
  position: relative;
  transition: var(--transition);
  text-align: left;
}

.step-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-5px);
}

.step-num {
  position: absolute;
  top: -15px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  width: 40px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 800;
  font-family: var(--font-display);
}

.step-emoji {
  font-size: 3rem;
  margin-bottom: 8px;
  text-align: center;
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  text-align: center;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: justify;
  letter-spacing: -0.2px;
  word-spacing: -0.5px;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--border);
  font-weight: 300;
  align-self: center;
}


.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 60px 20px 30px;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 60px;
}

.footer-desc {
  color: var(--text-muted);
  margin: 20px 0 30px;
  max-width: 400px;
  font-size: clamp(0.85rem, 4.5vw, 1.1rem);
  white-space: nowrap;
}

.footer-badges {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-badges span {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-devs {
  margin-top: 40px;
}

.footer-devs p {
  background: linear-gradient(135deg, var(--secondary), #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.25rem;
  margin-bottom: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.dev-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.dev-img-wrapper {
  width: 115px;
  height: 115px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--secondary);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
  transition: var(--transition);
}

.dev-img-wrapper:hover {
  transform: scale(1.1) translateY(-5px);
  border-color: var(--secondary);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
}

.dev-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.dev-1 {
  transform: scale(1.15); 
}

.dev-2 {
  transform: scale(1);
}

.dev-img-wrapper:hover .dev-1 { 
  transform: scale(1.13); 
}

.dev-img-wrapper:hover .dev-2 { 
  transform: scale(1.05); 
}

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

.footer-tech { color: #818cf8; font-weight: 500; }


.toast-container {
  position: fixed;
  bottom: 30px; right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: slideInBottom 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.error { border-left: 4px solid var(--fake); }
.toast.success { border-left: 4px solid var(--real); }

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

@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}


.skeleton {
  background: linear-gradient(90deg, var(--input-bg) 25%, var(--border) 50%, var(--input-bg) 75%);
  background-size: 200% 100%;
  animation: skeleton-load 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-load {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.scanning-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 15px var(--primary-glow);
  z-index: 5;
  animation: scan 2s linear infinite;
}

@keyframes scan {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}





@media (max-width: 1024px) {
  .hero { 
    flex-direction: column; 
    text-align: center; 
    padding: 140px 20px 80px; 
    gap: 40px; 
  }
  .hero-content { width: 100%; }
  .hero-badge { margin: 0 auto 24px; }
  .hero-sub { margin: 0 auto 30px; text-align: center; text-wrap: balance; }
  .hero-ctas { justify-content: center; }
  .hero-visual { width: 100%; display: flex; justify-content: center; }
  
  .ad-card { text-align: center; }
  .ad-lbl { text-align: center; }
  .ad-tags { justify-content: center; }
  .ad-insight-result { 
    justify-content: center; 
    text-align: center; 
    border-left: none;
    border-bottom: 3px solid var(--primary);
    border-radius: 8px;
  }
  .ad-insight-result div { text-align: center; width: 100%; }
  
  .steps-row { flex-direction: column; align-items: center; gap: 40px; }
  .step-card { width: 100%; max-width: 500px; text-align: left; }
  .step-arrow { transform: rotate(90deg); margin: 10px 0; }
  
  .result-top { flex-direction: column; gap: 24px; padding-bottom: 24px; text-align: center; }
  .verdict-box { flex-direction: column; gap: 12px; text-align: center; }
}


@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-inner { padding: 0 20px; }
  
  .navbar { padding: 12px 20px; }
  .navbar.scrolled { padding: 10px 20px; }
  .nav-links { 
    position: absolute; 
    top: 100%; left: 0; right: 0; 
    background: var(--bg-card); 
    backdrop-filter: blur(20px);
    flex-direction: column; 
    padding: 30px 24px; 
    border-bottom: 1px solid var(--border); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    display: none; 
    gap: 24px;
    z-index: 100;
  }
  .nav-links.active { display: flex; animation: slideDownNav 0.3s ease forwards; }
  @keyframes slideDownNav {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-btn { width: 100%; justify-content: center; padding: 14px; }
  .hamburger { display: flex; }
  .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, -6px); }

  .hero { padding: 120px 16px 60px; gap: 30px; }
  .hero-title { 
    font-size: clamp(1.8rem, 8vw, 2.8rem); 
    line-height: 1.2;
    text-wrap: balance;
  }
  .hero-sub { font-size: 1.05rem; line-height: 1.6; max-width: 90%; margin: 0 auto 30px; text-align: center; text-wrap: balance; }
  .sec-sub { margin: 0 auto; text-align: center; text-wrap: balance; }
  .hero-badge {
    margin: 0 auto 24px;
    padding: 8px 20px; 
    font-size: 0.82rem;
    gap: 8px;
    width: fit-content;
    display: inline-flex;
  }
  .hero-badge .pulse-dot { position: static; width: 10px; height: 10px; }
  
  .ad-grid { grid-template-columns: 1fr 1fr; }
  .hero-ctas { flex-direction: column !important; width: 100%; max-width: 400px; margin: 0 auto; gap: 12px; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  
  .analytics-dash { max-width: 100%; }
  .ad-bar { font-size: 0.65rem; }
  .ad-tag { font-size: 0.78rem; padding: 5px 10px; }
  .ad-insight-result { font-size: 0.85rem; padding: 10px 14px; min-height: 50px; }
  
  .analyze-card { padding: 24px; border-radius: 20px; }
  .result-card { padding: 24px; border-radius: 20px; overflow: hidden; }
  .sec-header { margin-bottom: 40px; }
  
  .features-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .feat-card { padding: 24px; text-align: center; }
  .feat-icon { margin: 0 auto 24px; }
  
  .submit-btn { padding: 16px; font-size: 1.05rem; }
  
  .theme-desktop { display: none; }
  .theme-mobile { display: flex; }
  .nav-right { gap: 12px; }

  .prob-meta { font-size: 0.95rem; }
  .explain-box { padding: 20px; }
  .explain-header { font-size: 1.05rem; }
  .explain-body { font-size: 0.95rem; }

  .toast-container { bottom: 16px; right: 16px; left: 16px; }
  .toast { font-size: 0.9rem; padding: 12px 16px; }

  .footer { padding: 40px 20px 24px; }
  .footer-top { margin-bottom: 40px; }
  .footer .nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 15px;
  }
  .footer .logo-icon {
    flex-shrink: 0;
  }
  .footer-desc { margin: 0 auto 30px; max-width: 320px; text-align: center; text-wrap: balance; }
  .dev-img-wrapper { width: 100px; height: 100px; }
}


@media (max-width: 480px) {
  .section { padding: 40px 0; }
  .section-inner { padding: 0 16px; }

  .hero { padding: 110px 16px 50px; gap: 24px; }
  .hero-title { font-size: 1.8rem; line-height: 1.2; }
  .hero-badge { white-space: nowrap; font-size: 0.78rem; padding: 6px 16px; margin: 0 auto 24px; }
  .hero-sub { font-size: 1rem; max-width: 100%; margin: 0 auto 30px; text-align: center; text-wrap: balance; }
  
  .analytics-dash { padding: 20px; gap: 18px; border-radius: 20px; }
  .ad-header { font-size: 0.95rem; padding-bottom: 12px; }
  .ad-val { font-size: 1.5rem; }
  .ad-card { padding: 14px; border-radius: 12px; }
  .ad-bar { font-size: 0.6rem; }
  .ad-bar-stack { height: 22px; }
  .ad-tags { gap: 6px; margin-bottom: 10px; }
  .ad-tag { font-size: 0.75rem; padding: 4px 10px; }
  .ad-insight-result { font-size: clamp(0.65rem, 3.5vw, 0.8rem); min-height: 45px; padding: 10px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ad-insight-result.active-insight { white-space: normal; }
  
  .sec-title { font-size: 1.5rem; text-align: center; }
  .sec-sub { font-size: 0.9rem; line-height: 1.6; max-width: 100%; text-align: center; text-wrap: balance; margin: 0 auto; }
  .sec-badge { font-size: 0.75rem; padding: 5px 12px; margin: 0 auto 20px; display: inline-flex; }
  
  .features-grid { grid-template-columns: 1fr; gap: 14px; }
  .feat-card { padding: 24px; border-radius: 16px; text-align: left; }
  .feat-icon { margin: 0 0 24px 0; }
  .feat-card h3 { font-size: 1.1rem; }
  .feat-card p { font-size: 0.9rem; margin: 0 0 16px 0; text-align: left; }
  
  .step-card { padding: 20px 24px 32px; }
  .step-emoji { font-size: 2.5rem; margin-bottom: 6px; }
  .step-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
  .step-card p { font-size: 0.9rem; text-align: justify; letter-spacing: -0.2px; word-spacing: -0.5px; hyphens: auto; -webkit-hyphens: auto; }
  .step-arrow { font-size: 1.5rem; }
  
  .analyze-card { padding: 16px; border-radius: 16px; }
  .result-card { padding: 16px; border-radius: 16px; }
  .ta-wrapper { margin-bottom: 20px; border-radius: 12px; }
  .ta-topbar { padding: 12px 16px; }
  .ta-label { font-size: 0.85rem; }
  #newsText { padding: 14px 16px; font-size: 0.95rem; rows: 7; }
  .ta-footer { flex-direction: column; gap: 12px; padding: 12px 16px; }
  .char-counter { justify-content: center; }
  .example-tags { justify-content: center; }
  .submit-btn { padding: 14px; font-size: 1rem; border-radius: 12px; }
  
  .result-top { gap: 20px; margin-bottom: 24px; padding-bottom: 20px; }
  .verdict-label { font-size: 1.8rem; }
  .verdict-icon { width: 50px; height: 50px; font-size: 24px; border-radius: 12px; }
  .verdict-sub { font-size: 0.85rem; }
  .conf-ring { width: 120px; height: 120px; }
  .ring-pct { font-size: 1.3rem; }
  .ring-lbl { font-size: 0.6rem; letter-spacing: 0.3px; }
  .prob-section { margin-bottom: 24px; }
  .prob-title { font-size: 1.05rem; margin-bottom: 16px; }
  .prob-meta { font-size: 0.9rem; }
  .explain-box { padding: 16px; border-radius: 12px; }
  .explain-header { font-size: 1rem; gap: 10px; margin-bottom: 14px; }
  .explain-header svg { width: 20px; height: 20px; }
  .explain-body { font-size: 0.9rem; line-height: 1.7; }
  
  .footer { padding: 32px 16px 20px; }
  .footer-top { margin-bottom: 30px; }
  .footer-badges { gap: 8px; }
  .footer-badges span { font-size: 0.78rem; padding: 6px 12px; }
  .footer-devs { margin-top: 30px; }
  .dev-img-wrapper { width: 85px; height: 85px; }
  .footer-devs p { font-size: 1.1rem; margin-bottom: 18px; }
  .footer-bottom { padding-top: 20px; font-size: 0.8rem; }
  
  .toast-container { bottom: 12px; right: 12px; left: 12px; }
  .toast { padding: 12px 14px; font-size: 0.85rem; border-radius: 10px; }
}


@media (max-width: 360px) {
  .section-inner { padding: 0 12px; }
  .navbar { padding: 10px 12px; }
  .nav-logo { font-size: 1.2rem; gap: 8px; }
  .logo-icon { width: 30px; height: 30px; }
  .logo-icon svg { width: 16px; height: 16px; }
  
  .hero { padding: 100px 12px 40px; }
  .hero-title { font-size: 1.6rem; }
  .hero-badge { 
    font-size: 0.68rem;
    padding: 6px 12px; 
    gap: 6px;
    max-width: 100%;
    margin: 0 auto 24px;
    display: inline-flex;
  }
  .hero-badge .pulse-dot { width: 8px; height: 8px; }
  .hero-sub { font-size: 0.9rem; margin: 0 auto 30px; text-align: center; text-wrap: balance; }
  
  .btn-primary { padding: 14px 20px; font-size: 1rem; }
  .btn-ghost { padding: 14px 20px; font-size: 1rem; }
  
  .analytics-dash { padding: 16px; gap: 14px; }
  .ad-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ad-val { font-size: 1.3rem; }
  .ad-card { padding: 12px; }
  .ad-lbl { font-size: 0.7rem; letter-spacing: 0.5px; }
  
  .analyze-card, .result-card { padding: 14px; border-radius: 12px; }
  .ad-insight-result { font-size: clamp(0.6rem, 3.2vw, 0.75rem); padding: 10px 2px; }
  #newsText { font-size: 0.88rem; padding: 12px; }
  
  .verdict-label { font-size: 1.5rem; }
  .conf-ring { width: 110px; height: 110px; }
  .ring-pct { font-size: 1.2rem; }
  .ring-lbl { font-size: 0.55rem; }
  
  .sec-title { font-size: 1.35rem; }
  
  .footer-badges span { font-size: 0.7rem; padding: 5px 10px; }
  .dev-img-wrapper { width: 75px; height: 75px; }
  .footer-devs p { font-size: 0.95rem; }
}


@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: 80px; min-height: auto; }
  .section { padding: 40px 0; }
  .navbar { padding: 8px 20px; }
}


@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .orb { display: none; }
}

.history-section {
  margin-top: 45px;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 6px;
  min-height: 120px;
  align-items: stretch;
}

.history-list::-webkit-scrollbar {
  width: 6px;
}

.history-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: var(--transition);
}

.history-item:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.history-text {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 20px;
  text-align: left;
}

.history-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.history-badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.history-badge.fake {
  background: var(--fake-track);
  color: var(--fake);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.history-badge.real {
  background: var(--real-track);
  color: var(--real);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.history-conf {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.history-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 80px;
  text-align: right;
}

@media (max-width: 600px) {
  .history-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .history-text {
    margin-right: 0;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .history-meta {
    width: 100%;
    justify-content: space-between;
  }
}

.empty-history-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  font-weight: 500;
  text-rendering: optimizeLegibility;
}

.empty-history-msg div {
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
}
