/* ── ClearTerms AI — Landing Page Styles ── */

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

:root {
  --bg:        #05080f;
  --bg-card:   #0b0f1a;
  --bg-hover:  #111827;
  --border:    #1f2a3c;
  --accent:    #2563eb;
  --accent2:   #60a5fa;
  --teal:      #10b981;
  --teal2:     #34d399;
  --danger:    #f87171;
  --success:   #34d399;
  --warning:   #fbbf24;
  --text:      #f0f6ff;
  --muted:     #6b7a99;
  --mono:      'DM Mono', monospace;
  --grad:      linear-gradient(135deg, #2563eb 0%, #10b981 100%);
  --grad-text: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 10, 18, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px;
  background: var(--grad);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(37,99,235,0.5); color: #fff; }

.btn-edge {
  background: linear-gradient(135deg, #0ea5e9 0%, #0078D4 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(14,165,233,0.3);
}
.btn-edge:hover { box-shadow: 0 6px 28px rgba(14,165,233,0.45); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent2); }

.btn-nav-cta {
  background: var(--grad);
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.3);
  transition: box-shadow 0.2s, transform 0.15s;
}
.btn-nav-cta:hover { box-shadow: 0 0 0 4px rgba(37,99,235,0.4); transform: translateY(-1px); color: #fff; text-decoration: none; }

/* ── HERO ── */
.hero-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-left { }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--accent2);
  margin-bottom: 24px;
  font-weight: 500;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }

.hero-left h1 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.8px;
  margin-bottom: 18px;
}

.hero-left p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 460px;
}

.hero-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-browsers {
  font-size: 12px;
  color: var(--muted);
}

/* ── EXTENSION MOCKUP ── */
.hero-right {
  display: flex;
  justify-content: center;
  position: relative;
}

