/* ============================================
   INDEX PAGE — page-specific styles
   Requires: shared.css
   ============================================ */

/* ============================================
   CAPYBARA — physics mascot (fixed, draggable)
   ============================================ */
.capy-wrap {
  position: fixed; z-index: 998; cursor: grab;
  user-select: none; -webkit-user-select: none; touch-action: none;
  filter: drop-shadow(0 10px 24px rgba(45,32,25,0.18));
}
.capy-wrap:active { cursor: grabbing; }

.capy-svg {
  width: 160px; height: 160px; display: block; object-fit: contain;
  transform-origin: center bottom;
}

.capy-bubble {
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(4px) scale(0.92);
  background: white; border: 1.5px solid var(--border); border-radius: 14px;
  padding: 7px 13px; font-size: 0.72rem; font-weight: 700; color: var(--text-dark);
  white-space: nowrap; box-shadow: 0 4px 18px rgba(45,32,25,0.1);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out-expo);
}
.capy-bubble.visible {
  opacity: 1; transform: translateX(-50%) translateY(0) scale(1);
}
.capy-bubble::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-top: 7px solid white;
}

.capy-shadow {
  position: fixed; bottom: 0; left: 0; width: 80px; height: 16px;
  background: rgba(45,32,25,0.12); border-radius: 50%;
  pointer-events: none; z-index: 997; transform-origin: center; filter: blur(4px);
}

/* ============================================
   INTRO LOGO — starts large + centered,
   then morphs into the real nav logo position.
   ============================================ */
#intro-logo {
  position: fixed; z-index: 10000;
  font-size: clamp(2.6rem, 8vw, 4.2rem) !important;
  pointer-events: none; text-decoration: none;
  will-change: transform, opacity;
  animation: intro-logo-in 0.75s var(--ease-out-expo) both;
}
@keyframes intro-logo-in {
  from { opacity: 0; transform: scale(0.9) translateY(22px); }
  to   { opacity: 1; transform: scale(1)   translateY(0);    }
}
#intro-logo.intro-flying {
  transition: transform 1.1s cubic-bezier(0.4, 0, 0.15, 1),
              opacity  0.7s  ease 0.28s;
}

/* ============================================
   HERO
   ============================================ */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 72px; }
