/* crash tested, mother approved */
/* ============================================
   AI Detector Pro — Landing Page Styles
   Clean dark theme with green accents
   ============================================ */

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

:root {
  --bg-body: #0a1a0f;
  --bg-card: #112a17;
  --bg-alt: #0d2013;
  --text: #e8f5e9;
  --text-secondary: #b9dbb5;
  --text-muted: #78a378;
  --accent: #6abf40;
  --accent-hover: #8cd867;
  --accent-purple: #a37be0;
  --neon-purple: #bf00ff;
  --border: #1e4a28;
  --border-light: #2d6b3a;
  --green-dark: #2e7d32;
  --green-darker: #1b5e20;
  --header-bg: rgba(10, 26, 15, 0.85);
  --heading-color: #fff;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] {
  --bg-body: #f7faf7;
  --bg-card: #ffffff;
  --bg-alt: #eef4ee;
  --text: #1a2e1a;
  --text-secondary: #3d5a3d;
  --text-muted: #6a8a6a;
  --accent: #2e7d32;
  --accent-hover: #1b5e20;
  --accent-purple: #7c3aed;
  --neon-purple: #9d00cc;
  --border: #d4e6d4;
  --border-light: #b8d4b8;
  --green-dark: #2e7d32;
  --green-darker: #1b5e20;
  --header-bg: rgba(247, 250, 247, 0.9);
  --heading-color: #1a2e1a;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ---- Subtle gradient background ---- */
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-body);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(46, 125, 50, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 85% 30%, rgba(106, 191, 64, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(27, 94, 32, 0.08) 0%, transparent 55%);
}

[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(46, 125, 50, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 85% 30%, rgba(106, 191, 64, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(27, 94, 32, 0.04) 0%, transparent 55%);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--neon-purple); }

/* ---- Header ---- */
.site-header {
  padding: 1rem 0;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.logo-link:hover { color: var(--text); }
.logo-img { border-radius: 6px; }
.header-nav { display: flex; align-items: center; gap: 1.5rem; font-size: 0.95rem; }
.header-nav a { color: var(--text-muted); transition: color 0.2s; }
.header-nav a:hover { color: var(--neon-purple); }
.nav-login-link {
  color: var(--accent) !important;
  font-weight: 600;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0.3rem 0.9rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-login-link:hover {
  background: var(--accent);
  color: var(--bg) !important;
  border-color: var(--accent);
}

/* ---- Hamburger Menu ---- */
.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 1.4rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  line-height: 1;
  transition: border-color 0.2s, background 0.2s;
}
.hamburger:hover {
  border-color: var(--neon-purple);
  background: rgba(191, 0, 255, 0.08);
}
.nav-links { display: contents; }

/* ---- Theme Toggle ---- */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.3rem 0.5rem;
  line-height: 1;
  transition: border-color 0.2s, background 0.2s;
}
.theme-toggle:hover {
  border-color: var(--accent);
  background: rgba(106, 191, 64, 0.08);
}

/* ---- Hero ---- */
.hero {
  padding: 5rem 0 2rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
  color: var(--heading-color);
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 2rem;
}

/* ---- CTA Button ---- */
.cta-btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(46, 125, 50, 0.4), 0 0 20px rgba(75, 0, 130, 0.15);
}
.cta-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(191, 0, 255, 0.3), 0 0 16px rgba(191, 0, 255, 0.2);
  outline: 2px solid var(--neon-purple);
  outline-offset: 2px;
}
.cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 6px rgba(46, 125, 50, 0.3);
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-jurisdiction {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ---- Mission statement ---- */
.mission-section {
  padding-top: 0;
  padding-bottom: 0;
}
.mission-statement {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  border-left: 3px solid var(--accent);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  background: rgba(106, 191, 64, 0.04);
  border-radius: 0 6px 6px 0;
}

/* ---- Tight top for section directly after hero ---- */
.section-tight-top {
  padding-top: 1.5rem;
}

/* ---- Mid-page CTA sections ---- */
.mid-cta-section {
  padding: 1.5rem 0;
}

/* ---- Use Cases (reuses .problem-card styles) ---- */

/* ---- Legal Page CTA ---- */
.legal-cta {
  text-align: center;
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}
.legal-cta p {
  color: var(--text-secondary) !important;
  font-size: 1.05rem !important;
  margin: 0 0 1.25rem;
}
.legal-cta .cta-btn {
  font-size: 1rem;
  padding: 0.75rem 2rem;
}
.legal-cta .legal-cta-sub {
  margin-top: 0.75rem;
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
}
.legal-cta .legal-cta-sub a {
  color: var(--accent);
}

/* ---- Sections ---- */
.section {
  padding: 4rem 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section h2 {
  text-align: center;
  font-size: 2rem;
  margin: 0 0 2.5rem;
  color: var(--heading-color);
}

/* ---- Card Links (shared by problem cards, feature cards, etc.) ---- */
.problem-grid,
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.problem-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.problem-card,
.feature {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s, border-radius 0.2s, transform 0.15s, background 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}
.problem-card:hover,
.feature:hover {
  border-color: var(--neon-purple);
  border-radius: 0;
  background: linear-gradient(to bottom, rgba(191, 0, 255, 0.04), var(--bg-card));
  transform: translateY(-2px);
  color: inherit;
  box-shadow: 0 0 12px rgba(191, 0, 255, 0.15);
}
.problem-icon,
.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.problem-card h3,
.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--heading-color);
  transition: color 0.2s;
}
.problem-card:hover h3,
.feature:hover h3 {
  color: var(--neon-purple);
}
.problem-card p,
.feature p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---- Steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  text-align: center;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.step h3 {
  margin: 0 0 0.5rem;
  color: var(--heading-color);
  font-size: 1.1rem;
}
.step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---- Features (styles shared with .problem-card above) ---- */

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.price-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s, transform 0.15s;
}
.price-card:hover {
  border-color: var(--neon-purple);
  border-radius: 12px;
  transform: translateY(-4px);
  box-shadow: 0 0 12px rgba(191, 0, 255, 0.25);
}
.price-card.featured {
  border-color: var(--accent);
}
.price-card.featured:hover {
  border-color: var(--neon-purple);
}
.price-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: #0a1a0f;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-bottom-left-radius: 8px;
}
.price-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.price-header h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--heading-color);
}
.price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}
.price .price-strike {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 400;
  margin-right: 0.35rem;
}
.price .price-strike span {
  font-size: 0.7rem;
}
.beta-pricing-note {
  text-align: center;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}
