/* ==========================================================================
   PT KASAM ANUGRAH SEJAHTERA DESIGN SYSTEM (MARKETOOPIL TEAM)
   COLOR PALETTE: 100% Exact match with original React Design System
   Defined using native OKLCH color space with precise sRGB fallbacks
   DESIGN: Morphing Glassmorphism, Airy White Surfaces, Luminous Modern Blue
   ========================================================================== */

:root {
  /* ==========================================================================
     EXACT DESIGN TOKENS FROM src/styles.css
     ========================================================================== */

  /* Radius Tokens */
  --radius: 1rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);
  --radius-3xl: calc(var(--radius) + 12px);
  --radius-4xl: calc(var(--radius) + 16px);
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Background & Canvas Surfaces */
  --background: #ffffff;
  --background: oklch(1 0 0);
  --mist: #eff7fe;
  --mist: oklch(0.972 0.012 245);
  --card: #ffffff;
  --card: oklch(1 0 0);
  --card-foreground: #111f34;
  --card-foreground: oklch(0.24 0.045 258);
  --popover: #ffffff;
  --popover: oklch(1 0 0);
  --popover-foreground: #111f34;
  --popover-foreground: oklch(0.24 0.045 258);

  /* Primary Brand (Vibrant Royal Corporate Blue, NOT dark navy) */
  --primary: #0f3f85;
  --primary: oklch(0.38 0.128 259);
  --primary-hover: #0a2d61;
  --primary-hover: oklch(0.32 0.125 259);
  --primary-foreground: #fafcfe;
  --primary-foreground: oklch(0.99 0.004 247);

  /* Secondary & Soft Surfaces */
  --secondary: #e7f2fc;
  --secondary: oklch(0.955 0.018 246);
  --secondary-foreground: #113872;
  --secondary-foreground: oklch(0.35 0.11 259);

  /* Muted Text & Borders */
  --muted: #ecf3fa;
  --muted: oklch(0.962 0.012 246);
  --muted-foreground: #5a6a7f;
  --muted-foreground: oklch(0.52 0.038 255);

  /* Accent Tints */
  --accent: #ccedff;
  --accent: oklch(0.93 0.045 236);
  --accent-foreground: #022e6e;
  --accent-foreground: oklch(0.32 0.12 259);

  /* Sky & Accent Colors */
  --sky: #2a8adf;
  --sky: oklch(0.62 0.155 250);
  --sky-hover: #1f77c5;
  --sky-hover: oklch(0.55 0.16 250);
  --sky-soft: #b0dffb;
  --sky-soft: oklch(0.88 0.062 234);

  /* Teal & Amber Accents */
  --teal: #21adad;
  --teal: oklch(0.68 0.11 195);
  --amber: #f0ac45;
  --amber: oklch(0.79 0.14 74);

  /* Destructive */
  --destructive: #dc3545;
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: #fafcfe;
  --destructive-foreground: oklch(0.99 0.004 247);

  /* Lines, Inputs & Rings */
  --border: #d9e3ee;
  --border: oklch(0.912 0.018 246);
  --input: #d9e3ee;
  --input: oklch(0.912 0.018 246);
  --ring: #2a8adf;
  --ring: oklch(0.62 0.155 250);

  /* Text Colors */
  --foreground: #111f34;
  --foreground: oklch(0.24 0.045 258);
  --ink: #0b1a31;
  --ink: oklch(0.22 0.05 258);

  /* Shadows matching original React app */
  --shadow-glass: 0 24px 60px -28px rgba(15, 63, 133, 0.35);
  --shadow-glass: 0 24px 60px -28px oklch(0.38 0.128 259 / 0.35);
  --shadow-lift: 0 30px 70px -40px rgba(15, 63, 133, 0.5);
  --shadow-lift: 0 30px 70px -40px oklch(0.38 0.128 259 / 0.5);
  --shadow-card: 0 10px 30px -15px rgba(11, 26, 49, 0.08);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--background) !important;
}

body, #page, .site {
  margin: 0;
  padding: 0;
  background-color: var(--background) !important;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Force-hide Elementor Page Transition overlays */
