:root {
  --ink: #060812;
  --ink-2: #0d1222;
  --panel: #111827;
  --line: rgba(148, 163, 184, 0.2);
  --line-strong: rgba(34, 211, 238, 0.32);
  --paper: #f5f8fb;
  --white: #ffffff;
  --muted: #6b7280;
  --soft: #d8e2ee;
  --cyan: #22d3ee;
  --blue: #2f6bff;
  --green: #22c55e;
  --violet: #8b5cf6;
  --rose: #fb7185;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.18);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

button,
input,
select {
  font: inherit;
}

.hidden {
  display: none !important;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 18px clamp(20px, 5vw, 72px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.topbar-dark {
  background: rgba(6, 8, 18, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  color: #fff;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 850;
  gap: 12px;
  letter-spacing: 0;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.16), rgba(47, 107, 255, 0.12));
  border: 1px solid rgba(34, 211, 238, 0.55);
  color: #fff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.nav-links {
  align-items: center;
  color: rgba(255, 255, 255, 0.74);
  display: flex;
  font-size: 0.94rem;
  gap: 24px;
}

.button,
.icon-button {
  align-items: center;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 9px;
  justify-content: center;
  min-height: 42px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button {
  border-radius: var(--radius);
  padding: 0 16px;
}

.button svg,
.icon-button svg,
.side-nav svg,
.signal-card svg,
.auth-proof svg {
  height: 18px;
  width: 18px;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 44px rgba(47, 107, 255, 0.34);
  color: #fff;
}

.button-dark {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}

.site-shell {
  background: var(--ink);
}

.ai-hero {
  background:
    radial-gradient(circle at 8% 18%, rgba(139, 92, 246, 0.24), transparent 24%),
    radial-gradient(circle at 88% 16%, rgba(34, 211, 238, 0.28), transparent 24%),
    linear-gradient(135deg, #060812 0%, #0d1222 48%, #05111d 100%);
  color: #fff;
  min-height: 94vh;
  overflow: hidden;
  padding: 128px clamp(20px, 5vw, 72px) 56px;
  position: relative;
}

.hero-canvas,
.hero-noise {
  inset: 0;
  position: absolute;
}

.hero-canvas {
  height: 100%;
  opacity: 0.68;
  width: 100%;
}

.hero-noise {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 92%);
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(30px, 5vw, 80px);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.62fr);
  min-height: calc(94vh - 184px);
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero-copy-block h1 {
  font-size: clamp(3.8rem, 7.6vw, 7.7rem);
  line-height: 0.9;
  margin: 0;
  max-width: 980px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.08rem, 1.5vw, 1.36rem);
  line-height: 1.65;
  margin: 28px 0;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-intel-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)),
    rgba(6, 8, 18, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  padding: 22px;
  backdrop-filter: blur(20px);
}

.intel-card-header {
  align-items: center;
  display: flex;
  gap: 10px;
}

.intel-card-header strong {
  color: var(--cyan);
  font-size: 2rem;
  margin-left: auto;
}

.live-dot,
.pulse {
  background: var(--green);
  border-radius: 99px;
  box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.14);
  display: inline-block;
  height: 9px;
  width: 9px;
}

.intel-chart {
  align-items: end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(7, 1fr);
  height: 210px;
  margin: 28px 0;
}

.intel-chart span {
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  border-radius: 5px 5px 0 0;
  height: var(--h);
  min-height: 22px;
}

.intel-list {
  display: grid;
  gap: 10px;
}

.intel-list div {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  padding: 12px;
}

.intel-list span {
  color: rgba(255, 255, 255, 0.62);
}

.section {
  padding: 84px clamp(20px, 5vw, 72px);
}

.platform-section,
.plan-section {
  background: #fff;
}

.signal-section {
  background: #07101d;
  color: #fff;
}

.section-heading {
  margin-bottom: 30px;
  max-width: 820px;
}

.section-heading h2,
.plan-section h2 {
  font-size: clamp(2rem, 4.4vw, 4.8rem);
  line-height: 0.98;
  margin: 0;
}

.platform-preview {
  background: #07101d;
  border: 1px solid rgba(34, 211, 238, 0.24);
  box-shadow: var(--shadow);
  color: #fff;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 420px;
  overflow: hidden;
}

.preview-sidebar {
  background: rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px;
}

.preview-sidebar span,
.preview-toolbar span,
.preview-toolbar strong {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  min-height: 42px;
}

.preview-sidebar span {
  background: rgba(255, 255, 255, 0.08);
}

