:root {
  /* shadcn-inspired tokens (light mode) */
  --bg: #ffffff;
  --panel: #ffffff;
  --muted: #6b7280;
  --muted-2: #9aa3b2;
  --text: #0f1724;
  --border: rgba(15, 23, 36, 0.08);
  --ring: rgba(59, 130, 246, 0.16);
  --accent: #0f1724; /* primary text/cta */
  --glass: rgba(255, 255, 255, 0.6);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 20px 60px rgba(16, 24, 40, 0.1);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    "Helvetica Neue",
    Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

/* Global headings: larger and bold for improved readability */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.6rem 0;
}

h1 {
  font-size: 2.75rem;
  line-height: 1.05;
}
h2 {
  font-size: 2rem;
  line-height: 1.12;
}
h3 {
  font-size: 1.5rem;
  line-height: 1.15;
}
h4 {
  font-size: 1.25rem;
  line-height: 1.2;
}
h5 {
  font-size: 1.125rem;
  line-height: 1.25;
}
h6 {
  font-size: 1rem;
  line-height: 1.3;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.7)
  );
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  z-index: 60;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 32px;
}
/* Navbar typography: larger, bold, darker for clarity */
.nav {
  color: var(--text);
}
.nav-inner {
  font-size: 16px;
}
.nav .logo a {
  font-weight: 800;
  color: var(--text);
  font-size: 18px;
}
.nav-links a,
#mobile-nav a {
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
}

/* Uppercase nav links with extra spacing and letter-spacing */
.nav-links {
  gap: 20px;
}
.nav-links a,
#mobile-nav a {
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 8px 10px;
}
.logo a {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 14px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px;
  border-radius: 10px;
  font-weight: 700;
}
.nav-links a:hover {
  color: var(--accent);
  background: transparent;
}

/* HERO */
.hero {
  position: relative;
  display: flex;
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
  padding: 28px;
  border-radius: 18px;
}
.hero::before {
  content: "";
  position: absolute;
  right: -6%;
  top: -18%;
  width: 48%;
  height: 140%;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(99, 102, 241, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(99, 102, 241, 0.06),
      transparent 20%
    );
  filter: blur(36px);
  pointer-events: none;
  z-index: 0;
}
.hero-title {
  font-size: 42px;
  margin: 0 0 8px 0;
  font-weight: 800;
  line-height: 1.05;
  z-index: 2;
}
.hero-sub {
  color: var(--muted);
  margin: 12px 0 22px;
  max-width: 560px;
  z-index: 2;
}
.hero-visual {
  z-index: 2;
}
.hero-visual img {
  width: 420px;
  height: 280px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(15, 23, 36, 0.12);
  transform-origin: center center;
}

/* Advanced hero and landing sections */
.hero-advanced {
  padding: 36px 44px;
}
.visual-card img {
  display: block;
  width: 100%;
  height: auto;
}
.stat-value {
  color: var(--text);
}
.stat-label {
  color: var(--muted);
}

/* Icon containers to break up white space */
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  font-size: 18px;
  margin-bottom: 10px;
}
.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f1f5ff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  color: #374151;
}
.avatar i {
  font-size: 18px;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* active nav link */
.nav-links a.active {
  background: linear-gradient(
    90deg,
    rgba(14, 165, 164, 0.08),
    rgba(79, 70, 229, 0.06)
  );
  color: var(--accent) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 36, 0.06);
}

/* clicked nav link (persistent on click) */
.nav-links a.clicked,
#mobile-nav a.clicked {
  background: linear-gradient(
    90deg,
    rgba(14, 165, 164, 0.08),
    rgba(79, 70, 229, 0.06)
  );
  color: var(--accent) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 36, 0.06);
}

.features-grid .card {
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), var(--panel));
  border: 1px solid var(--border);
}

.metrics-grid .card {
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), var(--panel));
  border: 1px solid var(--border);
}

.testimonial {
  padding: 18px;
}

/* CTA section */
.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid var(--border);
}

/* Light-mode only — ensure no dark palettes accidentally applied */
body {
  color-scheme: light;
}

/* CTA tweaks */
.btn {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.btn-primary {
  background: linear-gradient(180deg, #111827, #0b1220);
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
}
.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
}

/* Card improvements */
.card {
  overflow: hidden;
}
.card .card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.card img {
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.35s ease;
}
.card:hover img {
  transform: scale(1.04) translateY(-6px);
}
.card .title {
  font-size: 15px;
}

/* subtle shadow & lift on hover */
.card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 30px 60px rgba(15, 23, 36, 0.12);
}

.section {
  margin-top: 28px;
  margin-bottom: 36px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.1vw, 2.5rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em;
  line-height: 1.06;
}
.muted {
  color: var(--muted);
}
.muted-link {
  color: var(--muted);
  text-decoration: none;
}

