/* Theme aligned with https://iatechnologie.com/ — dark UI, green primary, magenta accent */

:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-sans);
  --font-hero: "Syne", var(--font-display);

  /* Match site tokens (.dark from their Astro bundle) */
  --background: 0 0% 4%;
  --foreground: 0 0% 95%;
  --card: 0 0% 7%;
  --card-foreground: 0 0% 95%;
  --primary: 135 100% 55%;
  --primary-foreground: 0 0% 2%;
  --primary-glow: 160 100% 50%;
  --accent: 300 100% 60%;
  --muted: 0 0% 10%;
  --muted-foreground: 0 0% 50%;
  --border: 0 0% 14%;
  --ring: 135 100% 55%;
  --brand-surface: 220 50% 8%;
  --brand-surface-fg: 0 0% 95%;

  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Subtle film grain — sits above page bg, below header (z-50) */
.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

h1,
h2,
h3,
.section-head h2,
.brand,
.filters-title,
.btn {
  font-family: var(--font-display);
}

::selection {
  background: hsl(var(--primary) / 0.25);
  color: hsl(var(--foreground));
}

a {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

code {
  font-size: 0.9em;
  background: hsl(var(--muted));
  padding: 0.1em 0.35em;
  border-radius: 6px;
  color: hsl(var(--foreground));
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.container.narrow {
  max-width: 720px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Brand & gradients */
.gradient-text-brand {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-shine {
  background: linear-gradient(
    120deg,
    hsl(var(--foreground)) 0%,
    hsl(var(--primary)) 35%,
    hsl(var(--accent)) 65%,
    hsl(var(--foreground)) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.header.header-scrolled {
  background: hsl(var(--background) / 0.88);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: hsl(var(--border));
  box-shadow: 0 8px 32px hsl(0 0% 0% / 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: hsl(var(--foreground));
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(145deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
  box-shadow: 0 0 24px hsl(var(--primary) / 0.35);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-left: auto;
}

.nav a {
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.nav a:hover {
  color: hsl(var(--foreground));
  text-decoration: none;
}

.nav a:hover::after {
  content: "";
  position: absolute;
  left: 25%;
  bottom: 0;
  width: 50%;
  height: 2px;
  border-radius: 2px;
  background: hsl(var(--primary));
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 24px hsl(var(--primary) / 0.35);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px hsl(var(--primary) / 0.45);
  color: hsl(var(--primary-foreground));
}

.btn-ghost {
  background: hsl(var(--card) / 0.5);
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}

.btn-ghost:hover {
  background: hsl(var(--card));
  border-color: hsl(var(--primary) / 0.35);
}

.btn-secondary {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.btn-secondary:hover {
  border-color: hsl(var(--primary) / 0.45);
}

/* Hero */
.hero {
  position: relative;
  padding: 40px 0 28px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: hsl(var(--background));
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto;
  height: 90%;
  background: radial-gradient(ellipse 50% 45% at 15% 0%, hsl(var(--primary) / 0.18), transparent 55%),
    radial-gradient(ellipse 45% 40% at 85% 15%, hsl(var(--accent) / 0.12), transparent 50%),
    radial-gradient(ellipse 35% 30% at 50% 60%, hsl(var(--primary-glow) / 0.08), transparent 55%);
  filter: blur(2px);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: radial-gradient(circle at 1px 1px, hsl(var(--primary) / 0.12) 1px, transparent 0);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, black 0%, black 50%, transparent 95%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
  opacity: 0.45;
}

.hero-orb--1 {
  top: 5%;
  right: 8%;
  width: 280px;
  height: 280px;
  background: hsl(var(--primary) / 0.35);
}

.hero-orb--2 {
  bottom: 10%;
  left: 3%;
  width: 320px;
  height: 320px;
  background: hsl(var(--accent) / 0.2);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image: linear-gradient(hsl(var(--border) / 0.55) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--border) / 0.55) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 0%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid hsl(var(--primary) / 0.25);
  background: hsl(var(--card) / 0.6);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px hsl(0 0% 0% / 0.25);
}

.hero-badge-dot {
  position: relative;
  width: 10px;
  height: 10px;
}

.hero-badge-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-ring 2s ease-out infinite;
}

.hero-badge-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #34d399;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.hero-badge span:last-child {
  font-size: 0.65rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
}

.hero .hero-title {
  margin: 0 0 18px;
  font-family: var(--font-hero);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.2vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  color: hsl(var(--foreground));
}

.hero-lead {
  margin: 0 0 26px;
  color: hsl(var(--muted-foreground));
  font-size: 1.05rem;
  max-width: 40em;
}

.hero-lead strong {
  color: hsl(var(--foreground) / 0.92);
  font-weight: 600;
}

.hero-search {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 12px;
}

.hero-search.card-elevated {
  margin-top: 6px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: hsl(var(--card) / 0.55);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid hsl(var(--border) / 0.8);
  box-shadow: 0 8px 40px hsl(0 0% 0% / 0.35);
}

input[type="search"],
select {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input[type="search"]::placeholder {
  color: hsl(var(--muted-foreground) / 0.75);
}

input[type="search"]:focus,
select:focus {
  outline: none;
  border-color: hsl(var(--primary) / 0.55);
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.2);
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

@media (min-width: 720px) {
  .stats-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border) / 0.7);
  background: hsl(var(--card) / 0.45);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  border-color: hsl(var(--primary) / 0.35);
  box-shadow: 0 8px 28px hsl(var(--primary) / 0.08);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  font-size: 1.15rem;
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  color: hsl(var(--foreground));
}

.stat-card .stat-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-top: 4px;
}

/* Marquee */
.marquee-section {
  margin: 0;
  padding: 0 0 8px;
  overflow: hidden;
}

.marquee-band {
  border-top: 1px solid hsl(var(--primary) / 0.2);
  border-bottom: 1px solid hsl(var(--primary) / 0.15);
  background: hsl(var(--muted) / 0.65);
  padding: 14px 0;
  overflow: hidden;
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee span {
  margin: 0 2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: hsl(var(--muted-foreground) / 0.45);
  white-space: nowrap;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Trust strip */
.trust-strip {
  padding: 18px 0 8px;
  border-bottom: 1px solid hsl(var(--border) / 0.6);
  background: linear-gradient(180deg, hsl(var(--background)) 0%, hsl(var(--brand-surface) / 0.5) 100%);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.trust-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-list li {
  position: relative;
  font-size: 0.9rem;
  font-weight: 600;
  color: hsl(var(--foreground) / 0.88);
}

.trust-list li:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: -12px;
  color: hsl(var(--muted-foreground) / 0.5);
  font-weight: 400;
}

@media (max-width: 640px) {
  .trust-list li:not(:last-child)::after {
    display: none;
  }

  .trust-list {
    gap: 8px 14px;
  }
}

/* Sections */
.section {
  padding: 48px 0;
}

.section-tint {
  background: linear-gradient(180deg, hsl(var(--background)) 0%, hsl(var(--brand-surface)) 50%, hsl(var(--background)) 100%);
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.section-head-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-head--center .section-head-main {
  align-items: center;
}

.section-head--center .section-head-main h2::before {
  display: none;
}

.section-head--center .section-head-main h2 {
  justify-content: center;
  text-align: center;
}

.section-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
}

.section-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: hsl(var(--foreground));
}

.section-head h2::before {
  content: "";
  width: 4px;
  height: 1.1em;
  border-radius: 3px;
  background: linear-gradient(180deg, hsl(var(--primary)), hsl(var(--accent)));
  flex-shrink: 0;
}

.muted {
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.text-link {
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-display);
  color: hsl(var(--primary));
  padding: 6px 4px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.text-link:hover {
  background: hsl(var(--primary) / 0.1);
  text-decoration: none;
}

.section-lead {
  margin: -8px 0 20px;
  max-width: 44em;
  font-size: 1.02rem;
  line-height: 1.55;
}

.section-sub {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 28rem;
}

.section-sub-center {
  margin: 8px 0 0;
  max-width: 36rem;
}

.section-editorial {
  padding-top: 40px;
}

.editorial-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

@media (min-width: 900px) {
  .editorial-grid {
    grid-template-columns: 1fr minmax(240px, 300px);
    gap: 40px;
  }
}

.prose-rich {
  font-size: 1.02rem;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
}

.prose-rich p {
  margin: 0 0 1.1em;
}

.prose-rich p:last-child {
  margin-bottom: 0;
}

.prose-rich strong {
  color: hsl(var(--foreground) / 0.95);
  font-weight: 600;
}

.lead-paragraph {
  font-size: 1.08rem;
  line-height: 1.6;
  color: hsl(var(--foreground) / 0.92);
}

.editorial-aside {
  position: sticky;
  top: 88px;
}

.aside-card {
  padding: 22px 22px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border) / 0.75);
  background: linear-gradient(160deg, hsl(var(--card) / 0.85) 0%, hsl(var(--brand-surface)) 100%);
  box-shadow: 0 12px 40px hsl(0 0% 0% / 0.25);
}

.aside-title {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

.aside-list {
  margin: 0;
  padding: 0 0 0 1.1em;
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  line-height: 1.55;
}

.aside-list li {
  margin-bottom: 8px;
}

.aside-list li:last-child {
  margin-bottom: 0;
}

/* Bento — how it works */
.bento-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .bento-card--wide {
    grid-column: span 2;
  }
}

.bento-card {
  position: relative;
  padding: 22px 22px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border) / 0.75);
  background: hsl(var(--card) / 0.5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bento-card:hover {
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: 0 12px 36px hsl(0 0% 0% / 0.3);
  transform: translateY(-2px);
}

.bento-card--accent {
  border-color: hsl(var(--accent) / 0.35);
  background: linear-gradient(145deg, hsl(var(--card) / 0.7) 0%, hsl(var(--brand-surface)) 100%);
  box-shadow: 0 0 40px hsl(var(--accent) / 0.08);
}

.bento-step {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.65rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  color: hsl(var(--muted-foreground));
}

.bento-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 800;
  color: hsl(var(--foreground));
}

.bento-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: hsl(var(--muted-foreground));
}

.bento-card code {
  font-size: 0.82em;
}

/* Newsletter */
.newsletter-section {
  padding-bottom: 56px;
}

.newsletter-panel {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--primary) / 0.25);
  background: linear-gradient(135deg, hsl(var(--brand-surface)) 0%, hsl(220 45% 6%) 50%, hsl(var(--card) / 0.9) 100%);
  box-shadow: 0 16px 56px hsl(var(--primary) / 0.12), inset 0 1px 0 hsl(var(--primary) / 0.15);
}

@media (min-width: 800px) {
  .newsletter-panel {
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    padding: 36px 40px;
  }
}

.newsletter-title {
  margin: 12px 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: hsl(var(--foreground));
}

.newsletter-lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: hsl(var(--muted-foreground));
}