.hero__layout { display: grid; grid-template-columns: 1fr 460px; gap: 48px; align-items: center; }
@media (max-width: 1000px) { .hero__layout { grid-template-columns: 1fr; } .hero__widgets { display: none; } }
.hero__content { position: relative; z-index: 2; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; background: var(--coral-soft); color: var(--coral); font-size: 0.82rem; font-weight: 600; padding: 8px 18px; border-radius: 100px; margin-bottom: 24px; }
.hero__badge svg { animation: sparkle 2s ease-in-out infinite; }
@keyframes sparkle { 0%, 100% { transform: rotate(0deg) scale(1); } 25% { transform: rotate(10deg) scale(1.1); } 75% { transform: rotate(-5deg) scale(0.95); } }
.hero__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 5.5vw, 4.2rem); line-height: 1.08; letter-spacing: -0.02em; color: var(--text-dark); margin-bottom: 20px; }
.hero__title .highlight { position: relative; display: inline-block; }
.hero__title .highlight::after { content: ''; position: absolute; bottom: 4px; left: -4px; right: -4px; height: 14px; background: var(--amber-soft); border-radius: 4px; z-index: -1; animation: draw-hl 0.6s var(--ease-out-expo) 0.8s both; transform-origin: left; }
@keyframes draw-hl { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__sub { font-size: 1.12rem; line-height: 1.7; color: var(--text-body); max-width: 520px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Aurora blobs */
.hero__aurora { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.aurora-blob { position: absolute; border-radius: 50%; filter: blur(80px); animation: aurora-drift var(--dur, 12s) ease-in-out infinite; animation-play-state: paused; will-change: transform; }
.hero--ready .aurora-blob { animation-play-state: running; }
.aurora-blob:nth-child(1) { width: 700px; height: 700px; background: radial-gradient(circle, rgba(255,107,74,0.30), transparent 70%); top: -180px; right: -120px; --dur: 13s; }
.aurora-blob:nth-child(2) { width: 560px; height: 560px; background: radial-gradient(circle, rgba(42,191,179,0.24), transparent 70%); bottom: -100px; left: 18%; --dur: 16s; animation-delay: -4s; }
.aurora-blob:nth-child(3) { width: 440px; height: 440px; background: radial-gradient(circle, rgba(245,166,35,0.22), transparent 70%); top: 28%; left: -120px; --dur: 10s; animation-delay: -7s; }
.aurora-blob:nth-child(4) { width: 360px; height: 360px; background: radial-gradient(circle, rgba(107,63,160,0.18), transparent 70%); top: 8%; left: 38%; --dur: 14s; animation-delay: -2s; }
@keyframes aurora-drift { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(60px, -45px) scale(1.04); } 66% { transform: translate(-40px, 50px) scale(0.97); } }

.hero__shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hshape { position: absolute; border-radius: 50%; animation: float 7s ease-in-out infinite; animation-play-state: paused; will-change: transform; }
.hero--ready .hshape { animation-play-state: running; }
.hshape--1 { width: 280px; height: 280px; background: var(--coral-soft); opacity: 0.25; top: 5%; right: 5%; }
.hshape--2 { width: 160px; height: 160px; background: var(--amber-soft); opacity: 0.3; top: 65%; right: 28%; animation-delay: -2.5s; }
.hshape--3 { width: 110px; height: 110px; background: var(--teal-soft); opacity: 0.35; bottom: 10%; left: -1%; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }

/* ============================================
   HERO WIDGETS
   ============================================ */
.hero__widgets { position: relative; height: 480px; z-index: 1; }
.widget { position: absolute; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: 0 8px 32px rgba(45,32,25,0.07), 0 2px 8px rgba(45,32,25,0.04); animation: widget-float 6s ease-in-out infinite; transition: box-shadow 0.3s ease; will-change: translate; }
.widget:hover { box-shadow: 0 16px 48px rgba(45,32,25,0.12), 0 4px 12px rgba(45,32,25,0.06); }
.widget--sms   { top: 20px;   left: 10px;  width: 260px; animation-delay: 0s; }
.widget--stats { top: 180px;  right: 0;    width: 200px; animation-delay: -1.5s; }
.widget--alert { bottom: 80px; left: 30px; width: 240px; animation-delay: -3s; }
.widget--graph { bottom: 20px; right: 20px; width: 180px; animation-delay: -4.5s; }
@keyframes widget-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.widget__header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.widget__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.widget__label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.widget__value { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--text-dark); }
.widget__sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.widget__sms-preview { display: flex; flex-direction: column; gap: 6px; }
.sms-line { padding: 6px 10px; border-radius: 10px; font-size: 0.7rem; line-height: 1.4; max-width: 88%; }
.sms-line--bot { background: var(--teal-soft); color: var(--teal); align-self: flex-start; border-bottom-left-radius: 4px; }
.sms-line--user { background: var(--bg); color: var(--text-body); border: 1px solid var(--border); align-self: flex-end; border-bottom-right-radius: 4px; }
.widget__bars { display: flex; align-items: flex-end; gap: 4px; height: 48px; margin-top: 8px; }
.widget__bar { flex: 1; border-radius: 3px 3px 0 0; min-height: 6px; animation: bar-grow 1s var(--ease-out-expo) both; }
.widget__bar:nth-child(1) { height: 40%; background: var(--coral-soft); animation-delay: 0.1s; }
.widget__bar:nth-child(2) { height: 65%; background: var(--coral-light); animation-delay: 0.2s; }
.widget__bar:nth-child(3) { height: 45%; background: var(--coral-soft); animation-delay: 0.3s; }
.widget__bar:nth-child(4) { height: 80%; background: var(--coral); animation-delay: 0.4s; }
.widget__bar:nth-child(5) { height: 60%; background: var(--coral-light); animation-delay: 0.5s; }
.widget__bar:nth-child(6) { height: 95%; background: var(--coral); animation-delay: 0.6s; }
@keyframes bar-grow { from { height: 0; } }
.widget__alert-ring { width: 36px; height: 36px; border-radius: 50%; background: var(--amber-soft); display: flex; align-items: center; justify-content: center; position: relative; }
.widget__alert-ring::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--amber); opacity: 0; animation: pulse-ring 2s ease-out infinite; }
@keyframes pulse-ring { 0% { transform: scale(0.8); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }
.widget__alert-icon { font-size: 1rem; }
.widget__alert-text { font-size: 0.78rem; color: var(--text-dark); font-weight: 500; }
.widget__alert-time { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; }

/* ============================================
   MARQUEE
   ============================================ */
.marquee-strip { background: var(--text-dark); color: rgba(255,255,255,0.75); padding: 14px 0; overflow: hidden; position: relative; z-index: 2; }
.marquee-inner { display: flex; align-items: center; animation: marquee-scroll 28s linear infinite; white-space: nowrap; width: max-content; }
.marquee-strip:hover .marquee-inner { animation-play-state: paused; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { display: inline-flex; align-items: center; gap: 20px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0 24px; }
.marquee-star { color: var(--coral); font-size: 0.9rem; animation: spin-slow 8s linear infinite; display: inline-block; }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ============================================
   SECTION SHARED
   ============================================ */
.section { padding: 100px 0; position: relative; }
.section__label { font-family: var(--font-body); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); margin-bottom: 12px; }
.section__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--text-dark); margin-bottom: 16px; }
.section__desc { font-size: 1.05rem; line-height: 1.7; color: var(--text-muted); max-width: 540px; }
.wave-divider { position: relative; line-height: 0; z-index: 1; overflow: hidden; }
.wave-divider svg { display: block; width: 100%; }