.e-page-transition,
.e-page-transition-animation {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   SURFACE UTILITIES (GLASS, BLOBS, MORPHING)
   ========================================================================== */

.glass {
  background: rgba(255, 255, 255, 0.62) !important;
  border: 1px solid rgba(255, 255, 255, 0.70) !important;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: var(--shadow-glass);
}

.glass-dark {
  background: rgba(11, 26, 49, 0.42) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.glass-morph {
  position: relative;
  isolation: isolate;
  border-radius: 1.75rem;
  transition: border-radius 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 500ms ease;
}

.glass-morph:hover {
  border-radius: 2.75rem 1.25rem 2.75rem 1.25rem;
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: morph-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes morph-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    border-radius: 48% 52% 60% 40% / 55% 45% 55% 45%;
  }
  50% {
    transform: translate3d(4%, -5%, 0) scale(1.12);
    border-radius: 62% 38% 42% 58% / 40% 60% 40% 60%;
  }
  100% {
    transform: translate3d(-3%, 4%, 0) scale(1.05);
    border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%;
  }
}

/* ==========================================================================
   HEADER & NAVBAR (FLOATING CAPSULE)
   ========================================================================== */

.kas-header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 12px 16px 0;
  transition: all 0.4s ease;
}

.kas-header-container {
  max-width: 1280px;
  margin: 0 auto;
}

.kas-navbar {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: var(--radius-full);
  padding: 8px 20px;
  min-height: 56px;
  max-height: 64px;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.kas-header-wrapper.scrolled .kas-navbar {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-glass);
}

/* Brand container & WordPress Custom Logo strict containment */
.kas-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  max-height: 48px;
}

.kas-brand .custom-logo-link,
.kas-header-wrapper .custom-logo-link,
.custom-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0 !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
  max-height: 44px !important;
}

.kas-header-wrapper .custom-logo,
.kas-brand .custom-logo,
.kas-brand img,
.kas-brand-logo,
.kas-navbar img.custom-logo,
.kas-brand a img {
  height: 38px !important;
  width: auto !important;
  max-height: 38px !important;
  max-width: 220px !important;
  object-fit: contain !important;
  border-radius: 6px;
  display: block !important;
  flex-shrink: 0 !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.kas-brand:hover .kas-brand-logo,
.kas-brand:hover .custom-logo,
.kas-brand .custom-logo-link:hover .custom-logo {
  transform: scale(1.04);
}

.kas-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
}

.kas-brand-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.kas-brand-sub {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .kas-navbar {
    padding: 6px 14px;
    min-height: 50px;
    max-height: 56px;
  }

  .kas-header-wrapper .custom-logo,
  .kas-brand .custom-logo,
  .kas-brand img,
  .kas-brand-logo,
  .kas-navbar img.custom-logo {
    height: 32px !important;
    max-height: 32px !important;
    max-width: 160px !important;
  }

  .kas-brand-text {
    display: none !important;
  }
}

.kas-nav-desktop {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

@media (min-width: 860px) {
  .kas-nav-desktop {
    display: flex;
  }
}

.kas-nav-desktop ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.kas-nav-desktop ul li a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: rgba(17, 31, 52, 0.75);
}

.kas-nav-desktop ul li a:hover,
.kas-nav-desktop ul li.current-menu-item a,
.kas-nav-desktop ul li.active a {
  background-color: var(--secondary);
  color: var(--primary);
}

.kas-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary);
  color: var(--primary-foreground) !important;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  margin-left: 8px;
  transition: all 0.3s ease;
}

.kas-header-cta:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-glass);
  transform: translateY(-1px);
}

.kas-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
}

@media (min-width: 860px) {
  .kas-mobile-toggle {
    display: none;
  }
}

.kas-mobile-drawer {
  display: none;
  margin-top: 8px;
  border-radius: var(--radius-2xl);
  padding: 16px;
}

.kas-mobile-drawer.open {
  display: block;
}

.kas-mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.kas-mobile-drawer ul li a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-lg);
  color: var(--ink);
}

.kas-mobile-drawer ul li a:hover {
  background-color: var(--secondary);
  color: var(--primary);
}

.kas-mobile-drawer-cta {
  display: block;
  text-align: center;
  margin-top: 8px;
  padding: 12px 16px;
  background-color: var(--primary);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-xl);
}

/* ==========================================================================
   HERO SECTION (100% IDENTICAL TO REACT src/routes/index.tsx)
   ========================================================================== */

.kas-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 92vh;
  align-items: center;
  overflow: hidden;
}

.kas-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

/* Multi-layer Luminous Gradients from React Component */
.kas-hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 63, 133, 0.8) 0%, rgba(42, 138, 223, 0.55) 50%, rgba(33, 173, 173, 0.35) 100%);
  background: linear-gradient(135deg, oklch(0.38 0.128 259 / 0.8) 0%, oklch(0.62 0.155 250 / 0.55) 50%, oklch(0.68 0.11 195 / 0.35) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.kas-hero-dark-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 26, 49, 0.45) 0%, transparent 60%, rgba(11, 26, 49, 0.10) 100%);
  background: linear-gradient(to top, oklch(0.22 0.05 258 / 0.45) 0%, transparent 60%, oklch(0.22 0.05 258 / 0.10) 100%);
  pointer-events: none;
}

