:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card-bg: #111827;
  --accent: #38bdf8;
  --accent-soft: rgba(56,189,248,0.12);
  --text: #f9fafb;
  --muted: #9ca3af;
  --border: #1f2937;
  --danger: #ef4444;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 18px 40px rgba(0,0,0,0.55);
  --shadow-subtle: 0 10px 25px rgba(0,0,0,0.35);
  --container-width: 1100px;
  --transition: 0.2s ease-out;
}

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

html {
  background-color: #020617;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1e293b 0, #020617 50%, #000 100%);
  color: var(--text);
  min-height: 100vh;
}

/* Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: 600;
  z-index: 9999;
  border-radius: 0 0 var(--radius) 0;
}

.skip-to-content:focus {
  top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(15,23,42,0.9), rgba(15,23,42,0.7), transparent);
  border-bottom: 1px solid rgba(148,163,184,0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: var(--shadow-subtle);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}

.logo-tagline {
  font-size: 0.78rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.main-nav a {
  color: var(--muted);
  position: relative;
  padding-bottom: 0.25rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #38bdf8, #0ea5e9);
  transition: width var(--transition);
}

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

.main-nav a:hover::after {
  width: 100%;
}

/* HERO */

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-text {
  max-width: 680px;
  text-align: left;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.hero p {
  margin: 0.2rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.hero-trust {
  font-size: 0.85rem;
  color: #cbd5f5;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(to right, #38bdf8, #0ea5e9);
  color: #0b1020;
  box-shadow: var(--shadow-soft);
  font-weight: 600;
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(8,47,73,0.9);
}

.btn.secondary {
  background: rgba(15,23,42,0.7);
  border-color: rgba(148,163,184,0.4);
  color: var(--text);
}

.btn.secondary:hover {
  background: rgba(30,64,175,0.7);
  border-color: #60a5fa;
}

.btn.full-width {
  width: 100%;
}

/* PROMOTIONS */

.promo-zone {
  margin-top: 0.85rem;
  padding: 0.72rem;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: linear-gradient(150deg, rgba(56, 189, 248, 0.17), rgba(15, 23, 42, 0.88));
}

.promo-zone[hidden] {
  display: none !important;
}

.promo-zone-top {
  margin-top: 0.45rem;
  margin-bottom: 0.75rem;
  border-color: rgba(56, 189, 248, 0.6);
}

.promo-zone-title {
  margin: 0 0 0.52rem;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: #e2e8f0;
}

.promo-stack {
  display: grid;
  gap: 0.5rem;
}

.promo-card {
  padding: 0.72rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.8);
  display: grid;
  gap: 0.46rem;
}

.promo-badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(186, 230, 253, 0.8);
  background: rgba(186, 230, 253, 0.15);
  color: #dbeafe;
  padding: 0.12rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.promo-title {
  margin: 0;
  font-size: 0.95rem;
  color: #f8fafc;
  line-height: 1.25;
}

.promo-description {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.45;
}

.promo-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.38rem;
}

.promo-price-row {
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 9px;
  background: rgba(2, 6, 23, 0.52);
  padding: 0.33rem 0.4rem;
  display: grid;
  gap: 0.1rem;
}

.promo-plan {
  color: #cbd5e1;
  font-size: 0.71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.promo-row-prices {
  display: flex;
  align-items: baseline;
  gap: 0.28rem;
}

.promo-value {
  margin-top: 0.05rem;
  display: grid;
  gap: 0.18rem;
}

.promo-before {
  color: #94a3b8;
  font-size: 0.72rem;
  text-decoration: line-through;
}

.promo-after {
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.promo-savings {
  color: #7dd3fc;
  font-size: 0.74rem;
  font-weight: 700;
}

.promo-meta {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.promo-code,
.promo-dates {
  border-radius: 999px;
  padding: 0.14rem 0.42rem;
  font-size: 0.69rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #cbd5e1;
}

.promo-code {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.11);
  font-weight: 700;
}

.promo-cta {
  margin-top: 0.05rem;
  justify-self: start;
  padding: 0.38rem 0.86rem;
  font-size: 0.78rem;
}

.promo-urgency {
  margin: 0;
  color: #fef08a;
  font-size: 0.71rem;
  font-weight: 600;
}

.promo-legal {
  margin: 0;
  color: #94a3b8;
  font-size: 0.69rem;
  line-height: 1.45;
}

.promo-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(270px, 1fr);
  gap: 0.7rem;
  align-items: center;
}

.promo-banner-main {
  display: grid;
  gap: 0.3rem;
}

.promo-banner-side {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}

.promo-banner-cta {
  font-size: 0.78rem;
  padding: 0.38rem 0.92rem;
}

@media (max-width: 760px) {
  .promo-price-grid {
    grid-template-columns: 1fr;
  }
  .promo-banner {
    grid-template-columns: 1fr;
  }
  .promo-banner-side {
    justify-items: stretch;
  }
  .promo-banner-cta {
    justify-self: start;
  }
}

/* SECTIONS */

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.section-intro {
  color: var(--muted);
  max-width: 650px;
  font-size: 0.95rem;
}

/* LAYOUTS */

.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.about-card {
  background: linear-gradient(145deg, rgba(15,23,42,0.9), rgba(15,23,42,0.7));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148,163,184,0.25);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow-subtle);
  font-size: 0.9rem;
}

.about-card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
}

.about-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-card li {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

/* PRODUCT CARD */

.product-card {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  gap: 1.8rem;
  padding: 1.6rem;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.12), rgba(15,23,42,0.95));
  border-radius: 20px;
  border: 1px solid rgba(148,163,184,0.25);
  box-shadow: var(--shadow-soft);
}

