/* =========================================================
   KINTEK HOME PAGE

========================================================= */

.kx-home {
  --kx-cyan: var(--cyan, #06b6d4);
  --kx-blue: var(--blue, #0a2a5e);
  --kx-bg: var(--bg, #ffffff);
  --kx-card: var(--card, #ffffff);
  --kx-card2: var(--card2, #f5f9fc);
  --kx-text: var(--text, #0f172a);
  --kx-muted: var(--muted, #64748b);
  --kx-border: var(--border, rgba(15, 23, 42, .10));

  background: var(--kx-bg);
  color: var(--kx-text);
  overflow-x: hidden;
  overflow-y: visible;
}

.kx-home * {
  box-sizing: border-box;
}

.kx-container {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
}

/* =========================================================
 HERO
========================================================= */


.kx-normal-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h, 78px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0e3f6c;
  isolation: isolate;
}

.kx-normal-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0e3f6c;
}

.kx-normal-hero-video,
.kx-normal-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}

.kx-normal-hero-video {
  z-index: 2;
}

.kx-normal-hero-img {
  z-index: 1;
}

.kx-normal-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(6, 182, 212, .24), transparent 34%),
    linear-gradient(
      90deg,
      rgba(248, 253, 255, .96) 0%,
      rgba(248, 253, 255, .86) 42%,
      rgba(248, 253, 255, .46) 72%,
      rgba(248, 253, 255, .76) 100%
    );
}

.kx-normal-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .12;
  background-image:
    linear-gradient(rgba(6, 182, 212, .38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, .38) 1px, transparent 1px);
  background-size: 48px 48px;
}

.kx-normal-hero-content {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: clamp(120px, 12vw, 170px) 0 clamp(80px, 8vw, 120px);
}

.kx-normal-hero-inner {
  max-width: 820px;
}

.kx-normal-hero-title {
  max-width: 850px;
  margin: 0 0 22px;
  color: #071827;
  font-size: clamp(2.75rem, 6.4vw, 5.8rem);
  line-height: .96;
  letter-spacing: -.06em;
  font-weight: 950;
}

.kx-normal-hero-title span {
  background: linear-gradient(90deg, #0891b2, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kx-normal-hero-lead {
  max-width: 720px;
  margin: 0;
  color: #526477;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.75;
}

/* Dark mode */
[data-theme="dark"], html.dark {
  --bg: #0e3f6c;
  --bg-2: #123f68;
  --bg-3: #164b7c;
  --bg-4: #1b5a93;

  --text: #f0f6ff;
  --text-muted: rgba(255,255,255,0.76);
  --text-faint: rgba(255,255,255,0.46);

  --border: rgba(255,255,255,0.14);
  --border-cyan: rgba(6,182,212,0.48);

  --card-bg: rgba(255,255,255,0.08);
  --card-hover: rgba(6,182,212,0.14);

  --primary: #0e3f6c;
  --primary-2: #123f68;
  --cyan: #06b6d4;
}

[data-theme="dark"] body,
html.dark body {
  background:
    radial-gradient(circle at 12% 8%, rgba(6,182,212,0.16), transparent 32%),
    radial-gradient(circle at 86% 24%, rgba(255,255,255,0.07), transparent 26%),
    #0e3f6c !important;
  color: var(--text) !important;
}

[data-theme="dark"] main,
html.dark main {
  background: transparent !important;
}

[data-theme="dark"] section,
html.dark section {
  color: var(--text);
}

[data-theme="dark"] .kx-home,
html.dark .kx-home {
  background:
    radial-gradient(circle at 12% 8%, rgba(6,182,212,0.16), transparent 32%),
    radial-gradient(circle at 86% 24%, rgba(255,255,255,0.07), transparent 26%),
    #0e3f6c !important;
}

[data-theme="dark"] .kx-section,
html.dark .kx-section {
  background: #0e3f6c !important;
}

[data-theme="dark"] .kx-section.soft,
html.dark .kx-section.soft {
  background: #123f68 !important;
}

[data-theme="dark"] .kx-card,
html.dark .kx-card,
[data-theme="dark"] .kx-process-card,
html.dark .kx-process-card {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.14) !important;
}

[data-theme="dark"] .kx-marquee,
html.dark .kx-marquee {
  background: #123f68 !important;
  border-color: rgba(255,255,255,0.14) !important;
}



/* Mobile */
@media (max-width: 760px) {
  .kx-normal-hero {
    min-height: auto;
  }

  .kx-normal-hero-content {
    padding: 110px 0 72px;
  }

  .kx-normal-hero-title {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .kx-normal-hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(248, 253, 255, .96) 0%,
        rgba(248, 253, 255, .88) 70%,
        rgba(248, 253, 255, .62) 100%
      );
  }

  [data-theme="dark"] .kx-normal-hero-overlay,
  html.dark .kx-normal-hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(14, 63, 108, .96) 0%,
        rgba(14, 63, 108, .88) 70%,
        rgba(14, 63, 108, .62) 100%
      );
  }
}

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