.section-badge--on-dark {
  background: hsl(var(--primary) / 0.18);
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.25);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.65);
  color: hsl(var(--foreground));
  font: inherit;
}

.newsletter-input:focus {
  outline: none;
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.2);
}

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

@media (min-width: 480px) {
  .newsletter-form {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .newsletter-input {
    flex: 1;
    min-width: 200px;
  }

  .newsletter-btn {
    width: auto;
    flex-shrink: 0;
  }
}

.section-faq-wrap {
  padding-bottom: 56px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Why us */
.why-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border) / 0.7);
  background: hsl(var(--card) / 0.45);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--primary) / 0.35);
  box-shadow: 0 12px 40px hsl(0 0% 0% / 0.35);
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  font-size: 1.35rem;
}

.why-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: hsl(var(--foreground));
}

.why-card p {
  margin: 0;
  font-size: 0.95rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* Category chips */
.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.6);
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.chip:hover {
  border-color: hsl(var(--primary) / 0.45);
  background: hsl(var(--card));
}

.chip.is-active {
  background: hsl(var(--primary));
  border-color: transparent;
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 24px hsl(var(--primary) / 0.35);
}

.chip.is-active:hover {
  color: hsl(var(--primary-foreground));
}

/* Browse layout */
.browse-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}

.filters-panel {
  position: sticky;
  top: 76px;
  padding: 20px;
  background: hsl(var(--card) / 0.65);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px hsl(0 0% 0% / 0.25);
}

