/* Comparatifbet — ARX UI 2025 v2: stronger geometric divergence
   - New geometry: clipped corners, hexagon badges, ticket rows, diamond markers
   - Asymmetric feature layout; bottom-sheet-like nav on mobile widths
   - Distinct visual from any previous theme
*/
:root {
  /* Palette */
  --arx-bg: #070910; /* deeper night */
  --arx-surface: #0e1322; /* midnight slab */
  --arx-surface-2: #0f152b; /* panel */
  --arx-ink: #eaf2ff; /* soft ice */
  --arx-ink-dim: #b3c4e8; /* muted */
  --arx-primary: #7c3aed; /* iris violet */
  --arx-primary-2: #a78bfa; /* lighter iris */
  --arx-accent: #22d3ee; /* cyan */
  --arx-good: #22c55e;
  --arx-warn: #fbbf24;
  --arx-danger: #ef4444;
  --arx-border: #1b2440; /* slate-blue border */
  --arx-shadow: 0 22px 60px rgba(2, 8, 26, 0.6);
  --arx-r: 18px; /* base radius for round shapes (used sparingly) */
  --arx-notch: 14px; /* clipped-corner size */
  --arx-focus: 0 0 0 3px rgba(34, 211, 238, 0.28),
    0 0 0 7px rgba(124, 58, 237, 0.24);
  --arx-header-h: 72px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html,
body {
  overflow-x: hidden;
}

/* Body with parallax background */
body.arx-shell {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, Arial, sans-serif;
  color: var(--arx-ink);
  background: radial-gradient(
      1000px 700px at 10% -10%,
      rgba(124, 58, 237, 0.12),
      transparent 60%
    ),
    radial-gradient(
      900px 600px at 110% 10%,
      rgba(34, 211, 238, 0.1),
      transparent 60%
    ),
    url("assets/background.webp") no-repeat center center fixed;
  background-size: cover; /* Ensures realistic image covers viewport */
  background-blend-mode: overlay; /* Softly blends gradients with image */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animated field hue (adjusted for realism) */
body.arx-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  animation: arx-field 42s ease-in-out infinite;
  background: rgba(7, 9, 16, 0.3); /* Subtle overlay to enhance realism */
}
@keyframes arx-field {
  0%,
  100% {
    filter: hue-rotate(0deg) saturate(1);
  }
  50% {
    filter: hue-rotate(12deg) saturate(1.05);
  }
}
.arx-wrap {
  width: min(1168px, 92%);
  margin-inline: auto;
}

/* Links */
.arx-shell a {
  color: #9fdcff;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.arx-shell a:hover {
  color: #ccecff;
}

/* Focus visible */
:focus {
  outline: none;
}
:focus-visible {
  box-shadow: var(--arx-focus);
  border-radius: 10px;
}

/* Skip link */
.arx-skip {
  position: absolute;
  left: -9999px;
  top: auto;
}
.arx-skip:focus-visible {
  left: 16px;
  top: 16px;
  z-index: 999;
  background: #0c1a2c;
  color: #eaf6ff;
  padding: 8px 12px;
  border-radius: 10px;
}

/* Header */
.arx-header {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: var(--arx-header-h);
  background: rgba(10, 14, 22, 0.9);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--arx-border);
}
.arx-header .arx-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.arx-brand {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 12px;
  color: inherit;
  padding: 10px 0;
}
/* Brand mark with animated dashed ring */
.arx-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  position: relative;
}
.arx-mark::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  border: 2px dashed rgba(167, 139, 250, 0.6);
  animation: spin 12s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.arx-mark img {
  width: 68%;
  height: 68%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
}
.arx-word {
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto,
    Ubuntu, Cantarell, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* Burger + Drawer (bottom-sheet feel on small screens) */
.arx-burger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--arx-border);
  background: #0b1530;
  border-radius: 12px;
  position: relative;
  z-index: 65;
}
.arx-burger .bar {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 2px;
  background: #e8efff;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.22s ease, opacity 0.2s ease, width 0.2s ease;
}
.arx-burger .bar1 {
  top: 50%;
  transform: translate(-50%, -8px);
}
.arx-burger .bar2 {
  top: 50%;
}
.arx-burger .bar3 {
  top: 50%;
  transform: translate(-50%, 8px);
}
body.menu-open .arx-burger .bar1 {
  transform: translate(-50%, 0) rotate(45deg);
}
body.menu-open .arx-burger .bar2 {
  opacity: 0;
  width: 0;
}
body.menu-open .arx-burger .bar3 {
  transform: translate(-50%, 0) rotate(-45deg);
}