.product-main h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.4rem;
}

.product-title-with-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.product-logo {
  width: 70px;
  height: 70px;
}

.product-tagline {
  color: #e5e7eb;
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.product-main p {
  color: var(--muted);
  font-size: 0.93rem;
}

.product-features {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}

.product-features li::before {
  content: "•";
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1.2;
}

.product-side {
  background: rgba(15,23,42,0.95);
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.35);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
}

.price-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.product-actions {
  margin-top: 0.4rem;
}

.payment-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.trust-box {
  margin-top: auto;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: rgba(15,23,42,0.9);
  border: 1px dashed rgba(148,163,184,0.4);
  font-size: 0.85rem;
  color: #e5e7eb;
}

.coming-soon {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* PROCESS */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.3rem;
  margin-top: 1.5rem;
}

.step {
  background: rgba(15,23,42,0.9);
  border-radius: var(--radius-lg);
  padding: 1rem 1rem 1.1rem;
  border: 1px solid rgba(148,163,184,0.25);
  box-shadow: var(--shadow-subtle);
  font-size: 0.9rem;
}

.step-number {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

/* CONTACT */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.contact-list li {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.contact-list a {
  color: #bfdbfe;
}

.contact-box {
  background: rgba(15,23,42,0.95);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148,163,184,0.3);
  padding: 1.4rem 1.3rem;
  font-size: 0.9rem;
  box-shadow: var(--shadow-subtle);
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(15,23,42,0.9);
  background: #020617;
  padding: 1.2rem 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: #93c5fd;
}

/* RESPONSIVE */

@media (max-width: 800px) {
  .header-content {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }

  .main-nav {
    flex-wrap: wrap;
    font-size: 0.85rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .two-cols,
  .product-card {
    grid-template-columns: 1fr;
  }

  .product-side {
    order: -1;
  }
}

/* MOBILE FIXES (footer + lisibilité) */

@media (max-width: 700px) {

  .section {
    padding: 2.5rem 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-box {
    margin-top: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .footer-links a {
    display: inline-block;
  }
}

/* FAQ STYLES */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 2rem auto 0;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-subtle);
}

.faq-item summary {
  font-size: 1.1rem;
  color: var(--text);
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::before {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item[open] summary::before {
  content: '−';
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 2.5rem;
  overflow: hidden; /* Essential for height animation */
}

.faq-item a {
  color: var(--accent);
  text-decoration: underline;
}

/* TESTIMONIALS STYLES */
.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-subtle);
  transform: translateY(-2px);
}

.testimonial-header {
  margin-bottom: 1rem;
}

.testimonial-rating {
  color: #fbbf24;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.testimonial-author {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.testimonial-role {
  color: var(--muted);
  font-size: 0.9rem;
}

.testimonial-text {
  color: var(--muted);
  line-height: 1.7;
  font-style: italic;
}

/* ANONYMIZATION DEMO ANIMATION */
.hero-visual {
  flex: 1;
  min-width: 300px;
  max-width: 480px;
  perspective: 1000px;
}

.anon-demo-window {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e2e8f0;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  overflow: hidden;
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.anon-demo-window:hover {
  transform: rotateY(0) rotateX(0);
}

.anon-demo-window::before {
  content: "ANONIMYZER_PREVIEW.PDF";
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.anon-demo-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.anon-demo-logo {
  width: 28px;
  height: 28px;
}

.anon-demo-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
  opacity: 0.8; 
  pointer-events: none;
  z-index: 10;
  animation: scanMove 3s linear infinite;
}

@keyframes scanMove {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.sensitive {
  position: relative;
  padding: 0 2px;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}

/* Fallback animation if JS fails */
@keyframes autoRedact {
  0%, 30% { 
    background: transparent;
    color: inherit;
    border-color: transparent;
    box-shadow: none;
  }
  35%, 55% { 
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
    color: #fca5a5;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
  }
  60%, 100% { 
    background: #000;
    color: #000;
    border-color: transparent;
    box-shadow: none;
  }
}

/* If JS is active, these classes take over */
.js-active .sensitive {
  animation: none !important;
}

.sensitive:nth-of-type(1) { animation: autoRedact 3s infinite; animation-delay: 0.5s; }
.sensitive:nth-of-type(2) { animation: autoRedact 3s infinite; animation-delay: 1.0s; }
.sensitive:nth-of-type(3) { animation: autoRedact 3s infinite; animation-delay: 1.5s; }
.sensitive:nth-of-type(4) { animation: autoRedact 3s infinite; animation-delay: 2.0s; }
.sensitive:nth-of-type(5) { animation: autoRedact 3s infinite; animation-delay: 2.5s; }

.sensitive.is-detected {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--danger);
  color: #fca5a5;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.sensitive.is-redacted {
  background: #000;
  color: #000; /* Hide text */
  border-color: transparent;
  box-shadow: none;
  cursor: help;
}

.sensitive.is-redacted:hover {
  /* Optional: Peek on hover for demo purposes? No, keep it secret */
  background: #0f172a;
}

/* RESPONSIVE UPDATES */
@media (max-width: 800px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text {
    text-align: center;
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .app-switch {
    justify-content: center;
  }
  
  .hero-visual {
    width: 100%;
    margin-top: 2rem;
    transform: none; /* Disable 3D effect on mobile for simplicity */
  }
  
  .anon-demo-window {
    transform: none;
  }
}