.filters-title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--muted-foreground));
}

.filters-title:not(:first-child) {
  margin-top: 20px;
}

.filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.filter-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  margin-bottom: 4px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: hsl(var(--foreground));
  font: inherit;
  cursor: pointer;
}

.filter-link:hover {
  background: hsl(var(--muted));
}

.filter-link.is-active {
  background: linear-gradient(90deg, hsl(var(--primary) / 0.15), hsl(var(--primary) / 0.06));
  color: hsl(var(--primary));
  font-weight: 700;
  box-shadow: inset 3px 0 0 hsl(var(--primary));
}

.browse-main {
  min-width: 0;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

/* Cards */
.card {
  position: relative;
  border: 1px solid hsl(var(--border) / 0.85);
  background: hsl(var(--card) / 0.85);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.card:hover {
  border-color: hsl(var(--primary) / 0.45);
  box-shadow: 0 12px 40px hsl(var(--primary) / 0.12);
  transform: translateY(-3px);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, hsl(var(--primary) / 0.2) 0%, hsl(var(--accent) / 0.12) 100%);
  font-weight: 800;
  font-size: 0.78rem;
  font-family: var(--font-display);
  color: hsl(var(--primary));
  flex-shrink: 0;
  border: 1px solid hsl(var(--border));
}

.logo.logo--img {
  padding: 5px;
  background: hsl(0 0% 8%);
  position: relative;
  overflow: hidden;
}

.logo.logo--img .logo-img-el {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}

.logo.logo--img .logo-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  font-family: var(--font-display);
  color: hsl(var(--primary));
  background: linear-gradient(145deg, hsl(var(--primary) / 0.2) 0%, hsl(var(--accent) / 0.12) 100%);
  border-radius: 50%;
}

