/* ==========================================================================
   CyberKarange — Landing page styles
   ========================================================================== */

:root {
  --brand-800: #1e3a8a;
  --brand-700: #1d4ed8;
  --brand-600: #2563eb;
  --brand-500: #3b82f6;
  --brand-400: #60a5fa;
  --brand-100: #dbeafe;
  --brand-50: #eff6ff;

  --ink-900: #0b1324;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;

  --bg: #f7f9fc;
  --white: #ffffff;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);

  --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.55;
}

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

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

a { color: inherit; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-100);
  padding: 6px 14px;
  border-radius: 999px;
}

.section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  margin-top: 14px;
}

.section-head p {
  color: var(--ink-500);
  font-size: 17px;
  margin-top: 14px;
}

.section-alt { background: var(--white); }

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--white);
  color: var(--brand-700);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover { box-shadow: var(--shadow-lg); }

.btn-solid {
  background: var(--brand-600);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.btn-solid:hover { background: var(--brand-700); }

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

.btn-ghost {
  background: var(--brand-50);
  color: var(--brand-700);
  border-color: var(--brand-100);
}

.btn-ghost:hover { background: var(--brand-100); }

.btn-block { width: 100%; }

/* Navbar ------------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 252, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-logo img { height: 54px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-700);
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--brand-700); }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

/* Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-700) 45%, var(--brand-500) 100%);
  color: var(--white);
  padding: 96px 0 110px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.hero .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  font-weight: 800;
  margin-top: 22px;
  letter-spacing: -0.02em;
}

.hero h1 span { color: var(--brand-100); }

.hero p.lead {
  font-size: 19px;
  color: var(--brand-100);
  max-width: 620px;
  margin: 22px auto 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 38px;
  flex-wrap: wrap;
}

/* Problem / why section --------------------------------------------------- */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.problem-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.problem-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-100);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.problem-card h3 { font-size: 18px; font-weight: 700; }
.problem-card p { color: var(--ink-500); margin-top: 10px; font-size: 15px; }

/* Feature grid ------------------------------------------------------------ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card .icon.icon-emoji {
  font-size: 22px;
  line-height: 1;
}

.feature-card h3 { font-size: 17px; font-weight: 700; }
.feature-card p { color: var(--ink-500); margin-top: 8px; font-size: 14.5px; }

/* Steps --------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px 22px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.step .step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-600);
  color: var(--white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 15px;
}

.step h3 { font-size: 16.5px; font-weight: 700; }
.step p { color: var(--ink-500); margin-top: 8px; font-size: 14px; }

/* Pricing --------------------------------------------------------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-card.featured {
  border: 2px solid var(--brand-600);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--brand-600);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-badge.subtle {
  position: static;
  display: inline-block;
  background: var(--brand-100);
  color: var(--brand-700);
  margin-bottom: 14px;
  white-space: normal;
}

.plan-target {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.plan-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-top: 8px;
}

.plan-audience {
  color: var(--ink-500);
  font-size: 14px;
  margin-top: 6px;
}

.plan-price {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-amount {
  font-size: 30px;
  font-weight: 800;
  color: var(--brand-700);
  letter-spacing: -0.01em;
}

.price-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-500);
}

.price-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  margin-top: 8px;
}

.price-alt {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-500);
  margin-top: 4px;
}

.plan-footnote {
  font-size: 12.5px;
  color: var(--ink-500);
  text-align: center;
  margin-top: 14px;
}

.plan-footnote a {
  color: var(--brand-700);
  font-weight: 700;
  text-decoration: none;
}

.plan-features {
  list-style: none;
  margin: 22px 0 28px;
  padding: 0;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-700);
  padding: 7px 0;
}

.plan-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--brand-600);
}

/* Freemium banner --------------------------------------------------------- */

.freemium {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(120deg, var(--brand-50), var(--white));
  border: 1px dashed var(--brand-300, var(--brand-400));
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  flex-wrap: wrap;
}

.freemium h3 { font-size: 19px; font-weight: 800; }
.freemium p { color: var(--ink-500); margin-top: 8px; font-size: 14.5px; max-width: 480px; }

.freemium-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.freemium-tags span {
  background: var(--white);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}

/* Addons (Personnalisez votre protection) ----------------------------------- */

.addons {
  margin-top: 28px;
  text-align: center;
}

.addons h3 { font-size: 17px; font-weight: 700; color: var(--ink-700); }
.addons > p { color: var(--ink-500); font-size: 13.5px; margin-top: 6px; }

.addons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
  align-items: stretch;
}

