:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(0 0% 3.9%);
  --primary: hsl(0 0% 9%);
  --primary-foreground: hsl(0 0% 98%);
  --muted: hsl(0 0% 96.1%);
  --muted-foreground: hsl(0 0% 45.1%);
  --border: hsl(0 0% 89.8%);
  --accent: #38b2ac;
  /* brand teal */
  --radius: 0.5rem;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* stop iOS auto-zooming text */
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
  /* guard against any accidental horizontal overflow */
  min-width: 320px;
}

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

ul {
  list-style: none;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

/* Consistent, visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

main {
  flex: 1;
  min-width: 0;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}

.btn-default {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-default:hover {
  opacity: .9;
}

.btn-outline {
  background: var(--background);
  color: var(--foreground);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--muted);
}

.btn-lg {
  height: 2.75rem;
  padding: 0 1.5rem;
  font-size: 1rem;
}

@media (min-width: 480px) {
  .btn-lg {
    padding: 0 2rem;
  }
}

.btn-full {
  width: 100%;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: hsl(0 0% 100% / 0.7);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex-shrink: 0;
}

.brand .logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 400px) {
  .brand-name {
    font-size: 1.25rem;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .nav-desktop {
    gap: 1.5rem;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  transition: color .2s;
}

.nav-link:hover {
  color: var(--primary);
}

.menu-btn {
  display: inline-flex;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
  padding: .25rem;
  flex-shrink: 0;
}

.menu-btn .icon-close {
  display: none;
}

.menu-btn.open .icon-open {
  display: none;
}

.menu-btn.open .icon-close {
  display: block;
}

.nav-mobile {
  position: absolute;
  top: 4rem;
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  background: var(--background);
  border-bottom: 1px solid transparent;
  /* smooth slide-down */
  transition: max-height 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  box-shadow: none;
}

.nav-mobile.open {
  max-height: calc(100vh - 4rem);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px hsl(0 0% 0% / 0.08);
  overflow-y: auto;
}

.nav-mobile nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 0 1.5rem;
  gap: 0.25rem;
}

.nav-mobile .nav-link {
  padding: 0.75rem 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}

.nav-mobile .nav-link:last-of-type {
  border-bottom: none;
}

.nav-mobile .btn {
  margin-top: 0.75rem;
  width: 100%;
  height: 2.75rem;
  font-size: 1rem;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }

  .menu-btn {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* ---------- Sections ---------- */
section {
  width: 100%;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  section {
    padding: 5rem 0;
  }
}

@media (min-width: 1024px) {
  section {
    padding: 7rem 0;
  }
}

.bg-muted {
  background: var(--muted);
}

/* ---------- Hero ---------- */
#hero {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  #hero {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (min-width: 1280px) {
  #hero {
    padding: 8rem 0;
  }
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: center;
  }
}

@media (min-width: 1280px) {
  .hero-grid {
    grid-template-columns: 1fr 560px;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  min-width: 0;
}

h1 {
  font-size: clamp(1.75rem, 5vw + 0.5rem, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

.lead {
  max-width: 600px;
  color: var(--muted-foreground);
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.25rem);
}

.hero-search-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 600px;
}

@media (min-width: 560px) {
  .hero-search-form {
    flex-direction: row;
  }
}

.hero-search-input {
  flex: 1;
  min-width: 0;
  /* prevents flex item from forcing overflow */
  height: 3rem;
  padding: 0 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 1rem;
  /* keep >=16px to stop iOS zoom-on-focus */
  background: var(--background);
  color: var(--foreground);
  width: 100%;
}

.hero-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(0 0% 9% / 0.1);
}

.hero-search-form .btn {
  flex-shrink: 0;
  width: 100%;
}

