/* =========================================================
   TRIMRLY HOMEPAGE STYLESHEET (/public/content/home.css)
   Light Mode + [data-bs-theme="dark"] Dark Mode
   ========================================================= */

/* ── Hero Section ── */
#hero {
  background: linear-gradient(135deg, #f9fbfd, #eef5ff);
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}
.hero-row {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 50%),
              radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.15), transparent 50%);
  z-index: 0;
}
.hero-title,
.hero-desc {
  position: relative;
  z-index: 1;
}
.trusted-badge {
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}
.hero-checks span {
  display: inline-block;
  margin: 6px 10px 6px 0;
  padding: 6px 14px;
  border-radius: 20px;
  background: #fff;
  font-size: 0.95rem;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.hero-checks i {
  color: #22c55e;
  margin-right: 6px;
}
.hero-form {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 20px;
  position: relative;
  z-index: 2;
}
.hero-form .form-control {
  border-radius: 10px;
  padding: 12px;
  border: 1px solid #ddd;
}
.hero-form-actions {
  margin-top: 1rem;
  padding-bottom: 10px;
}
.glow-input:focus {
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
  border-color: #6366f1;
}
.output-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 20px;
  position: relative;
  z-index: 2;
}
.qr-shape {
  position: absolute;
  width: 80px;
  height: 80px;
  background: #4e54c8;
  opacity: 0.12;
  z-index: 0;
  animation: hp-float 6s ease-in-out infinite;
}
.qr-1 {
  top: 15%;
  left: -40px;
  transform: rotate(15deg);
}
.qr-2 {
  bottom: 10%;
  right: -50px;
  background: #8f94fb;
  animation-delay: 2s;
}
.qr-3 {
  top: 5%;
  right: 10%;
  background: #00c6ff;
  width: 100px;
  height: 100px;
  animation-delay: 4s;
}
@keyframes hp-float {
  0%, 100% { transform: translateY(0) rotate(15deg); }
  50% { transform: translateY(-15px) rotate(25deg); }
}
#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Shimmer Buttons ── */
.btn-trimrly {
  position: relative;
  display: inline-block;
  padding: 12px 32px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  color: #fff;
  background: linear-gradient(90deg, #233DFF, #005BFF);
  box-shadow: 0 6px 18px rgba(35, 61, 255, 0.25);
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
  transition: all 0.35s ease;
}
.btn-trimrly::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
  transition: left 0.8s ease;
}
.btn-trimrly:hover::before {
  left: 125%;
}
.btn-trimrly:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(35, 61, 255, 0.3);
  color: #fff;
}
.btn-copy {
  position: relative;
  display: inline-block;
  padding: 10px 24px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  color: #fff;
  background: linear-gradient(90deg, #22C55E, #16A34A);
  box-shadow: 0 5px 14px rgba(22, 163, 74, 0.25);
  overflow: hidden;
  transition: all 0.35s ease;
}
.btn-copy::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.8s ease;
}
.btn-copy:hover::before {
  left: 125%;
}
.btn-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
}

/* ── Main Features (Connections Platform) ── */
#mainfeatures {
  background: linear-gradient(180deg, #ffffff 0%, #f3f9ff 100%);
  padding: 50px 0;
}
.hp-container-1300 {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 25px;
}
.mainfeatures-header {
  text-align: center;
  margin-bottom: 50px;
}
.mainfeatures-heading {
  font-weight: 800;
  font-size: 38px;
  color: #111;
  margin-bottom: 15px;
}
.mainfeatures-lead {
  font-size: 17px;
  color: #333;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}
.mainfeatures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
}
#mainfeatures .feature-card {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0, 115, 230, 0.08);
  transition: all 0.3s;
  overflow: hidden;
  position: relative;
}
#mainfeatures .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 115, 230, 0.15);
}
.feature-card-top {
  padding: 20px;
  text-align: center;
  position: relative;
}
.feature-card-body {
  padding: 30px 25px;
}
.feature-card-title {
  color: #111;
}
.feature-card-text {
  color: #333;
  line-height: 1.7;
}
.feature-card-link {
  display: inline-block;
  border: 2px solid #0073e6;
  color: #0073e6;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 10px;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.feature-card-link:hover {
  background: #0073e6;
  color: #fff;
}
.url-pill-preview {
  margin: 1rem;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: #fff;
  display: inline-block;
}
.bio-mini-avatar-wrap {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bio-mini-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}
.bio-mini-name {
  margin-top: 10px;
}
.bio-mini-btn {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
}
.qr-preview-box {
  width: 138px;
  margin: 0 auto;
}
.qr-overlay-carousel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
@media (max-width: 768px) {
  #mainfeatures { padding: 50px 0; }
  .mainfeatures-heading { font-size: 28px; }
}

