/* ============================================================
   SEO LANDING PAGES — MODERN 3D OVERLAY THEME
   Layered on top of /assets/css/seo-pages.css to add:
   - 3D perspective hero with floating product card
   - Animated gradient orbs / glassmorphism
   - 3D tilt cards on hover
   - Modern depth shadows + glow effects
   - Smooth scroll-reveal animations
   ============================================================ */

:root{
  --kw-navy:#0B3156;
  --kw-navy-deep:#061a30;
  --kw-gold:#D4AF37;
  --kw-gold-light:#F4D03F;
  --kw-cream:#fdf8ec;
  --kw-glass: rgba(255,255,255,.65);
  --kw-glass-border: rgba(255,255,255,.45);
  --kw-shadow-3d: 0 30px 60px -20px rgba(11,49,86,.35), 0 18px 36px -18px rgba(11,49,86,.22);
  --kw-shadow-glow: 0 0 50px rgba(212,175,55,.35);
}

/* === KEYFRAMES === */
@keyframes kwFloat{
  0%,100%{ transform: translateY(0) rotateX(0) rotateY(0); }
  50%{ transform: translateY(-14px) rotateX(2deg) rotateY(-2deg); }
}
@keyframes kwBlobDrift{
  0%,100%{ transform: translate(0,0) scale(1); }
  33%{ transform: translate(40px,-30px) scale(1.08); }
  66%{ transform: translate(-30px,30px) scale(.95); }
}
@keyframes kwShine{
  0%{ background-position: -200% 0; }
  100%{ background-position: 200% 0; }
}
@keyframes kwReveal{
  from{ opacity:0; transform: translateY(30px); }
  to{ opacity:1; transform: translateY(0); }
}
@keyframes kwPulse{
  0%,100%{ box-shadow: 0 0 0 0 rgba(212,175,55,.55); }
  70%{ box-shadow: 0 0 0 16px rgba(212,175,55,0); }
}