/* ============================================
   SERVICES
   ============================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; gap: 20px; } }
.service-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 36px 28px; transition: box-shadow 0.35s ease; position: relative; overflow: hidden; will-change: transform; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: var(--radius-md) var(--radius-md) 0 0; opacity: 0; transition: opacity 0.3s ease; }
.service-card:hover::before { opacity: 1; }
.service-card:hover { box-shadow: 0 20px 60px rgba(45,32,25,0.1), 0 4px 16px rgba(45,32,25,0.06); }
.service-card:nth-child(1)::before { background: var(--coral); }
.service-card:nth-child(2)::before { background: var(--plum); }
.service-card:nth-child(3)::before { background: var(--teal); }
.service-card__icon { width: 52px; height: 52px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.service-card:nth-child(1) .service-card__icon { background: var(--coral-soft); color: var(--coral); }
.service-card:nth-child(2) .service-card__icon { background: var(--plum-soft); color: var(--plum); }
.service-card:nth-child(3) .service-card__icon { background: var(--teal-soft); color: var(--teal); }
.service-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text-dark); margin-bottom: 10px; }
.service-card__desc { font-size: 0.92rem; line-height: 1.65; color: var(--text-muted); }

/* ============================================
   PRODUCTS
   ============================================ */
.products { background: var(--bg-warm); overflow: hidden; position: relative; }
.products__layout { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: start; margin-top: 40px; }
@media (max-width: 900px) { .products__layout { grid-template-columns: 1fr; } }
.products__tagline { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--text-dark); margin-bottom: 16px; line-height: 1.35; }
.products__desc { font-size: 1rem; line-height: 1.7; color: var(--text-body); margin-bottom: 28px; }
.products__features { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.products__features li { display: flex; align-items: flex-start; gap: 14px; font-size: 0.95rem; line-height: 1.55; color: var(--text-body); background: var(--bg-card); padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s ease; }
.products__features li:hover { transform: translateX(4px); box-shadow: 0 4px 16px rgba(45,32,25,0.05); }
.feature-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; }
.products__features li:nth-child(1) .feature-dot { background: var(--coral); }
.products__features li:nth-child(2) .feature-dot { background: var(--amber); }
.products__features li:nth-child(3) .feature-dot { background: var(--teal); }
.products__features li:nth-child(4) .feature-dot { background: var(--plum); }
.products__vertical-links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.products__vertical-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 600; color: var(--coral); transition: color 0.2s ease, gap 0.3s var(--ease-out-expo); }
.products__vertical-link:hover { color: var(--coral-deep); gap: 10px; }
.products__vertical-link span { transition: transform 0.3s var(--ease-out-expo); }
.products__vertical-link:hover span { transform: translateX(2px); }

