/* ═══════════════════════════════════════════
   APEX INSIGHTS — Premium Design System
   ═══════════════════════════════════════════ */

:root {
  --bg-deep: #050508;
  --bg-elevated: #0c0e14;
  --bg-card: rgba(14, 16, 24, 0.75);
  --accent: #3b82f6;
  --accent-bright: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --cyan: #22d3ee;
  --gold: #fbbf24;
  --border: rgba(148, 163, 184, 0.12);
  --border-hover: rgba(59, 130, 246, 0.5);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --radius: 16px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  overflow-x: hidden;
  color: var(--text);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  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");
}

html { scroll-behavior: smooth; }

.font-display { font-family: var(--font-display); }

/* ── Preloader ── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  animation: preloader-pulse 1.2s ease-in-out infinite;
}

.preloader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 40px var(--accent-glow);
}

.preloader-bar {
  width: 120px;
  height: 3px;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 99px;
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #22d3ee);
  border-radius: 99px;
  animation: preloader-fill 1.8s ease forwards;
}

@keyframes preloader-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes preloader-fill {
  to { width: 100%; }
}

/* ── Ambient ── */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(59, 130, 246, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(34, 211, 238, 0.08), transparent),
    radial-gradient(ellipse 40% 30% at 60% 30%, rgba(251, 191, 36, 0.04), transparent);
}

.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(59, 130, 246, 0.2), transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 50%, rgba(139, 92, 246, 0.1), transparent 50%);
  animation: aurora-drift 14s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  0% { transform: translate(0, 0) scale(1); opacity: 0.45; }
  100% { transform: translate(-2%, 1%) scale(1.03); opacity: 0.6; }
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(209, 232, 226, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(209, 232, 226, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 15%, transparent 75%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-1 {
  width: 500px; height: 500px;
  background: rgba(17, 100, 102, 0.35);
  top: -100px; right: 5%;
  animation: drift 9s ease-in-out infinite;
}

.hero-glow-2 {
  width: 350px; height: 350px;
  background: rgba(255, 203, 154, 0.12);
  bottom: 10%; left: 0;
  animation: drift 11s ease-in-out infinite reverse;
}

.hero-glow-3 {
  width: 200px; height: 200px;
  background: rgba(45, 206, 196, 0.15);
  top: 40%; left: 30%;
  animation: drift 7s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, -20px) scale(1.06); }
}

/* ── Typography ── */
.gradient-text {
  background: linear-gradient(120deg, #93c5fd 0%, #3b82f6 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes shimmer-text {
  to { background-position: 200% center; }
}

.gradient-text-gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 2px;
}

/* ── Header ── */
.header-glass {
  background: rgba(5, 5, 8, 0.55);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s ease;
}

.header-glass.scrolled {
  background: rgba(5, 5, 8, 0.88);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(125, 211, 252, 0.08);
  border-bottom-color: rgba(59, 130, 246, 0.2);
}

.site-header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: 1280px;
  height: 5rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .site-header-nav {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .site-header-nav {
    padding: 0 3rem;
  }
}

.site-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  min-width: 0;
  margin-left: auto;
}

@media (min-width: 768px) {
  .site-header-right {
    gap: 1rem;
  }
}

@media (min-width: 1280px) {
  .site-header-right {
    gap: 1.25rem;
  }
}

.site-home-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #60a5fa;
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.25s;
}

.site-home-link:hover {
  color: #93c5fd;
}

.site-nav-center {
  display: none;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
  gap: clamp(0.5rem, 0.75vw, 1rem);
  min-width: 0;
}

@media (min-width: 768px) {
  .site-nav-center {
    display: flex;
  }
}

.nav-divider {
  width: 1px;
  height: 1.5rem;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 0.15rem;
}

@media (min-width: 768px) {
  .site-header-right .header-actions {
    padding-left: 0.85rem;
    border-left: 1px solid var(--border);
  }
}

