.text-stroke {
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.glass {
  background: linear-gradient(180deg, rgba(58, 10, 91, 0.42) 0%, rgba(26, 0, 36, 0.72) 100%);
  border: 1px solid rgba(180, 88, 255, 0.14);
  backdrop-filter: blur(10px);
}

.card-sheen {
  position: relative;
  overflow: hidden;
}

.card-sheen::after {
  content: "";
  position: absolute;
  inset: -60% -30%;
  background: radial-gradient(circle at 30% 30%, rgba(180, 88, 255, 0.12) 0%, rgba(0, 0, 0, 0) 55%);
  transform: rotate(12deg);
  pointer-events: none;
}

.blob {
  filter: blur(40px);
  /* remove background color blobs */
  opacity: 0;
  transform: translateZ(0);
}

.wave-panel {
  /* neutralize extra purple background */
  background: none;
}

html {
  scroll-behavior: smooth;
}

body {
  /* body font to match EN.png (clean rounded UI) */
  font-family: Poppins, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  font-size: 16px;
  line-height: 1.65;
}

.font-display {
  font-family: Orbitron, Poppins, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  letter-spacing: 0.18em;
}

.text-stroke {
  /* stronger outline feel like the reference */
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
}

/* ============================================================
   Layout polish to match EN.png + mobile.png
   ============================================================ */

/* Typography scale-up (requested) */
#about h2,
#marketing h2,
#faq h2,
#contact h2 {
  font-size: 22px !important;
  line-height: 1.2;
}

#features h2 {
  font-size: 14px !important;
  line-height: 1.2;
}

#about p {
  font-size: 15px !important;
  line-height: 1.75 !important;
}

#features article h3,
#marketing article h3 {
  font-size: 13px !important;
}

#features article p,
#marketing article p {
  font-size: 13px !important;
  line-height: 1.65 !important;
}

.k9-table,
.k9-table td {
  font-size: 13px !important;
}

.k9-table-title {
  font-size: 12px;
}

details.faq summary span:first-child {
  font-size: 13px !important;
}

details.faq p {
  font-size: 13px !important;
  line-height: 1.65 !important;
}

@media (min-width: 768px) {
  body {
    font-size: 17px;
  }

  #about h2,
  #marketing h2,
  #faq h2,
  #contact h2 {
    font-size: 26px !important;
  }

  #about p {
    font-size: 16px !important;
  }

  #features article h3,
  #marketing article h3 {
    font-size: 14px !important;
  }

  #features article p,
  #marketing article p {
    font-size: 14px !important;
  }

  .k9-table,
  .k9-table td {
    font-size: 14px !important;
  }

  details.faq summary span:first-child {
    font-size: 14px !important;
  }

  details.faq p {
    font-size: 14px !important;
  }
}

/* Global spacing: match the comp’s larger “breathing room” */
@media (min-width: 768px) {
  #about .mx-auto,
  #features .mx-auto,
  #faq .mx-auto {
    padding-top: 70px !important;
    padding-bottom: 70px !important;
  }
}

/* About: map should feel like a background visual (not a card) */
.k9-about-visual {
  pointer-events: none;
}

.k9-about-map {
  display: block;
  opacity: 0.72;
  filter: saturate(0.95) contrast(1.05);
}

@media (min-width: 768px) {
  /* Desktop hero fixed height (per request) */
  .k9-heroWrap {
    height: 400px;
  }

  .k9-heroWrap > .mx-auto {
    height: 100%;
  }

  .k9-hero {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  .k9-about-visual {
    max-width: 560px;
  }

  .k9-about-map {
    opacity: 0.62;
    transform: translateY(10px);
    mask-image: radial-gradient(75% 60% at 50% 50%, rgba(0,0,0,1) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,0) 100%);
  }
}

/* Commission blocks: distinct header strip + tighter table look */
.k9-commission {
  position: relative;
}

.k9-table-title {
  margin: 2px auto 0;
  width: 100%;
  max-width: 340px;
  text-align: center;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,.92);
  background: linear-gradient(180deg, rgba(180,88,255,.22) 0%, rgba(58,10,91,.28) 100%);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.k9-table-body tr td {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* FAQ: plus styling like the comp, and subtle separation */
details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq summary span:last-child {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  line-height: 1;
  font-weight: 800;
}

details.faq[open] summary span:last-child {
  background: rgba(180,88,255,.12);
  border-color: rgba(180,88,255,.22);
}

details.faq[open] summary span:last-child::before {
  content: "×";
}

details.faq[open] summary span:last-child {
  color: rgba(255,255,255,.85);
}

details.faq summary span:last-child {
  color: rgba(255,255,255,.65);
}

/* When open, hide original "+" text (keeps your HTML intact) */
details.faq[open] summary span:last-child {
  font-size: 16px;
}

details.faq[open] summary span:last-child {
  text-indent: -9999px;
}

details.faq[open] summary span:last-child::before {
  text-indent: 0;
}

/* ============================================================
   Figma header + about (desktop + mobile)
   ============================================================ */

/* Desktop: place header over hero background like Figma */
.k9-header {
  position: relative;
  z-index: 20;
  /* keep header visually readable while not overlapping hero */
  background: linear-gradient(180deg, rgba(7, 0, 13, 0.88) 0%, rgba(7, 0, 13, 0.35) 70%, rgba(7, 0, 13, 0) 100%);
  backdrop-filter: blur(10px);
}

.k9-heroWrap {
  position: relative;
}

/* Hero art layout (dots left + bars right) */
.k9-hero-art {
  z-index: 0;
}

.k9-heroWrap .k9-hero {
  z-index: 1;
}

.k9-hero-dots {
  position: absolute;
  left: 0;
  top: 0;
  width: min(820px, 62vw);
  max-width: 920px;
  opacity: 0.95;
  user-select: none;
}

.k9-hero-bars {
  position: absolute;
  right: 0;
  top: 0;
  width: min(520px, 38vw);
  max-width: 640px;
  opacity: 0.95;
  user-select: none;
}

@media (min-width: 1024px) {
  .k9-hero-dots {
    left: -10px;
    top: -6px;
  }
  .k9-hero-bars {
    right: -12px;
    top: -2px;
  }
}

/* Mobile: use headermobile.png overlay in header */
@media (max-width: 640px) {
  .k9-heroWrap {
    position: relative;
  }

  .k9-heroWrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("./images/headermobile.png") top center / 100% auto no-repeat;
    pointer-events: none;
    z-index: 0;
  }

  .k9-heroWrap > * {
    position: relative;
    z-index: 1;
  }

  /* Mobile header spacing similar to Figma */
  .k9-hero {
    padding-top: 44px;
    padding-bottom: 52px;
  }

  /* About on mobile: centered + stacked */
  #about h2,
  #about p {
    text-align: center;
  }

  #about p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Desktop: keep hero map visually similar (soft fade) */
@media (min-width: 768px) {
  /* hero spacing like the screenshot */
  .k9-hero {
    padding-top: 92px;
    padding-bottom: 108px;
  }

  .k9-hero-map {
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 18%, rgba(0,0,0,1) 72%, rgba(0,0,0,0) 100%);
  }
}