/* Controls: refined inputs like shadcn */
.controls .control-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
input[type="search"],
input,
select,
textarea {
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 10px;
  outline: none;
  font-size: 14px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.15s,
    transform 0.12s;
}
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 6px var(--ring);
  border-color: rgba(59, 130, 246, 0.35);
}
textarea {
  width: 100%;
  resize: vertical;
}

/* Buttons */
.btn {
  background: transparent;
  border: 1px solid var(--border);
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}
.btn:focus {
  outline: none;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.03);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(180deg, #111827, #0b1220);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  border: none;
  color: var(--accent);
}

/* Grid responsive */
.grid {
  display: grid;
  gap: 20px;
}
.grid-responsive {
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 640px) {
  .grid-responsive {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .grid-responsive {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1280px) {
  .grid-responsive {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card — elevated, shadcn-like */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.18s cubic-bezier(0.2, 0.9, 0.2, 1),
    box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

/* subtle continuous floating animation for images */
@keyframes floatUpDown {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

.float {
  will-change: transform;
  animation: floatUpDown 4s ease-in-out infinite;
}

.float-slow {
  animation-duration: 6s;
}

.card img,
.hero-visual img {
  transition:
    transform 0.35s ease,
    opacity 0.6s ease;
}

/* reveal animation for cards and hero */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}
.card .title {
  font-weight: 600;
  margin: 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}
.card .subtitle {
  color: var(--muted);
  font-size: 13px;
}
.badge {
  display: inline-block;
  background: #f1f5f9;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.price {
  font-weight: 700;
  color: var(--accent);
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.empty-state {
  padding: 48px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}
.hidden {
  display: none;
}

/* Product detail layout */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 880px) {
  .product-detail {
    grid-template-columns: 1fr 420px;
  }
}
.product-image img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.product-image img {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.product-image img.zoomed {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.tag {
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  border: 1px solid var(--border);
}
.product-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

/* Form */
.form {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 500;
}
.form input,
.form textarea {
  border-radius: 10px;
  padding: 12px;
  border: 1px solid var(--border);
}
.form-actions {
  display: flex;
  justify-content: flex-end;
}

/* FAQ section */
.faq-section {
  position: relative;
}

.faq-head {
  align-items: flex-end;
}

.faq-kicker {
  margin: 0 0 8px;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.faq-accordion {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, #faf5ff 0%, #f8f5ff 100%);
  box-shadow: 0 10px 24px rgba(76, 29, 149, 0.05);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 800;
  color: #1e0a3c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-item summary i {
  color: #5b21b6;
  transition: transform 0.2s ease;
}

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

.faq-content {
  padding: 0 18px 16px;
  color: #4b2d83;
  font-size: 14px;
  line-height: 1.75;
  border-top: 1px solid rgba(139, 92, 246, 0.14);
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.45);
}

#results-heading {
  color: #1e0a3c !important;
}

footer {
  padding: 28px;
  border-top: 1px solid rgba(139, 92, 246, 0.22);
  margin-top: 40px;
  text-align: center;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  background: linear-gradient(135deg, #f3e8ff 0%, #ede9fe 52%, #e9d5ff 100%);
}

/* helpers */
.muted-link {
  font-size: 14px;
}
.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;
}

/* small responsive tweaks */
@media (max-width: 680px) {
  .container {
    padding: 18px;
  }

  .nav-inner {
    padding: 12px 18px;
  }

  .hero-advanced {
    padding: 24px 18px !important;
    min-height: auto !important;
  }

  .hero {
    flex-direction: column-reverse;
    gap: 16px;
  }

  .hero .visual-card {
    width: 100% !important;
    max-width: 100%;
  }

  .hero-visual img {
    width: 100%;
    height: 220px;
  }

  .section {
    margin-top: 22px;
    margin-bottom: 28px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 14px;
  }

  .section-head h2 {
    font-size: clamp(1.6rem, 7.2vw, 2rem) !important;
  }

  .controls .control-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .controls input,
  .controls select,
  .controls button {
    width: 100%;
    min-width: 0 !important;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-actions .btn,
  .product-actions a.btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .card {
    padding: 12px;
  }

  .card img {
    height: 170px;
  }

  .faq-item summary {
    font-size: 15px;
    padding: 14px 14px;
  }

  .faq-content {
    padding: 0 14px 14px;
  }
}

@media (max-width: 920px) {
  .hero-advanced {
    padding: 32px 24px !important;
    min-height: auto !important;
  }

  .hero .visual-card {
    width: min(400px, 100%) !important;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .float,
  .float-slow,
  .reveal,
  .card:hover,
  .btn:hover,
  .hero-visual img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