.kas-hero-blob {
  position: absolute;
  top: 8%;
  right: 6%;
  width: 420px;
  height: 420px;
  background: rgba(176, 223, 251, 0.7);
  background: oklch(0.88 0.062 234 / 0.7);
  mix-blend-mode: screen;
  pointer-events: none;
}

.kas-hero-container {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 130px 20px 80px;
  z-index: 1;
}

.kas-hero-content {
  max-width: 760px;
}

.kas-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.kas-hero-title {
  color: #ffffff;
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  margin-top: 24px;
  letter-spacing: -0.02em;
}

.kas-hero-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
  margin-top: 24px;
  max-width: 600px;
}

.kas-hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.kas-hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lift);
}

.kas-hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

.kas-hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 500;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.kas-hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.kas-hero-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  max-width: 680px;
}

.kas-stat-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  padding: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.kas-stat-val {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.kas-stat-lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
}

/* ==========================================================================
   PILLARS SECTION (-mt-12 overlap)
   ========================================================================== */

.kas-pillars-section {
  position: relative;
  z-index: 10;
  margin-top: -48px;
  padding: 0 20px 40px;
}

.kas-pillars-container {
  max-width: 1280px;
  margin: 0 auto;
}

.kas-pillars-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.kas-pillar-card {
  padding: 28px;
}

.kas-pillar-icon-box {
  display: flex;
  height: 44px;
  width: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: rgba(176, 223, 251, 0.8);
  background: oklch(0.88 0.062 234 / 0.8);
  color: var(--primary);
}

.kas-pillar-icon-box svg {
  width: 20px;
  height: 20px;
}

.kas-pillar-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 20px;
  margin-bottom: 8px;
}

.kas-pillar-desc {
  font-size: 0.92rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   SERVICES GRID (100% IDENTICAL TO ServiceGrid.tsx)
   ========================================================================== */

.kas-services-section {
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
}

.kas-services-blob {
  top: 15%;
  left: -10%;
  width: 380px;
  height: 380px;
  background: rgba(176, 223, 251, 0.7);
  background: oklch(0.88 0.062 234 / 0.7);
}

.kas-services-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.kas-section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 600;
}

.kas-section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-top: 10px;
  font-weight: 600;
  max-width: 700px;
  color: var(--ink);
}

.kas-section-desc {
  color: var(--muted-foreground);
  max-width: 600px;
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.6;
}

.kas-services-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 48px;
}

.kas-service-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.kas-service-card.has-photo {
  background: #000000;
}

.kas-service-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.kas-service-card:hover .kas-service-photo {
  transform: scale(1.05);
}

.kas-service-overlay-tint {
  position: absolute;
  inset: 0;
  mix-blend-multiply: multiply;
  pointer-events: none;
}

.kas-service-card.tint-1 .kas-service-overlay-tint {
  background: linear-gradient(135deg, rgba(15, 63, 133, 0.85) 0%, rgba(15, 63, 133, 0.45) 50%, rgba(42, 138, 223, 0.20) 100%);
  background: linear-gradient(135deg, oklch(0.38 0.128 259 / 0.85) 0%, oklch(0.38 0.128 259 / 0.45) 50%, oklch(0.62 0.155 250 / 0.20) 100%);
}

.kas-service-card.tint-4 .kas-service-overlay-tint {
  background: linear-gradient(135deg, rgba(15, 63, 133, 0.90) 0%, rgba(42, 138, 223, 0.50) 50%, rgba(240, 172, 69, 0.25) 100%);
  background: linear-gradient(135deg, oklch(0.38 0.128 259 / 0.90) 0%, oklch(0.62 0.155 250 / 0.50) 50%, oklch(0.79 0.14 74 / 0.25) 100%);
}

.kas-service-overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 26, 49, 0.65) 0%, transparent 100%);
  background: linear-gradient(to top, oklch(0.22 0.05 258 / 0.65) 0%, transparent 100%);
  pointer-events: none;
}

.kas-service-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  z-index: 1;
}

