/* ============================================================
   iGaming Tech — Landing Page
   Signalry-inspired: dark hero with orange glow, bento grid,
   hairline borders, product showcase
   ============================================================ */

body.landing { background: var(--bg-deep); }

/* ---------- frame column ---------- */

.frame {
  max-width: 1240px; margin: 0 auto; box-sizing: border-box;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.sec { position: relative; border-top: 1px solid var(--line); }
.sec:first-child { border-top: none; }
.sec.hero + .sec { border-top: none; }
.sec::before, .sec::after {
  content: '+'; position: absolute; top: -9px;
  color: #404040; font: 400 15px var(--mono); line-height: 1;
}
.sec::before { left: -5px; }
.sec::after { right: -5px; }

/* textures */
.tex-grid {
  background-image:
    linear-gradient(rgba(0,132,61,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,132,61,0.06) 1px, transparent 1px);
  background-size: 34px 34px;
}
.tex-dots {
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* split cells */
.g2 { display: grid; grid-template-columns: 1.15fr 0.85fr; }
.g2e { display: grid; grid-template-columns: 1fr 1fr; }
.g64 { display: grid; grid-template-columns: 1.4fr 1fr; }
.cell { padding: 44px; min-width: 0; }
.cell + .cell { border-left: 1px solid var(--line); }
.cell .muted-p { color: var(--muted); font-size: 15.5px; line-height: 1.7; }

.kick {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ac); font-size: 13.5px; font-weight: 600; margin-bottom: 22px;
}
.kick::before { content: ''; width: 8px; height: 8px; background: var(--ac); }

.h-xl { font-size: clamp(38px, 4.4vw, 54px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; }

/* ---------- hero ---------- */

.sec.hero {
  display: grid; grid-template-rows: 1fr auto; grid-template-columns: minmax(0,1fr);
  padding: 0 0 16px;
}
.hero-c {
  position: relative; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 80px 44px 60px;
  overflow: hidden;
}
.hero-rain {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.rain-icon {
  position: absolute;
  top: -60px;
  border-radius: 8px;
  animation: rain-fall linear infinite;
  will-change: transform;
}
@keyframes rain-fall {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(calc(100vh + 120px)) rotate(15deg); }
}
.hero-mid { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; }

/* green metallic glow backdrop */
.hero-c::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(0,201,94,0.28), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 80%, rgba(0,132,61,0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 90%, rgba(0,92,42,0.12), transparent 50%);
}

.star-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 14px;
  font-size: 13px; color: #d4d4d4; margin-bottom: 24px;
}
.star-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ac-bright); animation: r-pulse 1.7s infinite; }
@keyframes r-pulse { 0% { box-shadow: 0 0 0 0 rgba(0,201,94,0.5); } 100% { box-shadow: 0 0 0 9px rgba(0,201,94,0); } }