.preview-main {
  display: grid;
  gap: 18px;
  grid-template-rows: auto 1fr;
  padding: 24px;
}

.preview-toolbar {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 0.35fr 0.42fr 0.32fr;
}

.preview-toolbar span,
.preview-toolbar strong {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  padding: 0 14px;
}

.preview-toolbar strong {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  justify-content: center;
}

.preview-table {
  display: grid;
  gap: 12px;
}

.preview-table div {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: grid;
  gap: 14px;
  grid-template-columns: 80px 1fr 120px;
  min-height: 72px;
  padding: 0 18px;
}

.preview-table strong {
  color: var(--cyan);
  font-size: 2rem;
}

.preview-table em {
  color: rgba(255, 255, 255, 0.58);
  font-style: normal;
}

.signal-grid,
.plan-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.signal-card,
.plan-card {
  border-radius: var(--radius);
  padding: 24px;
}

.signal-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.signal-card svg {
  color: var(--cyan);
}

.signal-card h3,
.plan-card h3 {
  margin: 18px 0 8px;
}

.signal-card p,
.plan-card p {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
}

.plan-section {
  align-items: center;
  display: grid;
  gap: 32px;
  grid-template-columns: 0.9fr 1.1fr;
}

.plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-card {
  background: #f7fafc;
  border: 1px solid #dbe6f2;
}

.plan-card span {
  color: var(--blue);
  font-weight: 900;
}

.plan-card strong {
  display: block;
  font-size: 3.4rem;
  margin: 12px 0;
}

.plan-card p {
  color: var(--muted);
}

.plan-card-pro {
  background: #07101d;
  border-color: rgba(34, 211, 238, 0.3);
  color: #fff;
}

.premium-footer {
  align-items: center;
  background: #050713;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.68);
  display: flex;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 72px);
}

.premium-app {
  background: #eef3f8;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.premium-sidebar {
  background: #060812;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 100vh;
  padding: 24px;
  position: sticky;
  top: 0;
}

.side-nav {
  display: grid;
  gap: 9px;
}

.side-nav button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.66);
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  text-align: left;
}

.side-nav button.active,
.side-nav button:hover {
  background: rgba(34, 211, 238, 0.09);
  border-color: rgba(34, 211, 238, 0.28);
  color: #fff;
}

.sidebar-insight {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.11), rgba(47, 107, 255, 0.08));
  border: 1px solid rgba(34, 211, 238, 0.18);
  margin-top: auto;
  padding: 16px;
}

.sidebar-insight span,
.metric span,
.metric em {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
}

.sidebar-insight strong {
  color: var(--cyan);
  display: block;
  font-size: 1.6rem;
  margin: 6px 0;
}

.sidebar-insight p {
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.45;
  margin: 0;
}

.dashboard-main {
  min-width: 0;
  padding: 28px;
}

.premium-dashboard-header {
  align-items: start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.premium-dashboard-header h1 {
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.94;
  margin: 0;
}

.premium-dashboard-header p:not(.eyebrow),
.auth-copy p {
  color: var(--muted);
  line-height: 1.55;
  margin: 12px 0 0;
}

.user-box {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe5f0;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  min-height: 54px;
  padding: 8px 10px 8px 16px;
}

.icon-button {
  background: #edf4fb;
  color: var(--ink);
  height: 38px;
  width: 38px;
}

.premium-auth {
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.13), transparent 28%),
    #fff;
  border: 1px solid #dbe5f0;
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.1fr);
  padding: 28px;
}

.auth-copy h2 {
  font-size: clamp(2.4rem, 4.5vw, 4.8rem);
  line-height: 0.96;
  margin: 0;
}

.auth-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.auth-proof span {
  align-items: center;
  background: #eef6fb;
  border: 1px solid #d8e7f3;
  color: #263244;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 800;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
}

.auth-forms {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #dce7f2;
  display: grid;
  gap: 14px;
  padding: 22px;
}

.form-panel h3 {
  font-size: 1.4rem;
  margin: 0 0 10px;
}

label {
  color: #1d2939;
  display: grid;
  font-size: 0.86rem;
  font-weight: 850;
  gap: 7px;
}

input,
select {
  background: #fff;
  border: 1px solid #cbd8e5;
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 46px;
  min-width: 0;
  outline: none;
  padding: 0 12px;
}

input:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.13);
}

.premium-metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 16px;
}

.metric {
  background: #fff;
  border: 1px solid #dbe5f0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  padding: 18px;
}

.metric strong {
  display: block;
  font-size: 2.4rem;
  margin: 8px 0 2px;
}

