* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0a0e1a;
  --card: rgba(255,255,255,0.04);
  --card-solid: #111726;
  --border: rgba(255,255,255,0.09);
  --text: #eef2fb;
  --muted: #93a0bd;
  --a1: #7c5cff;
  --a2: #2dd4bf;
  --a3: #ff5c8a;
  --green: #34d399;
  --red: #fb7185;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.65;
  min-height: 100vh; overflow-x: hidden; position: relative;
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(124,92,255,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(124,92,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .4; }
.orb-1 { width: 460px; height: 460px; background: var(--a1); top: -120px; right: -80px; animation: float 16s ease-in-out infinite; }
.orb-2 { width: 400px; height: 400px; background: var(--a2); top: 30%; left: -120px; animation: float 20s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,-50px); } }
header, main, footer { position: relative; z-index: 1; }

/* Nav */
.site-header { padding: 0 22px; }
.nav { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; }
.logo { font-size: 1.3rem; filter: drop-shadow(0 4px 10px rgba(124,92,255,.5)); }
.grad { background: linear-gradient(120deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 600; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: linear-gradient(120deg, var(--a1), var(--a2)); color: #06121a !important; padding: 9px 18px; border-radius: 12px; box-shadow: 0 10px 26px rgba(45,212,191,.3); }

/* Hero */
.hero { max-width: 800px; margin: 46px auto 54px; text-align: center; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; color: #cfe9ff; background: rgba(124,92,255,.14); border: 1px solid var(--border); padding: 8px 18px; border-radius: 999px; margin-bottom: 24px; }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); line-height: 1.1; font-weight: 800; letter-spacing: -1.4px; }
.hero-sub { color: var(--muted); font-size: 1.06rem; max-width: 600px; margin: 22px auto 30px; }
.hero-stats { display: flex; justify-content: center; gap: 40px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 1.6rem; background: linear-gradient(120deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: .8rem; color: var(--muted); }

main { max-width: 1120px; margin: 0 auto; padding: 0 22px 70px; }
.card { background: var(--card); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 30px 70px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05); }
.workspace { padding: 26px; }

/* Editor side-by-side */
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.editor { display: flex; flex-direction: column; }
.editor-head { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: #cdd6ee; margin-bottom: 10px; }
.editor-head .counts { margin-left: auto; font-weight: 500; color: var(--muted); }
.editor-head .counts b { color: var(--text); }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-ai { background: var(--red); box-shadow: 0 0 10px var(--red); }
.dot-human { background: var(--green); box-shadow: 0 0 10px var(--green); }
textarea { width: 100%; min-height: 280px; resize: vertical; padding: 16px; border-radius: 14px; border: 1px solid var(--border); background: rgba(6,10,20,.7); color: var(--text); font-size: .96rem; font-family: inherit; transition: border .2s, box-shadow .2s; }
textarea:focus { outline: none; border-color: var(--a1); box-shadow: 0 0 0 4px rgba(124,92,255,.18); }
.mini { padding: 3px 12px; font-size: .78rem; border-radius: 8px; background: rgba(255,255,255,.08); color: #dbe3f7; border: 1px solid var(--border); cursor: pointer; }
.mini:hover { background: rgba(255,255,255,.16); }

/* Score */
.score-card { margin: 20px 0; padding: 16px 18px; background: rgba(6,10,20,.6); border: 1px solid var(--border); border-radius: 16px; }
.score-head { display: flex; align-items: center; justify-content: space-between; font-size: .9rem; margin-bottom: 12px; }
.tag-ai { color: var(--red); font-weight: 600; }
.tag-human { color: var(--green); font-weight: 600; }
.tag-ai b, .tag-human b { font-size: 1.15rem; }
.verdict-pill { font-size: .82rem; font-weight: 700; color: #dbe3f7; background: rgba(124,92,255,.16); border: 1px solid var(--border); padding: 5px 14px; border-radius: 999px; }
.bar { height: 16px; background: linear-gradient(90deg, var(--red), #f97362); border-radius: 10px; overflow: hidden; box-shadow: inset 0 2px 6px rgba(0,0,0,.5); }
.bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #2bd396, var(--green)); border-radius: 10px; transition: width .45s cubic-bezier(.4,0,.2,1); box-shadow: 0 0 16px rgba(52,211,153,.7); }

/* Controls */
.controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; background: rgba(6,10,20,.5); border: 1px solid var(--border); border-radius: 16px; }
.opts { display: flex; flex-wrap: wrap; gap: 14px; }
.opt { font-size: .85rem; display: flex; align-items: center; gap: 7px; color: #c4cfe6; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
button { cursor: pointer; border: none; border-radius: 12px; padding: 11px 20px; font-size: .9rem; font-weight: 700; font-family: inherit; background: linear-gradient(120deg, var(--a1), var(--a2)); color: #06121a; box-shadow: 0 10px 26px rgba(45,212,191,.3); transition: transform .18s, box-shadow .18s; }
button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(45,212,191,.45); }
button.secondary { background: rgba(255,255,255,.07); color: #dbe3f7; border: 1px solid var(--border); box-shadow: none; }
button.secondary:hover { background: rgba(255,255,255,.14); }
.tip { margin-top: 14px; font-size: .82rem; color: var(--muted); text-align: center; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 30px; }
.feature { padding: 26px 22px; text-align: center; transition: transform .3s, box-shadow .3s; }
.feature:hover { transform: translateY(-6px); box-shadow: 0 40px 80px rgba(0,0,0,.55); }
.f-icon { font-size: 1.7rem; width: 56px; height: 56px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(124,92,255,.2), rgba(45,212,191,.2)); border: 1px solid var(--border); border-radius: 16px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .9rem; }
.note { margin-top: 28px; font-size: .8rem; color: var(--muted); text-align: center; max-width: 700px; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: rgba(6,10,20,.6); backdrop-filter: blur(10px); padding: 48px 22px 26px; margin-top: 44px; }
.footer-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-brand .brand-name { font-size: 1.2rem; font-weight: 800; }
.footer-tag { color: var(--muted); font-size: .9rem; margin-top: 12px; max-width: 320px; }
.footer-col h4 { font-size: .95rem; margin-bottom: 14px; color: #dbe3f7; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: .88rem; margin-bottom: 9px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { max-width: 1120px; margin: 30px auto 0; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: var(--muted); }

@media (max-width: 820px) {
  .editor-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
}