.ext-glow {
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ext-popup {
  width: 360px;
  background: #0f1220;
  border: 1px solid #1e2337;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(37,99,235,0.15);
  position: relative;
  z-index: 1;
}

.ext-header {
  background: #0b0e1b;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e2337;
}

.ext-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ext-logo-mark {
  width: 24px; height: 24px;
  background: var(--grad);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.ext-logo-text { font-size: 13px; font-weight: 700; color: #f1f3fb; line-height: 1.2; }
.ext-logo-sub  { font-size: 9px; color: #7b849d; }

.ext-status { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 6px var(--teal); }

.ext-tabs {
  display: flex;
  border-bottom: 1px solid #1e2337;
  background: #0b0e1b;
}
.ext-tab {
  padding: 8px 0;
  font-size: 11px;
  font-weight: 600;
  color: #7b849d;
  flex: 1;
  text-align: center;
  border-bottom: 2px solid transparent;
}
.ext-tab.active {
  color: #60a5fa;
  border-bottom-color: #2563eb;
}

.ext-body { padding: 14px; }

.ext-url {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #161928;
  border: 1px solid #1e2337;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 10px;
  color: #7b849d;
  margin-bottom: 12px;
  font-family: var(--mono);
}

.ext-btn {
  width: 100%;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 14px;
  text-align: center;
}

.ext-section { margin-bottom: 12px; }
.ext-section-hdr {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #7b849d;
  margin-bottom: 7px;
}
.ext-section-hdr.danger { color: #f87171; }
.ext-section-hdr.success { color: #34d399; }
.ext-section-hdr.warn { color: #fbbf24; }

.ext-item {
  font-size: 11px;
  color: #c5cadf;
  padding: 5px 0 5px 10px;
  border-left: 2px solid #1e2337;
  margin-bottom: 4px;
  line-height: 1.5;
}
.ext-item.danger { color: #fca5a5; border-left-color: #f87171; }
.ext-item.success { color: #6ee7b7; border-left-color: #34d399; }
.ext-item.dark { color: #fbbf24; border-left-color: #fbbf24; background: rgba(251,191,36,0.06); padding: 5px 8px; border-radius: 4px; }

/* ── SHOWCASE ── */
.showcase {
  max-width: 1100px;
  margin: 0 auto 100px;
  padding: 0 32px;
}
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 100px;
}
.showcase-row.flip { direction: rtl; }
.showcase-row.flip > * { direction: ltr; }

.showcase-text {}
.showcase-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal);
  margin-bottom: 14px;
}
.showcase-text h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin-bottom: 14px;
}
.showcase-text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
}
.showcase-bullets { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.showcase-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.showcase-bullets li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.showcase-screen {
  display: flex;
  justify-content: center;
}

/* Cookie mockup panel */
.ext-cookie-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #1a1f30;
  font-size: 11px;
}
.ext-cookie-name { color: #c5cadf; font-family: var(--mono); }
.ext-cookie-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
}
.badge-analytics { background: rgba(251,191,36,0.15); color: #fbbf24; }
.badge-tracking   { background: rgba(248,113,113,0.15); color: #f87171; }
.badge-necessary  { background: rgba(52,211,153,0.15); color: #34d399; }

.ext-verdict {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #f87171;
}

/* QA mockup */
.ext-qa-input {
  background: #161928;
  border: 1px solid #1e2337;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  color: #7b849d;
  margin-bottom: 10px;
  font-style: italic;
}
.ext-risk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ext-risk-label { font-size: 10px; color: #7b849d; }
.ext-risk-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(248,113,113,0.15);
  color: #f87171;
}
.ext-answer { font-size: 12px; color: #c5cadf; line-height: 1.6; margin-bottom: 10px; }
.ext-snippet {
  background: #161928;
  border-left: 3px solid #2563eb;
  padding: 8px 10px;
  font-size: 10px;
  color: #7b849d;
  border-radius: 0 6px 6px 0;
  font-style: italic;
}
.ext-snippet-label { font-size: 9px; font-weight: 700; color: #2563eb; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── STATS ── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0 0 100px;
}
.stat {
  background: var(--bg);
  padding: 36px 24px;
  text-align: center;
}
.stat-number {
  font-size: 40px;
  font-weight: 800;
  font-family: var(--mono);
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── SECTION WRAPPER ── */
.section {
  max-width: 960px;
  margin: 0 auto 80px;
  padding: 0 32px;
}
.section-title {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 48px;
  font-size: 15px;
}

/* ── FEATURE CARDS ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-icon { font-size: 26px; margin-bottom: 12px; }
.feature-title { font-size: 15px; font-weight: 700; margin-bottom: 7px; }
.feature-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── LANGUAGES ── */
.lang-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lang-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 13px;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.lang-pill:hover { border-color: var(--teal); color: var(--teal2); }

/* ── HOW IT WORKS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 1px;
  background: var(--border);
}
.step { text-align: center; padding: 8px 16px; }
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
  position: relative;
  z-index: 1;
}
.step-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--muted); }

/* ── RATING ── */
.rating-section { text-align: center; }
.rating-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.rating-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 48px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  min-width: 200px;
}
.rating-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(37,99,235,0.15);
  text-decoration: none;
  color: var(--text);
}
.rating-store-logo { margin-bottom: 12px; }
.rating-store-name { font-size: 13px; color: var(--muted); margin-bottom: 12px; font-weight: 500; }
.rating-stars { font-size: 24px; color: #fbbf24; letter-spacing: 2px; margin-bottom: 14px; }
.rating-cta {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 8px;
}

/* ── CTA ── */
.cta-section {
  text-align: center;
  padding: 90px 24px;
  background: linear-gradient(180deg, var(--bg-card) 0%, #0a0d1a 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.4px; position: relative; }
.cta-section p  { color: var(--muted); margin-bottom: 36px; font-size: 16px; position: relative; }

/* ── FOOTER ── */
footer {
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* ── PRIVACY PAGE ── */
.prose {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 24px 80px;
}
.prose h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.prose .updated { color: var(--muted); font-size: 13px; margin-bottom: 40px; }
.prose h2 { font-size: 20px; font-weight: 700; margin: 36px 0 12px; color: var(--teal2); }
.prose p  { color: var(--muted); margin-bottom: 14px; line-height: 1.8; }
.prose ul { color: var(--muted); padding-left: 20px; margin-bottom: 14px; line-height: 1.8; }
.prose strong { color: var(--text); }
.prose code { font-family: var(--mono); font-size: 13px; background: var(--bg-card); padding: 2px 6px; border-radius: 4px; color: var(--accent2); }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .hero-wrap { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-left p { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-browsers { text-align: center; }
  .showcase-row, .showcase-row.flip { grid-template-columns: 1fr; direction: ltr; gap: 40px; }
  .steps::before { display: none; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  nav { padding: 12px 16px; }
  .nav-links { display: none; }
  .hero-wrap { padding: 48px 20px 40px; }
  .hero-left h1 { font-size: 28px; }
  .showcase { padding: 0 20px; }
  .ext-popup { width: 300px; }
  .rating-card { padding: 24px 28px; min-width: 150px; }
}