.nav-link {
  position: relative;
  color: var(--text-muted);
  font-size: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 20px;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.site-logo {
  display: block;
  width: auto;
  height: 48px;
  max-width: 160px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.site-logo-sm {
  height: 38px;
  max-width: 130px;
}

.site-logo-md {
  height: 56px;
  max-width: 180px;
}

.site-logo-lg {
  height: 88px;
  max-width: 280px;
}

.site-home-link.site-home-link-logo {
  gap: 0;
  color: inherit;
  display: inline-flex;
  align-items: center;
}

.site-home-link-logo:hover .site-logo {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.site-brand:hover .logo-mark {
  transform: rotate(-5deg) scale(1.05);
  box-shadow: 0 6px 28px var(--accent-glow);
}

.site-home-link:hover .logo-mark {
  transform: rotate(-5deg) scale(1.05);
  box-shadow: 0 6px 28px var(--accent-glow);
}

/* ── Buttons ── */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: rgba(59, 130, 246, 0.08);
}

/* Compact uniform buttons for header nav */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.menu-toggle:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(59, 130, 246, 0.08);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none !important;
  }
}

.btn-nav,
.header-actions .btn-primary,
.header-actions .btn-ghost,
#auth-nav .btn-primary,
#auth-nav .btn-ghost {
  padding: 0.5rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  text-decoration: none;
  flex-shrink: 0;
}

.header-desktop-only {
  display: none;
}

@media (min-width: 640px) {
  .header-desktop-only {
    display: inline-flex;
  }
}

@media (max-width: 639px) {
  #auth-nav {
    display: none !important;
  }

  .header-actions > a.btn-primary.btn-nav {
    display: none !important;
  }
}

/* Nav profile avatar (home page loads site.css only) */
.profile-avatar-sm {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  max-width: 28px;
  max-height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(59, 130, 246, 0.4);
  flex-shrink: 0;
  display: block;
}

.nav-avatar-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-avatar-wrap img.profile-avatar-sm {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
}

.btn-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn-glow:hover::after { transform: translateX(100%); }

/* ── Premium Cards ── */
.premium-card {
  position: relative;
  background: linear-gradient(165deg, rgba(20, 24, 36, 0.9), rgba(12, 14, 22, 0.85));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(16px) saturate(1.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.premium-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(59,130,246,0.3), transparent 50%, rgba(34,211,238,0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.premium-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45), 0 0 48px rgba(59, 130, 246, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.premium-card:hover::before { opacity: 1; }

.premium-card .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(34,211,238,0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: transform 0.3s;
}

.premium-card:hover .icon-wrap {
  transform: scale(1.1) rotate(-3deg);
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-bright);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ── Stat pills ── */
.stat-pill {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(18, 22, 34, 0.95), rgba(8, 10, 18, 0.9));
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: all 0.35s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stat-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  opacity: 0.8;
}

.stat-pill:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.hero-inner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-inner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
    align-items: center;
  }
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Stats banner ── */
.stats-banner {
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(34,211,238,0.08));
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.stats-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--cyan), transparent);
}

/* ── Redirect cards ── */
.redirect-card {
  background: rgba(14, 16, 24, 0.9);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.35s;
}

.redirect-card:hover {
  border-color: var(--border-hover);
  transform: translateX(6px);
  box-shadow: -4px 0 20px rgba(59, 130, 246, 0.15);
}

.redirect-card.complete { border-left: 3px solid #10b981; }
.redirect-card.quotafull { border-left: 3px solid #f59e0b; }
.redirect-card.terminate { border-left: 3px solid #ef4444; }
.redirect-card.start { border-left: 3px solid #3b82f6; }

.redirect-card code {
  font-size: 0.72rem;
  color: var(--accent-bright);
  word-break: break-all;
}

/* ── Step cards ── */
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.35s;
  position: relative;
  z-index: 1;
}

.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.12);
}

.step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--font-display);
  color: white;
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* ── Insight cards ── */
.insight-card {
  background: linear-gradient(165deg, rgba(18, 22, 32, 0.95), rgba(10, 12, 20, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.insight-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(59, 130, 246, 0.08);
}

.insight-card .img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d1117;
}

.hero-visual img,
.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: cover;
  object-position: center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.insight-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.insight-card:hover .img-wrap img {
  transform: scale(1.05);
}

.insight-card .img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 12, 0.45), transparent 55%);
  pointer-events: none;
}

