/* ==========================================================================
   Kriyona (kriyona.in) — Futuristic Light-Theme Design System (2026)
   Inspired by Stripe, Linear & Apple Vision
   ========================================================================== */

:root {
  --k-bg: #ffffff;
  --k-surface: #f8fafc;
  --k-footer: #f1f5f9;
  --k-ink: #0f172a;
  --k-muted: #475569;
  --k-cyan: #00d2ff;
  --k-blue: #2563eb;
  --k-violet: #7c3aed;
  --k-border: rgba(226, 232, 240, 0.85);
  --k-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--k-muted);
  background-color: var(--k-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--k-ink);
  letter-spacing: -0.03em;
}

h1, h2 {
  text-wrap: balance;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Brand Logo (3:1 horizontal crop + white-background knockout on light UI)
   -------------------------------------------------------------------------- */
.brand-logo-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 136px;
  height: 42px;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.58);
  mix-blend-mode: multiply;
  display: block;
}

.brand-logo-fallback {
  display: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--k-ink);
  white-space: nowrap;
}

.brand-logo-frame.is-fallback .brand-logo-img {
  display: none;
}

.brand-logo-frame.is-fallback .brand-logo-fallback {
  display: inline-flex;
}

/* --------------------------------------------------------------------------
   Animated Aurora Mesh Background Blurs (Light Mode Luminous Atmosphere)
   -------------------------------------------------------------------------- */
.aurora-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.aurora-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.aurora-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(72px);
  opacity: 0.28;
  will-change: transform;
}

.aurora-orb-cyan {
  width: 440px;
  height: 440px;
  top: -140px;
  right: -60px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.65) 0%, rgba(0, 210, 255, 0) 70%);
  animation: auroraDriftA 16s ease-in-out infinite alternate;
}

.aurora-orb-blue {
  width: 480px;
  height: 480px;
  top: 60px;
  left: -140px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.42) 0%, rgba(37, 99, 235, 0) 72%);
  animation: auroraDriftB 20s ease-in-out infinite alternate;
}

.aurora-orb-violet {
  width: 400px;
  height: 400px;
  bottom: -160px;
  right: 18%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.36) 0%, rgba(124, 58, 237, 0) 72%);
  animation: auroraDriftC 18s ease-in-out infinite alternate;
}

@keyframes auroraDriftA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-36px, 28px, 0) scale(1.08); }
}

@keyframes auroraDriftB {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(42px, -22px, 0) scale(1.06); }
}

@keyframes auroraDriftC {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-28px, -30px, 0) scale(1.1); }
}

/* Subtle Architectural Grid Overlay */
.subtle-grid-bg {
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* --------------------------------------------------------------------------
   Animated Gradient Text & Glow Buttons
   -------------------------------------------------------------------------- */
.gradient-text-animated {
  background: linear-gradient(120deg, #0284c7 0%, #2563eb 35%, #7c3aed 68%, #00b4d8 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientFlow 7s linear infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

.btn-futuristic {
  position: relative;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 52%, #7c3aed 100%);
  color: #ffffff;
  box-shadow:
    0 10px 26px -8px rgba(37, 99, 235, 0.45),
    0 2px 6px -1px rgba(124, 58, 237, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 180ms var(--k-ease), box-shadow 180ms var(--k-ease), filter 180ms var(--k-ease);
}

.btn-futuristic:hover {
  transform: translateY(-1.5px);
  filter: brightness(1.06);
  box-shadow:
    0 16px 32px -8px rgba(37, 99, 235, 0.52),
    0 4px 12px -2px rgba(124, 58, 237, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-futuristic:active {
  transform: translateY(0);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #0f172a;
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 4px 14px -4px rgba(15, 23, 42, 0.06);
  transition: transform 180ms var(--k-ease), border-color 180ms var(--k-ease), background-color 180ms var(--k-ease), color 180ms var(--k-ease);
}

.btn-glass:hover {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.45);
  color: #2563eb;
  transform: translateY(-1.5px);
}

/* --------------------------------------------------------------------------
   Frosted Glassmorphism & Bento Interactive Tilt/Glow Cards
   -------------------------------------------------------------------------- */
.glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.03),
    0 12px 32px -12px rgba(15, 23, 42, 0.07);
  transition: transform 200ms var(--k-ease), box-shadow 200ms var(--k-ease), border-color 200ms var(--k-ease);
}

.glass-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.03),
    0 22px 44px -16px rgba(37, 99, 235, 0.14),
    0 8px 20px -10px rgba(124, 58, 237, 0.08);
}

/* Mouse-following subtle luminous border/surface glow */
.tilt-card {
  --mx: 50%;
  --my: 50%;
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    360px circle at var(--mx) var(--my),
    rgba(0, 210, 255, 0.12),
    rgba(37, 99, 235, 0.06) 40%,
    transparent 70%
  );
  transition: opacity 220ms var(--k-ease);
  z-index: 1;
}