/* ── Analytics & Deep Linking Section ── */
#features {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
#feature-section {
  background: #f6f9ff;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
#feature-section .gradient-primary {
  background: linear-gradient(90deg, #0093E9, #80D0C7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.analytics-top-card {
  background: linear-gradient(145deg, #1E33FF 0%, #005BFF 45%, #002EEA 100%);
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.feature-lead-copy {
  color: #444;
}
#feature-section .feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  background: linear-gradient(135deg, #233DFF 0%, #005BFF 100%);
  box-shadow: 0 4px 14px rgba(35, 61, 255, 0.25);
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#feature-section .feature-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(35, 61, 255, 0.35);
}
#feature-section .flag-icon {
  width: 25px;
  height: 19px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}
#feature-section .analytics-showcase {
  max-width: 420px;
  margin: auto;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
}
#feature-section .analytics-showcase:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(35, 61, 255, 0.12);
}
.short-link-box {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-family: monospace;
  font-size: 15px;
  letter-spacing: 0.2px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
  color: #fff;
}
#typed-text {
  display: inline-block;
  color: #fff;
  font-weight: 600;
  font-family: monospace;
  white-space: nowrap;
  border-right: 2px solid rgba(255, 255, 255, 0.8);
  padding-right: 4px;
  animation: hp-blink 0.8s infinite;
}
@keyframes hp-blink {
  50% { border-color: transparent; }
}
#feature-section .progress-bar {
  background: linear-gradient(90deg, #233DFF, #005BFF);
  height: 100%;
  width: 0;
  border-radius: 10px;
  animation: hp-grow-bar 1.4s ease-out forwards;
}
@keyframes hp-grow-bar {
  from { width: 0; }
  to { width: var(--target); }
}
.deep-app-card {
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
}
.deep-app-card img {
  width: 56px;
  height: 56px;
  background: #ffffff;
  padding: 10px;
  border-radius: 18px;
  border: 2px solid rgba(0, 147, 233, 0.12);
  box-shadow: 0 4px 12px rgba(0, 115, 230, 0.08);
  transition: all 0.3s ease;
  object-fit: contain;
}
.deep-app-card:hover img {
  transform: translateY(-6px);
  border-color: #0093E9;
  box-shadow: 0 8px 24px rgba(0, 115, 230, 0.25);
}
.deep-app-card p {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  transition: all 0.3s ease;
}
.deep-app-card:hover p {
  color: #0073e6;
  transform: translateY(-3px);
}
@media (max-width: 991px) {
  #feature-section .row.flex-lg-row-reverse { flex-direction: column-reverse !important; }
  #feature-section .analytics-showcase { max-width: 100%; }
}
@media (max-width: 767px) {
  .deep-app-card img { width: 52px; height: 52px; border-radius: 14px; }
  .deep-app-card p { font-size: 13px; }
}