.logo.logo--img.logo--broken .logo-img-el {
  display: none !important;
}

.logo.logo--img.logo--broken .logo-fallback {
  display: flex;
}

.card h3 {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.card-meta {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
}

.card-desc {
  margin: 0;
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-display);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.pill-pricing {
  background: hsl(var(--primary) / 0.12);
  border-color: hsl(var(--primary) / 0.25);
  color: hsl(var(--primary));
}

.pill-pricing.paid {
  background: hsl(var(--accent) / 0.12);
  border-color: hsl(var(--accent) / 0.3);
  color: hsl(var(--accent));
}

.pill-pricing.trial {
  background: hsl(200 100% 50% / 0.12);
  border-color: hsl(200 80% 50% / 0.35);
  color: hsl(200 90% 65%);
}

.verified {
  font-size: 0.62rem;
  font-weight: 800;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.1);
  border: 1px solid hsl(var(--primary) / 0.25);
  padding: 3px 7px;
  border-radius: 6px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border-radius: var(--radius-pill);
  padding: 4px 9px;
  border: 0;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.card-actions .btn {
  flex: 1;
  min-width: 100px;
}

.rating-line {
  font-size: 0.82rem;
  color: hsl(var(--muted-foreground));
  font-variant-numeric: tabular-nums;
}

.rating-star {
  color: #fbbf24;
  margin-right: 2px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 52px 28px;
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius-lg);
  background: hsl(var(--card) / 0.5);
}

.empty-state.hidden,
.empty-state[hidden] {
  display: none !important;
}

.empty-title {
  margin: 0 0 8px;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: hsl(var(--foreground));
}

/* FAQ */
.faq {
  margin: 0;
  padding: 8px 0 0;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.45);
  box-shadow: 0 8px 32px hsl(0 0% 0% / 0.2);
  overflow: hidden;
}

.faq dt {
  font-weight: 800;
  font-family: var(--font-display);
  margin: 0;
  padding: 18px 22px 6px;
  color: hsl(var(--foreground));
}

.faq dt:not(:first-of-type) {
  border-top: 1px solid hsl(var(--border));
  padding-top: 22px;
}

.faq dd {
  margin: 0;
  padding: 0 22px 20px;
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  border-top: 1px solid hsl(var(--border));
  background: linear-gradient(180deg, hsl(var(--brand-surface)) 0%, hsl(220 40% 5%) 100%);
  padding: 52px 0 24px;
}

.footer-top {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 48px;
  }
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand {
  margin-bottom: 0;
}

.footer-tagline {
  max-width: 340px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.45);
  color: hsl(var(--foreground));
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.social-link:hover {
  border-color: hsl(var(--primary) / 0.45);
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  text-decoration: none;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 24px;
}

@media (min-width: 640px) {
  .footer-columns {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col {
  min-width: 0;
}

.footer-heading {
  margin: 0 0 12px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--muted-foreground));
  font-weight: 800;
  font-family: var(--font-display);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  padding: 3px 0;
}