body.menu-open::before {
  content: "";
  position: fixed;
  top: var(--arx-header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 12, 20, 0.7);
  backdrop-filter: blur(2px);
  z-index: 50;
}

.arx-nav {
  position: fixed;
  right: 0;
  width: min(92vw, 440px);
  background: #0f1426;
  border: 1px solid var(--arx-border);
  padding: 24px;
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 0.36s cubic-bezier(0.22, 0.84, 0.26, 1);
  z-index: 55;
  border-radius: 20px 0 0 20px;
  top: var(--arx-header-h);
}
body.menu-open .arx-nav {
  transform: translateX(0);
  pointer-events: auto;
}
.arx-nav ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.arx-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: inherit;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
}
.arx-nav a:hover,
.arx-nav a[aria-current="page"] {
  background: #111b34;
  border-color: var(--arx-border);
}
.arx-nav li {
  opacity: 0;
  transform: translateX(12px);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
body.menu-open .arx-nav li {
  opacity: 1;
  transform: none;
}
body.menu-open .arx-nav li:nth-child(1) {
  transition-delay: 0.06s;
}
body.menu-open .arx-nav li:nth-child(2) {
  transition-delay: 0.12s;
}
body.menu-open .arx-nav li:nth-child(3) {
  transition-delay: 0.18s;
}
body.menu-open .arx-nav li:nth-child(4) {
  transition-delay: 0.24s;
}
body.menu-open .arx-nav li:nth-child(5) {
  transition-delay: 0.3s;
}
body.menu-open .arx-nav li:nth-child(6) {
  transition-delay: 0.36s;
}
body.menu-open .arx-nav li:nth-child(7) {
  transition-delay: 0.42s;
}
body.menu-open .arx-nav li:nth-child(8) {
  transition-delay: 0.48s;
}
body.menu-open .arx-nav li:nth-child(9) {
  transition-delay: 0.54s;
}

/* Hero */
.arx-hero {
  padding: 54px 0 18px;
  position: relative;
}

.arx-h1 {
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto,
    Ubuntu, Cantarell, Arial, sans-serif;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.arx-lead {
  color: var(--arx-ink-dim);
  margin: 0.5rem 0;
}

/* Sections with alternating subtle background strip */
.arx-section {
  padding: 30px 0;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}
.arx-section:nth-of-type(even)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(17, 25, 44, 0.4),
    transparent
  );
  pointer-events: none;
}

/* H2 markers: double bars + end cap */
.arx-h2 {
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto,
    Ubuntu, Cantarell, Arial, sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
  display: grid;
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
  gap: 12px;
}
.arx-h2::before {
  content: "||";
  color: var(--arx-accent);
}
.arx-h2::after {
  content: "";
  width: 44px;
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--arx-accent), var(--arx-primary));
  display: inline-block;
}

/* Grid */
.arx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

