/*
 * Kasbonex Front Page — Visual System v3
 * Image-led B2B industrial experience. Scoped to .kx3-home and body.home.
 */

:root {
  --kx3-ink: #071a26;
  --kx3-navy: #08263a;
  --kx3-deep: #03141f;
  --kx3-blue: #0b5676;
  --kx3-cyan: #19a2bb;
  --kx3-gold: #d6a84c;
  --kx3-sand: #f0e9da;
  --kx3-paper: #f5f7f7;
  --kx3-white: #fff;
  --kx3-muted: #64737b;
  --kx3-line: rgba(7, 26, 38, .14);
  --kx3-radius: 30px;
  --kx3-shadow: 0 30px 80px rgba(3, 20, 31, .13);
}

body.home {
  background: var(--kx3-paper);
}

body.home .kx-utility {
  background: #02101a;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

body.home .kx-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(7, 26, 38, .09);
  box-shadow: 0 12px 40px rgba(7, 26, 38, .06);
}

body.home .kx-nav__cta {
  background: var(--kx3-ink);
  border-color: var(--kx3-ink);
  color: #fff;
}

.kx3-home {
  overflow: hidden;
  color: var(--kx3-ink);
  background: var(--kx3-paper);
}

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

.kx3-home .container {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.kx3-hero {
  position: relative;
  isolation: isolate;
  min-height: 760px;
  overflow: hidden;
  padding: 70px 0 0;
  color: var(--kx3-white);
  background:
    radial-gradient(circle at 80% 16%, rgba(25, 162, 187, .23), transparent 30%),
    linear-gradient(135deg, #03141f 0%, #062638 54%, #07344b 100%);
}

.kx3-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .18;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.kx3-hero__mesh {
  position: absolute;
  top: -220px;
  right: -230px;
  z-index: -1;
  width: 720px;
  height: 720px;
  border: 1px solid rgba(214, 168, 76, .25);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(25, 162, 187, .035),
    0 0 0 180px rgba(25, 162, 187, .025);
}

.kx3-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  gap: clamp(46px, 6vw, 96px);
  align-items: center;
  min-height: 620px;
}

.kx3-hero__copy {
  position: relative;
  z-index: 3;
  max-width: 680px;
  padding-bottom: 34px;
}

.kx3-eyebrow,
.kx3-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--kx3-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.kx3-eyebrow > span {
  width: 42px;
  height: 2px;
  background: var(--kx3-gold);
}

.kx3-hero h1 {
  max-width: 820px;
  margin: 24px 0 24px;
  color: #fff;
  font-size: clamp(54px, 6.4vw, 100px);
  font-weight: 800;
  letter-spacing: -.062em;
  line-height: .9;
}

.kx3-hero h1 > span {
  display: block;
  margin-bottom: 13px;
  color: #92b2c0;
  font-size: .42em;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.kx3-hero__copy > p {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
}

.kx3-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.kx3-btn {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
}

.kx3-btn:hover {
  transform: translateY(-3px);
}

.kx3-btn--primary {
  background: var(--kx3-gold);
  color: #14212a;
  box-shadow: 0 14px 30px rgba(214, 168, 76, .18);
}

.kx3-btn--primary:hover {
  background: #edc66d;
  color: #14212a;
}

.kx3-btn--line {
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
  background: rgba(255, 255, 255, .035);
  backdrop-filter: blur(8px);
}

.kx3-btn--line:hover {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .09);
  color: #fff;
}

.kx3-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
  color: rgba(255, 255, 255, .74);
  font-size: 13px;
  font-weight: 700;
}

.kx3-hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.kx3-hero__trust i {
  color: var(--kx3-gold);
}

.kx3-hero__visual {
  position: relative;
  z-index: 2;
  min-height: 560px;
}

.kx3-hero__image {
  position: absolute;
  inset: 8px 0 8px 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 44% 44% 28px 28px;
  box-shadow: 0 42px 95px rgba(0, 0, 0, .35);
  background: #0a354b;
}

.kx3-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(3, 20, 31, .58));
}

.kx3-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

.kx3-float {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .22);
  backdrop-filter: blur(16px);
}

