/* ═══════════════════════════════════════════════════════════════ */
/* ANIVIA - SHARED STYLES                                          */
/* ═══════════════════════════════════════════════════════════════ */

/* ── GLOBAL ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #1a1a2e;
  overflow-x: hidden;
  background: #ffffff;
}

/* ── CSS VARIABLES ── */
:root {
  --orange: #F26722;
  --orange-light: #FF8247;
  --orange-bg: rgba(242, 103, 34, .06);
  --orange-bg2: rgba(242, 103, 34, .1);
  --purple: #5B2D8E;
  --purple-light: #7B4BAE;
  --purple-bg: rgba(91, 45, 142, .06);
  --purple-bg2: rgba(91, 45, 142, .1);
  --dark: #1a1a2e;
  --card: #ffffff;
  --card-border: rgba(0, 0, 0, .06);
  --text: #4a5568;
  --text-dim: #94a3b8;
  --heading: #1a1a2e;
  --bg-white: #ffffff;
  --bg-alt: #f9f8fc;
  --bg-soft: #fef7f3;
  --border: rgba(0, 0, 0, .06);
}

/* ── UTILITY ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 16px;
  background: var(--purple-bg);
  color: var(--purple);
  border: 1px solid rgba(91, 45, 142, .12);
}

.section-label .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: .4;
    transform: scale(.8);
  }
}

.section-title {
  font-family: 'Baloo 2', cursive;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--heading);
}

.section-subtitle {
  font-size: 17px;
  color: var(--text);
  line-height: 1.8;
  max-width: 580px;
}

.gradient-text {
  color: var(--purple);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
  border: none;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn-glow {
  background: var(--orange);
  color: #fff;
  box-shadow: none;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 103, 34, .25);
  background: var(--orange-light);
}

.btn-ghost {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
}

.btn-ghost:hover {
  background: var(--purple);
  color: #fff;
  transform: translateY(-2px);
}

.btn-teal {
  background: var(--purple);
  color: #fff;
}

.btn-teal:hover {
  transform: translateY(-2px);
  background: var(--purple-light);
}

/* ── GLASS CARD ── */
.glass {
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  border-radius: 24px;
}

/* ── ANIMATED BG ORBS ── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .08;
  pointer-events: none;
  animation: orbMove 12s ease-in-out infinite alternate;
}

@keyframes orbMove {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -40px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 30px) scale(.9);
  }
  100% {
    transform: translate(10px, -10px) scale(1.05);
  }
}

/* ══════════════ NAVBAR ══════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  transition: all .3s;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, .06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  height: 52px;
  width: auto;
  display: block;
}

.logo-icon img {
  height: 100%;
  width: auto;
  display: block;
}

.logo-text {
  display: none;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all .25s;
  display: inline-block;
}

.nav-links a:hover {
  color: var(--purple);
}

.nav-links a.active {
  color: var(--purple);
  font-weight: 600;
}

/* Dropdown menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  padding-top: 0;
  z-index: 1001;
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .dropdown-menu {
  display: flex;
  flex-direction: column;
}

.dropdown-menu a {
  padding: 12px 20px;
  border-radius: 0;
  font-size: 14px;
}

.dropdown-menu a:first-child {
  border-radius: 12px 12px 0 0;
}

.dropdown-menu a:last-child {
  border-radius: 0 0 12px 12px;
}

.dropdown-menu a:hover {
  background: var(--bg-alt);
  color: var(--purple);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta .btn-login {
  padding: 10px 24px;
  font-size: 14px;
  border-radius: 50px;
  font-weight: 600;
  background: transparent;
  color: var(--dark);
  border: 2px solid rgba(0, 0, 0, .15);
  text-decoration: none;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
}

.nav-cta .btn-login:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.nav-cta .btn-get-started {
  padding: 10px 24px;
  font-size: 14px;
  border-radius: 50px;
  font-weight: 600;
  background: var(--purple);
  color: #fff;
  border: 2px solid var(--purple);
  text-decoration: none;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
}

.nav-cta .btn-get-started:hover {
  background: var(--purple-light);
  border-color: var(--purple-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91, 45, 142, .2);
}

.mobile-nav-cta {
  display: none;
  list-style: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s;
}

/* ═══ WAVE DIVIDERS ═══ */
.wave-divider {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 40px;
}