/* Clipped-corner Card (ticket-like geometry) */
.arx-card {
  background: var(--arx-surface);
  border: 1px solid var(--arx-border);
  padding: 16px 18px;
  position: relative;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
  clip-path: polygon(
    0 var(--arx-notch),
    var(--arx-notch) 0,
    100% 0,
    100% calc(100% - var(--arx-notch)),
    calc(100% - var(--arx-notch)) 100%,
    0 100%
  );
}
.arx-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(124, 58, 237, 0.08),
    rgba(34, 211, 238, 0.08)
  );
  opacity: 0;
  transition: opacity 0.2s ease;
  clip-path: polygon(
    0 var(--arx-notch),
    var(--arx-notch) 0,
    100% 0,
    100% calc(100% - var(--arx-notch)),
    calc(100% - var(--arx-notch)) 100%,
    0 100%
  );
}
.arx-card:hover {
  transform: translateY(-3px) rotate(-0.3deg);
  box-shadow: var(--arx-shadow);
  background: var(--arx-surface-2);
}
.arx-card:hover::before {
  opacity: 1;
}

/* Pseudo-table to ticket row with perforation */
.arx-table {
  display: grid;
  gap: 12px;
  background: transparent;
  padding: 2px;
  overflow-x: auto;
}
.arx-row {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.5fr;
  gap: 12px;
  padding: 14px 16px;
  position: relative;
  background: var(--arx-surface);
  border: 1px solid var(--arx-border);
  clip-path: polygon(
    0 var(--arx-notch),
    var(--arx-notch) 0,
    100% 0,
    100% calc(100% - var(--arx-notch)),
    calc(100% - var(--arx-notch)) 100%,
    0 100%
  );
}

.arx-row.head {
  font-weight: 800;
  color: #efe9ff;
  background: #121a3d;
  border-style: solid;
}

/* Pills/Tags — diamonds markers */
.arx-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.arx-pill {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 9px;
  background: #0e172a;
  border: 1px solid #20305d;
  padding: 10px 12px;
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
}

.arx-figure {
  font-weight: 800;
  color: var(--arx-primary-2);
}

/* Lists */
.arx-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.arx-list li {
  position: relative;
  margin: 0.55rem 0;
  padding-left: 20px;
}
.arx-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 12px;
  height: 6px;
  background: linear-gradient(90deg, var(--arx-accent), var(--arx-primary));
  transform: skewX(-22deg);
  border-radius: 2px;
}

/* Buttons — gradient ring via mask */
.arx-btn {
  --b: 2px;
  --r: 999px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.6ch;
  padding: 12px 18px;
  font-weight: 800;
  color: #070b14 !important;
  background: linear-gradient(180deg, var(--arx-primary-2), var(--arx-primary));
  border-radius: var(--r);
  box-shadow: 0 14px 40px rgba(124, 58, 237, 0.34);
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.arx-btn:hover,
.arx-btn:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 18px 48px rgba(124, 58, 237, 0.42);
}
.arx-btn::after {
  content: "›";
}
.arx-btn-note {
  display: block;
  color: #a9b8e2;
  text-align: left;
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Stars */
.arx-stars {
  position: relative;
  display: inline-block;
  font-size: 18px;
  letter-spacing: 2px;
  line-height: 1;
}
.arx-stars-base {
  color: #1e2847;
}
.arx-stars-fill {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  overflow: hidden;
  color: #f59e0b;
  pointer-events: none;
}

/* Feature block — asymmetric layout */
.arx-feature {
  display: grid;
  grid-template-columns: 1.2fr 2.8fr;
  gap: 16px;
  border: 1px solid var(--arx-border);
  background: linear-gradient(180deg, #101534, #0c1228);
  box-shadow: var(--arx-shadow);
  padding: 32px 14px 16px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(
    0 var(--arx-notch),
    var(--arx-notch) 0,
    100% 0,
    100% calc(100% - var(--arx-notch)),
    calc(100% - var(--arx-notch)) 100%,
    0 100%
  );
}
.arx-feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--arx-accent), var(--arx-primary));
}
.arx-feature-media {
  display: grid;
  place-items: center;
  border: 1px dashed var(--arx-border);
  background: #0c152a;
  padding: 12px;
}
.arx-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.arx-feature-badge {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 2;
  display: inline-block;
  background: linear-gradient(90deg, var(--arx-primary), var(--arx-accent));
  color: #06101a;
  font-weight: 900;
  padding: 6px 10px;
  clip-path: polygon(
    12px 0,
    100% 0,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    0 100%,
    0 12px
  );
}
.arx-feature-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  align-items: start;
}
/* Reposition inner groups to different visual rhythm */
.arx-feature-body .arx-pills {
  grid-column: 1/2;
  height: 100%;
}
.arx-feature-body .arx-feature-list {
  grid-column: 2/3;
}
.arx-feature-body .arx-feature-actions {
  grid-column: 3/4;
  align-items: flex-start;
}

