/* ── Base ── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ── Navbar ── */
#navbar {
  background: transparent;
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

#navbar.navbar-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-text-color {
  color: #1A1A1A;
}

.nav-link {
  color: #1A1A1A;
}

/* ── Navbar always visible (éttermi oldal) ── */
.navbar-always-visible {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ── Parallax banner ── */
.parallax-banner {
  background-image: url('banner.png');
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #252525;
}

@media (max-width: 1024px) {
  .parallax-banner {
    background-attachment: scroll;
  }
}

/* ── Section background right ── */
.section-bg-right {
  will-change: transform;
}

/* ── Hero pattern ── */
.hero-pattern {
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
}

/* ── Hero blobs ── */
.hero-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.hero-blob-1 {
  width: 500px;
  height: 500px;
  background: #FF6B35;
  opacity: 0.25;
  top: 5%;
  right: 10%;
  left: auto;
  animation: blobFloat1 8s ease-in-out infinite alternate;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: #FF8F66;
  opacity: 0.22;
  bottom: -10%;
  right: -5%;
  animation: blobFloat2 10s ease-in-out infinite alternate;
}

.hero-blob-3 {
  width: 350px;
  height: 350px;
  background: #FFBA99;
  opacity: 0.28;
  top: 35%;
  left: 45%;
  animation: blobFloat3 7s ease-in-out infinite alternate;
}

@keyframes blobFloat1 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(250px, 180px) scale(1.08); }
  66%  { transform: translate(100px, 350px) scale(0.92); }
  100% { transform: translate(350px, 120px) scale(1.05); }
}

@keyframes blobFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-200px, -150px) scale(1.1); }
  66%  { transform: translate(-80px, -300px) scale(0.93); }
  100% { transform: translate(-280px, -180px) scale(1.06); }
}

@keyframes blobFloat3 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-180px, 120px) scale(1.08); }
  66%  { transform: translate(150px, -100px) scale(0.94); }
  100% { transform: translate(-120px, -160px) scale(1.05); }
}

/* ── Hero phone image ── */
.hero-phone-img {
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.25));
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ── Admin image ── */
.admin-img {
  transition: transform 0.4s ease;
}

.admin-img:hover {
  transform: scale(1.02);
}

/* ── Steps ── */
.step-number {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: #FF6B35;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  z-index: 1;
}

.step-connector {
  position: absolute;
  top: 32px;
  right: -30%;
  width: 60%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    #FF6B35 0px,
    #FF6B35 6px,
    transparent 6px,
    transparent 12px
  );
  opacity: 0.3;
}

/* ── Feature cards ── */
.feature-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* ── Feature card dark ── */
.feature-card-dark {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card-dark:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* ── Pricing card ── */
.pricing-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  border: 2px solid #FF6B35;
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.12);
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(255, 107, 53, 0.18);
}

.pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #F8F9FA;
  border-radius: 12px;
}

/* ── FAQ ── */
.faq-item {
  background: #F8F9FA;
  border-radius: 12px;
  overflow: hidden;
  transition: background-color 0.2s;
}

.faq-item.faq-open {
  background: #FFF7F3;
}

.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-toggle:hover {
  background: rgba(0, 0, 0, 0.02);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-content p {
  padding: 0 20px 16px;
}

.faq-open .faq-chevron {
  transform: rotate(180deg);
}

/* ── Scroll reveal animations ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-delay-1 { transition-delay: 0.1s; }
.scroll-reveal-delay-2 { transition-delay: 0.2s; }
.scroll-reveal-delay-3 { transition-delay: 0.3s; }
.scroll-reveal-delay-4 { transition-delay: 0.4s; }

/* ── Fade in (hero) ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.revealed {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.3s; }

/* ── Hero title size override ── */
@media (min-width: 1024px) {
  #hero-title {
    font-size: 3.8rem;
  }
}

/* ── Responsive fixes ── */
@media (max-width: 768px) {
  .step-connector {
    display: none;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-blob {
    animation: none;
  }

  .hero-phone-img,
  .admin-img {
    transition: none;
  }

  .hero-phone-img:hover,
  .admin-img:hover {
    transform: none;
  }

  .feature-card,
  .pricing-card {
    transition: none;
  }

  .feature-card:hover,
  .pricing-card:hover {
    transform: none;
  }
}