/* ── Micro Features Grid ── */
.all-features-section {
  background: #f9fafc;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.micro-feature-grid {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
}
@media (min-width: 768px) {
  .micro-feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .micro-feature-grid { grid-template-columns: repeat(3, 1fr); }
}
.micro-feature-card {
  background: #fff;
  border-radius: 15px;
  padding: 32px;
  border: 2px solid rgba(0, 147, 233, 0.12);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: 0.25s ease;
}
.micro-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 115, 230, 0.15);
  border-color: #233DFF;
}
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #233DFF 0%, #005BFF 100%);
  box-shadow: 0 4px 14px rgba(35, 61, 255, 0.25);
  font-size: 22px;
  margin-bottom: 15px;
}

/* ── Activity & Team Collaboration ── */
.activity-team-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.activity-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

/* ── Integrations Section ── */
#integrations {
  background: #f9fbff;
  padding: 60px 20px;
}
.integrations-header {
  text-align: center;
  margin-bottom: 50px;
}
.integrations-lead {
  font-size: 17px;
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.6;
}
.integrations-cta {
  margin-top: 25px;
}
.integrations-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.addons-grid {
  max-width: 1100px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.gradient-blue {
  background: linear-gradient(135deg, #233DFF, #005BFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.integration-card {
  background: #fff;
  border: 2px solid rgba(35, 61, 255, 0.15);
  border-radius: 14px;
  text-align: center;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.integration-card:hover {
  border-color: #233DFF;
  box-shadow: 0 8px 24px rgba(35, 61, 255, 0.18);
  transform: translateY(-5px);
}
.integration-logo {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.integration-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.x-badge-circle {
  width: 40px;
  height: 40px;
}
.x-icon-dark {
  color: #111;
}
.integration-name {
  font-size: 17px;
  margin: 15px 0 5px;
  font-weight: 700;
  color: #111;
}
.integration-metric {
  margin: 0;
  color: #233DFF;
  font-size: 14px;
  font-weight: 600;
}

/* ── Reviews Carousel ── */
#reviews {
  background: #f6f9ff;
  padding: 50px 0;
}
#reviews .container {
  position: relative;
}
.reviews-heading,
.stats-heading {
  color: #111;
}
.reviews-subcopy,
.stats-subcopy {
  color: #444;
}
.reviews-wrap {
  position: relative;
}
.reviews-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 360px);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 18px 48px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.reviews-track::-webkit-scrollbar {
  display: none;
}
.review-card {
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 2px solid rgba(35, 61, 255, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  padding: 18px;
  transition: all 0.25s ease;
}
.review-card:hover,
.review-card:focus {
  transform: translateY(-4px);
  border-color: #233DFF;
  box-shadow: 0 12px 32px rgba(35, 61, 255, 0.22);
  outline: none;
}
.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.review-head .avatar-initial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #233DFF, #005BFF);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-stars {
  color: #f5b50a;
  margin: 8px 0;
  font-size: 14px;
}
.review-text {
  color: #333;
  line-height: 1.55;
  margin: 0;
}
.review-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: #111;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}
.review-nav:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}
.review-nav.prev {
  left: 4px;
}
.review-nav.next {
  right: 4px;
}
@media (max-width: 576px) {
  .reviews-track { grid-auto-columns: 88vw; padding: 10px 20px; }
  .review-nav { display: none; }
}

/* ── Stats Section ── */
#stats {
  background: #f6f9ff;
  padding: 40px 0;
}
#stats .stats-track {
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  gap: 24px;
  padding: 20px 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
#stats .stats-track::-webkit-scrollbar {
  display: none;
}
#stats .stat-card {
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 2px solid rgba(35, 61, 255, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  padding: 35px 28px;
  transition: all 0.25s ease;
  min-width: 260px;
}
#stats .stat-card:hover {
  transform: translateY(-4px);
  border-color: #233DFF;
  box-shadow: 0 12px 32px rgba(35, 61, 255, 0.22);
}
#stats .stat-value {
  color: #111;
  font-size: 2.6rem;
  line-height: 1;
}
@media (max-width: 768px) {
  #stats .stats-track { grid-auto-columns: 80vw; }
}

