*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{font-family:'Inter',sans-serif;background:radial-gradient(circle at top left,#dbeafe 0%,transparent 30%),radial-gradient(circle at bottom right,#ede9fe 0%,transparent 30%),#f8fafc;color:#111827;overflow-x:hidden;}
a{text-decoration:none;}

/* NAV */
header{position:sticky;top:0;z-index:999;background:rgba(255,255,255,.85);backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.6);}
.nav{max-width:1200px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:1rem 1.2rem;}
.logo{font-size:1.3rem;font-weight:900;color:#111827;display:flex;align-items:center;gap:.5rem;}
.logo span{background:linear-gradient(90deg,#2563eb,#7c3aed);-webkit-background-clip:text;-webkit-text-fill-color:transparent;}
.nav-links{display:flex;gap:1.5rem;align-items:center;}
.nav-links a{font-size:.92rem;font-weight:600;color:#374151;}
.nav-btn{background:linear-gradient(135deg,#2563eb,#7c3aed);padding:.85rem 1.2rem;border-radius:12px;color:white!important;box-shadow:0 10px 25px rgba(37,99,235,.2);}

/* HERO */
.hero{max-width:1200px;margin:auto;padding:6rem 1.2rem 4rem;display:grid;grid-template-columns:1.1fr .9fr;gap:3rem;align-items:start;}
.hero-badge{display:inline-flex;align-items:center;gap:.5rem;background:#eff6ff;border:1px solid #bfdbfe;color:#2563eb;padding:8px 15px;border-radius:999px;font-size:.8rem;font-weight:700;margin-bottom:1.4rem;}
.hero h1{font-size:4.4rem;line-height:1.05;font-weight:900;letter-spacing:-.05em;margin-bottom:1.4rem;}
.hero h1 span{background:linear-gradient(90deg,#2563eb,#7c3aed);-webkit-background-clip:text;-webkit-text-fill-color:transparent;}
.hero p{font-size:1.08rem;line-height:1.9;color:#6b7280;margin-bottom:2rem;max-width:650px;}
.hero-buttons{display:flex;gap:1rem;flex-wrap:wrap;margin-bottom:2rem;}
.btn{padding:1rem 1.5rem;border-radius:14px;font-weight:700;font-size:.95rem;display:inline-flex;align-items:center;gap:.5rem;transition:.25s;}
.btn-primary{background:linear-gradient(135deg,#2563eb,#7c3aed);color:white;box-shadow:0 12px 30px rgba(37,99,235,.25);}
.btn-secondary{background:white;border:1px solid #e5e7eb;color:#111827;}
.btn:hover{transform:translateY(-3px);}
.hero-tags{display:flex;flex-wrap:wrap;gap:.8rem;}
.hero-tags span{background:white;border:1px solid #e5e7eb;padding:9px 15px;border-radius:999px;font-size:.83rem;font-weight:600;}

/* DETECTOR CARD */
.hero-card{background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.6);border-radius:28px;padding:2rem;box-shadow:0 15px 40px rgba(0,0,0,.07),0 4px 12px rgba(0,0,0,.04);position:sticky;top:84px;}
.scan-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;}
.scan-top h3{font-size:1rem;font-weight:700;}
.live{display:flex;align-items:center;gap:.5rem;font-size:.8rem;font-weight:700;color:#16a34a;}
.live::before{content:'';width:8px;height:8px;background:#16a34a;border-radius:50%;animation:pulse 1.2s infinite;}
@keyframes pulse{0%{opacity:1;}50%{opacity:.2;}100%{opacity:1;}}

/* TABS */
.det-tabs{display:flex;background:#f3f4f6;border-radius:12px;padding:4px;margin-bottom:1.25rem;gap:4px;}
.det-tab{flex:1;padding:.55rem;border:none;border-radius:9px;font-family:'Inter',sans-serif;font-size:.82rem;font-weight:600;cursor:pointer;background:transparent;color:#6b7280;transition:.2s;}
.det-tab.active{background:white;color:#111827;box-shadow:0 2px 8px rgba(0,0,0,.08);}
.det-panel{display:none;}
.det-panel.active{display:block;}

/* UPLOAD ZONE */
.scan-box{background:#f8fafc;border:2px dashed #93c5fd;border-radius:20px;padding:2.5rem 1.5rem;text-align:center;margin-bottom:1.1rem;cursor:pointer;transition:.25s;position:relative;}
.scan-box:hover,.scan-box.drag-over{transform:translateY(-2px);border-color:#2563eb;background:#eff6ff;}
.scan-box input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;}
.scan-box .icon{font-size:2.5rem;margin-bottom:.75rem;display:block;}
.scan-box h4{margin-bottom:.4rem;font-size:.95rem;font-weight:700;}
.scan-box p{font-size:.82rem;color:#6b7280;}
.fmt-badge{display:inline-block;margin-top:.5rem;background:#e0e7ff;color:#3730a3;font-size:.7rem;font-weight:700;padding:3px 10px;border-radius:20px;}

/* FILE PREVIEW */
.file-preview{display:none;align-items:center;gap:.875rem;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:12px;padding:.75rem 1rem;margin-bottom:1rem;}
.file-preview img{width:52px;height:52px;object-fit:cover;border-radius:8px;border:1px solid #d1d5db;flex-shrink:0;}
.fp-info{flex:1;min-width:0;}
.fp-name{font-size:.82rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.fp-size{font-size:.72rem;color:#6b7280;margin-top:2px;}
.fp-change{font-size:.75rem;color:#2563eb;background:none;border:none;cursor:pointer;font-family:'Inter',sans-serif;flex-shrink:0;}
.fp-change:hover{text-decoration:underline;}

/* TEXTAREA */
textarea{width:100%;min-height:160px;border:1.5px solid #d1d5db;border-radius:16px;padding:1rem;font-size:.92rem;font-family:'Inter',sans-serif;resize:vertical;outline:none;margin-bottom:.5rem;line-height:1.7;background:#fafafa;transition:.2s;}
textarea:focus{border-color:#2563eb;background:white;}
textarea::placeholder{color:#9ca3af;}
.char-row{display:flex;justify-content:flex-end;margin-bottom:.875rem;}
.char-pill{font-size:.7rem;padding:2px 8px;border-radius:20px;background:#f3f4f6;color:#9ca3af;}
.char-pill.ok{background:#f0fdf4;color:#16a34a;}
.char-pill.low{background:#fff7ed;color:#ea580c;}

/* ANALYZE BUTTON */
.action-btn{width:100%;border:none;padding:1rem;border-radius:14px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:white;font-size:.95rem;font-weight:700;cursor:pointer;transition:.25s;display:flex;align-items:center;justify-content:center;gap:.5rem;font-family:'Inter',sans-serif;}
.action-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 12px 30px rgba(37,99,235,.3);}
.action-btn:disabled{opacity:.55;cursor:not-allowed;transform:none;}
.btn-spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:white;border-radius:50%;animation:spin .7s linear infinite;display:none;}
@keyframes spin{to{transform:rotate(360deg);}}

/* PROGRESS */
.det-progress{display:none;margin-top:1rem;background:#f0f7ff;border:1px solid #bfdbfe;border-radius:12px;padding:1rem;}
.prog-step{display:flex;align-items:center;gap:.6rem;font-size:.8rem;color:#6b7280;padding:.3rem 0;}
.prog-step.done{color:#16a34a;}
.prog-step.active{color:#2563eb;font-weight:600;}
.prog-step.err{color:#dc2626;}
.pdot{width:7px;height:7px;border-radius:50%;background:#d1d5db;flex-shrink:0;}
.prog-step.done .pdot{background:#22c55e;}
.prog-step.active .pdot{background:#2563eb;animation:pulse 1s infinite;}
.prog-step.err .pdot{background:#dc2626;}

/* ERROR */
.det-error{display:none;margin-top:1rem;background:#fef2f2;border:1px solid #fecaca;border-radius:12px;padding:.875rem 1rem;font-size:.82rem;color:#dc2626;line-height:1.6;}

/* ══ RESULT REPORT ══ */
.result{display:none;margin-top:1.5rem;border-radius:20px;overflow:hidden;border:1.5px solid #e5e7eb;animation:fadeUp .4s ease;}
@keyframes fadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}

/* Verdict header */
.r-verdict{padding:1.4rem 1.5rem;display:flex;align-items:center;gap:1rem;}
.result.ai   .r-verdict{background:linear-gradient(135deg,#fff7ed,#fef3c7);}
.result.real .r-verdict{background:linear-gradient(135deg,#f0fdf4,#dcfce7);}
.result.unk  .r-verdict{background:#f9fafb;}
.r-icon{width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.6rem;flex-shrink:0;}
.result.ai   .r-icon{background:#fed7aa;}
.result.real .r-icon{background:#bbf7d0;}
.result.unk  .r-icon{background:#e5e7eb;}
.r-head h3{font-size:1.1rem;font-weight:800;margin-bottom:3px;}
.result.ai   .r-head h3{color:#c2410c;}
.result.real .r-head h3{color:#15803d;}
.result.unk  .r-head h3{color:#374151;}
.r-head p{font-size:.8rem;color:#6b7280;line-height:1.4;}

/* Confidence */
.r-conf{padding:1rem 1.5rem;background:white;border-top:1px solid #f3f4f6;}
.r-conf-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem;}
.r-conf-row span:first-child{font-size:.78rem;font-weight:700;color:#374151;}
.r-pct{font-size:1.05rem;font-weight:800;}
.result.ai   .r-pct{color:#ea580c;}
.result.real .r-pct{color:#16a34a;}
.result.unk  .r-pct{color:#6b7280;}
.bar{height:9px;background:#f3f4f6;border-radius:999px;overflow:hidden;}
.bar-fill{height:100%;border-radius:999px;width:0;transition:width 1s ease;}
.result.ai   .bar-fill{background:linear-gradient(90deg,#f97316,#ef4444);}
.result.real .bar-fill{background:linear-gradient(90deg,#22c55e,#16a34a);}
.result.unk  .bar-fill{background:#9ca3af;}

/* Source */
.r-source{padding:.75rem 1.5rem;background:white;border-top:1px solid #f3f4f6;font-size:.82rem;color:#374151;display:none;}
.r-source b{color:#2563eb;}

/* Report sections */
.r-report{background:white;border-top:1px solid #f3f4f6;}
.r-section{padding:1rem 1.5rem;border-bottom:1px solid #f9fafb;}
.r-section:last-child{border-bottom:none;}
.r-section-title{font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:#9ca3af;margin-bottom:.75rem;}

/* Findings */
.finding{display:flex;gap:.6rem;padding:.4rem 0;font-size:.82rem;color:#374151;line-height:1.5;border-bottom:1px solid #fafafa;}
.finding:last-child{border-bottom:none;}
.fdot{width:7px;height:7px;border-radius:50%;flex-shrink:0;margin-top:.38rem;}
.fdot.w{background:#f97316;}.fdot.g{background:#22c55e;}.fdot.n{background:#d1d5db;}

/* Score breakdown */
.score-grid{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;}
.score-item{background:#f8fafc;border-radius:10px;padding:.75rem;}
.score-item .si-label{font-size:.7rem;color:#6b7280;margin-bottom:.3rem;}
.score-item .si-val{font-size:1rem;font-weight:800;color:#111827;}
.score-item .si-bar{height:4px;background:#e5e7eb;border-radius:2px;overflow:hidden;margin-top:.35rem;}
.score-item .si-bar-fill{height:100%;border-radius:2px;background:linear-gradient(90deg,#2563eb,#7c3aed);}

/* Summary box */
.r-summary{background:#f8fafc;border-radius:10px;padding:.875rem 1rem;font-size:.82rem;color:#374151;line-height:1.6;}

/* Disclaimer */
.r-disc{padding:.75rem 1.5rem;background:#f9fafb;border-top:1px solid #f3f4f6;font-size:.7rem;color:#9ca3af;text-align:center;}

/* SECTIONS */
.section{max-width:1200px;margin:auto;padding:5rem 1.2rem;}
.section-title{text-align:center;margin-bottom:3rem;}
.section-title h2{font-size:2.5rem;font-weight:900;letter-spacing:-.04em;margin-bottom:1rem;}
.section-title p{color:#6b7280;max-width:700px;margin:auto;line-height:1.8;}
.features{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;}
.feature{background:white;border-radius:24px;padding:2rem;border:1px solid #e5e7eb;box-shadow:0 8px 25px rgba(0,0,0,.03);}
.feature-icon{font-size:2rem;margin-bottom:1rem;}
.feature h3{margin-bottom:.8rem;font-weight:700;}
.feature p{color:#6b7280;line-height:1.8;font-size:.93rem;}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-top:3rem;}
.stat{background:white;padding:2rem;border-radius:22px;text-align:center;border:1px solid #e5e7eb;}
.stat h3{font-size:2.5rem;color:#2563eb;margin-bottom:.5rem;font-weight:900;}
.stat p{color:#6b7280;font-size:.9rem;}
.faq{max-width:900px;margin:auto;}
.faq-item{background:white;border:1px solid #e5e7eb;border-radius:20px;padding:1.5rem;margin-bottom:1rem;}
.faq-item h3{margin-bottom:.8rem;font-size:1rem;font-weight:700;}
.faq-item p{color:#6b7280;line-height:1.8;font-size:.93rem;}
footer{padding:4rem 1.2rem;text-align:center;color:#6b7280;}
.footer-links{display:flex;justify-content:center;gap:1.5rem;margin-top:1.5rem;flex-wrap:wrap;}
.footer-links a{color:#2563eb;font-weight:600;}

@media(max-width:992px){.hero{grid-template-columns:1fr;}.features{grid-template-columns:1fr;}.stats{grid-template-columns:1fr 1fr;}.hero h1{font-size:3rem;}.hero-card{position:static;}}
@media(max-width:768px){.nav-links{display:none;}.stats{grid-template-columns:1fr;}.hero h1{font-size:2.4rem;}.section-title h2{font-size:2rem;}.score-grid{grid-template-columns:1fr;}}

/* --- Responsive CSS Grid --- */
.glossary-grid {
  display: grid;
  grid-template-columns: 1fr; /* Defaults to 1 column for mobile screens */
  gap: 24px;
}

/* Forces 2 columns on tablets and desktops */
@media (min-width: 768px) {
  .glossary-grid {
    grid-template-columns: 1fr 1fr; 
  }
}










/* --- Customize These Variables to Match Your Site --- */
:root {
  --glossary-primary: #3b82f6; /* Change to your site's primary accent/button color */
  --glossary-text-main: #1f2937; /* Main heading color */
  --glossary-text-muted: #4b5563; /* Paragraph text color */
  --glossary-bg-card: #ffffff; /* Card background color */
  --glossary-border: #e5e7eb; /* Card border color */
  --glossary-bg-page: #f9fafb; /* Optional: adjust if your page background isn't white */
}

/* --- Glossary Layout & Typography --- */
#ai-detection-glossary {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
  font-family: inherit; /* Inherits your site's global font */
}

#ai-detection-glossary h2 {
  text-align: center;
  color: var(--glossary-text-main);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.glossary-intro {
  text-align: center;
  color: var(--glossary-text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* --- Responsive CSS Grid --- */
.glossary-grid {
  display: grid;
  /* Automatically creates 2 columns on desktop, 1 on mobile */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* --- Individual Card Styling --- */
.glossary-item {
  background-color: var(--glossary-bg-card);
  border: 1px solid var(--glossary-border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

/* Hover Effect for a premium feel */
.glossary-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: var(--glossary-primary);
}

.glossary-item h3 {
  color: var(--glossary-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.4;
}

.glossary-item p {
  color: var(--glossary-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.glossary-item strong {
  color: var(--glossary-text-main);
  font-weight: 600;
}