/* ================================================================
   KrakenTheMeta — Landing rebuild: "Abyssal Arsenal"
   Deep-sea / arcane MTG aesthetic. Engraved Cinzel display type,
   asymmetric bento tool grid where each tile glows in an MTG
   mana color, abyssal depth glows, kraken watermark.
   Namespace: .ka-   (plays alongside existing .lp- dynamic sections)
   ================================================================ */

:root {
  --ka-display: 'Cinzel', Georgia, serif;
  --ka-body: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --ka-abyss: #04101e;
  --ka-ink: #081f33;
  --ka-cyan: #a2e7ee;
  --ka-cyan-2: #7bc0e8;
  --ka-text-dim: #9fb6c9;
}

/* ---- Engraved headings across the whole below-fold (unifies old + new) ---- */
.lp-section-title,
.ka-title {
  font-family: var(--ka-display);
  letter-spacing: 0.5px;
}

/* All rebuilt-landing elements use border-box so width:100% + padding never
   overflows the viewport (the site's global reset doesn't cover these). */
.ka-section,
.ka-section * { box-sizing: border-box; }

/* ===========================  SECTION SHELL  =========================== */
.ka-section {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 22px;
  z-index: 1;
}

/* Abyssal glows + faint kraken watermark behind a section */
.ka-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(620px 380px at 12% 0%, rgba(65, 150, 224, 0.10), transparent 60%),
    radial-gradient(560px 420px at 92% 30%, rgba(162, 231, 238, 0.08), transparent 62%);
}

.ka-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.ka-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--ka-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ka-cyan);
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(162, 231, 238, 0.22);
  background: rgba(162, 231, 238, 0.06);
  margin-bottom: 20px;
}
.ka-eyebrow::before,
.ka-eyebrow::after {
  content: '';
  width: 16px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ka-cyan));
}
.ka-eyebrow::after { background: linear-gradient(90deg, var(--ka-cyan), transparent); }

.ka-title {
  font-size: clamp(28px, 5vw, 50px);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 14px;
  color: #fff;
  overflow-wrap: break-word;
}
.ka-title .ka-grad {
  background: linear-gradient(110deg, #a2e7ee 0%, #7bc0e8 45%, #4196e0 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.ka-sub {
  font-family: var(--ka-body);
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.6;
  color: var(--ka-text-dim);
  margin: 0;
}

/* ===========================  BENTO ARSENAL  =========================== */
.ka-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
  grid-template-areas:
    "build build search  search"
    "build build analyze budget"
    "odds  sets  collect decks"
    "feed  feed  games   brewers";
}
.ka-a-build   { grid-area: build; }
.ka-a-search  { grid-area: search; }
.ka-a-analyze { grid-area: analyze; }
.ka-a-budget  { grid-area: budget; }
.ka-a-odds    { grid-area: odds; }
.ka-a-sets    { grid-area: sets; }
.ka-a-collect { grid-area: collect; }
.ka-a-decks   { grid-area: decks; }
.ka-a-feed    { grid-area: feed; }
.ka-a-games   { grid-area: games; }
.ka-a-brewers { grid-area: brewers; }

/* ---- Tool tile ---- */
.ka-tile {
  --acc: var(--ka-cyan);
  --acc2: var(--ka-cyan-2);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 20px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.012) 60%),
    var(--ka-ink);
  border: 1px solid rgba(162, 231, 238, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.35s, box-shadow 0.35s;
}
/* accent glow that blooms from the icon corner */
.ka-tile::before {
  content: '';
  position: absolute;
  top: -40%; left: -20%;
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--acc), transparent 68%);
  opacity: 0.14;
  z-index: -1;
  transition: opacity 0.35s;
}
/* top sheen line in the accent color, revealed on hover */
.ka-tile::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.ka-tile:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--acc) 55%, transparent);
  box-shadow: 0 20px 50px -18px color-mix(in srgb, var(--acc) 70%, transparent);
}
.ka-tile:hover::before { opacity: 0.26; }
.ka-tile:hover::after  { opacity: 0.9; }