.price-features {
  list-style: none;
  margin: 0;
  padding: 1.25rem 1.5rem;
}
.price-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.price-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.price-cta {
  display: block;
  margin: 0 1.5rem 1.5rem;
  padding: 0.7rem;
  text-align: center;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}
.price-cta:hover {
  background: rgba(191, 0, 255, 0.06);
  border-color: var(--neon-purple);
  border-radius: 0;
  color: var(--accent);
  box-shadow: 0 0 8px rgba(191, 0, 255, 0.15);
}
.price-cta.cta-featured {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}
.price-cta.cta-featured:hover {
  background: var(--green-darker);
  border-color: var(--green-darker);
}
.price-card.pro {
  border-color: var(--accent-purple, #a37be0);
}
.pro-badge {
  background: var(--accent-purple, #a37be0) !important;
}
.price-cta.cta-pro-disabled {
  display: block;
  text-align: center;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--accent-purple, #a37be0);
  color: #fff;
  opacity: 0.5;
  cursor: not-allowed;
  border: 1px solid transparent;
}

/* ---- CTA Section ---- */
.cta-section {
  border-top: 1px solid var(--border);
}

/* ---- Footer ---- */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}
.footer-brand img { border-radius: 4px; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--neon-purple); }
.footer-disclaimer {
  max-width: 640px;
  margin: 0 auto 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.footer-copy {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---- Light mode overrides ---- */
[data-theme="light"] .price-badge {
  color: #fff;
}
[data-theme="light"] .site-header {
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
[data-theme="light"] .price-card {
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
[data-theme="light"] .problem-card,
[data-theme="light"] .feature {
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* ---- Blog Layout ---- */
.blog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  max-width: 1080px;
  align-items: start;
}

.blog-sidebar {
  position: sticky;
  top: 5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 0;
}
.blog-sidebar h4 {
  margin: 0 0 0.5rem;
  padding: 0 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.blog-sidebar-link {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}
.blog-sidebar-link:hover {
  background: rgba(191, 0, 255, 0.06);
  color: var(--neon-purple);
}
.blog-sidebar-link.active {
  color: var(--accent);
  font-weight: 600;
  border-left: 3px solid var(--accent);
  padding-left: calc(1rem - 3px);
}

/* Blog prev/next navigation */
.blog-prevnext {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.blog-prevnext a {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  max-width: 48%;
  line-height: 1.4;
}
.blog-prevnext a:hover {
  border-color: var(--neon-purple);
  color: var(--neon-purple);
}
.blog-prevnext .blog-next {
  margin-left: auto;
  text-align: right;
}
.blog-prevnext-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

/* Blog index card grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, border-radius 0.2s, transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
  border-color: var(--neon-purple);
  border-radius: 0;
  background: linear-gradient(to bottom, rgba(191, 0, 255, 0.04), var(--bg-card));
  transform: translateY(-2px);
  color: inherit;
  box-shadow: 0 0 12px rgba(191, 0, 255, 0.15);
}
.blog-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--heading-color);
  transition: color 0.2s;
}
.blog-card:hover h3 {
  color: var(--neon-purple);
}
.blog-card p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.blog-card .blog-card-link {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}
.blog-card-category {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: rgba(106, 191, 64, 0.1);
  border-radius: 4px;
}

/* Mobile blog sidebar toggle */
.blog-sidebar-toggle {
  display: none;
  width: 100%;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.blog-sidebar-toggle:hover {
  border-color: var(--neon-purple);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .blog-sidebar {
    display: none;
    position: static;
    margin-bottom: 1.5rem;
  }
  .blog-sidebar.open { display: block; }
  .blog-sidebar-toggle { display: block; }
  .blog-prevnext { flex-direction: column; }
  .blog-prevnext a { max-width: 100%; }
}

@media (max-width: 640px) {
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 3rem 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }

  /* Hamburger menu on mobile */
  .hamburger { display: block; }
  .header-nav { position: relative; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.5rem 0;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 200;
  }
  .nav-links.open { display: flex; }
  .nav-links a,
  .nav-links .theme-toggle {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--text);
    font-size: 0.95rem;
    text-align: left;
    transition: background 0.15s, color 0.15s;
    border: none;
    width: 100%;
  }
  .nav-links a:hover,
  .nav-links .theme-toggle:hover {
    background: rgba(191, 0, 255, 0.08);
    color: var(--neon-purple);
  }
  .nav-links .theme-toggle {
    cursor: pointer;
    background: none;
    border-radius: 0;
    line-height: 1.4;
  }
}