/* ── Homepage Blog Section (Explicit High-Priority Card Styling) ── */
section#blog.hp-blog-section {
  background: linear-gradient(180deg, #f9fbff 0%, #eef5ff 100%);
  padding: 70px 20px;
}
section#blog .hp-blog-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
}
section#blog .hp-blog-header {
  text-align: center;
  margin-bottom: 50px;
}
section#blog .hp-blog-lead {
  font-size: 17px;
  color: #333;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}
section#blog .hp-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
section#blog .blog-card-hp {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(35, 61, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0, 115, 230, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
section#blog .blog-card-hp:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(0, 115, 230, 0.16);
  border-color: #233DFF;
}
section#blog .hp-blog-cat-bar {
  background: linear-gradient(90deg, #233DFF 0%, #005BFF 100%);
  padding: 18px 22px;
}
section#blog .hp-blog-cat-pill {
  display: inline-block;
  background: #ffffff;
  border-radius: 999px;
  padding: 4px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
section#blog .hp-blog-cat-text {
  font-size: 12px;
  font-weight: 700;
  color: #233DFF;
  display: inline-block;
}
section#blog .hp-blog-body {
  padding: 28px 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
section#blog .hp-blog-title {
  color: #111;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}
section#blog .hp-blog-excerpt {
  color: #333;
  line-height: 1.7;
  font-size: 15px;
  margin-bottom: 20px;
  flex: 1;
}
section#blog .hp-blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 14px;
}
section#blog .hp-blog-meta-item {
  font-size: 13px;
  color: #666;
}
section#blog .hp-blog-meta-icon {
  color: #233DFF;
}
section#blog .hp-blog-read-link {
  align-self: flex-start;
  display: inline-block;
  border: 2px solid #0073e6;
  color: #0073e6;
  background: transparent;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 18px;
  transition: background-color 0.25s ease, color 0.25s ease;
}
section#blog .hp-blog-read-link:hover {
  background: #0073e6;
  color: #fff;
}
section#blog .hp-blog-footer-cta {
  text-align: center;
  margin-top: 45px;
}

/* ── FAQ Section ── */
#faq {
  width: 100%;
  background: #f9fafb;
  padding: 3rem 1rem;
}
#faq, #faq * {
  box-sizing: border-box;
}
#faq h2 {
  color: #111;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  position: relative;
  display: inline-block;
}
#faq h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, #233DFF, #005BFF);
  border-radius: 2px;
}
#faq .faq-center {
  text-align: center;
  margin-bottom: 2.5rem;
}
#faq .faq-inner {
  max-width: 1200px;
  margin: 0 auto;
}
#faq .accordion-item {
  border: 1px solid rgba(35, 61, 255, 0.1);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  background: #fff;
}
#faq .accordion-item:hover {
  border-color: rgba(35, 61, 255, 0.25);
  box-shadow: 0 6px 16px rgba(35, 61, 255, 0.08);
}
#faq .accordion-button {
  width: 100%;
  font-weight: 600;
  color: #111;
  background: #fff;
  border: none;
  box-shadow: none;
  padding: 1rem 1.25rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
}
#faq .accordion-button::after {
  display: none;
}
#faq .accordion-button.open {
  color: #233DFF;
  background: rgba(35, 61, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(35, 61, 255, 0.15);
}
#faq .accordion-icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
#faq .accordion-button.open .accordion-icon {
  transform: rotate(180deg);
}
#faq .accordion-body {
  display: none;
  color: #444;
  line-height: 1.7;
  background: #fff;
  border-top: 1px solid rgba(35, 61, 255, 0.08);
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 14.5px;
}
#faq .accordion-body.open {
  display: block;
}
#faq .accordion-body strong {
  color: #233DFF;
}

/* ── Bottom CTA Banner ── */
#link-shortener .gradient-primary {
  background: linear-gradient(90deg, #233DFF 0%, #005BFF 100%);
}
#link-shortener .btn-trimrly {
  position: relative;
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #233DFF, #005BFF);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.35), 0 6px 18px rgba(35, 61, 255, 0.3);
  overflow: hidden;
  transition: all 0.35s ease;
  text-decoration: none;
}
#link-shortener .btn-trimrly::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
  transition: left 0.8s ease;
}
#link-shortener .btn-trimrly:hover::before {
  left: 125%;
}
#link-shortener .btn-trimrly:hover {
  transform: translateY(-3px);
  border-color: #fff;
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.5), 0 8px 28px rgba(35, 61, 255, 0.4);
}