.tilt-card:hover::before {
  opacity: 1;
}

.tilt-card > * {
  position: relative;
  z-index: 2;
}

/* Floating Hero Metric Badges */
.floating-glass-pill {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 12px 28px -8px rgba(15, 23, 42, 0.12),
    0 2px 6px rgba(37, 99, 235, 0.08);
}

/* --------------------------------------------------------------------------
   Navigation Links & Full-Screen Mobile Slide-Down Menu
   -------------------------------------------------------------------------- */
.nav-link {
  position: relative;
  color: #475569;
  font-weight: 500;
  padding: 0.35rem 0;
  white-space: nowrap;
  transition: color 160ms var(--k-ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #00d2ff, #2563eb, #7c3aed);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 200ms var(--k-ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: #0f172a;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  font-weight: 600;
}

/* Full-screen Mobile Slide-Down Menu */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
  transition: opacity 220ms var(--k-ease), transform 220ms var(--k-ease);
}

.mobile-drawer.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   Visual Image Glass Frame & Fallback Container
   -------------------------------------------------------------------------- */
.visual-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f9ff 0%, #eef2ff 55%, #f5f3ff 100%);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 420ms var(--k-ease);
}

.visual-frame-zoom:hover img {
  transform: scale(1.03);
}

.visual-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #eef2ff 50%, #f5f3ff 100%);
}

.visual-frame.is-fallback img {
  display: none;
}

.visual-frame.is-fallback .visual-fallback {
  display: flex;
}

/* --------------------------------------------------------------------------
   Capability Marquee Strip (Smooth Infinite Scroll)
   -------------------------------------------------------------------------- */
.marquee-viewport {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Scroll-Reveal Micro-Animations (IntersectionObserver)
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms var(--k-ease), transform 520ms var(--k-ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Accordions & Interactive Tabs
   -------------------------------------------------------------------------- */
.accordion-trigger .accordion-chevron {
  transition: transform 200ms var(--k-ease);
}

.accordion-trigger[aria-expanded="true"] .accordion-chevron {
  transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   Form Inputs & Focus Accessibility
   -------------------------------------------------------------------------- */
.k-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  padding: 0.78rem 1rem;
  font-size: 0.9375rem;
  color: #0f172a;
  transition: border-color 160ms var(--k-ease), box-shadow 160ms var(--k-ease), background-color 160ms var(--k-ease);
}

.k-input::placeholder {
  color: #94a3b8;
}

.k-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.14);
}

.k-input.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Sticky Floating WhatsApp / Quick Book CTA Pill (Compact Mobile Budget)
   -------------------------------------------------------------------------- */
.floating-cta-pill {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 46px;
  padding: 0 1.1rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #16a34a 0%, #059669 100%);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  box-shadow:
    0 12px 26px -6px rgba(5, 150, 105, 0.45),
    0 2px 6px rgba(15, 23, 42, 0.08);
  transition: transform 180ms var(--k-ease), filter 180ms var(--k-ease), box-shadow 180ms var(--k-ease);
}

.floating-cta-pill:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 32px -6px rgba(5, 150, 105, 0.52);
}

@media (max-width: 640px) {
  .floating-cta-pill {
    right: 1rem;
    bottom: 1rem;
    height: 44px;
    padding: 0 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora-orb,
  .gradient-text-animated,
  .marquee-track { animation: none !important; }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