@media (min-width: 560px) {
  .hero-search-form .btn {
    width: auto;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.hero-divider {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.hero-badge svg {
  color: var(--foreground);
  flex-shrink: 0;
}

/* ---- Hero image wrapper + floating overlays ---- */
.hero-img-wrap {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .hero-img-wrap {
    order: 2;
  }
}

.hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  object-fit: cover;
  /* background: var(--muted); */
  max-height: 420px;
}

@media (min-width: 1024px) {
  .hero-img {
    max-height: none;
  }
}

/* Shared floating card */
.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: hsl(0 0% 100% / 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid hsl(0 0% 89% / 0.8);
  border-radius: 0.625rem;
  padding: 0.6rem 0.9rem;
  box-shadow: 0 4px 16px hsl(0 0% 0% / 0.12);
  pointer-events: none;
  /* Subtle entrance animation */
  animation: floatIn 0.5s ease both;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gentle floating bob */
.hero-float--trust {
  animation: floatIn 0.5s ease 0.1s both, bob 4s ease-in-out 0.6s infinite;
}

.hero-float--stat {
  animation: floatIn 0.5s ease 0.2s both, bob 4s ease-in-out 1.2s infinite;
}

.hero-float--status {
  animation: floatIn 0.5s ease 0.3s both, bob 4s ease-in-out 1.8s infinite;
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-float {
    animation: none !important;
  }
}

/* Positions */
.hero-float--trust {
  top: 1rem;
  left: 1rem;
}

.hero-float--stat {
  top: 1rem;
  right: 1rem;
}

.hero-float--status {
  bottom: 1rem;
  right: 1rem;
}

/* Adjust for small screens — shrink cards slightly */
@media (max-width: 480px) {
  .hero-float {
    padding: 0.45rem 0.7rem;
    gap: 0.45rem;
  }

  .hero-float--stat {
    display: none;
    /* hide third card on very small phones to avoid crowding */
  }
}

.hero-float__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
}

.hero-float__dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px hsl(142 71% 35% / 0.2);
  /* Pulse */
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 3px hsl(142 71% 35% / 0.2);
  }

  50% {
    box-shadow: 0 0 0 6px hsl(142 71% 35% / 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-float__dot {
    animation: none;
  }
}

.hero-float__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--foreground);
  white-space: nowrap;
}

.hero-float__sub {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}

/* ---------- Stats bar (new section) ---------- */
#stats {
  padding: 2.5rem 0;
  background: var(--primary);
  color: var(--primary-foreground);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
  text-align: center;
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.stat-num {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8125rem;
  color: hsl(0 0% 98% / 0.7);
}

/* ---------- Section heading ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.pill {
  display: inline-block;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw + 0.75rem, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-sub {
  max-width: 900px;
  color: var(--muted-foreground);
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.25rem);
}

/* ---------- Features ---------- */
.cards-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 2.5rem 0 0;
}

@media (min-width: 768px) {
  .cards-grid {
    gap: 1.5rem;
    padding: 3rem 0 0;
  }
}

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

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--background);
  box-shadow: 0 1px 2px hsl(0 0% 0% / 0.05);
  min-width: 0;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.375rem;
  background: var(--muted);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .feature-card h3 {
    font-size: 1.25rem;
  }
}

.feature-card p {
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

/* ---------- Testimonials / Pricing grids ---------- */
.three-grid {
  grid-template-columns: 1fr;
}

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

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

.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 2px hsl(0 0% 0% / 0.05);
  min-width: 0;
}

.quote-card .quote {
  color: var(--muted-foreground);
  font-style: italic;
  overflow-wrap: break-word;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  font-weight: 600;
  flex-shrink: 0;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .avatar {
    width: 56px;
    height: 56px;
    font-size: 1rem;
  }
}

.quote-author h4 {
  font-weight: 600;
  font-size: 0.9375rem;
}

.quote-author p {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* ---------- Pricing ---------- */
.price-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--background);
  box-shadow: 0 1px 2px hsl(0 0% 0% / 0.05);
  min-width: 0;
}

.price-card.popular {
  border-color: var(--primary);
  position: relative;
  margin-top: 0.75rem;
}

.popular-badge {
  position: absolute;
  top: -0.75rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  white-space: nowrap;
}

.price-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .price-card h3 {
    font-size: 1.5rem;
  }
}

.price-amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 1rem;
}

.price-amount .num {
  font-size: 2rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .price-amount .num {
    font-size: 2.25rem;
  }
}

.price-amount .per {
  color: var(--muted-foreground);
}

.price-desc {
  color: var(--muted-foreground);
  margin-top: 1rem;
}