/* ============================================
   PHONE MOCKUP
   ============================================ */
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.phone-outer { position: relative; }
.phone-outer::before, .phone-outer::after { content: ''; position: absolute; inset: -14px; border-radius: 54px; border: 1.5px solid var(--coral); opacity: 0; pointer-events: none; animation: phone-ring 3s ease-out infinite; }
.phone-outer::after { animation-delay: 1.5s; }
@keyframes phone-ring { 0% { transform: scale(0.97); opacity: 0; } 30% { opacity: 0.25; } 100% { transform: scale(1.04); opacity: 0; } }
.phone { width: 300px; position: relative; background: #1a1a1a; border-radius: 40px; padding: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 24px 60px rgba(45,32,25,0.2), 0 8px 24px rgba(45,32,25,0.1), 0 0 80px rgba(255,107,74,0.08); }
.phone::before { content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #1a1a1a; border-radius: 0 0 16px 16px; z-index: 10; }
.phone::after { content: ''; position: absolute; top: 18px; left: 50%; transform: translateX(-50%) translateX(34px); width: 9px; height: 9px; background: #2a2a2a; border-radius: 50%; box-shadow: inset 0 0 0 2px #333; z-index: 11; }
.phone__screen { background: var(--bg); border-radius: 30px; overflow: hidden; height: 500px; display: flex; flex-direction: column; }
.phone__statusbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px 6px; font-size: 0.68rem; font-weight: 600; color: var(--text-dark); }
.phone__statusbar-icons { display: flex; gap: 4px; align-items: center; }
.phone__statusbar-icons svg { width: 13px; height: 13px; }
.chat__header { display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; border-bottom: 1px solid var(--border); }
.chat__avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--coral-soft), var(--amber-soft)); display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; color: var(--coral); }
.chat__name { font-size: 0.78rem; font-weight: 700; color: var(--text-dark); }
.chat__status { font-size: 0.62rem; color: var(--teal); font-weight: 500; }
.chat__messages { flex: 1; padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 7px; overflow: hidden; }
.bubble { padding: 9px 13px; border-radius: 16px; font-size: 0.74rem; line-height: 1.5; max-width: 84%; opacity: 0; transform: translateY(12px) scale(0.95); }
.bubble--bot { background: var(--bg-card); color: var(--text-dark); align-self: flex-start; border-bottom-left-radius: 5px; box-shadow: 0 1px 3px rgba(45,32,25,0.05); }
.bubble--user { background: var(--coral); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.bubble.animate { animation: bubble-pop 0.5s var(--ease-out-expo) forwards; }
@keyframes bubble-pop { 0% { opacity: 0; transform: translateY(12px) scale(0.95); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.typing { display: flex; gap: 4px; align-items: center; padding: 8px 14px; align-self: flex-start; opacity: 0; }
.typing.show { animation: fade-in 0.3s ease forwards; }
.typing.hide { animation: fade-out 0.2s ease forwards; }
@keyframes fade-in { to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
.typing__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted); animation: typing-bounce 1.4s ease-in-out infinite; }
.typing__dot:nth-child(2) { animation-delay: 0.15s; }
.typing__dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-3px); opacity: 1; } }
.chat__input { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-top: 1px solid var(--border); }
.chat__input-field { flex: 1; padding: 7px 12px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--border); font-size: 0.68rem; color: var(--text-muted); }
.chat__input-send { width: 28px; height: 28px; border-radius: 50%; background: var(--coral); display: flex; align-items: center; justify-content: center; }
.chat__input-send svg { width: 12px; height: 12px; color: #fff; }
.demo-toggle { display: flex; background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px; overflow: hidden; }
.demo-toggle__btn { flex: 1; padding: 10px 16px; font-size: 0.78rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: background 0.25s, color 0.25s; text-align: center; border: none; background: none; }
.demo-toggle__btn.active { background: var(--coral); color: #fff; border-radius: 100px; }
@media (max-width: 400px) { .phone { width: 270px; } }

/* ============================================
   CONTACT
   ============================================ */
.contact__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-top: 40px; }
@media (max-width: 900px) { .contact__layout { grid-template-columns: 1fr; } }
.contact__text { font-size: 1.05rem; line-height: 1.7; color: var(--text-body); margin-bottom: 28px; max-width: 440px; }
.contact__email { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--coral); transition: color 0.2s ease; }
.contact__email:hover { color: var(--coral-deep); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.form__input, .form__textarea { width: 100%; padding: 14px 18px; font-size: 0.95rem; background: var(--bg-card); border: 1.5px solid rgba(45,32,25,0.1); border-radius: var(--radius-sm); color: var(--text-dark); transition: border-color 0.25s ease, box-shadow 0.25s ease; font-family: var(--font-body); }
.form__input:focus, .form__textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255,107,74,0.1); }
.form__input::placeholder, .form__textarea::placeholder { color: var(--text-muted); }
.form__textarea { min-height: 130px; resize: vertical; }
.form__optional { font-weight: 400; color: var(--text-muted); text-transform: none; letter-spacing: 0; font-size: 0.75rem; }

/* ============================================
   PRIVACY (inside footer)
   ============================================ */
.privacy { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md); padding: 32px; margin-bottom: 40px; }
.privacy__title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: 20px; }
.privacy__subtitle { font-weight: 600; font-size: 0.9rem; color: var(--coral-light); margin-bottom: 8px; margin-top: 20px; }
.privacy__text { font-size: 0.85rem; line-height: 1.75; }
.privacy__text a { color: var(--coral-light); }

/* CONFETTI */
#confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }

@media (max-width: 600px) { .section { padding: 72px 0; } .hero { min-height: 100vh; min-height: 100svh; padding: 100px 0 60px; } }