.kx3-float small {
  color: rgba(255, 255, 255, .65);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.kx3-float strong {
  margin: 2px 0;
  color: #fff;
  font-size: 36px;
  line-height: 1;
}

.kx3-float span {
  color: rgba(255, 255, 255, .68);
  font-size: 11px;
}

.kx3-float--grade {
  top: 78px;
  left: -25px;
  width: 150px;
  min-height: 145px;
  background: rgba(8, 38, 58, .88);
}

.kx3-float--pack {
  right: -24px;
  bottom: 70px;
  width: 165px;
  min-height: 148px;
  background: rgba(214, 168, 76, .94);
}

.kx3-float--pack i,
.kx3-float--pack strong,
.kx3-float--pack span {
  color: #10232d;
}

.kx3-float--pack i {
  margin-bottom: 12px;
  font-size: 20px;
}

.kx3-orbit {
  position: absolute;
  right: -55px;
  bottom: 4px;
  z-index: -1;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(214, 168, 76, .42);
  border-radius: 50%;
}

.kx3-orbit::before,
.kx3-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(214, 168, 76, .25);
  border-radius: inherit;
}

.kx3-orbit::before { inset: 24px; }
.kx3-orbit::after { inset: 50px; }

.kx3-hero__footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.kx3-hero__footer span {
  position: relative;
  display: flex;
  min-height: 70px;
  align-items: center;
  padding: 0 24px;
  color: rgba(255, 255, 255, .66);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.kx3-hero__footer span:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, .14);
}

.kx3-hero__footer span::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-inline-end: 10px;
  border-radius: 50%;
  background: var(--kx3-gold);
}

.kx3-products {
  padding: clamp(88px, 9vw, 140px) 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(25, 162, 187, .08), transparent 25%),
    var(--kx3-paper);
}

.kx3-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 46px;
}

.kx3-heading h2,
.kx3-tech h2,
.kx3-final h2 {
  max-width: 850px;
  margin: 13px 0 0;
  color: var(--kx3-ink);
  font-size: clamp(39px, 5vw, 70px);
  font-weight: 800;
  letter-spacing: -.048em;
  line-height: .98;
}

.kx3-heading > p {
  max-width: 470px;
  margin: 0;
  padding-bottom: 7px;
  color: var(--kx3-muted);
  font-size: 16px;
  line-height: 1.75;
}

.kx3-product-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.kx3-card {
  grid-column: span 6;
  overflow: hidden;
  border: 1px solid rgba(7, 26, 38, .1);
  border-radius: var(--kx3-radius);
  background: #fff;
  box-shadow: 0 15px 50px rgba(7, 26, 38, .07);
  transition: transform .28s ease, box-shadow .28s ease;
}

.kx3-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--kx3-shadow);
}

.kx3-card--barite42,
.kx3-card--sodium {
  grid-column: span 7;
}

.kx3-card--barite41,
.kx3-card--bentonite {
  grid-column: span 5;
}

.kx3-card__media {
  position: relative;
  display: block;
  height: 370px;
  overflow: hidden;
  background: #dbe4e6;
}

.kx3-card--barite42 .kx3-card__media,
.kx3-card--sodium .kx3-card__media {
  height: 430px;
}

.kx3-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 54%, rgba(3, 20, 31, .48));
}

.kx3-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.kx3-card--bentonite .kx3-card__media img {
  object-fit: contain;
  padding: 24px;
  background: #e8f2f8;
}

.kx3-card:hover .kx3-card__media img {
  transform: scale(1.045);
}

.kx3-card__badge {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 15px;
  border-radius: 100px;
  color: #fff;
  background: rgba(3, 20, 31, .8);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.kx3-card__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: end;
  min-height: 220px;
  padding: 30px;
}