.kx-marquee {
  overflow: hidden;
  background: var(--kx-card);
  border-top: 1px solid var(--kx-border);
  border-bottom: 1px solid var(--kx-border);
}

.kx-marquee-track {
  display: flex;
  width: max-content;
  animation: kxMarquee 34s linear infinite;
}

.kx-marquee-track span {
  padding: 13px 24px;
  white-space: nowrap;
  color: var(--kx-muted);
  font-weight: 850;
  font-size: .88rem;
}

.kx-marquee-track span::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 11px;
  border-radius: 50%;
  background: var(--kx-cyan);
  vertical-align: middle;
}

@keyframes kxMarquee {
  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   NORMAL SECTIONS
========================================================= */

.kx-section {
  padding: clamp(68px, 8vw, 98px) 0;
  position: relative;
}

.kx-section.soft {
  background: var(--kx-card2);
}

.kx-section.small {
  padding: 62px 0;
}

.kx-split {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 5vw, 66px);
  align-items: center;
}

.kx-section h2 {
  max-width: 760px;
  margin: 0 0 15px;
  color: var(--kx-text);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.09;
  letter-spacing: -.035em;
  font-weight: 900;
}

.kx-section-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.kx-section-center .kx-lead {
  margin-left: auto;
  margin-right: auto;
}

.kx-grid {
  display: grid;
  gap: 20px;
}

.kx-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kx-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kx-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kx-card {
  background: var(--kx-card);
  border: 1px solid var(--kx-border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 34px rgba(8,145,178,.065);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.kx-card:hover {
  transform: translateY(-5px);
  border-color: rgba(8,145,178,.30);
  box-shadow: 0 20px 52px rgba(8,24,39,.10);
}

.kx-card h3 {
  margin: 0 0 10px;
  color: var(--kx-text);
  font-size: 1.12rem;
  line-height: 1.18;
}

.kx-muted {
  color: var(--kx-muted);
  margin: 0;
  line-height: 1.64;
  font-size: .94rem;
}

.kx-icon-img {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  object-fit: cover;
  margin-bottom: 16px;
  display: block;
}

.kx-image-card {
  padding: 0;
  overflow: hidden;
}

.kx-image-card > img {
  width: 100%;
  height: 184px;
  object-fit: cover;
  display: block;
}

.kx-card-body {
  padding: 22px;
}

.kx-price {
  color: var(--kx-cyan);
  font-size: 1.62rem;
  font-weight: 950;
  margin: 8px 0 12px;
}

.kx-feature-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.kx-feature-list li {
  position: relative;
  padding-left: 28px;
  color: var(--kx-muted);
  line-height: 1.55;
}

.kx-feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--kx-cyan);
  font-weight: 950;
}

.kx-process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.kx-process-card {
  padding: 24px;
  border-radius: 22px;
  background: var(--kx-card);
  border: 1px solid var(--kx-border);
  box-shadow: 0 12px 34px rgba(8,145,178,.065);
}

.kx-process-num {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(8,145,178,.11);
  color: var(--kx-cyan);
  font-weight: 950;
  margin-bottom: 16px;
}

.kx-cta {
  padding: 38px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 14% 18%, rgba(34,211,238,.22), transparent 35%),
    linear-gradient(135deg, #061529, #0a2a5e);
  color: #fff;
}

.kx-cta h2 {
  color: #fff;
}

.kx-cta .kx-lead {
  color: rgba(255,255,255,.76);
}

.kx-cta .kx-eyebrow {
  color: #22d3ee;
}

/* Reveal */
.kx-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

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

/* =========================================================
   DARK MODE
========================================================= */