/* =========================================================
   DARK MODE OVERRIDES ([data-bs-theme="dark"])
   ========================================================= */
[data-bs-theme="dark"] #hero {
  background: linear-gradient(135deg, #0b0b0c, #0e0f13);
}
[data-bs-theme="dark"] .hero-bg {
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 50%),
              radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.08), transparent 50%);
}
[data-bs-theme="dark"] .hero-title,
[data-bs-theme="dark"] .hero-title strong,
[data-bs-theme="dark"] .hero-desc,
[data-bs-theme="dark"] .trusted-badge,
[data-bs-theme="dark"] .hero-checks span,
[data-bs-theme="dark"] .hero-form label,
[data-bs-theme="dark"] .hero-form p,
[data-bs-theme="dark"] #text-result p {
  color: #e8e8e8 !important;
}
[data-bs-theme="dark"] .trusted-badge {
  background: #14141a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}
[data-bs-theme="dark"] .hero-checks span {
  background: #14141a;
  color: #e6e6e6;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
[data-bs-theme="dark"] .hero-checks i {
  color: #22c55e;
}
[data-bs-theme="dark"] .hero-form,
[data-bs-theme="dark"] .output-card {
  background: rgba(20, 20, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}
[data-bs-theme="dark"] .hero-form .form-control {
  background: #181820;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}
[data-bs-theme="dark"] .hero-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
[data-bs-theme="dark"] .glow-input:focus {
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.8);
  border-color: #6366f1;
}
[data-bs-theme="dark"] .btn[data-bs-toggle="modal"] {
  background: #1b1b22;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e4e4e4;
}
[data-bs-theme="dark"] #advanced .form-group label {
  color: #e6e6e6;
}
[data-bs-theme="dark"] #advanced .form-group input {
  background: #181820;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}
[data-bs-theme="dark"] .qr-shape { opacity: 0.08; }
[data-bs-theme="dark"] .captcha { filter: invert(1) hue-rotate(180deg); }
[data-bs-theme="dark"] #particle-canvas { filter: brightness(0.7); }

[data-bs-theme="dark"] #mainfeatures {
  background: linear-gradient(180deg, #0e0f13 0%, #111318 100%) !important;
}
[data-bs-theme="dark"] .mainfeatures-heading,
[data-bs-theme="dark"] .feature-card-title { color: #e8e8e8; }
[data-bs-theme="dark"] .mainfeatures-lead,
[data-bs-theme="dark"] .feature-card-text { color: #aaa; }
[data-bs-theme="dark"] #mainfeatures .feature-card {
  background: rgba(20, 20, 28, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5) !important;
}
[data-bs-theme="dark"] .feature-card-link {
  border-color: #4d79ff;
  color: #4d79ff;
}

[data-bs-theme="dark"] #feature-section { background: #0e0f13; }
[data-bs-theme="dark"] #feature-section h2,
[data-bs-theme="dark"] #feature-section .fw-bold:not(.gradient-primary),
[data-bs-theme="dark"] #feature-section .analytics-bottom h5,
[data-bs-theme="dark"] #feature-section .country-name { color: #e8e8e8; }
[data-bs-theme="dark"] #feature-section p.lead,
[data-bs-theme="dark"] #feature-section p.mb-0 { color: #aaa !important; }
[data-bs-theme="dark"] #feature-section .analytics-showcase {
  background: linear-gradient(180deg, rgba(20, 20, 28, 0.95) 0%, rgba(18, 18, 24, 1) 100%);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}
[data-bs-theme="dark"] #feature-section .analytics-bottom .text-muted { color: #888 !important; }
[data-bs-theme="dark"] .deep-app-card img {
  background: #1e1e28;
  border-color: rgba(99, 102, 241, 0.2);
}
[data-bs-theme="dark"] .deep-app-card p { color: #ccc; }
[data-bs-theme="dark"] .deep-app-card:hover p { color: #7b9fff; }

[data-bs-theme="dark"] .all-features-section { background: #0e0f13 !important; }
[data-bs-theme="dark"] .all-features-section h2,
[data-bs-theme="dark"] .micro-feature-card h3 { color: #e8e8e8; }
[data-bs-theme="dark"] .all-features-section p.lead,
[data-bs-theme="dark"] .micro-feature-card p { color: #aaa; }
[data-bs-theme="dark"] .micro-feature-card {
  background: #16161e;
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] #integrations { background: #0e0f13 !important; }
[data-bs-theme="dark"] #integrations h2,
[data-bs-theme="dark"] .integration-name { color: #e8e8e8 !important; }
[data-bs-theme="dark"] #integrations p { color: #aaa; }
[data-bs-theme="dark"] .integration-card {
  background: #16161e;
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
[data-bs-theme="dark"] .integration-metric { color: #7b9fff; }

[data-bs-theme="dark"] #reviews,
[data-bs-theme="dark"] #stats { background: #0e0f13 !important; }
[data-bs-theme="dark"] .reviews-heading,
[data-bs-theme="dark"] .stats-heading,
[data-bs-theme="dark"] .review-card h6,
[data-bs-theme="dark"] #stats .stat-value { color: #e8e8e8 !important; }
[data-bs-theme="dark"] .reviews-subcopy,
[data-bs-theme="dark"] .stats-subcopy,
[data-bs-theme="dark"] .review-text { color: #aaa !important; }
[data-bs-theme="dark"] .review-card,
[data-bs-theme="dark"] #stats .stat-card {
  background: rgba(20, 20, 28, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5) !important;
}
[data-bs-theme="dark"] .review-nav {
  background: #1e1e28;
  color: #e8e8e8;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

[data-bs-theme="dark"] section#blog.hp-blog-section {
  background: linear-gradient(180deg, #0e0f13 0%, #111318 100%);
}
[data-bs-theme="dark"] section#blog .blog-card-hp {
  background: rgba(20, 20, 28, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}
[data-bs-theme="dark"] section#blog .blog-card-hp:hover {
  border-color: rgba(77, 121, 255, 0.45);
  box-shadow: 0 16px 36px rgba(35, 61, 255, 0.25);
}
[data-bs-theme="dark"] section#blog .hp-blog-title {
  color: #e8e8e8;
}
[data-bs-theme="dark"] section#blog .hp-blog-lead,
[data-bs-theme="dark"] section#blog .hp-blog-excerpt {
  color: #aaa;
}
[data-bs-theme="dark"] section#blog .hp-blog-meta {
  border-top-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] section#blog .hp-blog-meta-item {
  color: #888;
}
[data-bs-theme="dark"] section#blog .hp-blog-read-link {
  border-color: #4d79ff;
  color: #4d79ff;
}
[data-bs-theme="dark"] section#blog .hp-blog-read-link:hover {
  background: #4d79ff;
  color: #fff;
}

[data-bs-theme="dark"] #faq { background: #0e0f13; }
[data-bs-theme="dark"] #faq h2 { color: #e8e8e8; }
[data-bs-theme="dark"] #faq .accordion-item { background: #16161e; border-color: rgba(255, 255, 255, 0.07); }
[data-bs-theme="dark"] #faq .accordion-button { background: #16161e; color: #e8e8e8; }
[data-bs-theme="dark"] #faq .accordion-button.open { color: #7b9fff; background: rgba(35, 61, 255, 0.08); }
[data-bs-theme="dark"] #faq .accordion-body { background: #16161e; color: #bbb; border-top-color: rgba(255, 255, 255, 0.06); }
[data-bs-theme="dark"] #faq .accordion-body strong { color: #7b9fff; }