.insight-card .card-body { padding: 1.25rem 1.5rem 1.5rem; }

/* ── Testimonials ── */
.testimonial-card {
  background: linear-gradient(160deg, rgba(14,16,24,0.9), rgba(20,24,36,0.7));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.4s;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  font-family: var(--font-display);
  color: rgba(59, 130, 246, 0.1);
  line-height: 1;
}

.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.1);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
}

/* ── FAQ ── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
  background: var(--bg-card);
}

.faq-item.open {
  border-color: var(--border-hover);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s;
}

.faq-question:hover { color: var(--accent-bright); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 1.5rem 1.25rem;
}

.faq-item.open .faq-icon { transform: rotate(180deg); }

.faq-icon {
  transition: transform 0.3s;
  color: var(--accent);
}

/* ── CTA band ── */
.cta-band {
  background: linear-gradient(135deg, #0f1f3d 0%, #0a0f1e 40%, #12102a 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 28px;
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cta-band::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 65%);
  top: -250px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  animation: cta-pulse 6s ease-in-out infinite;
}

.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.03), transparent);
  pointer-events: none;
}

@keyframes cta-pulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

/* ── Hero ── */
.hero-section {
  overflow: visible;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  #hero.hero-section {
    min-height: 90vh;
  }
}

.hero-content {
  position: relative;
  z-index: 30;
  min-width: 0;
  isolation: isolate;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 1.25rem;
}

.hero-brand::before {
  content: '';
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 2px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.25rem;
  max-width: 100%;
}

.hero-badge {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
  border-radius: 9999px !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, #3b82f6, #22d3ee, #8b5cf6);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.85;
  filter: blur(1px);
  animation: border-rotate 6s linear infinite;
  background-size: 200% 200%;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero-visual {
  position: relative;
  z-index: 10;
  min-width: 0;
  max-width: 100%;
  padding: 1.5rem 0 1.5rem 0;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-visual {
    padding: 2rem 0 2rem 0.5rem;
  }
}

.hero-image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.hero-image-wrap .hero-img {
  position: relative;
  z-index: 1;
  object-position: center;
}

@keyframes border-rotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.floating-badge {
  position: absolute;
  background: rgba(14, 16, 24, 0.95);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 12px;
  animation: float 4s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 20;
  pointer-events: none;
  white-space: nowrap;
}

.floating-badge-1 {
  top: 0.5rem;
  left: 0.5rem;
  --badge-x: 0;
}

.floating-badge-2 {
  bottom: 0.5rem;
  right: 0.5rem;
  animation-delay: 1.5s;
  --badge-x: 0;
}

/* ── Marquee ── */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

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

.marquee-item {
  white-space: nowrap;
  padding: 0 2.5rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  background: linear-gradient(90deg, var(--text-muted), var(--accent-bright), var(--text-muted));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: marquee-shine 4s linear infinite;
}

@keyframes marquee-shine {
  to { background-position: 200% center; }
}

.marquee-premium {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.06), transparent);
  border-color: rgba(59, 130, 246, 0.15) !important;
}