[data-theme='dark'] .kx-home,
html.dark .kx-home {
  --kx-bg: var(--bg, #06101d);
  --kx-card: var(--card, #0d1a2b);
  --kx-card2: var(--card2, #091626);
  --kx-text: var(--text, #f8fafc);
  --kx-muted: var(--muted, #9daec1);
  --kx-border: var(--border, rgba(255,255,255,.10));
}

[data-theme='dark'] .kx-scroll-hero,
html.dark .kx-scroll-hero {
  background: #06101d;
}

[data-theme='dark'] .kx-hero-sticky,
html.dark .kx-hero-sticky {
  background:
    radial-gradient(circle at 16% 18%, rgba(6,182,212,.15), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(34,211,238,.08), transparent 34%),
    linear-gradient(180deg, #0a1424 0%, var(--kx-bg) 100%);
}

[data-theme='dark'] .kx-hero-shade,
html.dark .kx-hero-shade {
  background:
    linear-gradient(90deg, rgba(6,16,29,.98) 0%, rgba(6,16,29,.88) 42%, rgba(6,16,29,.56) 72%, rgba(6,16,29,.86) 100%),
    linear-gradient(180deg, rgba(6,16,29,.20), rgba(6,16,29,.92));
}

[data-theme='dark'] .kx-hero-title,
html.dark .kx-hero-title,
[data-theme='dark'] .kx-panel-head h3,
html.dark .kx-panel-head h3,
[data-theme='dark'] .kx-scroll-word span,
html.dark .kx-scroll-word span {
  color: var(--kx-text);
}

[data-theme='dark'] .kx-lead,
html.dark .kx-lead,
[data-theme='dark'] .kx-panel-head p,
html.dark .kx-panel-head p,
[data-theme='dark'] .kx-scroll-word small,
html.dark .kx-scroll-word small,
[data-theme='dark'] .kx-scroll-hint,
html.dark .kx-scroll-hint {
  color: var(--kx-muted);
}

[data-theme='dark'] .kx-hero-panel,
html.dark .kx-hero-panel,
[data-theme='dark'] .kx-badge,
html.dark .kx-badge,
[data-theme='dark'] .kx-btn.outline,
html.dark .kx-btn.outline {
  background: rgba(15,23,42,.76);
  border-color: rgba(255,255,255,.12);
  color: var(--kx-text);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1060px) {
  .kx-hero-grid,
  .kx-split {
    grid-template-columns: 1fr;
  }

  .kx-hero-sticky {
    align-items: flex-start;
    padding-top: 110px;
  }

  .kx-hero-panel {
    max-width: 640px;
  }

  .kx-grid.four,
  .kx-grid.three,
  .kx-process-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .kx-container {
    width: min(100% - 30px, 1160px);
  }

  .kx-scroll-hero {
    height: 330vh;
    min-height: 330vh;
  }

  .kx-hero-sticky {
    min-height: 100vh;
    padding-top: 92px;
  }

  .kx-hero-title {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

  .kx-hero-panel {
    display: none;
  }

  .kx-actions,
  .kx-btn {
    width: 100%;
  }

  .kx-badge {
    font-size: .7rem;
  }

  .kx-scroll-word {
    width: min(1000px, calc(100% - 30px));
  }

  .kx-scroll-word span {
    font-size: clamp(3rem, 17vw, 5.4rem);
  }

  .kx-scroll-hint {
    display: none;
  }

  .kx-grid.two,
  .kx-grid.three,
  .kx-grid.four,
  .kx-process-row {
    grid-template-columns: 1fr;
  }

  .kx-section {
    padding: 62px 0;
  }

  .kx-cta {
    padding: 28px;
    border-radius: 24px;
  }
}


/* =========================================================
   WHY KINTEK ICON CARDS
========================================================= */

.kx-why-card {
  position: relative;
  overflow: hidden;
}

.kx-why-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.10);
  pointer-events: none;
}

.kx-cyan-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 20%, rgba(103, 232, 249, 0.30), transparent 45%),
    rgba(6, 182, 212, 0.10);
  border: 1px solid rgba(6, 182, 212, 0.30);
  box-shadow: 0 14px 32px rgba(6, 182, 212, 0.12);
}

.kx-cyan-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: #06b6d4;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kx-why-card:hover .kx-cyan-icon {
  transform: translateY(-3px) scale(1.04);
  border-color: rgba(6, 182, 212, 0.55);
  box-shadow: 0 18px 42px rgba(6, 182, 212, 0.20);
}

.kx-cyan-icon,
.kx-cyan-icon svg {
  transition: 0.25s ease;
}


/* =========================================================
   WEBM HOME HERO - OPTIMIZED VERSION
========================================================= */

.kx-media-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h, 78px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0e3f6c;
  isolation: isolate;
}

.kx-media-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0e3f6c;
}

.kx-media-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  opacity: 0.58;
  filter: saturate(1.05) contrast(1.04);
  transform: scale(1.02);
}