.ka-ico {
  width: 50px; height: 50px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  color: var(--acc2);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--acc) 26%, transparent), color-mix(in srgb, var(--acc) 6%, transparent));
  border: 1px solid color-mix(in srgb, var(--acc) 38%, transparent);
  box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--acc) 80%, transparent);
}
.ka-tile h3 {
  font-family: var(--ka-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #fff;
  margin: 4px 0 0;
  line-height: 1.25;
}
.ka-tile p {
  font-family: var(--ka-body);
  font-size: 13.5px;
  line-height: 21px;
  color: var(--ka-text-dim);
  margin: 0;
}
.ka-tile .ka-go {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--ka-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--acc2);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ka-tile .ka-go i { font-size: 11px; transition: transform 0.3s; }
.ka-tile:hover .ka-go i { transform: translateX(5px); }

/* mana-color accent classes */
.ka-acc-u { --acc: #4196e0; --acc2: #9cd2f5; }
.ka-acc-g { --acc: #3fbf86; --acc2: #87e6b8; }
.ka-acc-r { --acc: #e0584f; --acc2: #ff9a8d; }
.ka-acc-b { --acc: #9b7be6; --acc2: #cdb6ff; }
.ka-acc-w { --acc: #e0c45a; --acc2: #f7e7a6; }
.ka-acc-c { --acc: #a2e7ee; --acc2: #c9f6fa; }

/* ---- Marquee "build" tile (the hero of the bento) ---- */
.ka-a-build {
  --acc: #a2e7ee; --acc2: #c9f6fa;
  padding: 30px;
  justify-content: flex-start;
  background:
    radial-gradient(420px 300px at 85% 0%, rgba(162, 231, 238, 0.14), transparent 62%),
    linear-gradient(165deg, rgba(255,255,255,0.06), rgba(255,255,255,0.012)),
    var(--ka-ink);
}
.ka-a-build .ka-badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ka-body);
  font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: #05101c;
  padding: 6px 13px; border-radius: 999px;
  background: linear-gradient(135deg, #a2e7ee, #4196e0);
}
.ka-a-build h3 {
  font-size: clamp(22px, 2.5vw, 30px);
  margin: 16px 0 8px;
}
.ka-a-build .ka-build-desc {
  font-size: 15px; line-height: 23px; max-width: 92%;
}
.ka-build-mock {
  margin-top: 18px;
  border-radius: 14px;
  border: 1px solid rgba(162, 231, 238, 0.16);
  background: rgba(3, 12, 22, 0.55);
  padding: 14px 16px;
  font-family: var(--ka-body);
}
.ka-mock-bar {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: #d8ecf6; font-weight: 500;
}
.ka-mock-bar i { color: var(--ka-cyan); }
.ka-mock-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px; color: #c4d6e2;
}
.ka-mock-row:first-of-type { margin-top: 10px; }
.ka-pips { display: inline-flex; gap: 4px; }
.ka-pip { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.3); }
.ka-pip-w { background: #f7e7a6; } .ka-pip-u { background: #6fb6ef; }
.ka-pip-b { background: #b59ae8; } .ka-pip-r { background: #ef8b7e; }
.ka-pip-g { background: #7fe0b0; }
.ka-mock-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12.5px; color: var(--ka-cyan);
}
.ka-build-cta {
  margin-top: 20px;
  display: inline-flex; align-items: center; gap: 9px;
  align-self: flex-start;
  padding: 13px 26px; border-radius: 11px;
  font-family: var(--ka-body); font-weight: 600; font-size: 15px;
  color: #05101c; text-decoration: none;
  background: linear-gradient(135deg, #a2e7ee, #4196e0);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ka-build-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(162,231,238,.6); }

/* ===========================  HOW IT WORKS  =========================== */
.ka-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
}
/* connecting current line behind the nodes */
.ka-steps::before {
  content: '';
  position: absolute;
  top: 42px; left: 14%; right: 14%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(162,231,238,.4), rgba(65,150,224,.4), transparent);
  z-index: 0;
}
.ka-step {
  position: relative; z-index: 1;
  text-align: center;
  padding: 0 14px;
}
.ka-step-num {
  width: 60px; height: 60px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ka-display);
  font-size: 24px; font-weight: 700; color: #05101c;
  border-radius: 50%;
  background: linear-gradient(135deg, #a2e7ee, #4196e0);
  box-shadow: 0 0 0 8px rgba(8, 31, 51, 1), 0 0 30px -4px rgba(162,231,238,.6);
}
.ka-step h3 {
  font-family: var(--ka-display);
  font-size: 19px; font-weight: 600; color: #fff; margin: 0 0 8px;
}
.ka-step p {
  font-family: var(--ka-body);
  font-size: 14px; line-height: 22px; color: var(--ka-text-dim); margin: 0;
}

/* ===========================  WHY STRIP  =========================== */
.ka-why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(162, 231, 238, 0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}
.ka-why-item {
  text-align: center;
  padding: 34px 22px;
  border-left: 1px solid rgba(162, 231, 238, 0.10);
}
.ka-why-item:first-child { border-left: none; }
.ka-why-ico {
  font-size: 24px; color: var(--ka-cyan); margin-bottom: 12px;
}
.ka-why-item h3 {
  font-family: var(--ka-display);
  font-size: 17px; color: #fff; margin: 0 0 6px;
}
.ka-why-item p {
  font-family: var(--ka-body);
  font-size: 13px; line-height: 20px; color: var(--ka-text-dim); margin: 0;
}

/* ===========================  FAQ  =========================== */
.ka-faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 13px; }
.ka-faq-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(162, 231, 238, 0.13);
  border-radius: 14px; overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}
.ka-faq-item[open] {
  border-color: rgba(162, 231, 238, 0.32);
  background: linear-gradient(180deg, rgba(162,231,238,0.07), rgba(65,150,224,0.02));
}
.ka-faq-q {
  list-style: none; cursor: pointer;
  padding: 20px 24px;
  font-family: var(--ka-display);
  font-size: 17px; font-weight: 600; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ka-faq-q::-webkit-details-marker { display: none; }
.ka-faq-chev { flex-shrink: 0; font-size: 14px; color: var(--ka-cyan); transition: transform 0.25s; }
.ka-faq-item[open] .ka-faq-chev { transform: rotate(180deg); }
.ka-faq-a {
  padding: 0 24px 22px; margin: 0;
  font-family: var(--ka-body);
  font-size: 14.5px; line-height: 24px; color: var(--ka-text-dim);
}
.ka-faq-a a { color: var(--ka-cyan); text-decoration: none; }
.ka-faq-a a:hover { text-decoration: underline; }

/* ===========================  SCROLL REVEAL  =========================== */
.ka-anim .ka-reveal { opacity: 0; transform: translateY(22px); }
.ka-anim .ka-reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1);
}

/* ===========================  RESPONSIVE  =========================== */
@media (max-width: 1024px) {
  .ka-section { padding: 60px 18px; }
  .ka-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "build build"
      "search search"
      "analyze budget"
      "odds sets"
      "collect decks"
      "feed feed"
      "games brewers";
  }
  .ka-why { grid-template-columns: repeat(2, 1fr); }
  .ka-why-item:nth-child(2) { border-left: none; }
  .ka-why-item:nth-child(3),
  .ka-why-item:nth-child(4) { border-top: 1px solid rgba(162,231,238,.10); }
  .ka-why-item:nth-child(3) { border-left: none; }
}

@media (max-width: 640px) {
  .ka-section { padding: 46px 15px; }
  .ka-head { padding: 0 4px; margin-bottom: 32px; }
  .ka-title { font-size: 26px; letter-spacing: 0; line-height: 1.2; }
  .ka-eyebrow { letter-spacing: 2px; font-size: 11px; }
  .ka-bento {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  /* On mobile, non-marquee tiles become sleek horizontal rows — not stacked squares */
  .ka-tile:not(.ka-a-build) {
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 16px 18px;
  }
  .ka-tile:not(.ka-a-build) .ka-ico { flex-shrink: 0; }
  .ka-tile:not(.ka-a-build) .ka-go {
    margin: 0 0 0 auto; padding: 0;
    font-size: 0;
  }
  .ka-tile:not(.ka-a-build) .ka-go i { font-size: 14px; }
  .ka-tile:not(.ka-a-build) p { display: none; } /* keep the row tight + scannable */
  .ka-tile:not(.ka-a-build) h3 { margin: 0; font-size: 16px; }

  .ka-steps { grid-template-columns: 1fr; gap: 26px; }
  .ka-steps::before { display: none; }
  .ka-why { grid-template-columns: 1fr; }
  .ka-why-item { border-left: none !important; border-top: 1px solid rgba(162,231,238,.10); }
  .ka-why-item:first-child { border-top: none; }
  .ka-faq-q { font-size: 15.5px; padding: 18px; }
  .ka-faq-a { padding: 0 18px 20px; }
}