.kx3-card__index {
  display: block;
  margin-bottom: 9px;
  color: var(--kx3-cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
}

.kx3-card h3 {
  margin: 0 0 12px;
  color: var(--kx3-ink);
  font-size: clamp(25px, 2.6vw, 38px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.kx3-card p {
  max-width: 600px;
  margin: 0;
  color: var(--kx3-muted);
  font-size: 14px;
  line-height: 1.65;
}

.kx3-card__link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 9px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--kx3-ink);
  color: var(--kx3-ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.kx3-process {
  position: relative;
  isolation: isolate;
  padding: clamp(88px, 9vw, 140px) 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(3, 20, 31, .98), rgba(7, 52, 75, .96)),
    var(--kx3-deep);
}

.kx3-process::after {
  content: "KX";
  position: absolute;
  right: -30px;
  bottom: -100px;
  z-index: -1;
  color: rgba(255, 255, 255, .025);
  font-size: 360px;
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: 1;
}

.kx3-heading--dark {
  display: block;
}

.kx3-heading--dark h2 {
  max-width: 820px;
  color: #fff;
}

.kx3-process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .15);
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.kx3-process__grid article {
  min-height: 300px;
  padding: 34px 27px;
  transition: background-color .25s ease;
}

.kx3-process__grid article:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, .15);
}

.kx3-process__grid article:hover {
  background: rgba(255, 255, 255, .05);
}

.kx3-step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--kx3-gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
}

.kx3-step__top i {
  color: rgba(255, 255, 255, .35);
  font-size: 24px;
}

.kx3-process h3 {
  margin: 72px 0 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.kx3-process p {
  margin: 0;
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
  line-height: 1.7;
}

.kx3-tech {
  padding: clamp(88px, 9vw, 140px) 0;
  background: var(--kx3-sand);
}

.kx3-tech__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
}

.kx3-tech__content > p {
  max-width: 700px;
  margin: 23px 0 34px;
  color: #5d686e;
  font-size: 16px;
  line-height: 1.8;
}

.kx3-spec-list {
  border-top: 1px solid rgba(7, 26, 38, .2);
}

.kx3-spec-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(7, 26, 38, .2);
}

.kx3-spec-list span {
  color: #657077;
  font-size: 14px;
}

.kx3-spec-list strong {
  color: var(--kx3-ink);
  font-size: 15px;
  font-weight: 900;
}

.kx3-doc-card {
  position: relative;
  overflow: hidden;
  min-height: 510px;
  padding: 48px;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 8%, rgba(25, 162, 187, .4), transparent 27%),
    var(--kx3-navy);
  box-shadow: var(--kx3-shadow);
}

.kx3-doc-card::before {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(214, 168, 76, .3);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(214, 168, 76, .04), 0 0 0 70px rgba(214, 168, 76, .025);
}

.kx3-doc-card__icon {
  display: grid;
  width: 70px;
  height: 70px;
  margin-bottom: 75px;
  place-items: center;
  border-radius: 20px;
  color: var(--kx3-ink);
  background: var(--kx3-gold);
  font-size: 28px;
}

.kx3-doc-card > span {
  color: var(--kx3-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .15em;
}

.kx3-doc-card h3 {
  max-width: 430px;
  margin: 16px 0;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.kx3-doc-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .66);
  line-height: 1.7;
}

.kx3-doc-card > a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.kx3-final {
  padding: 0 0 64px;
  background: var(--kx3-sand);
}

.kx3-final__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto;
  gap: 44px;
  align-items: center;
  padding: clamp(42px, 6vw, 76px);
  border-radius: 32px;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(3, 20, 31, .98), rgba(8, 38, 58, .92)),
    var(--kx3-ink);
  box-shadow: 0 34px 90px rgba(3, 20, 31, .2);
}

.kx3-final h2 {
  max-width: 720px;
  color: #fff;
  font-size: clamp(36px, 4.4vw, 62px);
}

.kx3-final p {
  max-width: 670px;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, .65);
  line-height: 1.75;
}

.kx3-final__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 210px;
}

.kx3-btn--whatsapp {
  border-color: rgba(255, 255, 255, .24);
  color: #fff;
}

.kx3-btn--whatsapp:hover {
  border-color: #38d36f;
  background: #1b8f4a;
  color: #fff;
}

html[dir="rtl"] .kx3-card__badge {
  right: 22px;
  left: auto;
}

html[dir="rtl"] .kx3-hero__footer span:not(:last-child),
html[dir="rtl"] .kx3-process__grid article:not(:last-child) {
  border-right: 0;
  border-left: 1px solid rgba(255, 255, 255, .15);
}