.kx-media-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(6, 182, 212, .24), transparent 34%),
    linear-gradient(
      90deg,
      rgba(248, 253, 255, .96) 0%,
      rgba(248, 253, 255, .86) 42%,
      rgba(248, 253, 255, .46) 72%,
      rgba(248, 253, 255, .76) 100%
    );
}

.kx-media-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .12;
  background-image:
    linear-gradient(rgba(6, 182, 212, .38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, .38) 1px, transparent 1px);
  background-size: 48px 48px;
}

.kx-media-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: clamp(120px, 12vw, 170px) 0 clamp(80px, 8vw, 120px);
}

.kx-media-hero-inner {
  max-width: 840px;
}

.kx-media-hero-title {
  max-width: 860px;
  margin: 0 0 22px;
  color: #071827;
  font-size: clamp(2.75rem, 6.4vw, 5.8rem);
  line-height: .96;
  letter-spacing: -.06em;
  font-weight: 950;
}

.kx-media-hero-title span {
  background: linear-gradient(90deg, #0891b2, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kx-media-hero-lead {
  max-width: 720px;
  margin: 0;
  color: #526477;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.75;
}

/* Dark mode */
[data-theme="dark"] .kx-media-hero-overlay,
html.dark .kx-media-hero-overlay {
  background:
    radial-gradient(circle at 18% 22%, rgba(6, 182, 212, .24), transparent 34%),
    linear-gradient(
      90deg,
      rgba(14, 63, 108, .94) 0%,
      rgba(14, 63, 108, .84) 42%,
      rgba(14, 63, 108, .42) 72%,
      rgba(14, 63, 108, .74) 100%
    );
}

[data-theme="dark"] .kx-media-hero-title,
html.dark .kx-media-hero-title {
  color: #f8fafc;
}

[data-theme="dark"] .kx-media-hero-lead,
html.dark .kx-media-hero-lead {
  color: rgba(226, 232, 240, .78);
}

/* Mobile */
@media (max-width: 760px) {
  .kx-media-hero {
    min-height: auto;
  }

  .kx-media-hero-content {
    padding: 110px 0 72px;
  }

  .kx-media-hero-title {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .kx-media-hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(248, 253, 255, .96) 0%,
        rgba(248, 253, 255, .88) 70%,
        rgba(248, 253, 255, .62) 100%
      );
  }

  [data-theme="dark"] .kx-media-hero-overlay,
  html.dark .kx-media-hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(14, 63, 108, .96) 0%,
        rgba(14, 63, 108, .88) 70%,
        rgba(14, 63, 108, .62) 100%
      );
  }
}

/* =========================================================
   MODERN HOME CTA
========================================================= */

.kx-cta-modern {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5vw, 54px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 14% 18%, rgba(6, 182, 212, 0.24), transparent 34%),
    radial-gradient(circle at 86% 20%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(135deg, #0e3f6c 0%, #123f68 58%, #164b7c 100%);
  border: 1px solid rgba(6, 182, 212, 0.28);
  box-shadow: 0 28px 80px rgba(14, 63, 108, 0.20);
  color: #ffffff;
}

.kx-cta-modern::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}

.kx-cta-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.24);
  filter: blur(18px);
  pointer-events: none;
}

.kx-cta-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
}

.kx-cta-modern .kx-eyebrow {
  color: #67e8f9;
}

.kx-cta-modern h2 {
  max-width: 820px;
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.kx-cta-modern h2 span {
  display: block;
  color: #67e8f9;
}

.kx-cta-modern .kx-lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.76);
}

.kx-cta-actions {
  display: grid;
  gap: 12px;
  min-width: 230px;
}

.kx-cta-modern .kx-btn.outline {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.kx-cta-modern .kx-btn.outline:hover {
  border-color: rgba(6, 182, 212, 0.65);
  color: #67e8f9;
}

.kx-cta-points {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.kx-cta-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.24);
  font-size: 0.78rem;
  font-weight: 850;
}

@media (max-width: 760px) {
  .kx-cta-content {
    grid-template-columns: 1fr;
  }

  .kx-cta-actions {
    min-width: 0;
  }

  .kx-cta-modern {
    border-radius: 26px;
  }
}

/* Optimized hero video behavior */
.kx-media-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  opacity: 0.58;
  filter: saturate(1.05) contrast(1.04);
  transform: scale(1.02);
  z-index: 0;
}

.kx-media-hero-img {
  z-index: 0;
}

@media (max-width: 768px) {
  .kx-media-hero-video {
    display: none;
  }
}
