@tailwind base;
@tailwind components;
@tailwind utilities;

@font-face {
  font-family: Switzer;
  src: url("../assets/fonts/Switzer-Variable.ttf");
}

@font-face {
  font-family: Mona Sans;
  src: url("../assets/fonts/MonaSans-Variable.ttf");
}

html,
body {
  scroll-behavior: smooth;
  overflow-x: clip;
}

.nav-link {
  @apply xl:hover:bg-transparent hover:bg-slate-50 px-4 xl:px-0 py-3 xl:py-0 rounded-xl xl:font-normal font-medium text-slate-700 lg:hover:text-blue-600 xl:text-[14px] text-sm transition;
}

.dropdown-link {
  @apply lg:block hover:bg-slate-50 px-4 py-2 rounded-xl font-medium text-slate-600 lg:text-slate-700 text-sm transition;
}

.blue-gradient {
  background: linear-gradient(90deg, #386ad9 0%, #122ddb 100%);
}

.hero-bg {
  background-image: url("../assets/new-homepage/background.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

body {
  background-color: #f8fafc;
}

h1,
h2,
h3,
h4 a {
  font-family:
    "Switzer", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
}

p,
a {
  font-family: "Mona Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.offer-section-bg,
.why-osirt-bg {
  background-image: url("../assets/new-homepage/blue-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.offer-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.16) 100%
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.how-it-works-bg {
  background-color: #f5f7fb;
  background-image: url("../assets/new-homepage/bg-blue-effect.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.review-slide {
  width: 100%;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
  will-change: transform, opacity;
}

.review-slide-in-right {
  transform: translateX(0);
  opacity: 1;
}

.review-slide-in-left {
  transform: translateX(0);
  opacity: 1;
}

.review-slide-out-left {
  transform: translateX(-32px);
  opacity: 0;
}

.review-slide-out-right {
  transform: translateX(32px);
  opacity: 0;
}

.contact-img {
  background-image: url("../assets/new-homepage/about.webp");
  background-size: cover;
  background-position: right top;
  background-repeat: no-repeat;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 20px;
  border-radius: 9999px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid;
}

@media (min-width: 640px) {
  .tag {
    font-size: 16px;
  }
}

/* Default variant */
.tag-default {
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(238, 242, 255, 0.5); /* indigo-50/50 */
}

/* Light variant */
.tag-light {
  color: white;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

.step-card {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
  padding: 32px 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .step-card {
    padding: 32px;
  }
}

.step-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: white;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  width: 56px;
  height: 56px;
  font-weight: 500;
  font-size: 2rem;
  color: #3b82f6;
}

@media (min-width: 1024px) {
  .product-content {
    margin-top: -48px;
  }
}

.product-description {
  font-size: 1.05rem;
  color: #404040;
  line-height: 1.6;
}

.about-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: white;
  padding: 24px;
  border-radius: 16px;
  height: 100%;
  border-bottom: 4px solid #2563eb;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.about-card-title {
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  color: #2563eb;
}

.about-divider {
  width: 100%;
  height: 1px;
  background: #e2e8f0;
  margin-bottom: 16px;
}

.about-card-text {
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
}

.footer-link {
  color: #475569;
  font-size: 14px;
  line-height: 1.625;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #2563eb;
}

@media (min-width: 768px) {
  .footer-link {
    font-size: 16px;
  }
}

.logo-marquee {
  animation: logo-marquee 28s linear infinite;
}

.logo-item {
  width: auto;
  max-width: 170px;
  height: 52px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.9;
}

.logo-marquee:hover {
  animation-play-state: paused;
}

.max-w-md {
  max-width: 448px;
}

#cookie-banner {
  display: none;

  position: fixed;
  z-index: 50;

  left: 1rem;
  right: 1rem;
  bottom: 1rem;

  background: white;

  padding: 1.5rem;

  border: 1px solid #e5e7eb;
  border-radius: 1rem;

  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* md:max-w-md + md:left-auto */
@media (min-width: 768px) {
  #cookie-banner {
    left: auto;
    max-width: 28rem;
  }
}

@keyframes logo-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #2563eb;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(8px);
}

@media (min-width: 640px) {
  .trust-pill {
    font-size: 15px;
    padding: 11px 18px;
  }
}

.contact-img {
  background-image: url("../assets/new-homepage/about.webp");
  background-size: cover;
  background-position: center;
}

.audience-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #dbeafe;
  border-bottom: 1px solid #dbeafe;
}

.audience-item {
  text-align: left;
  padding: 1.75rem 1.5rem;
  border-right: 1px solid #dbeafe;
  transition: 0.3s ease;
  min-height: 150px;
}

.audience-item:last-child {
  border-right: 0;
}

.audience-item span {
  display: block;
  color: #2563eb;
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
}

.audience-item strong {
  display: block;
  color: #0f172a;
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 500;
}

.audience-item small {
  display: block;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  transition: 0.3s ease;
  overflow: hidden;
}

.audience-item.active,
.audience-item:hover {
  background: white;
}

.audience-item.active small,
.audience-item:hover small {
  max-height: 90px;
  opacity: 1;
  margin-top: 0.9rem;
}

@media (max-width: 1023px) {
  .audience-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audience-item:nth-child(2) {
    border-right: 0;
  }

  .audience-item:nth-child(-n + 2) {
    border-bottom: 1px solid #dbeafe;
  }
}

@media (max-width: 640px) {
  .audience-rail {
    grid-template-columns: 1fr;
  }

  .audience-item {
    border-right: 0;
    border-bottom: 1px solid #dbeafe;
  }

  .audience-item:last-child {
    border-bottom: 0;
  }
}