@media (max-width: 1100px) {
  .kx3-hero {
    min-height: 0;
    padding-top: 64px;
  }

  .kx3-hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .kx3-hero__copy {
    max-width: 820px;
    padding-bottom: 0;
  }

  .kx3-hero h1 {
    max-width: 800px;
  }

  .kx3-hero__visual {
    width: min(720px, 94%);
    min-height: 620px;
    margin: 0 auto;
  }

  .kx3-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .kx3-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .kx3-card,
  .kx3-card--barite42,
  .kx3-card--barite41,
  .kx3-card--bentonite,
  .kx3-card--sodium {
    grid-column: auto;
  }

  .kx3-card__media,
  .kx3-card--barite42 .kx3-card__media,
  .kx3-card--sodium .kx3-card__media {
    height: 350px;
  }

  .kx3-process__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .kx3-process__grid article:nth-child(2) {
    border-right: 0;
  }

  .kx3-process__grid article:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, .15);
  }

  .kx3-tech__grid {
    grid-template-columns: 1fr;
  }

  .kx3-doc-card {
    min-height: 430px;
  }

  .kx3-doc-card__icon {
    margin-bottom: 55px;
  }
}

@media (max-width: 760px) {
  .kx3-home .container {
    width: min(100% - 32px, 1240px);
  }

  body.home .kx-utility {
    display: none;
  }

  .kx3-hero {
    padding-top: 48px;
  }

  .kx3-hero__grid {
    gap: 38px;
  }

  .kx3-hero h1 {
    margin: 18px 0 21px;
    font-size: clamp(48px, 15vw, 68px);
  }

  .kx3-hero h1 > span {
    font-size: .4em;
  }

  .kx3-actions,
  .kx3-final__actions {
    width: 100%;
    flex-direction: column;
  }

  .kx3-btn {
    width: 100%;
  }

  .kx3-hero__trust {
    gap: 13px 20px;
    font-size: 12px;
  }

  .kx3-hero__visual {
    width: 100%;
    min-height: 440px;
  }

  .kx3-hero__image {
    inset: 0 12px 18px 12px;
    border-radius: 35% 35% 22px 22px;
  }

  .kx3-float {
    padding: 14px;
    border-radius: 16px;
  }

  .kx3-float strong {
    font-size: 27px;
  }

  .kx3-float--grade {
    top: 35px;
    left: 0;
    width: 120px;
    min-height: 112px;
  }

  .kx3-float--pack {
    right: 0;
    bottom: 30px;
    width: 130px;
    min-height: 116px;
  }

  .kx3-hero__footer {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 25px;
  }

  .kx3-hero__footer span {
    min-height: 56px;
    padding: 0 10px;
    font-size: 9px;
  }

  .kx3-hero__footer span:nth-child(2) {
    border-right: 0;
  }

  .kx3-hero__footer span:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, .14);
  }

  .kx3-products,
  .kx3-process,
  .kx3-tech {
    padding: 76px 0;
  }

  .kx3-heading {
    margin-bottom: 32px;
  }

  .kx3-heading h2,
  .kx3-tech h2 {
    font-size: 42px;
  }

  .kx3-product-grid,
  .kx3-process__grid {
    grid-template-columns: 1fr;
  }

  .kx3-card__media,
  .kx3-card--barite42 .kx3-card__media,
  .kx3-card--sodium .kx3-card__media {
    height: 310px;
  }

  .kx3-card__body {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 25px;
  }

  .kx3-card__link {
    width: max-content;
  }

  .kx3-process__grid article {
    min-height: 240px;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
  }

  .kx3-process__grid article:last-child {
    border-bottom: 0;
  }

  .kx3-process h3 {
    margin-top: 46px;
  }

  .kx3-spec-list > div {
    align-items: flex-start;
  }

  .kx3-doc-card {
    min-height: 440px;
    padding: 34px 28px;
  }

  .kx3-doc-card h3 {
    font-size: 29px;
  }

  .kx3-final {
    padding-bottom: 34px;
  }

  .kx3-final__inner {
    grid-template-columns: 1fr;
    padding: 39px 25px;
    border-radius: 24px;
  }

  .kx3-final h2 {
    font-size: 39px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kx3-home *,
  .kx3-home *::before,
  .kx3-home *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