/* Feature list markers */
.arx-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}
.arx-feature-list li {
  position: relative;
  padding-left: 18px;
  color: var(--arx-ink-dim);
}
.arx-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 12px;
  height: 6px;
  background: linear-gradient(90deg, var(--arx-primary), var(--arx-accent));
  transform: skewX(-22deg);
  border-radius: 2px;
}

/* Footer */
.arx-footer {
  margin-top: 30px;
  border-top: 1px solid var(--arx-border);
  background: linear-gradient(180deg, #09122a, #0a1120);
}
.arx-foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 360px;
  gap: 16px;
  align-items: start;
  padding: 26px 0 14px;
}
.arx-foot-legal {
  display: grid;
  gap: 10px;
}
.arx-foot-legal a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e3ecff;
  border: 1px solid #1b2a56;
  padding: 9px 12px;
  background: #0d1736;
  clip-path: polygon(
    12px 0,
    100% 0,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    0 100%,
    0 12px
  );
}
.arx-foot-legal a:hover {
  border-color: var(--arx-primary);
  color: #f3f7ff;
}
.arx-foot-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 10px;
}
.arx-foot-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #eaf2ff;
  padding: 10px 14px;
  border: 1px solid #1e2c57;
  background: #0a1636;
  min-height: 42px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 700;
  clip-path: polygon(
    12px 0,
    100% 0,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    0 100%,
    0 12px
  );
}
.arx-foot-links a::after {
  content: "→";
  color: var(--arx-accent);
}
.arx-foot-links a:hover {
  background: #0f1f49;
  border-color: #213268;
}

/* Hexagon legal logos */
.arx-legal-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: var(--arx-surface);
  border: 1px solid var(--arx-border);
  padding: 12px;
}
.arx-legal-logos-link {
  width: 104px;
  height: 104px;
  background: #0a1832;
  border: 1px solid var(--arx-border);
  padding: 10px;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.arx-legal-logos-link:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--arx-shadow);
}
.arx-legal-logos-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.arx-foot-meta {
  border-top: 1px solid var(--arx-border);
  padding: 12px 0;
  display: grid;
  gap: 8px;
}
.arx-copy {
  color: #b1c0e4;
  font-size: 0.94rem;
}
.arx-disclaimer {
  color: #9fb0d6;
  margin: 0;
}

/* Chips (glossary index) */
.arx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.arx-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  background: #0d1832;
  border: 1px solid #1b2a56;
  clip-path: polygon(
    12px 0,
    100% 0,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    0 100%,
    0 12px
  );
}

/* Reveal animation */
.will-reveal {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
}
.is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Utilities */
.arx-subtle {
  color: var(--arx-ink-dim);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 1020px) {
  .arx-feature {
    grid-template-columns: 1fr;
  }
  .arx-feature-body {
    grid-template-columns: 1fr;
  }
  .arx-feature-body .arx-pills,
  .arx-feature-body .arx-feature-list,
  .arx-feature-body .arx-feature-actions {
    grid-column: auto;
  }
}
@media (max-width: 900px) {
  .arx-header .arx-wrap {
    grid-template-columns: auto 1fr auto;
  }
  .arx-foot-grid {
    grid-template-columns: 1fr;
  }
  .arx-foot-links {
    grid-template-columns: 1fr;
  }
  .arx-legal-logos {
    grid-template-columns: repeat(3, 1fr);
  }
  .arx-legal-logos-link {
    width: 100%;
    height: 100%;
  }
}
