/* ══════════════════════════════════════════════════════
   KODA LIGHT — style.css
   ══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

/* ─── CUSTOM CURSOR ─────────────────────────────────── */
.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(109, 40, 217, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  will-change: left, top;
}
.cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: #7c3aed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: left, top;
}
body:has(.magnetic-btn:hover) .cursor-ring,
body:has(a:hover) .cursor-ring {
  width: 52px;
  height: 52px;
  border-color: rgba(109, 40, 217, 0.65);
  background: rgba(109, 40, 217, 0.06);
}

/* ─── NAVBAR ────────────────────────────────────────── */
#nav {
  background: rgba(255,255,255,0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
#nav.scrolled {
  background: rgba(255,255,255,0.88);
  border-color: rgba(226,232,240,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 24px rgba(15,23,42,0.05);
}

.nav-link {
  cursor: none;
  position: relative;
}

.hb-line {
  width: 20px;
  height: 2px;
  background: #334155;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#hamburger.open .hb-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#hamburger.open .hb-line:nth-child(2) { opacity: 0; }
#hamburger.open .hb-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ─── HERO ───────────────────────────────────────────── */
.blob-hero {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: blob 9s ease-in-out infinite;
  transform-origin: center;
}
.blob-hero-2 {
  border-radius: 40% 60% 70% 30% / 50% 60% 40% 60%;
  animation: blob 12s ease-in-out infinite reverse;
}

@keyframes blob {
  0%,100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25%      { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50%      { border-radius: 50% 60% 30% 60% / 30% 40% 70% 50%; }
  75%      { border-radius: 40% 60% 50% 30% / 70% 40% 50% 40%; }
}

.hero-grid-overlay {
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}

.scroll-wheel {
  animation: scroll-wheel 2s ease-in-out infinite;
}
@keyframes scroll-wheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* ─── SECTION TAG ────────────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7c3aed;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  padding: 4px 12px;
  border-radius: 99px;
}

/* ─── MARQUEE ────────────────────────────────────────── */
.marquee-wrap { overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.marquee-item {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  padding: 0 28px;
  white-space: nowrap;
}
.marquee-sep {
  color: #cbd5e1;
  line-height: 1;
  display: flex;
  align-items: center;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── MOCKUP WINDOW ──────────────────────────────────── */
.mockup-window {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.mockup-window:hover {
  transform: perspective(1000px) rotateX(1deg) rotateY(-1deg) translateY(-4px);
  box-shadow: 0 32px 64px -12px rgba(76, 29, 149, 0.18), 0 16px 24px -8px rgba(76, 29, 149, 0.1);
}

/* ─── CHIPS ──────────────────────────────────────────── */
.chip {
  font-size: 0.7rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #64748b;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid #e2e8f0;
}

/* ─── SERVICES GRID ──────────────────────────────────── */
.svc-card {
  cursor: none;
  box-shadow: 0 1px 4px rgba(15,23,42,0.07), 0 0 0 1px rgba(15,23,42,0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(109,40,217,0.1), 0 0 0 1px rgba(109,40,217,0.14);
}

/* ─── PROCESS ────────────────────────────────────────── */
.process-step {
  cursor: none;
}

/* ─── FAQ ─────────────────────────────────────────────── */
.faq-btn { cursor: none; }
.faq-btn[aria-expanded="true"] .faq-icon {
  background: #7c3aed;
  border-color: #7c3aed;
  transform: rotate(45deg);
}
.faq-btn[aria-expanded="true"] .faq-icon svg { color: white; }
.faq-answer { transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1); }
.faq-answer.open { max-height: 200px !important; }

/* ─── FORM ────────────────────────────────────────────── */
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: #1e293b;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}
.form-input:focus {
  border-color: #7c3aed;
  background: white;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
.form-input::placeholder { color: #94a3b8; }
.form-input option { background: white; color: #1e293b; }

/* ─── MAGNETIC BTN ───────────────────────────────────── */
.magnetic-btn {
  cursor: none;
  position: relative;
  overflow: hidden;
}
.magnetic-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
}
.magnetic-btn:hover::after { opacity: 1; }

/* ─── CASE CARDS ─────────────────────────────────────── */
.case-card {
  box-shadow: 0 1px 4px rgba(15,23,42,0.07), 0 0 0 1px rgba(15,23,42,0.06);
  transition: border-color 0.3s ease, box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(109,40,217,0.12), 0 0 0 1px rgba(109,40,217,0.15);
}

/* ─── PKG LIST ───────────────────────────────────────── */
.pkg-row { cursor: none; }

/* ─── REVEAL ANIMATION (GSAP managed, fallback) ─────── */
.reveal-section { will-change: transform; }

/* ─── STAT BOXES ─────────────────────────────────────── */
.stat-box { position: relative; }

/* ─── UI CARDS ───────────────────────────────────────── */
.ui-card {
  will-change: transform;
}

/* ─── SCROLL TARGET OFFSET ───────────────────────────── */
section[id]::before {
  content: '';
  display: block;
  height: 80px;
  margin-top: -80px;
  pointer-events: none;
}

/* ─── SELECTION ──────────────────────────────────────── */
::selection { background: #ddd6fe; color: #4c1d95; }

/* ─── SCROLLBAR (webkit) ─────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #c4b5fd; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #7c3aed; }

/* ─── EXIT INTENT POPUP ─────────────────────────────── */
.exit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.exit-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.exit-modal {
  background: white;
  border-radius: 24px;
  max-width: 800px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 80px -12px rgba(15, 23, 42, 0.35);
  transform: scale(0.93) translateY(16px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.exit-overlay.active .exit-modal {
  transform: scale(1) translateY(0);
}
.exit-left {
  padding: 44px 40px;
}
.exit-right {
  background: linear-gradient(160deg, #f5f3ff 0%, #ede9fe 100%);
  border-left: 1px solid #ddd6fe;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
}
.exit-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #e2e8f0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
  z-index: 10;
}
.exit-close:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
  transform: rotate(90deg);
}

@media (max-width: 640px) {
  .exit-modal { grid-template-columns: 1fr; }
  .exit-right { display: none; }
  .exit-left { padding: 32px 24px; }
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1023px) {
  .cursor-ring, .cursor-dot { display: none; }
  body { cursor: auto !important; }
  a, button { cursor: pointer; }
}