.premium-tool {
  background: #fff;
  border: 1px solid #dbe5f0;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  padding: 0;
}

.tool-header {
  align-items: center;
  border-bottom: 1px solid #e2eaf3;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px 20px;
}

.tool-header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.tool-status {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.92rem;
  gap: 10px;
}

.premium-search {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1.25fr) 0.46fr 0.5fr minmax(180px, 0.9fr) 0.62fr 0.62fr auto;
  padding: 18px 20px;
}

.alert-toolbar {
  grid-template-columns: minmax(220px, 1.2fr) 0.44fr minmax(180px, 0.9fr) 0.44fr auto;
}

.toggle-label {
  align-items: center;
  background: #f7fbff;
  border: 1px solid #cbd8e5;
  border-radius: var(--radius);
  display: flex;
  flex-direction: row;
  gap: 9px;
  min-height: 46px;
  padding: 0 12px;
}

.toggle-label input {
  accent-color: var(--cyan);
  min-height: auto;
  width: 16px;
}

.premium-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 20px 20px;
}

.ad-card,
.product-card {
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.055), transparent 46%),
    #fff;
  border: 1px solid #dbe5f0;
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
}

.ad-topline {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.score-badge {
  align-items: center;
  background: #060812;
  color: var(--cyan);
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  min-width: 48px;
}

.score-badge.mini {
  height: 40px;
  min-width: 40px;
}

.ad-card h3,
.product-card h3 {
  font-size: 1rem;
  line-height: 1.25;
  margin: 0;
  overflow-wrap: anywhere;
}

.ad-card p,
.product-card p {
  color: var(--muted);
  line-height: 1.48;
  margin: 0;
}

.trend-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.trend-row strong {
  color: #0f172a;
  font-size: 0.86rem;
}

.trend-status {
  background: #eef5fb;
  border: 1px solid #d8e6f2;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 8px;
  text-transform: uppercase;
}

.trend-status[data-status="chaud"] {
  background: rgba(255, 176, 32, 0.13);
  border-color: rgba(255, 176, 32, 0.38);
  color: #9a5b00;
}

.trend-status[data-status="très chaud"] {
  background: rgba(251, 113, 133, 0.13);
  border-color: rgba(251, 113, 133, 0.42);
  color: #be123c;
}

.trend-status[data-status="moyen"] {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.34);
  color: #0e7490;
}

.landing-panel {
  background: #f8fbff;
  border: 1px solid #dce8f3;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.landing-panel div {
  background: #fff;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px;
}

.landing-panel div:first-child,
.landing-panel div:last-child {
  grid-column: span 2;
}

.landing-panel span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.landing-panel strong {
  color: #0f172a;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
  text-transform: none;
}

.tag-row,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.alerts-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 20px 20px;
}

.alert-card {
  background: #fff;
  border: 1px solid #dbe5f0;
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
}

.alert-card h3 {
  margin: 0;
}

.alert-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.alert-detections {
  background: #f8fbff;
  border: 1px solid #dce8f3;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.alert-detection {
  align-items: center;
  background: #fff;
  border: 1px solid #e4edf5;
  display: flex;
  gap: 10px;
  padding: 10px;
}

.tag {
  background: #eef5fb;
  border: 1px solid #d8e6f2;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 850;
  padding: 6px 8px;
}

.small-button {
  background: #f7fafc;
  border: 1px solid #d8e5f0;
  color: var(--ink);
  min-height: 36px;
  padding: 0 10px;
}

@media (max-width: 1180px) {
  .hero-grid,
  .plan-section,
  .premium-auth {
    grid-template-columns: 1fr;
  }

  .signal-grid,
  .premium-grid,
  .alerts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-search {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar {
    position: static;
  }

  .nav-links {
    display: none;
  }

  .ai-hero {
    min-height: auto;
    padding-top: 64px;
  }

  .hero-grid,
  .platform-preview,
  .signal-grid,
  .plan-grid,
  .auth-forms,
  .premium-metrics,
  .premium-grid,
  .premium-search,
  .alerts-grid {
    grid-template-columns: 1fr;
  }

  .premium-app {
    grid-template-columns: 1fr;
  }

  .premium-sidebar {
    min-height: auto;
    position: static;
  }

  .side-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .side-nav button {
    justify-content: center;
  }

  .dashboard-main {
    padding: 18px;
  }

  .premium-dashboard-header,
  .tool-header,
  .premium-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-copy-block h1,
  .premium-dashboard-header h1,
  .auth-copy h2 {
    font-size: 3rem;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }
}