/* ── Process line ── */
.process-line {
  height: 2px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.process-line-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #3b82f6, #22d3ee);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-line-fill.active { transform: scaleX(1); }

/* ── Form ── */
.form-input {
  width: 100%;
  background: rgba(8, 8, 12, 0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 0 20px rgba(59, 130, 246, 0.1);
  background: rgba(12, 14, 22, 0.8);
}

/* Section headings polish */
main h2.font-display {
  letter-spacing: -0.02em;
}

main section.scroll-animate:nth-child(even) {
  position: relative;
}

.form-card {
  position: relative;
  background: linear-gradient(165deg, rgba(18, 22, 35, 0.95), rgba(8, 10, 18, 0.9));
  border: 1px solid rgba(125, 211, 252, 0.15);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--cyan), transparent);
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 12px 40px var(--accent-glow);
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ── Mobile nav ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 5rem;
  left: 0; right: 0;
  background: rgba(8, 8, 12, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem 1.5rem;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 49;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.mobile-nav a:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--text);
}

.mobile-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.mobile-auth-actions a {
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  text-align: center;
  border: 1px solid var(--border);
}

.mobile-auth-actions a:last-child {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}

.mobile-auth-actions a.mobile-cta:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
}

/* ── Footer ── */
.footer-premium {
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.6), rgba(5, 5, 8, 0.98));
  border-top: 1px solid transparent;
  position: relative;
}

.footer-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), rgba(34, 211, 238, 0.5), transparent);
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.25s;
}

.footer-link:hover { color: var(--accent-bright); }

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all 0.3s;
  cursor: pointer;
}

.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

a.social-btn {
  text-decoration: none;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.contact-direct-link,
.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--accent-bright);
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-direct-link:hover,
.footer-contact-link:hover {
  opacity: 0.85;
}

.footer-contact-link {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-contact-link:hover {
  color: var(--accent-bright);
  opacity: 1;
}

/* ── Why cards ── */
.why-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.why-card .why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
}

.why-icon.blue { background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(59,130,246,0.05)); }
.why-icon.cyan { background: linear-gradient(135deg, rgba(34,211,238,0.2), rgba(34,211,238,0.05)); }
.why-icon.gold { background: linear-gradient(135deg, rgba(251,191,36,0.2), rgba(251,191,36,0.05)); }
.why-icon.purple { background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(168,85,247,0.05)); }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateX(var(--badge-x, 0)) translateY(0); }
  50% { transform: translateX(var(--badge-x, 0)) translateY(-10px); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.animate-fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
.animate-fade-in-right { animation: fadeInRight 0.8s ease-out forwards; }
.animate-scale-in { animation: scaleIn 0.6s ease-out forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }

.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }
.delay-400 { animation-delay: 0.4s; opacity: 0; }
.delay-500 { animation-delay: 0.5s; opacity: 0; }
.delay-600 { animation-delay: 0.6s; opacity: 0; }
.delay-700 { animation-delay: 0.7s; opacity: 0; }