/* === MODERN HERO REPLACEMENT === */
.kw-modern .sx-hero{
  min-height: 78vh;
  padding: 130px 24px 90px;
  background: linear-gradient(135deg,#061a30 0%, #0B3156 45%, #143b6c 100%) !important;
  isolation: isolate;
  perspective: 1400px;
}
.kw-modern .sx-hero::before{
  content:""; position:absolute; inset:-2px;
  background:
    radial-gradient(900px 500px at 12% 18%, rgba(212,175,55,.28), transparent 55%),
    radial-gradient(700px 500px at 88% 82%, rgba(72,148,255,.22), transparent 55%),
    radial-gradient(500px 400px at 60% 50%, rgba(244,208,63,.10), transparent 60%);
  z-index:0;
  animation: kwBlobDrift 18s ease-in-out infinite;
}
.kw-modern .sx-hero::after{
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  z-index:0;
  pointer-events:none;
}

/* Hero grid: text + 3D product visual */
.kw-hero-grid{
  position:relative; z-index:2;
  display:grid; grid-template-columns: 1.15fr .85fr;
  gap:60px; align-items:center;
  max-width:1240px; margin:0 auto;
  text-align:left;
}
.kw-hero-text h1{
  text-align:left;
  background: linear-gradient(120deg, #ffffff 0%, #fff7d6 45%, #F4D03F 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(30px, 4.6vw, 56px);
  text-shadow: none;
  letter-spacing: -.01em;
}
.kw-hero-text p{
  text-align:left; margin:18px 0 26px;
  color:#dce6f5; font-size: clamp(14.5px, 1.4vw, 17px);
  max-width: 560px;
}
.kw-hero-tag{
  display:inline-flex; align-items:center; gap:10px;
  padding: 9px 18px; border-radius:999px;
  background: rgba(212,175,55,.12);
  border: 1px solid rgba(244,208,63,.45);
  backdrop-filter: blur(12px);
  color:#F4D03F; font-size:12px; font-weight:600;
  letter-spacing: .14em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.kw-hero-tag .dot{
  width:8px; height:8px; border-radius:50%;
  background: linear-gradient(135deg,#D4AF37,#F4D03F);
  box-shadow: 0 0 0 4px rgba(212,175,55,.18);
  animation: kwPulse 2.4s ease-out infinite;
}
.kw-hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-top:28px; }
.kw-hero-cta .btn-primary, .kw-hero-cta .btn-ghost{
  display:inline-flex; align-items:center; gap:10px;
  padding: 14px 26px; border-radius: 14px;
  text-decoration:none; font-weight:700; font-size:14.5px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
  position:relative; overflow:hidden;
}
.kw-hero-cta .btn-primary{
  background: linear-gradient(135deg,#D4AF37,#F4D03F);
  color:#0B3156;
  box-shadow: 0 18px 40px -10px rgba(212,175,55,.55), inset 0 1px 0 rgba(255,255,255,.4);
}
.kw-hero-cta .btn-primary::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  background-size:200% 100%;
  animation: kwShine 3.5s linear infinite;
  mix-blend-mode: overlay;
}
.kw-hero-cta .btn-primary:hover{ transform: translateY(-3px); }
.kw-hero-cta .btn-ghost{
  background: rgba(255,255,255,.06);
  color:#fff;
  border:1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
}
.kw-hero-cta .btn-ghost:hover{ background: rgba(255,255,255,.14); transform: translateY(-3px); }

/* Hero trust pills */
.kw-hero-trust{
  display:flex; flex-wrap:wrap; gap:14px 22px; margin-top:30px;
  color:#cfe0fa; font-size:13px;
}
.kw-hero-trust span{ display:inline-flex; align-items:center; gap:7px; }
.kw-hero-trust i{ color:#F4D03F; font-size:15px; }

/* 3D product card */
.kw-hero-visual{
  position:relative; perspective: 1300px;
  display:flex; align-items:center; justify-content:center;
  min-height: 420px;
}
.kw-product-stage{
  position:relative; width:100%; max-width:460px;
  transform-style: preserve-3d;
  animation: kwFloat 6.5s ease-in-out infinite;
}
.kw-product-card{
  position:relative;
  border-radius: 28px;
  overflow:hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow:
    0 35px 70px -20px rgba(0,0,0,.55),
    0 20px 40px -25px rgba(212,175,55,.55),
    inset 0 1px 0 rgba(255,255,255,.16);
  backdrop-filter: blur(16px);
  transform: rotateY(-8deg) rotateX(6deg);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.kw-product-card:hover{ transform: rotateY(-2deg) rotateX(2deg) scale(1.02); }
.kw-product-card img{
  display:block; width:100%; height:100%;
  aspect-ratio: 4/3; object-fit: cover;
}
.kw-product-card::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(212,175,55,.18), transparent 55%);
  pointer-events:none;
}
.kw-product-badge{
  position:absolute; top:-22px; left:-18px;
  background: linear-gradient(135deg,#D4AF37,#F4D03F);
  color:#0B3156; font-weight:800; font-size:12px;
  padding: 10px 16px; border-radius: 14px;
  box-shadow: 0 14px 30px -10px rgba(212,175,55,.6);
  transform: translateZ(40px) rotate(-4deg);
  display:inline-flex; align-items:center; gap:8px;
  letter-spacing:.05em;
}
.kw-product-spec-chip{
  position:absolute; right:-14px; bottom:24px;
  background: rgba(11,49,86,.92);
  color:#F4D03F; font-size:12.5px; font-weight:700;
  padding: 12px 18px; border-radius: 14px;
  border:1px solid rgba(244,208,63,.35);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.6);
  transform: translateZ(50px);
  backdrop-filter: blur(10px);
  letter-spacing:.04em;
}
.kw-product-spec-chip strong{ color:#fff; display:block; font-size:18px; line-height:1; margin-bottom:3px; font-family:'Playfair Display',serif; }

/* Decorative grain orbits behind product */
.kw-orbit{
  position:absolute; inset:-30px;
  border-radius:50%;
  border:1px dashed rgba(212,175,55,.28);
  pointer-events:none;
  animation: kwBlobDrift 14s ease-in-out infinite reverse;
}
.kw-orbit.k2{ inset:-60px; border-color: rgba(255,255,255,.08); animation-duration: 22s; }

/* Modern breadcrumb in hero */
.kw-modern .sx-breadcrumb{ margin-top:34px; font-size:12.5px; opacity:.85; }

/* === TRUST STRIP UNDER HERO === */
.kw-trust-strip{
  position:relative; z-index:3;
  max-width:1180px; margin: -52px auto 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  border:1px solid rgba(255,255,255,.6);
  border-radius: 22px;
  display:grid; grid-template-columns: repeat(4, 1fr);
  padding: 22px 18px;
  box-shadow: var(--kw-shadow-3d);
}
.kw-trust-item{
  text-align:center; padding: 8px 14px;
  border-right:1px dashed rgba(11,49,86,.12);
}
.kw-trust-item:last-child{ border-right:none; }
.kw-trust-item .num{
  font-family:'Playfair Display',serif;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight:800;
  background: linear-gradient(135deg,#0B3156,#1a4a85);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  display:block; line-height:1;
}
.kw-trust-item .lbl{ color:#5a6a7e; font-size:12px; text-transform:uppercase; letter-spacing:.1em; margin-top:6px; display:block; }
.kw-trust-item i{ color:var(--kw-gold); font-size:16px; margin-right:6px; }

/* === MODERN SECTION ENHANCEMENTS === */
.kw-modern section{ position:relative; }

/* Decorative blobs behind sections */
.kw-modern .sx-section.alt::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(500px 400px at 5% 5%, rgba(212,175,55,.10), transparent 55%),
    radial-gradient(500px 400px at 95% 95%, rgba(11,49,86,.06), transparent 55%);
  pointer-events:none;
}
.kw-modern .sx-section .container,
.kw-modern .sx-section.alt .container{ position:relative; z-index:1; }

/* Stronger eyebrow */
.kw-modern .sx-eyebrow{
  display:inline-block; padding: 6px 14px;
  background: linear-gradient(135deg, rgba(212,175,55,.15), rgba(244,208,63,.05));
  border: 1px solid rgba(212,175,55,.35);
  border-radius:999px;
  color:#8a6c1c; font-size:11.5px; font-weight:700; letter-spacing:.18em;
}
.kw-modern.kw-modern .sx-section.dark .sx-eyebrow{ color:#F4D03F; }

/* 3D guide cards */
.kw-modern .sx-guide-card{
  background: linear-gradient(180deg, #ffffff 0%, #fdf8ec 100%);
  border-radius: 22px;
  border-left:none;
  position:relative;
  transform: translateZ(0);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s;
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 14px 36px -16px rgba(11,49,86,.18),
    0 4px 10px -4px rgba(11,49,86,.08);
  overflow:hidden;
}
.kw-modern .sx-guide-card::before{
  content:""; position:absolute; top:0; left:0; right:0; height:4px;
  background: linear-gradient(90deg,#D4AF37,#F4D03F,#D4AF37);
  opacity:.0; transition: opacity .35s;
}
.kw-modern .sx-guide-card::after{
  content:""; position:absolute; right:-30px; top:-30px;
  width:140px; height:140px; border-radius:50%;
  background: radial-gradient(circle, rgba(212,175,55,.18), transparent 65%);
  opacity:0; transition: opacity .35s;
}
.kw-modern .sx-guide-card:hover{
  transform: translateY(-8px) rotateX(2deg);
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 30px 60px -18px rgba(11,49,86,.28),
    0 14px 30px -10px rgba(212,175,55,.18);
}
.kw-modern .sx-guide-card:hover::before,
.kw-modern .sx-guide-card:hover::after{ opacity:1; }
.kw-modern .sx-guide-card .gc-icon{
  width:58px; height:58px; border-radius:18px;
  background: linear-gradient(135deg,#0B3156 0%, #1a4a85 60%, #2a5fa0 100%);
  box-shadow:
    0 14px 30px -8px rgba(11,49,86,.45),
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -2px 0 rgba(0,0,0,.18);
  font-size:24px;
  position:relative;
}
.kw-modern .sx-guide-card .gc-icon::after{
  content:""; position:absolute; inset:0;
  border-radius:18px;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.25), transparent 55%);
}

/* 3D benefit & usecase cards */
.kw-modern .sx-benefit,
.kw-modern .sx-usecase{
  background: linear-gradient(180deg,#ffffff,#fbf6e9);
  border:1px solid rgba(212,175,55,.18);
  border-radius:18px;
  box-shadow:
    0 10px 28px -10px rgba(11,49,86,.14),
    inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.kw-modern .sx-benefit:hover,
.kw-modern .sx-usecase:hover{
  transform: translateY(-6px) rotateX(2deg);
  border-color: rgba(212,175,55,.55);
  box-shadow:
    0 24px 48px -16px rgba(11,49,86,.25),
    0 10px 24px -10px rgba(212,175,55,.22);
}
.kw-modern .sx-benefit-ic,
.kw-modern .sx-usecase-ic{
  box-shadow:
    0 10px 24px -8px rgba(212,175,55,.55),
    inset 0 1px 0 rgba(255,255,255,.5),
    inset 0 -2px 0 rgba(0,0,0,.12);
}
.kw-modern .sx-usecase-ic{
  box-shadow:
    0 14px 30px -10px rgba(11,49,86,.5),
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -3px 0 rgba(0,0,0,.18);
}

/* Spec table glassy upgrade */
.kw-modern .kw-spec-table{
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.65);
  border-radius:22px;
  box-shadow:
    0 24px 60px -22px rgba(11,49,86,.25),
    inset 0 1px 0 rgba(255,255,255,.7);
}
.kw-modern .kw-spec-table h3{
  background: linear-gradient(135deg,#061a30,#0B3156 60%, #1a4a85);
  border-radius:0;
  position:relative;
}
.kw-modern .kw-spec-table h3::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
  background: linear-gradient(90deg, transparent, #F4D03F, transparent);
}

/* Process steps — 3D numbered */
.kw-modern .sx-step{
  background: linear-gradient(180deg,#ffffff,#fdf6e3);
  border-radius:18px;
  box-shadow:
    0 14px 36px -16px rgba(11,49,86,.22),
    inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .35s, box-shadow .35s;
  border:1px solid rgba(212,175,55,.18);
}
.kw-modern .sx-step:hover{
  transform: translateY(-6px) rotateX(2deg);
  box-shadow: 0 26px 54px -18px rgba(11,49,86,.32);
}
.kw-modern .sx-step .n{
  background: linear-gradient(135deg,#D4AF37,#F4D03F);
  color:#0B3156;
  box-shadow:
    0 10px 22px -6px rgba(212,175,55,.55),
    inset 0 1px 0 rgba(255,255,255,.5),
    inset 0 -2px 0 rgba(0,0,0,.18);
  width:42px; height:42px; top:-22px;
  font-size:18px;
}

/* Mid CTA — depth */
.kw-modern .sx-mid-cta{
  border-radius: 28px;
  box-shadow:
    0 30px 60px -18px rgba(212,175,55,.45),
    inset 0 1px 0 rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.4);
}

/* FAQ — frosted */
.kw-modern .sx-faq{
  background: linear-gradient(180deg,#ffffff,#fdf8ec);
  border-radius:16px;
  border-left:4px solid transparent;
  border-image: linear-gradient(180deg,#D4AF37,#F4D03F) 1;
  box-shadow:
    0 10px 24px -12px rgba(11,49,86,.14),
    inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .25s;
}
.kw-modern .sx-faq:hover{ transform: translateX(4px); }
.kw-modern .sx-faq[open]{
  background: linear-gradient(180deg,#fffdf3,#fdf6e3);
}

/* Final CTA — depth */
.kw-modern .sx-cta{
  border-radius: 32px;
  background: linear-gradient(135deg,#061a30 0%, #0B3156 50%, #143b6c 100%);
  box-shadow:
    0 30px 80px -20px rgba(11,49,86,.45),
    inset 0 1px 0 rgba(255,255,255,.08);
}
.kw-modern .sx-cta::after{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(450px 300px at 80% 20%, rgba(244,208,63,.18), transparent 55%),
    radial-gradient(400px 300px at 20% 80%, rgba(72,148,255,.14), transparent 55%);
  z-index:1;
  border-radius:inherit;
}

/* Gallery — 3D tilt */
.kw-modern .sx-gallery img{
  border-radius:18px;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), box-shadow .55s;
  box-shadow: 0 18px 40px -16px rgba(11,49,86,.3);
}
.kw-modern .sx-gallery img:hover{
  transform: scale(1.04) rotateX(3deg) rotateY(-3deg);
  box-shadow: 0 28px 60px -18px rgba(11,49,86,.5);
}

/* Interlinks dark — modern */
.kw-modern .sx-interlinks{
  background: linear-gradient(135deg,#061a30,#0B3156);
  position:relative; overflow:hidden;
}
.kw-modern .sx-interlinks::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(700px 400px at 10% 10%, rgba(212,175,55,.10), transparent 55%),
    radial-gradient(700px 400px at 90% 90%, rgba(72,148,255,.10), transparent 55%);
}
.kw-modern .sx-interlinks .container{ position:relative; z-index:1; }
.kw-modern .sx-interlinks a{
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(8px);
  border:1px solid rgba(212,175,55,.18);
  transition: transform .25s, background .25s, border-color .25s;
}
.kw-modern .sx-interlinks a:hover{
  background: linear-gradient(135deg, rgba(212,175,55,.18), rgba(244,208,63,.06));
  border-color: rgba(244,208,63,.55);
  transform: translateY(-2px) translateX(2px);
}

/* Reveal-on-scroll utility */
.kw-reveal{ opacity:0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.kw-reveal.is-in{ opacity:1; transform: translateY(0); }

/* Responsive */
@media (max-width: 980px){
  .kw-hero-grid{ grid-template-columns: 1fr; gap:50px; text-align:center; }
  .kw-hero-text h1, .kw-hero-text p{ text-align:center; margin-left:auto; margin-right:auto; }
  .kw-hero-cta, .kw-hero-trust{ justify-content:center; }
  .kw-hero-visual{ min-height: 320px; }
  .kw-product-card{ transform: rotateY(-4deg) rotateX(4deg); }
  .kw-trust-strip{ grid-template-columns: repeat(2, 1fr); margin-top:-40px; }
  .kw-trust-item:nth-child(2){ border-right:none; }
  .kw-trust-item:nth-child(1), .kw-trust-item:nth-child(2){ border-bottom:1px dashed rgba(11,49,86,.12); padding-bottom:14px; }
  .kw-trust-item:nth-child(3), .kw-trust-item:nth-child(4){ padding-top:14px; }
}
@media (max-width: 560px){
  .kw-modern .sx-hero{ min-height: 70vh; padding: 110px 18px 70px; }
  .kw-product-card{ max-width: 320px; margin: 0 auto; }
  .kw-product-spec-chip{ right:0; bottom:14px; font-size:11.5px; padding:10px 14px; }
  .kw-product-badge{ font-size:11px; padding:8px 12px; left:-8px; top:-16px; }
  .kw-trust-strip{ padding:16px 12px; border-radius:18px; }
  .kw-trust-item .num{ font-size:20px; }
  .kw-trust-item .lbl{ font-size:10.5px; }
}

/* Reduced-motion accessibility */
@media (prefers-reduced-motion: reduce){
  .kw-product-stage, .kw-modern .sx-hero::before, .kw-orbit, .kw-hero-tag .dot{ animation:none !important; }
  .kw-modern .sx-guide-card:hover,
  .kw-modern .sx-benefit:hover,
  .kw-modern .sx-usecase:hover,
  .kw-modern .sx-step:hover{ transform:none; }
}
