/* ========================================
   YONETDIO v2 — Modern Bootstrap Landing
   ======================================== */

:root {
  --yd-primary: #0066CC;
  --yd-primary-dark: #004C99;
  --yd-primary-light: #E6F2FF;
  --yd-secondary: #00A3E0;
  --yd-accent: #00C9A7;
  --yd-text-primary: #1A2332;
  --yd-text-secondary: #5A6677;
  --yd-text-light: #8C95A5;
  --yd-border: #E2E8F0;
  --bs-primary: #0066CC;
  --bs-primary-rgb: 0, 102, 204;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--yd-text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Navbar */
.navbar-v2 {
  min-height: 58px;
  padding-top: calc(0.35rem + env(safe-area-inset-top, 0px));
  padding-bottom: 0.35rem;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}

.navbar-v2 > .container-xl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.navbar-v2 .navbar-brand {
  display: flex;
  align-items: center;
  max-width: calc(100% - 2.75rem);
  margin-right: auto;
  padding: 0;
  flex-shrink: 1;
  min-width: 0;
  height: 44px;
}

.navbar-v2 .navbar-logo {
  display: block;
  height: 100%;
  max-height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.navbar-v2 .navbar-toggler {
  flex-shrink: 0;
  margin-left: 0.5rem;
  padding: 0.35rem 0.5rem;
}

.navbar-v2 .navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
}

.navbar-v2 .navbar-actions .btn {
  white-space: nowrap;
}

.navbar-v2.scrolled {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.navbar-v2 .nav-link {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--yd-text-secondary) !important;
  padding: 0.5rem 1rem !important;
}

.navbar-v2 .nav-link:hover,
.navbar-v2 .nav-link.active {
  color: var(--yd-primary) !important;
}

.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }

/* Buttons */
.btn-yd-primary {
  --bs-btn-bg: var(--yd-primary);
  --bs-btn-border-color: var(--yd-primary);
  --bs-btn-hover-bg: var(--yd-primary-dark);
  --bs-btn-hover-border-color: var(--yd-primary-dark);
  --bs-btn-active-bg: var(--yd-primary-dark);
  --bs-btn-active-border-color: var(--yd-primary-dark);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.25);
}

.btn-yd-ghost {
  font-weight: 600;
  color: var(--yd-text-primary);
  border: 1px solid var(--yd-border);
  background: transparent;
}

.btn-yd-ghost:hover {
  background: var(--yd-primary-light);
  border-color: var(--yd-primary);
  color: var(--yd-primary);
}

.btn-yd-outline {
  font-weight: 600;
  color: var(--yd-primary);
  border: 1px solid var(--yd-primary);
  background: transparent;
}

.btn-yd-outline:hover {
  background: var(--yd-primary-light);
  color: var(--yd-primary);
  border-color: var(--yd-primary);
}

/* Hero */
.hero-v2 {
  min-height: 100vh;
  padding-top: 7rem;
  background: linear-gradient(135deg, #E6F2FF 0%, #F0F9FF 50%, #E0F7FA 100%);
  background-size: 200% 200%;
  animation: heroGradient 18s ease infinite;
}

@keyframes heroGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-v2 .hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-image-wrap {
  position: relative;
}

.hero-image-wrap > img {
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(0, 102, 204, 0.15);
}

.float-card-v2 {
  position: absolute;
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.75rem;
  box-shadow: 0 12px 32px rgba(0, 102, 204, 0.12);
  z-index: 2;
}

.float-card-v2-1 { left: -1rem; top: -1.5rem; width: 10rem; animation: floatA 4s ease-in-out infinite; }
.float-card-v2-2 { right: -0.75rem; bottom: -1rem; width: 11rem; animation: floatB 5s ease-in-out infinite 1s; }
.float-card-v2-3 { left: -0.5rem; bottom: -0.5rem; width: 9.5rem; animation: floatA 3.5s ease-in-out infinite 0.5s; }

@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.trust-stat {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--yd-primary);
}

/* Section badge */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--yd-primary);
  background: var(--yd-primary-light);
  border-radius: 50rem;
}