.hero-c h1 {
  font-size: clamp(42px, 5vw, 72px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.06;
  max-width: 1200px; text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 0%, #dcdfe2 38%, #8f969e 62%, #e8eaec 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.word-rotate {
  display: inline-block;
  position: relative;
  min-width: 5.2em;
  text-align: left;
  vertical-align: bottom;
}
.word-rotate .word-current {
  display: inline-block;
  transition: opacity .2s, transform .2s;
  background: linear-gradient(180deg, #ffffff 0%, #dcdfe2 38%, #8f969e 62%, #e8eaec 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hero-p { color: #d4d4d4; font-size: 17px; line-height: 1.65; max-width: 560px; margin-top: 22px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.hero-note { color: var(--dim); font-size: 13px; margin-top: 18px; }

/* ---------- trusted-by bar ---------- */

.trustbar {
  position: relative; display: flex; align-items: center; gap: 30px;
  width: 100%; justify-self: stretch;
  padding: 26px 44px 0;
}
.trustbar::before {
  content: ''; position: absolute; top: 0; left: calc(50% - 50vw);
  width: 100vw; height: 1px; background: var(--line);
}
.trustbar::after {
  content: ''; position: absolute; bottom: -16px; left: calc(50% - 50vw);
  width: 100vw; height: 1px; background: var(--line);
}
.trust-title {
  flex: none; width: 200px; text-align: left;
  font-size: 15px; font-weight: 600; line-height: 1.5; letter-spacing: -0.01em;
  color: #d4d4d4;
}
.trust-title span { color: var(--ac-bright); }
.trust-track-wrap {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.trust-track {
  display: flex; align-items: center; width: max-content;
  animation: trust-scroll 30s linear infinite;
}
.trust-track:hover { animation-play-state: paused; }
.trust-item {
  height: 36px; margin-right: 48px; flex: none;
  display: flex; align-items: center;
  opacity: 0.5; transition: opacity .15s;
}
.trust-item:hover { opacity: 1; }
.trust-logo {
  height: 32px; width: auto; display: block;
}
@keyframes trust-scroll { to { transform: translateX(-50%); } }

/* ---------- game icon carousel ---------- */

.game-carousel {
  display: flex; flex-direction: column; gap: 8px;
  padding: 4px 0;
  overflow: hidden;
}

.gc-row {
  overflow: hidden; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.gc-track {
  display: flex; gap: 10px; width: max-content;
}

.gc-left .gc-track {
  animation: gc-scroll-l 18s linear infinite;
}
.gc-right .gc-track {
  animation: gc-scroll-r 18s linear infinite;
}

@keyframes gc-scroll-l {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}
@keyframes gc-scroll-r {
  from { transform: translateX(-33.333%); }
  to { transform: translateX(0); }
}

.gc-icon {
  width: 44px; height: 44px; flex: none;
  border-radius: 10px;
  object-fit: cover;
  background: var(--card-2);
}

/* ---------- product cards (bento) ---------- */

.bgrid { display: grid; grid-template-columns: 1fr 1fr; }
.bcell { padding: 38px 44px; border-top: 1px solid var(--line); min-width: 0; }
.bgrid .bcell:nth-child(even) { border-left: 1px solid var(--line); }
.bcell h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.bcell h3 .ic { color: var(--ac); font-size: 15px; }
.bcell > p { color: var(--muted); font-size: 14px; line-height: 1.65; margin-bottom: 22px; max-width: 560px; }

/* product showcase cards */
.pcard {
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--panel); overflow: hidden;
  transition: border-color .2s;
}
.pcard:hover { border-color: var(--ac); }
.pcard .phead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.pcard .phead h4 { font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.pcard .phead .muted { font-size: 11px; }
.pcard .pbody { padding: 16px 18px; }

/* licensing logo grid */
.lic-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 20px;
}
.lic-cell {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  height: 72px; padding: 10px;
  transition: border-color .2s;
}
.lic-cell:hover { border-color: var(--line-2); }
.lic-cell img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity .2s;
}
.lic-cell:hover img { opacity: 1; }

/* payment logo grid */
.pay-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
}
.pay-cell {
  background: #fff; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  height: 44px; padding: 6px 10px;
}
.pay-cell img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
.pay-more {
  background: var(--card-2); color: var(--muted);
  font-size: 11px; font-weight: 600;
  text-align: center;
}

/* mock data table inside product cards */
.mock-table th { padding: 10px 18px; }
.mock-table td { padding: 9px 18px; font-size: 12.5px; }

/* team logos in sportsbook feed */
.team-cell { display: flex; align-items: center; gap: 6px; }
.team-logo {
  width: 22px; height: 22px; border-radius: 50%;
  object-fit: contain; flex: none;
}
.team-vs { color: var(--faint); font-size: 11px; margin: 0 2px; }

/* ---------- feature link lists ---------- */

.flists { display: grid; grid-template-columns: repeat(4, 1fr); }
.flist { padding: 30px 28px; }
.flist + .flist { border-left: 1px solid var(--line); }
.flist h4 { color: var(--dim); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.fl { display: flex; justify-content: space-between; padding: 9px 0; color: var(--muted); font-size: 13.5px; cursor: pointer; }
.fl:hover { color: var(--text); }
.fl .ar { color: var(--dim); }

/* ---------- stats showcase ---------- */

.stat-showcase { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat-cell { padding: 38px 44px; text-align: center; }
.stat-cell + .stat-cell { border-left: 1px solid var(--line); }
.stat-cell .sv { font-size: 42px; font-weight: 700; letter-spacing: -0.03em; background: var(--ac-metallic); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-cell .sl { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* ---------- process steps ---------- */

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.pstep { padding: 38px 34px; }
.pstep + .pstep { border-left: 1px solid var(--line); }
.pstep .step-num {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--ac-dim); color: var(--ac-bright);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; margin-bottom: 18px;
}
.pstep h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.pstep p { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ---------- FAQ ---------- */

.fq { border-top: 1px solid var(--line); }
.fq:first-child { border-top: none; }
.fq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 22px 6px; font-size: 15.5px; font-weight: 600; }
.fq summary::-webkit-details-marker { display: none; }
.fq summary .ch { color: var(--dim); transition: transform .15s; }
.fq[open] summary .ch { transform: rotate(180deg); }
.fq .a { padding: 0 6px 22px; color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 640px; }

/* ---------- pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pl { padding: 38px 44px; }
.pl + .pl { border-left: 1px solid var(--line); }
.pl.rec { border: 1px solid var(--ac); position: relative; }
.pl h3 { font-size: 19px; font-weight: 600; }
.pl .sub { color: var(--muted); font-size: 13.5px; margin: 8px 0 26px; }
.pl .price { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; }
.pl .price small { font-size: 13px; color: var(--dim); font-weight: 400; }
.pl ul { list-style: none; margin: 24px 0; }
.pl li { color: var(--muted); font-size: 13.5px; padding: 8px 0; border-top: 1px solid #060606; }
.pl li b { color: var(--text); }
.pl .btn { width: 100%; }
.mini-badge { background: var(--ac-metallic); color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 3px 9px; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

/* ---------- final CTA ---------- */

.cta2 {
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(0,201,94,0.2), transparent 70%),
    var(--bg-deep);
}
.cta2 h2 { font-size: clamp(38px, 4.4vw, 56px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }

/* ---------- footer ---------- */

.ftr { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); padding: 60px 44px; }
.ftr h5 { font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }
.ftr a { display: block; color: var(--muted); font-size: 13.5px; padding: 6px 0; }
.ftr a:hover { color: var(--text); }
.socials { display: flex; gap: 18px; margin-top: 80px; color: var(--dim); font-size: 16px; }

/* ---------- platform showcase ---------- */

.plat-showcase {
  display: flex; flex-direction: column; gap: 0;
  padding: 40px 44px 60px;
}

.plat-tabs {
  display: flex; justify-content: center; gap: 6px;
  margin-bottom: 28px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 5px;
  width: fit-content;
  margin-left: auto; margin-right: auto;
}

.plat-tab {
  padding: 9px 22px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px; font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .25s;
  white-space: nowrap;
}
.plat-tab:hover { color: var(--text); }
.plat-tab.on {
  background: var(--ac-metallic);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: 0 2px 8px rgba(0,132,61,0.3);
}

.plat-preview {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.plat-screen {
  display: none;
}
.plat-screen.on { display: block; }

.plat-screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- language selector ---------- */

.lang-select {
  position: relative;
}
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--muted); font-size: 13px; font-weight: 500;
  padding: 7px 12px;
  cursor: pointer;
  transition: all .2s;
}
.lang-btn:hover { border-color: var(--dim); color: var(--text); }
.lang-btn svg.icon { width: 14px; height: 14px; }

.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 4px;
  min-width: 160px;
  opacity: 0; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .2s, transform .2s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 60;
}
.lang-select.open .lang-dropdown {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}

.lang-opt {
  display: block; width: 100%;
  background: none; border: none;
  color: var(--muted); font-size: 13px;
  padding: 8px 12px; border-radius: 6px;
  cursor: pointer; text-align: left;
  transition: background .15s, color .15s;
}
.lang-opt:hover { background: var(--card); color: var(--text); }
.lang-opt.on { color: var(--ac-bright); }

/* ---------- support chat widget ---------- */

.chat-toggle {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ac-metallic); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,132,61,0.4);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.chat-toggle:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0,201,94,0.5); }
.chat-toggle.hidden { opacity: 0; pointer-events: none; transform: scale(0.8); }
.chat-toggle svg.icon { width: 22px; height: 22px; }