.footer-links a,
.footer-links .footer-mono {
  color: hsl(var(--muted-foreground));
  display: inline;
  padding: 0;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-links a:hover {
  color: hsl(var(--primary));
}

.footer-mono {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem !important;
  color: hsl(var(--muted-foreground) / 0.85);
  cursor: default;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 20px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid hsl(var(--border) / 0.85);
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.footer-dot {
  opacity: 0.45;
  user-select: none;
}

.footer-legal-note {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 16rem;
}

.detail-meta-note {
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

/* Detail page (IA Technologie–style: hero, strengths/limits, long read, tiers, FAQ) */
.main {
  padding: 28px 0 56px;
}

.main-detail {
  width: min(1100px, 94%);
}

.detail-page {
  max-width: 100%;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 20px;
}

.breadcrumb a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
}

.breadcrumb a:hover {
  color: hsl(var(--primary));
}

.breadcrumb-sep {
  opacity: 0.45;
  user-select: none;
}

.breadcrumb-current {
  color: hsl(var(--foreground));
  font-weight: 600;
}

.detail-hero {
  padding: 28px 24px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  background: linear-gradient(145deg, hsl(var(--card) / 0.95) 0%, hsl(var(--brand-surface)) 100%);
  box-shadow: 0 12px 48px hsl(0 0% 0% / 0.35);
  margin-bottom: 28px;
}

.detail-hero-main {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.logo--xl {
  width: 72px;
  height: 72px;
  font-size: 1.15rem;
  border-radius: 50%;
}

.logo--xl.logo--img {
  padding: 10px;
}

.logo--xl.logo--img .logo-fallback {
  font-size: 1rem;
}

.detail-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.detail-hero-text {
  flex: 1;
  min-width: 200px;
}

.detail-hero-text h1 {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: hsl(var(--foreground));
}

.detail-sub {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
}

.detail-lead {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: hsl(var(--foreground) / 0.92);
  line-height: 1.5;
}

.detail-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid hsl(var(--border) / 0.8);
}

.btn-lg {
  padding: 12px 22px;
  font-size: 0.95rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 300px);
  gap: 28px;
  align-items: start;
}

.detail-main {
  min-width: 0;
}

.detail-section {
  margin-bottom: 36px;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-h2::before {
  content: "";
  width: 4px;
  height: 1em;
  border-radius: 2px;
  background: linear-gradient(180deg, hsl(var(--primary)), hsl(var(--accent)));
  flex-shrink: 0;
}

.detail-list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
}

.detail-list li {
  margin-bottom: 8px;
}

.detail-list--pro li::marker {
  color: hsl(var(--primary));
}

.detail-list--con li::marker {
  color: hsl(var(--accent));
}

.detail-body .detail-prose {
  margin: 0 0 14px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.detail-body .detail-prose:last-child {
  margin-bottom: 0;
}

.detail-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border) / 0.8);
  background: hsl(var(--card) / 0.5);
}

.detail-feature-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.detail-feature h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: hsl(var(--foreground));
}

.detail-feature p {
  margin: 0;
  font-size: 0.92rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.detail-usecases {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.detail-usecases li {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid hsl(var(--border) / 0.6);
  background: hsl(var(--muted) / 0.5);
  font-size: 0.95rem;
  color: hsl(var(--foreground) / 0.9);
}

.detail-disclaimer {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  margin: -6px 0 14px;
}

.detail-tiers {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .detail-tiers {
    grid-template-columns: repeat(2, 1fr);
  }
}

.detail-tier {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.6);
}

.detail-tier-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid hsl(var(--border) / 0.7);
}

.detail-tier-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: hsl(var(--foreground));
}

.detail-tier-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: hsl(var(--primary));
  white-space: nowrap;
}

.detail-tier-bullets {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
}

.detail-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-faq-item {
  border-radius: 12px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.45);
  overflow: hidden;
}

.detail-faq-item summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  color: hsl(var(--foreground));
  list-style: none;
}

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

.detail-faq-item summary::after {
  content: "+";
  float: right;
  color: hsl(var(--primary));
  font-weight: 800;
}

.detail-faq-item[open] summary::after {
  content: "−";
}

.detail-faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 0.92rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  border-top: 1px solid hsl(var(--border) / 0.5);
  padding-top: 12px;
}

.detail-aside {
  position: relative;
}

.detail-sticky {
  position: sticky;
  top: 88px;
}

.detail-aside-title {
  margin: 0 0 14px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--muted-foreground));
}

.detail-dl {
  margin: 0;
}

.detail-dl > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  font-size: 0.88rem;
}

.detail-dl > div:last-child {
  border-bottom: none;
}

.detail-dl dt {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

.detail-dl dd {
  margin: 0;
  text-align: right;
  color: hsl(var(--foreground));
  font-weight: 600;
}

.detail-meta-line {
  margin: 16px 0 0;
  font-size: 0.78rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

.detail-footnote {
  margin: 14px 0 0;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground) / 0.85);
  line-height: 1.5;
}

.panel {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  background: hsl(var(--card) / 0.9);
  padding: 22px;
  box-shadow: 0 8px 32px hsl(0 0% 0% / 0.25);
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-not-found {
  text-align: center;
  padding: 48px 24px;
}

.detail-not-found h2 {
  margin-top: 0;
  color: hsl(var(--foreground));
}

@media (max-width: 960px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .nav {
    margin-left: 0;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid hsl(var(--border));
  }

  .header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .header-actions .btn {
    flex: 1;
    text-align: center;
  }

  .browse-layout {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .hero-search {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }
}
