/* ========== LANDING — overrides & specifics ========== */

body { overflow-x: hidden; }

/* Navbar: fixed on landing (hero scrolls behind it) */
.navbar { position: fixed; left: 0; right: 0; }

/* ========== FONT ========== */
@font-face {
  font-family: 'Satisfy';
  src: url('/fonts/Satisfy-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.accent { font-family: 'Satisfy', cursive; color: var(--primary); font-style: italic; }

/* ========== SCROLL ANIMATIONS ========== */
.anim-target {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i, 0) * 150ms);
}
.anim-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .anim-target { opacity: 1; transform: none; transition: none; }
}

/* ========== LANG TOGGLE ========== */
.lang-dropdown { position: relative; }
.lang-btn {
  background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 0.5rem 0.75rem; cursor: pointer; color: var(--text);
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.875rem;
  transition: background 0.2s;
}
.lang-btn:hover { background: var(--card-hover); }
.lang-menu {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; min-width: 140px; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 10;
}
.lang-menu.open { display: block; }
.lang-option {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem; cursor: pointer; font-size: 0.875rem;
  color: var(--text); background: var(--bg);
  transition: background 0.15s;
  border: none; width: 100%; text-align: left;
}
.lang-option:hover { background: var(--card-hover); }

/* ========== NAV BUTTON ========== */
.nav-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1.25rem; border-radius: 8px; font-size: 0.875rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  background: var(--primary); color: #fff;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-btn:hover { background: var(--primary-dark); }
.nav-btn-icon { display: none; width: 20px; height: 20px; }

/* ========== HERO ========== */
.hero {
  position: sticky; top: 0; z-index: 1;
  height: var(--hero-h, 100svh); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: #0a0a0a; color: #fff; padding: 2rem;
  overflow: hidden;
}

/* Noise texture overlay */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0; opacity: 0.3;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ── Animated gradient blobs ── */
.hero-blobs {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  will-change: transform;
}
.blob--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #ff6b35 0%, #ff3d00 100%);
  top: -10%; right: -5%;
  animation: blob-drift-1 12s ease-in-out infinite;
}
.blob--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #ff9800 0%, #ff6b35 100%);
  bottom: -15%; left: -10%;
  animation: blob-drift-2 14s ease-in-out infinite;
}
.blob--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #ffab40 0%, #ff6b35 100%);
  top: 40%; left: 50%;
  opacity: 0.1;
  animation: blob-drift-3 16s ease-in-out infinite;
}

@keyframes blob-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.05); }
  66% { transform: translate(20px, -20px) scale(0.95); }
}
@keyframes blob-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -25px) scale(1.08); }
  66% { transform: translate(-20px, 15px) scale(0.92); }
}
@keyframes blob-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -30px) scale(1.1); }
}

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

/* ── Hero content ── */
.hero-content {
  position: relative; z-index: 1; max-width: 800px;
  display: flex; flex-direction: column; align-items: center;
}

/* Hero reveal animations */
.hero-reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-in 0.8s ease forwards;
  animation-delay: calc(var(--delay, 0) * 200ms);
}
@keyframes hero-fade-in {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-reveal { opacity: 1; transform: none; animation: none; }
}

.hero-title {
  font-size: 3.5rem; font-weight: 800; line-height: 1.15; margin-bottom: 1.5rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero-subtitle-card {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px; padding: 1.125rem 2rem;
  color: #b0b0b0; font-size: 1.125rem; line-height: 1.6;
}

/* ── Scroll hint arrow ── */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.4);
  animation: hero-bounce 1.5s ease-in-out infinite;
}

@keyframes hero-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

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

/* ========== WAVE DIVIDER ========== */
.wave-divider {
  position: relative;
  margin-top: -1px;
  line-height: 0;
  z-index: 2;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ========== SCROLL SECTIONS ========== */
.scroll-content {
  position: relative; z-index: 2; background: var(--bg);
}

section { padding: 5rem 2rem; }
.section-alt { background: var(--bg-alt); }

.section-title {
  text-align: center; font-size: 2.25rem; font-weight: 800; margin-bottom: 3rem;
}
/* Decorative bar under section titles */
.section-title::after {
  content: '';
  display: block;
  width: 48px; height: 4px;
  margin: 0.75rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), #ff9800);
}

/* ========== CARDS GRID ========== */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  max-width: 1000px; margin: 0 auto;
}
.card {
  position: relative;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 2.25rem 2rem; text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
/* Gradient top accent line */
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), #ff9800, var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(255,107,53,0.12);
  border-color: rgba(255,107,53,0.2);
}
.card:hover::before {
  opacity: 1;
}
.card-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #ff9800);
  color: #fff; font-weight: 700; font-size: 1.125rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(255,107,53,0.25);
}
.card-icon { margin-bottom: 1rem; color: var(--primary); }
.card-icon svg { width: 36px; height: 36px; }
.card-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.card-desc { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.6; }

/* ========== FEATURES ========== */
.features { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 2.5rem; }
.feature-row {
  display: flex; align-items: flex-start; gap: 1.25rem;
  transition: transform 0.2s ease;
}
.feature-row:hover {
  transform: translateX(4px);
}
.feature-icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,107,53,0.15), rgba(255,152,0,0.1));
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-row:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(255,107,53,0.15);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.25rem; }
.feature-desc { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.6; }

/* ========== MOBILE STICKY CTA ========== */
.mobile-cta {
  display: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .cards-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.25rem; }
  .hero-subtitle-card { font-size: 1rem; padding: 0.75rem 1.25rem; }
  .section-title { font-size: 1.75rem; }
  .lang-btn .lang-label { display: none; }
  .nav-btn-label { display: none; }
  .nav-btn-icon { display: block; }
  .nav-btn { padding: 0.5rem; border-radius: 50%; width: 40px; height: 40px; }

  .blob--1 { width: 300px; height: 300px; }
  .blob--2 { width: 250px; height: 250px; }
  .blob--3 { display: none; }

  .hero-scroll-hint {
    bottom: calc(4.5rem + env(safe-area-inset-bottom));
  }

  .mobile-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 0.875rem 1.5rem calc(0.875rem + env(safe-area-inset-bottom));
    background: var(--primary);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    animation: mobile-cta-bounce 2s ease-in-out infinite;
  }
  .mobile-cta:active {
    background: var(--primary-dark);
    animation: none;
  }

  @keyframes mobile-cta-bounce {
    0%, 100% { transform: translateY(4px); }
    50% { transform: translateY(0); }
  }

  .footer {
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom));
  }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.75rem; }
  .feature-row { flex-direction: column; align-items: center; text-align: center; }
  .feature-row:hover { transform: none; }
  .wave-divider svg { height: 36px; }
}