.kas-service-card.has-photo .kas-service-tag {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.kas-service-card:not(.has-photo) .kas-service-tag {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.kas-service-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 8px;
  z-index: 1;
}

.kas-service-card.has-photo .kas-service-title {
  color: #ffffff;
}

.kas-service-card:not(.has-photo) .kas-service-title {
  color: var(--ink);
}

.kas-service-desc {
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.5;
  z-index: 1;
}

.kas-service-card.has-photo .kas-service-desc {
  color: rgba(255, 255, 255, 0.85);
}

.kas-service-card:not(.has-photo) .kas-service-desc {
  color: var(--muted-foreground);
}

/* ==========================================================================
   CLIENT MARQUEE
   ========================================================================== */

.kas-marquee-wrapper {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: var(--mist);
  padding: 64px 0;
  overflow: hidden;
}

.marquee-mask {
  position: relative;
  margin-top: 48px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 16px;
  animation: marquee 38s linear infinite;
}

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

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-card {
  display: flex;
  height: 96px;
  width: 176px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background-color: rgba(255, 255, 255, 0.7);
  padding: 0 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease;
}

.marquee-card:hover {
  transform: translateY(-4px);
}

.marquee-card img {
  max-height: 48px;
  width: 100%;
  object-fit: contain;
}

/* ==========================================================================
   BOTTOM CTA SECTION (100% MATCH WITH REACT APP)
   ========================================================================== */

.kas-cta-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0 96px;
}

.kas-cta-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.kas-cta-box {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 2.5rem;
  background-color: var(--primary);
  padding: 56px 32px;
  color: var(--primary-foreground);
}

@media (min-width: 640px) {
  .kas-cta-box {
    padding: 64px 56px;
  }
}

.kas-cta-blob-1 {
  position: absolute;
  top: -30%;
  left: 5%;
  width: 340px;
  height: 340px;
  background: rgba(42, 138, 223, 0.7);
  background: oklch(0.62 0.155 250 / 0.7);
}

.kas-cta-blob-2 {
  position: absolute;
  right: 0;
  bottom: -35%;
  width: 300px;
  height: 300px;
  background: rgba(33, 173, 173, 0.5);
  background: oklch(0.68 0.11 195 / 0.5);
}

.kas-cta-content {
  position: relative;
  max-width: 620px;
  z-index: 1;
}

.kas-cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--primary-foreground);
  font-weight: 600;
  line-height: 1.2;
}

.kas-cta-desc {
  color: rgba(250, 252, 254, 0.80);
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 16px;
}

.kas-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  margin-top: 28px;
  box-shadow: var(--shadow-lift);
  transition: all 0.3s ease;
}

.kas-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   FOOTER (100% MATCH WITH ORIGINAL REACT Footer.tsx)
   ========================================================================== */

.kas-footer {
  position: relative;
  overflow: hidden;
  background-color: var(--primary);
  color: var(--primary-foreground);
  margin-top: auto;
}

.kas-footer .blob-1 {
  top: -30%;
  left: -10%;
  width: 420px;
  height: 420px;
  background: rgba(42, 138, 223, 0.6);
  background: oklch(0.62 0.155 250 / 0.6);
}

.kas-footer .blob-2 {
  right: -8%;
  bottom: -40%;
  width: 380px;
  height: 380px;
  background: rgba(33, 173, 173, 0.4);
  background: oklch(0.68 0.11 195 / 0.4);
}

.kas-footer-container {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 20px 48px;
}

.kas-footer-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .kas-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.kas-footer-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kas-footer-logo-badge {
  display: inline-flex;
  height: 48px;
  width: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background-color: rgba(255, 255, 255, 0.95);
  padding: 6px;
  overflow: hidden;
}

.kas-footer-logo-badge .custom-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0 !important;
}

.kas-footer-logo-badge img,
.kas-footer-logo-badge .custom-logo {
  max-height: 36px !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.kas-footer-brand-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.kas-footer-desc {
  margin-top: 20px;
  max-width: 380px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(250, 252, 254, 0.75);
}

.kas-footer-contact-list {
  margin-top: 24px;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: rgba(250, 252, 254, 0.80);
}

.kas-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.kas-footer-icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  color: var(--sky-soft);
}

.kas-footer-heading {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 252, 254, 0.60);
  font-weight: 600;
  margin-bottom: 20px;
}

.kas-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.kas-footer-menu li a {
  color: rgba(250, 252, 254, 0.80);
}

.kas-footer-menu li a:hover {
  color: #ffffff;
}

.kas-footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
  color: rgba(250, 252, 254, 0.60);
}

@media (min-width: 640px) {
  .kas-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON (DIRECT wa.me LINK)
   ========================================================================== */

.kas-floating-wa {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #25d366;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.kas-floating-wa:hover {
  background-color: #1ebe57;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -8px rgba(37, 211, 102, 0.5);
}

.kas-floating-wa svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   404 & PAGE TEMPLATES
   ========================================================================== */

.kas-page-wrapper {
  min-height: calc(100vh - 120px);
  padding-top: 120px;
}

.kas-404-container {
  max-width: 580px;
  margin: 60px auto;
  padding: 20px;
  text-align: center;
}

.kas-404-code {
  font-size: 72px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.kas-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  margin-top: 24px;
  transition: all 0.3s ease;
}

.kas-btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