/* Feature cards */
.feature-card-v2 {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 102, 204, 0.1) !important;
}

.feature-icon-v2 {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem;
  background: var(--yd-primary-light);
  color: var(--yd-primary);
  font-size: 1.25rem;
}

/* Steps */
.step-badge {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--yd-primary);
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.step-line {
  width: 2px;
  flex: 1;
  min-height: 2rem;
  background: var(--yd-border);
  margin: 0.25rem auto;
}

/* Pricing */
.pricing-card-v2 {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card-v2.pricing-card-active {
  border-color: var(--yd-primary) !important;
  box-shadow: 0 0 0 1px var(--yd-primary), 0 8px 24px rgba(0, 102, 204, 0.12) !important;
}

.pricing-price-v2 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
}

.pricing-feature-v2 {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--yd-text-secondary);
  margin-bottom: 0.625rem;
}

.pricing-feature-v2 i {
  color: var(--yd-accent);
  margin-top: 0.125rem;
}

/* Stats */
.stats-v2 {
  background: linear-gradient(135deg, #0066CC 0%, #00A3E0 100%);
}

.stat-number-v2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
}

/* Testimonials */
.star-rating { color: #F59E0B; }

/* CTA */
.cta-v2 {
  background: var(--yd-primary-light);
}

/* Footer */
.footer-v2 {
  background: var(--yd-text-primary);
}

.footer-v2 a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-v2 a:hover { color: #fff; }

.footer-v2 h6 {
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
}

.footer-store-badges {
  margin-top: 0.125rem;
}

.footer-store-link {
  display: inline-block;
  line-height: 0;
  border-radius: 6px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-store-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.footer-store-link img {
  display: block;
  height: 40px;
  width: auto;
}

.footer-brand-link {
  max-width: 180px;
}

.footer-logo {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 40px;
  object-fit: contain;
}

.hero-actions .btn {
  width: 100%;
}

/* Scroll reveal */
.reveal-v2 {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-v2.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-v2.delay-1 { transition-delay: 0.1s; }
.reveal-v2.delay-2 { transition-delay: 0.2s; }
.reveal-v2.delay-3 { transition-delay: 0.3s; }

@media (min-width: 768px) {
  .border-end-md {
    border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
  }
}

@media (min-width: 576px) {
  .navbar-v2 .navbar-brand {
    height: 46px;
  }

  .navbar-v2 .navbar-logo {
    max-height: 46px;
  }

  .hero-actions .btn {
    width: auto;
  }
}

@media (min-width: 992px) {
  .navbar-v2 {
    min-height: 72px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .navbar-v2 .navbar-brand {
    height: 52px;
    max-width: none;
    margin-right: 1rem;
  }

  .navbar-v2 .navbar-logo {
    max-height: 52px;
  }

  .navbar-v2 .navbar-collapse {
    flex-basis: auto;
  }
}

@media (max-width: 991.98px) {
  .float-card-v2 { display: none !important; }

  .hero-v2 {
    min-height: auto;
    padding-top: calc(5.5rem + env(safe-area-inset-top, 0px));
    padding-bottom: 2.5rem;
  }

  .hero-v2 .hero-title {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
  }

  .navbar-v2 .nav-link {
    padding: 0.625rem 0 !important;
  }

  .navbar-v2 .navbar-actions {
    width: 100%;
  }

  .navbar-v2 .navbar-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .container-xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .pricing-card-v2 .pricing-price-v2 {
    font-size: 2.25rem;
  }

  .footer-store-badges {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .hero-v2 {
    padding-top: calc(5rem + env(safe-area-inset-top, 0px));
  }

  .navbar-v2 {
    min-height: calc(56px + env(safe-area-inset-top, 0px));
    padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.3rem;
  }

  .navbar-v2 .navbar-brand {
    height: 42px;
  }

  .navbar-v2 .navbar-logo {
    max-height: 42px;
  }

  .footer-logo {
    max-height: 32px;
  }

  .footer-store-link img {
    height: 36px;
  }
}