.price-features {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
}

.price-features svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.price-card .btn {
  margin-top: 1.5rem;
}

/* ---------- FAQ (new section) ---------- */
.faq-list {
  max-width: 48rem;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  .faq-item summary {
    font-size: 1rem;
  }
}

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

.faq-item summary .chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--muted-foreground);
}

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

.faq-item .faq-answer {
  padding: 0 1.25rem 1.1rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------- CTA ---------- */
.cta-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  width: 100%;
  max-width: 420px;
}

@media (min-width: 480px) {
  .cta-actions {
    flex-direction: row;
    width: auto;
  }
}

.cta-actions .btn {
  width: 100%;
}

@media (min-width: 480px) {
  .cta-actions .btn {
    width: auto;
  }
}

/* ---------- Footer ---------- */
.footer {
  width: 100%;
  border-top: 1px solid var(--border);
  background: var(--background);
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .footer {
    padding: 3rem 0;
  }
}

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

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.footer-col p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.socials {
  display: flex;
  gap: 1rem;
}

.socials a {
  color: var(--muted-foreground);
  transition: color .2s;
}

.socials a:hover {
  color: var(--foreground);
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color .2s;
}

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

.footer-bottom {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.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;
}

/* ============================================================
   UPDATED STYLES — Navbar Responsiveness & Interactive Features
   ============================================================ */

/* ---------- Navbar Responsiveness Fixes ---------- */

/* Show nav-desktop earlier (md breakpoint) for logged-in users with many nav items */
@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
    gap: 0.75rem;
  }

  .menu-btn {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* Adjust nav-desktop gap for medium screens */
@media (min-width: 900px) and (max-width: 1023px) {
  .nav-desktop {
    gap: 0.5rem;
  }

  .nav-desktop .nav-link {
    font-size: 0.8125rem;
    padding: 0 0.25rem;
  }

  .nav-desktop .btn {
    height: 2.25rem;
    padding: 0 0.75rem;
    font-size: 0.8125rem;
  }
}

/* Mobile nav form handling */
.nav-mobile form {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
}

.nav-mobile form button {
  width: 100%;
}

/* Mobile nav auth buttons spacing */
.nav-mobile .btn-outline,
.nav-mobile .btn-default {
  margin-top: 0.5rem;
}

/* Ensure header-inner doesn't overflow */
.header-inner {
  min-width: 0;
  flex-wrap: nowrap;
}

/* Brand name truncation on tiny screens */
.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Interactive Features Section ---------- */

#interactive-features {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  #interactive-features {
    padding: 5rem 0;
  }
}

@media (min-width: 1024px) {
  #interactive-features {
    padding: 7rem 0;
  }
}

.interactive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 64rem;
  margin: 2.5rem auto 0;
}

@media (min-width: 640px) {
  .interactive-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .interactive-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }
}

.interactive-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.375rem;
  padding: 1.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  min-width: 0;
  appearance: none;
  font-family: inherit;
}

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

.interactive-card.active {
  border-color: var(--primary);
  border-bottom-color: var(--primary);
  background: hsl(0 0% 9% / 0.03);
  box-shadow: 0 4px 16px hsl(0 0% 0% / 0.08);
}

.interactive-card__icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.interactive-card__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.3;
}

.interactive-card__short {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Detail Panel */
.detail-panel {
  max-width: 48rem;
  margin: 2rem auto 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  padding: 1.5rem;
  transition: opacity 0.15s ease;
}

.detail-panel.updating {
  opacity: 0.4;
}

.detail-panel__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .detail-panel__inner {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 1.25rem;
  }
}

.detail-panel__icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--muted);
  border-radius: var(--radius);
}

.detail-panel h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.detail-panel p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-top: 0.25rem;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.detail-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Ensure hero image wrapper has proper positioning context */
.hero-img-wrap {
  position: relative;
}

/* Better floating card text on very small screens */
@media (max-width: 360px) {
  .hero-float__title {
    font-size: 0.7rem;
  }

  .hero-float__sub {
    font-size: 0.6rem;
  }

  .hero-float {
    padding: 0.35rem 0.55rem;
  }
}