.pulse-dot {
  width: 8px; height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.scroll-animate {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}

.card-hover { transition: all 0.35s ease; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Back to top ── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  transform: translateY(-3px);
}

@media (max-width: 767px) {
  .site-header-nav {
    height: 3.75rem;
    padding: 0 0.85rem;
    gap: 0.5rem;
  }

  .site-home-link {
    font-size: 0.95rem;
    gap: 0.4rem;
    min-width: 0;
    max-width: calc(100% - 3.5rem);
  }

  .site-home-link.site-home-link-logo {
    max-width: calc(100% - 3.5rem);
  }

  .site-home-link .site-logo {
    height: 42px;
    max-width: 140px;
  }

  .site-home-link .logo-mark {
    width: 2rem;
    height: 2rem;
    font-size: 0.85rem;
    flex-shrink: 0;
  }

  .site-header-right {
    flex: 0 0 auto;
    gap: 0.35rem;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .menu-toggle {
    width: 2.5rem;
    height: 2.5rem;
  }

  .mobile-nav {
    top: 3.75rem;
    max-height: calc(100dvh - 3.75rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0.85rem 1.25rem;
  }

  body.nav-open {
    overflow: hidden;
  }

  .mobile-nav a {
    font-size: 0.95rem;
    padding: 0.8rem 0.9rem;
  }

  .mobile-nav a.mobile-cta {
    margin-top: 0.35rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff !important;
    font-weight: 600;
    text-align: center;
    border: none;
  }

  .mobile-nav a.mobile-cta:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff !important;
  }

  main#top,
  main.pt-20 {
    padding-top: 3.75rem !important;
  }

  /* ── Hero ── */
  #hero.hero-section {
    min-height: auto !important;
    padding-top: 1.25rem;
    padding-bottom: 2rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 8.5vw, 2.5rem);
    line-height: 1.1;
    margin-bottom: 0.85rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
  }

  .hero-badge {
    margin-bottom: 1rem !important;
  }

  .hero-cta-row {
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.5rem !important;
  }

  .hero-cta-row .btn-primary,
  .hero-cta-row .btn-ghost {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1rem;
  }

  .hero-stats-row {
    gap: 0.45rem;
  }

  .hero-stats-row .stat-pill {
    padding: 0.7rem 0.35rem;
  }

  .hero-stats-row .font-headline-md {
    font-size: 1.15rem !important;
    line-height: 1.2 !important;
  }

  .hero-stats-row .font-label-sm {
    font-size: 0.62rem !important;
    line-height: 1.2 !important;
  }

  .hero-visual {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.5rem 0 0;
  }

  .hero-image-wrap {
    order: 1;
    border-radius: 12px;
    overflow: hidden;
  }

  .floating-badge {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    animation: none;
    white-space: normal;
    width: 100%;
    pointer-events: auto;
    padding: 0.65rem 0.85rem;
  }

  .floating-badge-1 { order: 2; }
  .floating-badge-2 { order: 3; }

  .hero-glow-1 { width: 220px; height: 220px; }
  .hero-glow-2 { width: 160px; height: 160px; }
  .hero-glow-3 { display: none; }

  /* ── Sections & layout ── */
  .px-margin-mobile {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .py-xl {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }

  .mb-xl {
    margin-bottom: 1.75rem !important;
  }

  .gap-gutter {
    gap: 1rem !important;
  }

  .gap-xl {
    gap: 1.5rem !important;
  }

  main h2.font-display,
  section h2.font-display {
    font-size: 1.65rem !important;
    line-height: 1.2 !important;
  }

  .premium-card {
    padding: 1.2rem !important;
  }

  .premium-card:hover {
    transform: none;
  }

  .grid[class*="grid-cols-12"] > [class*="col-span-"],
  .grid[class*="grid-cols-12"] > * {
    grid-column: 1 / -1 !important;
  }

  .grid.grid-cols-1,
  .grid[class*="grid-cols-"] {
    gap: 1rem !important;
  }

  .stats-banner {
    padding: 1.25rem !important;
  }

  .stats-banner .font-display.text-4xl {
    font-size: 1.75rem !important;
  }

  .redirect-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .redirect-card:hover {
    transform: none;
  }

  .insight-card:hover {
    transform: none;
  }

  .step-card:hover {
    transform: none;
  }

  .marquee-item {
    font-size: 0.7rem;
    padding: 0 1.25rem;
  }

  .public-study-card {
    padding: 1.1rem !important;
  }

  .public-study-stats {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .public-stat {
    font-size: 0.68rem;
  }

  /* ── Footer & misc ── */
  .footer-premium .grid {
    gap: 2rem !important;
  }

  #back-to-top {
    left: auto;
    right: 1rem;
    bottom: 1.15rem;
    width: 40px;
    height: 40px;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .hero-title {
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  }
}

/* ── Layout fallbacks (site works even if Tailwind CDN is slow/blocked) ── */
.max-w-\[1280px\] {
  max-width: 1280px;
  width: 100%;
}

.max-w-\[800px\] {
  max-width: 800px;
  width: 100%;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-lg {
  max-width: 32rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.w-full {
  width: 100%;
}

.relative {
  position: relative;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.px-margin-mobile {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .md\:px-margin-desktop {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

main#top,
main.pt-20 {
  padding-top: 5rem;
  width: 100%;
  overflow-x: clip;
}

section {
  max-width: 100%;
}

.hero-inner-grid {
  overflow: hidden;
}

/* ── Hero spotlight (very visible) ── */
.hero-spotlight::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -10%;
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.35) 0%, rgba(139, 92, 246, 0.12) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

.hero-spotlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -5%;
  width: 55%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.2) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ── Alternating section bands (visible depth) ── */
.section-band {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.06) 0%, transparent 100%);
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  border-bottom: 1px solid rgba(59, 130, 246, 0.08);
}

/* Force dark premium theme over Tailwind utilities */
html.dark,
html.dark body {
  background-color: #050508 !important;
  color: #f1f5f9 !important;
}

html.dark .text-on-primary { color: #ffffff !important; }
html.dark .text-on-primary-container { color: #94a3b8 !important; }
html.dark .text-on-surface { color: #e2e8f0 !important; }
html.dark .text-secondary,
html.dark .text-secondary-fixed { color: #60a5fa !important; }
html.dark .border-outline { border-color: rgba(125, 211, 252, 0.2) !important; }
html.dark .bg-tertiary-container,
html.dark [class*="bg-tertiary-container"] { background-color: rgba(12, 18, 32, 0.6) !important; }
html.dark .bg-primary-container { background-color: #050508 !important; }

/* ── Survey redirect status pages ── */
.redirect-status-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.redirect-status-badge.complete {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.redirect-status-badge.terminate {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.redirect-status-badge.quotafull {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.redirect-status-badge.security {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.redirect-recorded {
  font-size: 0.8rem;
  font-weight: 600;
  color: #34d399;
  min-height: 1.25rem;
  margin-bottom: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.redirect-recorded.show {
  opacity: 1;
}

/* ── Public live studies grid ── */
.public-studies-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

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

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

.public-study-card {
  padding: 1.35rem !important;
  display: flex;
  flex-direction: column;
  height: 100%;
  opacity: 1;
  transform: none;
}

.public-study-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.public-study-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.public-study-badge.test {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.45);
}

.public-study-card-test {
  border-color: rgba(59, 130, 246, 0.35) !important;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@media (min-width: 768px) {
  .public-study-card-test {
    grid-column: 1 / -1;
    max-width: 42rem;
    margin: 0 auto;
    width: 100%;
  }
}

.public-study-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.public-study-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.public-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.public-stat .material-symbols-outlined {
  font-size: 14px;
}

.public-stat.complete {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}

.public-stat.terminate {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.public-stat.quotafull {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.public-studies-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.public-study-eligibility {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.public-study-eligibility-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.4rem;
}

.public-study-eligibility-list {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.public-study-eligibility-list li {
  margin-bottom: 0.2rem;
}

.public-study-quota-left {
  font-size: 0.72rem;
  font-weight: 600;
  color: #fbbf24;
  margin: 0.45rem 0 0;
}

.public-study-eligibility-empty {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0;
}

.public-study-panel-note {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.public-study-contact-link {
  display: inline-block;
  margin-top: 0.35rem;
  color: #60a5fa;
  font-weight: 600;
  text-decoration: none;
}

.public-study-contact-link:hover {
  text-decoration: underline;
}

.demo-outcome-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
  color: inherit;
}

.demo-outcome-link:hover {
  transform: translateY(-2px);
}

.demo-outcome-link strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.demo-outcome-link span:last-child {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.demo-outcome-link.complete {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.demo-outcome-link.complete .material-symbols-outlined { color: #34d399; }

.demo-outcome-link.terminate {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
}

.demo-outcome-link.terminate .material-symbols-outlined { color: #f87171; }

.demo-outcome-link.quotafull {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
}

.demo-outcome-link.quotafull .material-symbols-outlined { color: #fbbf24; }

.demo-outcome-link.security {
  background: rgba(100, 116, 139, 0.1);
  border-color: rgba(148, 163, 184, 0.35);
}

.demo-outcome-link.security .material-symbols-outlined { color: #94a3b8; }

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