.addon-chip {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.addon-chip span {
  display: block;
  font-size: 14px;
  color: var(--ink-900);
  font-weight: 700;
  margin-bottom: 8px;
}

.addon-chip p {
  font-size: 12.5px;
  color: var(--ink-500);
  line-height: 1.5;
  margin: 0 0 16px;
  flex-grow: 1;
}

.addon-chip strong {
  font-size: 16px;
  color: var(--brand-700);
  font-weight: 800;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.addons-cta {
  display: table;
  margin: 28px auto 0;
}

/* Commercial band ------------------------------------------------------------ */

.commercial-band {
  background: var(--brand-50);
  border-bottom: 1px solid var(--brand-100);
  padding: 56px 0;
}

.commercial-inner { text-align: center; }

.commercial-stats {
  display: flex;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.commercial-stats div { text-align: center; max-width: 160px; }

.commercial-stats strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-700);
}

.commercial-stats span {
  font-size: 13px;
  color: var(--ink-500);
}

.commercial-band .btn-ghost {
  background: var(--white);
  box-shadow: var(--shadow-md);
}

/* FAQ --------------------------------------------------------------------- */

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  padding: 4px 24px;
  margin-bottom: 14px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 700;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--brand-600);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  color: var(--ink-500);
  font-size: 14.5px;
  margin: 0 0 20px;
}

/* Team ---------------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
}

.team-card {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.team-avatar {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.25);
}

.team-avatar span {
  color: var(--white);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.team-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  box-shadow: var(--shadow-md);
}

.team-card h3 { font-size: 18px; font-weight: 800; }

.team-title {
  color: var(--ink-900);
  font-weight: 700;
  font-size: 14.5px;
  margin-top: 8px;
}

.team-role {
  color: var(--brand-700);
  font-weight: 600;
  font-size: 13px;
  margin-top: 4px;
}

.team-bio {
  color: var(--ink-500);
  font-size: 14.5px;
  margin-top: 12px;
}

/* Final CTA ----------------------------------------------------------------- */

.cta-final {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  color: var(--white);
}

.cta-final h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; }
.cta-final p { color: var(--brand-100); margin-top: 12px; font-size: 16px; }
.cta-final .hero-actions { margin-top: 30px; }

/* Contact ------------------------------------------------------------------- */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 { font-size: 22px; font-weight: 800; }
.contact-info p { color: var(--ink-500); margin-top: 12px; font-size: 15px; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-weight: 600;
  font-size: 15px;
}

.contact-detail .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-100);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink-700);
}

.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink-300);
  font-family: inherit;
  font-size: 14.5px;
  background: var(--bg);
}

.field textarea { resize: vertical; min-height: 110px; }

.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--brand-400);
  outline-offset: 1px;
}

.form-note {
  font-size: 12.5px;
  color: var(--ink-500);
  margin-top: 14px;
  text-align: center;
}

/* Footer ------------------------------------------------------------------ */

.footer {
  background: var(--ink-900);
  color: var(--ink-300);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand img { height: 44px; border-radius: 8px; }
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.7; color: #94a3b8; max-width: 280px; }

.footer h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a { text-decoration: none; color: #94a3b8; font-size: 14px; transition: color 0.15s ease; }
.footer a:hover { color: var(--white); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #64748b;
}

/* Responsive ---------------------------------------------------------------- */

@media (max-width: 960px) {
  .problem-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .commercial-stats { gap: 28px; }
  .addons-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-links a { display: block; padding: 12px 0; width: 100%; }

  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
  }

  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink-900);
    position: relative;
    transition: transform 0.2s ease;
  }

  .nav-toggle-label span::before { position: absolute; top: -7px; }
  .nav-toggle-label span::after { position: absolute; top: 7px; }

  .nav-toggle:checked ~ .nav-links {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-cta .btn-solid { display: none; }

  .problem-grid, .features-grid, .steps { grid-template-columns: 1fr; }

  .freemium { flex-direction: column; align-items: flex-start; }

  .addons-grid { grid-template-columns: 1fr; }
  .commercial-stats { gap: 20px; }
  .price-main { justify-content: center; }
  .plan-price { text-align: center; }

  .footer-grid { grid-template-columns: 1fr; }
}

/* Legal pages ---------------------------------------------------------------- */

.legal-container {
  max-width: 760px;
}

.legal-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  margin-top: 14px;
}

.legal-updated {
  color: var(--ink-500);
  font-size: 13.5px;
  margin-top: 10px;
}

.legal-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-top: 28px;
}

.legal-banner strong {
  color: #92400e;
  font-size: 14.5px;
}

.legal-banner p {
  color: #92400e;
  font-size: 13.5px;
  margin-top: 6px;
}

.legal-content { margin-top: 40px; }

.legal-content h2 {
  font-size: 19px;
  font-weight: 800;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  color: var(--ink-700);
  font-size: 15px;
  margin-top: 10px;
}

.legal-content ul {
  margin: 10px 0;
  padding-left: 20px;
  color: var(--ink-700);
  font-size: 15px;
}

.legal-content li { margin: 6px 0; }

.legal-content a {
  color: var(--brand-700);
  font-weight: 600;
}

.legal-flag {
  background: #fffbeb;
  color: #92400e;
  padding: 1px 4px;
  border-radius: 4px;
}

/* Contact form anti-spam ------------------------------------------------------ */

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600;
  margin: -8px 0 14px;
}

.form-success {
  color: #15803d;
}

#submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