.wave-divider.flip {
  transform: scaleY(-1);
}

.wave-divider + section {
  margin-top: -1px;
}

section + .wave-divider {
  margin-top: -1px;
}

/* ═══ FOOTER ═══ */
.footer {
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, .04);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, .5);
  line-height: 1.8;
  margin-top: 16px;
}

.footer .logo-text {
  color: #fff;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 255, 255, .5);
  transition: all .3s;
  font-size: 15px;
}

.footer-socials a:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.footer .logo-icon {
  filter: brightness(0) invert(1);
}

.footer-col h4 {
  font-family: 'Baloo 2', cursive;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  text-decoration: none;
  color: rgba(255, 255, 255, .5);
  font-size: 14px;
  transition: color .2s;
}

.footer-col ul a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, .35);
}

/* ═══ FLOATING CONTACT ═══ */
.float-contact {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--purple);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(91, 45, 142, .3);
  text-decoration: none;
  transition: all .3s;
}

.float-contact:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(91, 45, 142, .35);
}

/* ═══ SCROLL ANIMATIONS ═══ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all .7s cubic-bezier(.4, 0, .2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all .7s cubic-bezier(.4, 0, .2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all .7s cubic-bezier(.4, 0, .2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .section-title {
    font-size: 38px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-inner {
    height: 72px;
  }

  .logo-icon {
    height: 42px;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open a {
    padding: 12px 16px;
    font-size: 16px;
  }

  .dropdown-menu {
    display: none !important;
    position: static;
    border: none;
    box-shadow: none;
    margin-top: 0;
    background: var(--bg-alt);
    border-radius: 12px;
    min-width: unset;
  }

  .nav-dropdown.open .dropdown-menu {
    display: flex !important;
    margin-top: 4px;
    margin-left: 8px;
  }

  .nav-dropdown.open .dropdown-menu a {
    padding: 10px 16px;
    font-size: 14px;
  }

  /* Mobile CTA buttons inside menu */
  .mobile-nav-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, .08);
  }

  .mobile-nav-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
  }

  .mobile-nav-cta .btn-login {
    background: transparent;
    color: var(--dark);
    border: 2px solid rgba(0, 0, 0, .15);
  }

  .mobile-nav-cta .btn-get-started {
    background: var(--purple);
    color: #fff;
    border: 2px solid var(--purple);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .section-title {
    font-size: 32px;
  }

  .section-subtitle {
    font-size: 15px;
  }

  .container {
    padding: 0 20px;
  }

  .float-contact {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
}

/* ═══ INLINE CTA OVERRIDES FOR SUBPAGES ═══ */
@media (max-width: 768px) {
  [style*="font-size:50px"] {
    font-size: 32px !important;
  }
  [style*="font-size:18px"][style*="line-height:1.8"] {
    font-size: 16px !important;
  }
  [style*="font-size:17px"][style*="padding:18px 44px"] {
    font-size: 15px !important;
    padding: 14px 32px !important;
  }
}

/* ═══ SMALL MOBILE (480px) ═══ */
@media (max-width: 480px) {
  [style*="font-size:50px"] {
    font-size: 26px !important;
  }
  .section-title {
    font-size: 26px;
  }

  .section-subtitle {
    font-size: 14px;
  }

  .container {
    padding: 0 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand p {
    font-size: 13px;
  }

  .footer-col h4 {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .btn {
    padding: 13px 28px;
    font-size: 14px;
    border-radius: 12px;
  }

  .section-label {
    font-size: 11px;
    padding: 6px 16px;
    letter-spacing: 2px;
  }
}