.chat-panel {
  position: fixed; bottom: 24px; right: 24px; z-index: 101;
  width: 340px; max-height: 440px;
  background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 14px;
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transition: opacity .25s, transform .25s;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.chat-panel.open {
  opacity: 1; pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.chat-title { font-size: 14px; font-weight: 600; }
.chat-status { font-size: 11px; color: var(--green); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.chat-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; }

.chat-close {
  background: none; border: none; color: var(--muted); cursor: pointer;
  padding: 4px; border-radius: 4px;
  transition: color .15s;
}
.chat-close:hover { color: var(--text); }

.chat-body {
  flex: 1; overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 200px;
  max-height: 300px;
}

.chat-msg {
  background: var(--card-2); color: var(--text);
  padding: 8px 12px; border-radius: 12px;
  font-size: 13px; line-height: 1.45;
  max-width: 85%;
  align-self: flex-start;
}
.chat-msg.mine {
  background: var(--ac); color: #fff;
  align-self: flex-end;
}

.chat-footer {
  display: flex; gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--card);
}
.chat-footer input {
  flex: 1; background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px;
  color: var(--text); font-size: 13px;
  outline: none;
  transition: border-color .15s;
}
.chat-footer input:focus { border-color: var(--ac); }
.chat-footer input::placeholder { color: var(--faint); }

.chat-send {
  background: var(--ac); color: #fff; border: none;
  border-radius: 8px; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s;
}
.chat-send:hover { background: var(--ac-bright); }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .g2, .g2e, .g64, .bgrid, .plans, .flists, .process-grid { grid-template-columns: 1fr; }
  .stat-showcase { grid-template-columns: repeat(2, 1fr); }
  .cell + .cell, .bgrid .bcell:nth-child(even), .pl + .pl, .flist + .flist, .pstep + .pstep { border-left: none; border-top: 1px solid var(--line); }
  .stat-cell + .stat-cell { border-left: none; }
  .stat-cell:nth-child(even) { border-left: 1px solid var(--line); }
  .stat-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .trustbar { flex-direction: column; gap: 18px; padding: 26px 20px 0; }
  .trust-title { width: auto; text-align: center; }
  .ftr { grid-template-columns: 1fr 1fr; }
  .plat-tabs { flex-wrap: wrap; border-radius: var(--r); }
  .plat-tab { padding: 8px 16px; font-size: 12.5px; }
  .plat-showcase { padding: 20px 12px 40px; }
  .plat-preview { border-radius: var(--r); }
}
