/* =========================
   KOSHSI Ultra Premium UI
   Electric Orange + Black (NO brown/muddy glows)
   Complete style.css
   ========================= */

/* ---------- Tokens ---------- */
:root{
  /* Deep blacks */
  --bg0:#050506;
  --bg1:#07070a;
  --bg2:#0a0a0f;

  /* Text */
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --muted2: rgba(255,255,255,0.56);

  /* Electric orange system
     NOTE: large soft glows use o1/o2/o4 only (no yellow)
     bright highlight (o3) used for thin gradients (logo/buttons/bars) */
  --o1:#ff4d00;   /* hot orange-red */
  --o2:#ff6a00;   /* bright orange */
  --o3:#ff8a00;   /* highlight orange (avoid in big glows) */
  --o4:#ff2f00;   /* punch accent */

  /* Neutrals */
  --stroke: rgba(255,255,255,0.10);
  --stroke2: rgba(255,255,255,0.14);
  --panel: rgba(255,255,255,0.045);
  --panel2: rgba(255,255,255,0.060);

  /* Status */
  --good:#2ef0a0;
  --warn:#ffd66e;

  /* Shadows */
  --shadow: 0 26px 80px rgba(0,0,0,0.65);
  --shadow2: 0 12px 28px rgba(0,0,0,0.42);

  /* Radius + layout */
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --max: 1180px;

  /* Fonts */
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;

  /* Focus ring */
  --focus: 0 0 0 3px rgba(255,106,0,0.35);

  /* Brand gradients (thin accents) */
  --grad-brand: linear-gradient(135deg, var(--o1), var(--o2) 48%, var(--o3));
  --grad-brand-2: linear-gradient(90deg, var(--o1), var(--o2) 55%, var(--o3));
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ---------- Base ---------- */
html, body { height: 100%; }

body{
  margin:0;
  font-family: var(--font);
  color: var(--text);

  /* Large background glows: hot orange only, low opacity = no “brown” */
  background:#070A0F;

  overflow-x:hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ color: inherit; text-decoration: none; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); border:0;
}

/* ---------- Layout ---------- */
.container{ width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.stack{ display:flex; flex-direction:column; gap: 18px; }

/* ---------- Topbar / Nav ---------- */
.topbar{
  position: sticky;
  top:0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5,5,6,0.62);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 220px;
}

.logo{
  width:38px;height:38px;border-radius:14px;
  display:grid; place-items:center;
  font-weight:900;
  background: linear-gradient(135deg, var(--o1), var(--o2) 55%, var(--o3));
  box-shadow: 0 10px 25px rgba(255,77,0,.18);
  color:#120600;
}
.brandtext .name{font-weight:850; letter-spacing:.2px}
.brandtext .tag{color:var(--muted); font-size:12px; margin-top:1px}

.brand-title{
  display:flex; flex-direction:column;
  line-height: 1.12;
}

.brand-title strong{
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-title span{
  font-size: 12px;
  color: var(--muted);
}

.navlinks{
  display:flex;
  align-items:center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.navlinks a{
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  transition: background 140ms ease, color 140ms ease;
}

.navlinks a:hover{
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.92);
}

.nav-cta{
  display:flex; align-items:center; gap: 10px;
  min-width: 220px;
  justify-content: flex-end;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  cursor:pointer;
  user-select:none;
  white-space: nowrap;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.20);
}

.btn:focus{ outline:none; box-shadow: var(--focus); }
.btn.min{ padding: 9px 12px; }

.btn.primary{
  border-color: rgba(255,106,0,0.62);
  background: linear-gradient(135deg, rgba(255,47,0,0.38), rgba(255,106,0,0.28), rgba(255,138,0,0.18));
  box-shadow:
    0 16px 46px rgba(255,106,0,0.18),
    0 0 0 1px rgba(255,255,255,0.05) inset;
}

.btn.primary:hover{
  border-color: rgba(255,106,0,0.84);
  background: linear-gradient(135deg, rgba(255,47,0,0.46), rgba(255,106,0,0.32), rgba(255,138,0,0.20));
  box-shadow:
    0 20px 56px rgba(255,106,0,0.22),
    0 0 0 1px rgba(255,255,255,0.06) inset;
}

/* ---------- Hero ---------- */
.hero{ padding: 54px 0 20px; position: relative; }

.hero-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr; /* right column wider */
  gap: 32px;
}


@media (max-width: 940px){
  .hero-grid{ grid-template-columns: 1fr; }
  .brand{ min-width: auto; }
  .nav-cta{ min-width: auto; }
}

.h-card{
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.028));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255,106,0,0.08) inset;
  padding: 26px;
  position: relative;
  overflow:hidden;
}

.h-card::before{
  content:"";
  position:absolute;
  inset:-48%;
  /* Hot oranges only, low alpha */
  background:
    radial-gradient(260px 190px at 34% 34%, rgba(255,77,0,0.16), transparent 70%),
    radial-gradient(360px 260px at 74% 34%, rgba(255,106,0,0.11), transparent 72%),
    radial-gradient(360px 300px at 56% 78%, rgba(255,47,0,0.09), transparent 74%);
  transform: rotate(9deg);
  opacity: 0.9;
  pointer-events:none;
}

.h-card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  /* White edge-light = crisp, modern */
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 22%),
    linear-gradient(90deg, rgba(255,255,255,0.05), transparent 30%, rgba(255,255,255,0.04));
  mix-blend-mode: overlay;
  pointer-events:none;
  opacity: 0.55;
}

.h-card > *{ position:relative; }

.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.035);
  color: var(--muted);
  font-size: 12px;
  width: fit-content;
}

.dot{
  width:8px; height:8px; border-radius:99px;
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(46,240,160,0.12);
}

.hero h1{
  margin: 12px 0 10px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero p{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 58ch;
}

.cta-row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items:center;
  margin-top: 6px;
}

.subnote{
  margin-top: 14px;
  color: var(--muted2);
  font-size: 12px;
  line-height: 1.45;
}

.subnote a{
  color: rgba(255,255,255,0.80);
  text-decoration: underline;
  text-decoration-color: rgba(255,106,0,0.25);
}

.subnote a:hover{ text-decoration-color: rgba(255,106,0,0.55); }

/* Optional helper: gradient text */
.brand-accent{
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Side Panel ---------- */
.panel{
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow2);
  padding: 18px;
  overflow:hidden;
  position: relative;
}

.panel::before{
  content:"";
  position:absolute;
  inset:-58%;
  background:
    radial-gradient(460px 300px at 55% 25%, rgba(255,106,0,0.12), transparent 72%),
    radial-gradient(360px 260px at 40% 70%, rgba(255,77,0,0.10), transparent 72%);
  transform: rotate(-7deg);
  pointer-events:none;
}

.panel::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 24%);
  pointer-events:none;
  opacity: 0.55;
}

.panel > *{ position:relative; }

.panel h2{
  margin: 8px 0 8px;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
}

.mini{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.mini .box{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.028);
  padding: 12px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.20) inset;
}

.k{ font-size: 12px; color: var(--muted); margin-bottom: 6px; }

.v{
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255,255,255,0.88);
  line-height: 1.35;
  word-break: break-word;
}

.meter{
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.028);
}

.bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow:hidden;
  margin-top: 10px;
}

.bar > span{
  display:block;
  height: 100%;
  width: 78%;
  border-radius: 999px;
  background: var(--grad-brand-2);
  box-shadow:
    0 0 0 2px rgba(255,106,0,0.14) inset,
    0 10px 26px rgba(255,106,0,0.12);
  animation: fill 1.2s ease forwards;
  transform-origin: left;
}

@keyframes fill{
  from{ transform: scaleX(0.55); opacity: 0.6; }
  to{ transform: scaleX(1); opacity: 1; }
}

.meter small{
  display:block;
  color: var(--muted2);
  margin-top: 10px;
  line-height: 1.45;
}

/* ---------- Sections ---------- */
section{ padding: 30px 0; }

.section-title{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
}

.section-title h3{
  margin:0;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.section-title p{
  margin:0;
  color: var(--muted);
  font-size: 13px;
  max-width: 70ch;
}

/* ---------- Grid / Cards ---------- */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card{
  grid-column: span 4;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.035);
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.26);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  position: relative;
  overflow:hidden;
}

.card::before{
  content:"";
  position:absolute;
  inset:-45%;
  /* Hot orange only, low alpha = no brown */
  background:
    radial-gradient(420px 260px at 50% 10%, rgba(255,77,0,0.11), transparent 68%),
    radial-gradient(380px 240px at 70% 40%, rgba(255,106,0,0.08), transparent 70%);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events:none;
}

.card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.050);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 16px 34px rgba(0,0,0,0.34);
}

.card:hover::before{ opacity: 1; }

.card h4{
  margin: 8px 0 8px;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.card p{
  margin:0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.card .meta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.card-with-image {
  display: block;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  background: #0b0b0b;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-with-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* Image container */
.image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* Image itself */
.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Optional dark gradient for readability */
.image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15),
    rgba(0,0,0,0.65)
  );
}

/* Icon overlay */
.card-with-image .icon {
  position: absolute;
  bottom: 14px;
  left: 14px;
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  z-index: 2;
}

/* Text spacing below image */
.card-with-image h4 {
  margin: 14px 16px 6px;
}

.card-with-image p {
  margin: 0 16px 12px;
}

.card-with-image .meta {
  padding: 0 16px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag{
  font-size: 12px;
  color: rgba(255,255,255,0.74);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.028);
  padding: 6px 10px;
  border-radius: 999px;
}

.icon{
  width: 34px; height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  display:flex;
  align-items:center;
  justify-content:center;
  font-family: var(--mono);
  color: rgba(255,255,255,0.88);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.20) inset;
}

@media (max-width: 960px){ .card{ grid-column: span 6; } }
@media (max-width: 620px){
  .card{ grid-column: span 12; }
  .navlinks{ display:none; }
}

/* ---------- Feature list ---------- */
.feature{ display:flex; gap: 12px; align-items:flex-start; }

.check{
  width: 22px; height: 22px;
  border-radius: 8px;
  border: 1px solid rgba(255,106,0,0.45);
  background: rgba(255,106,0,0.12);
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,0.92);
  flex: 0 0 auto;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 12px;
}

/* ---------- Pricing block ---------- */
.pricing{
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.028));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow2);
  padding: 22px;
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items:center;
  overflow:hidden;
  position: relative;
}

.pricing::before{
  content:"";
  position:absolute;
  inset:-58%;
  /* Hot orange glows only */
  background:
    radial-gradient(560px 340px at 70% 30%, rgba(255,106,0,0.11), transparent 72%),
    radial-gradient(520px 340px at 28% 78%, rgba(255,77,0,0.12), transparent 72%);
  transform: rotate(6deg);
  pointer-events:none;
}

.pricing::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 24%);
  pointer-events:none;
  opacity: 0.45;
}

.pricing > *{ position:relative; }

.pricing h3{ margin: 0 0 8px; font-size: 18px; }

.pricing p{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 75ch;
}

.pricebox{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.035);
  padding: 16px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.20) inset;
}

.pricebox .big{
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.pricebox .small{
  font-size: 12px;
  color: var(--muted2);
  margin: 0 0 12px;
}

.pricebox ul{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 900px){ .pricing{ grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer{
  padding: 32px 0 46px;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.footer-grid a{
  color: rgba(255,255,255,0.80);
  text-decoration: underline;
  text-decoration-color: rgba(255,106,0,0.25);
}

.footer-grid a:hover{ text-decoration-color: rgba(255,106,0,0.55); }

@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.divider{ height:1px; background: rgba(255,255,255,0.08); margin: 12px 0; }

/* --- MatchUp Engine Panel (Homepage) --- */
.engine-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.engine-sub{
  margin:6px 0 0;
  color:rgba(255,255,255,.65);
  font-size:12.5px;
  line-height:1.45;
}
.engine-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.20);
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  letter-spacing:.12em;
  color:rgba(255,255,255,.78);
  white-space:nowrap;
}
.engine-dot{
  width:8px; height:8px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(255,138,42,.96));
  box-shadow: 0 0 0 6px rgba(255,106,0,.10);
}

.engine-shell{
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  background:
    radial-gradient(600px 260px at 14% 8%, rgba(255,106,0,.14), transparent 62%),
    radial-gradient(540px 260px at 86% 18%, rgba(255,154,42,.10), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  padding:14px;
  position:relative;
  overflow:hidden;
}

.engine-topline{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.engine-match{
  display:flex;
  align-items:center;
  gap:10px;
  font-family: var(--mono, ui-monospace, Menlo, Consolas, monospace);
  color:rgba(255,255,255,.86);
  font-size:13px;
}
.engine-match .team{
  padding:6px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}
.engine-match .vs{
  color:rgba(255,255,255,.55);
  font-size:12px;
  letter-spacing:.2em;
}
.engine-meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.engine-meta .chip{
  font-size:12px;
  color:rgba(255,255,255,.70);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
  padding:6px 10px;
  border-radius:999px;
}
.engine-meta .chip b{color:rgba(255,255,255,.90); font-weight:800}

.engine-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
  margin-bottom:12px;
}
@media (max-width: 520px){
  .engine-grid{grid-template-columns:1fr;}
}

.e-card{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  border-radius:16px;
  padding:10px 10px;
}
.e-card .k{
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(255,255,255,.55);
  margin-bottom:4px;
}
.e-card .v{
  font-family: var(--mono, ui-monospace, Menlo, Consolas, monospace);
  font-size:16px;
  color:rgba(255,255,255,.86);
  display:flex;
  justify-content:space-between;
  align-items:baseline;
}
.e-card .v.strong{color:rgba(255,255,255,.92); font-weight:900}

.mini-bar{
  height:7px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  overflow:hidden;
  margin-top:8px;
}
.mini-bar span{
  display:block;
  height:100%;
  width:50%;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(255,106,0,.95), rgba(255,154,42,.95));
  box-shadow: 0 10px 30px rgba(255,106,0,.18);
  transform-origin:left center;
}

/* Terminal */
.terminal{
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  background: rgba(0,0,0,.28);
  overflow:hidden;
  position:relative;
  margin-bottom:12px;
}
.term-head{
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.22);
  font-family: var(--mono, ui-monospace, Menlo, Consolas, monospace);
  font-size:12px;
  color:rgba(255,255,255,.70);
}
.term-dot{width:8px; height:8px; border-radius:50%}
.term-dot.d1{background:rgba(255,90,90,.85)}
.term-dot.d2{background:rgba(255,200,90,.85)}
.term-dot.d3{background:rgba(110,255,170,.85)}
.term-title{margin-left:4px; opacity:.95}
.term-right{margin-left:auto; color:rgba(255,255,255,.55)}
.term-body{
  font-family: var(--mono, ui-monospace, Menlo, Consolas, monospace);
  font-size:12.5px;
  color:rgba(235,245,255,.80);
  padding:10px;
  min-height:92px;
  max-height:110px;
  overflow:auto;
  line-height:1.55;
}
.term-body .dim{color:rgba(235,245,255,.55)}
.term-body .ok{color:rgba(140,255,200,.92)}
.term-body .warn{color:rgba(255,210,140,.92)}
.term-body .hot{color:rgba(255,154,42,.95)}

.scanline{
  position:absolute;
  left:0; right:0;
  height:34px;
  top:-40px;
  background: linear-gradient(180deg, transparent, rgba(255,106,0,.08), transparent);
  animation: scan 2.6s linear infinite;
  pointer-events:none;
}
@keyframes scan{
  0%{transform:translateY(0)}
  100%{transform:translateY(190px)}
}

/* Output */
.engine-out{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
  border-radius:16px;
  padding:12px;
}
.out-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.out-k{font-size:12px; color:rgba(255,255,255,.62); letter-spacing:.12em; text-transform:uppercase}
.out-v{font-size:13px; color:rgba(255,255,255,.82)}
.out-v b{color:rgba(255,255,255,.92)}

.prob{margin:10px 0}
.prob .row{
  display:flex; justify-content:space-between; align-items:center;
  font-size:13px; color:rgba(255,255,255,.78);
  margin-bottom:6px;
}
.prob .bar{
  height:9px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  overflow:hidden;
}
.prob .bar span{
  display:block;
  height:100%;
  width:0%;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(255,106,0,.95), rgba(255,154,42,.95));
  transition: width 500ms ease;
}

.engine-note{
  display:block;
  margin-top:8px;
  color:rgba(255,255,255,.60);
  font-size:12px;
  line-height:1.45;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce){
  .scanline{animation:none}
  .prob .bar span{transition:none}
}

/* MatchUp engine terminal scrollbar (dark theme) */
.term-body {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(255,138,42,.65) rgba(0,0,0,.35);
}

/* WebKit browsers */
.term-body::-webkit-scrollbar {
  width: 8px;
}

.term-body::-webkit-scrollbar-track {
  background: rgba(0,0,0,.35);
  border-radius: 10px;
}

.term-body::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(255,106,0,.85),
    rgba(255,154,42,.85)
  );
  border-radius: 10px;
  border: 2px solid rgba(0,0,0,.35);
}

.term-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(255,154,42,.95),
    rgba(255,106,0,.95)
  );
}

.engine-out .btn {
  display: flex;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

/* ================================
   Homepage: Pricing-card (scoped)
   Matches /pricing/ plan card styles
   ================================ */

.home-plan .plan{
  position:relative;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.012));
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  overflow:hidden;
}

.home-plan .plan:before{
  content:"";
  position:absolute; inset:-1px;
  background:
    radial-gradient(520px 260px at 20% 10%, rgba(255,106,0,.13), transparent 62%),
    radial-gradient(420px 260px at 80% 30%, rgba(255,154,42,.10), transparent 62%);
  opacity:.9;
  pointer-events:none;
}

.home-plan .plan .content{position:relative; z-index:1; padding:18px 18px 16px}

.home-plan .topline{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}

.home-plan .badge{
  font-size:11px;
  border-radius:999px;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: rgba(234,240,255,.72);
  letter-spacing:.4px;
  display:inline-flex; align-items:center; gap:8px;
}

.home-plan .badge .spark{
  width:8px; height:8px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(255,106,0,1));
  box-shadow: 0 0 0 6px rgba(255,106,0,.10);
}

.home-plan .usd{
  font-size:13px;
  color: rgba(234,240,255,.56);
  font-family: var(--mono, ui-monospace, Menlo, Consolas, monospace);
}

.home-plan h3{margin:10px 0 6px; font-size:20px}

.home-plan .sub{
  margin:0 0 12px;
  color: rgba(234,240,255,.72);
  font-size:13.5px;
  line-height:1.6;
}

.home-plan .priceRow{display:flex; align-items:baseline; gap:8px; margin:14px 0 12px}
.home-plan .price{
  font-size:56px;
  letter-spacing:-1px;
  font-weight:900;
  line-height:1;
}
.home-plan .per{color: rgba(234,240,255,.56); font-size:13px}

.home-plan .divider{
  height:1px;
  background: rgba(255,255,255,.10);
  margin:14px 0;
}

.home-plan ul{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}

.home-plan li{
  display:flex; gap:10px; align-items:flex-start;
  color: rgba(234,240,255,.72);
  font-size:13.5px;
  line-height:1.55;
}

.home-plan .check{
  width:18px; height:18px; border-radius:7px;
  flex:0 0 auto;
  margin-top:2px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.14);
  display:flex; align-items:center; justify-content:center;
  position:relative;
  box-shadow: 0 10px 18px rgba(0,0,0,.25);
}

.home-plan .check:after{
  content:"";
  width:9px; height:5px;
  border-left:2px solid rgba(255,154,42,1);
  border-bottom:2px solid rgba(255,154,42,1);
  transform:rotate(-45deg);
  margin-top:-1px;
}

.home-plan .cta{
  margin-top:14px;
  display:flex; gap:10px; flex-wrap:wrap;
}

.home-plan .fine{
  margin-top:10px;
  font-size:12px;
  color: rgba(234,240,255,.56);
}

/* keep homepage buttons from stretching weirdly */
.home-plan .cta .btn{
  flex: 1 1 180px;
  justify-content:center;
  box-sizing:border-box;
}

/* SEO Article (Homepage) — styled like MatchUp Technology page */
.seo-article{
  margin-top:64px;
  padding:0 18px;
}
.seo-article .seo-wrap{
  max-width:920px;
  margin:0 auto;
}
.seo-article h2{
  font-size:28px;
  letter-spacing:-.5px;
  margin:0 0 12px;
}
.seo-article h3{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.9px;
  color:rgba(234,240,255,.75);
  margin:26px 0 8px;
}
.seo-article p{
  margin:0 0 14px;
  color:rgba(234,240,255,.82);
  font-size:15.5px;
  line-height:1.7;
}
.seo-article .lead{
  font-size:17px;
  color:rgba(234,240,255,.9);
  max-width:78ch;
}
.seo-article .card{
  margin-top:18px;
  padding:18px 18px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}
.seo-article .quote{
  margin:22px 0;
  padding:18px 20px;
  border-left:3px solid #FF6A00;
  background: rgba(255,106,0,.08);
  font-style:italic;
  color:rgba(234,240,255,.9);
}
.seo-article ul{
  margin:10px 0 0;
  padding-left:18px;
}
.seo-article li{
  margin-bottom:8px;
  color:rgba(234,240,255,.8);
}
.seo-article .links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}
.seo-article .links a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
  padding:8px 12px;
  border-radius:999px;
  text-decoration:none;
  color:rgba(234,240,255,.78);
  font-size:13px;
}
.seo-article .links a:hover{
  border-color:rgba(255,255,255,.16);
  color:rgba(234,240,255,.92);
}

/* Football screenshots carousel (scoped) */
.shot-carousel{
  position: relative;
  margin: 12px 0;
  padding: 10px 42px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
  border-radius: 16px;
}

.shot-viewport{
  overflow: hidden;
  border-radius: 12px;
}

.shot-track{
  display: flex;
  transition: transform .35s ease;
  will-change: transform;
}

.shot{
  margin: 0;
  min-width: 100%;
  user-select: none;
}

.shot img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  cursor: zoom-in;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 14px 36px rgba(0,0,0,.45);
}

/* arrows */
.shot-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.86);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}

.shot-arrow:hover{ border-color: rgba(255,255,255,.18); }
.shot-arrow:active{ transform: translateY(-50%) scale(.98); }

.shot-arrow.prev{ left: 10px; }
.shot-arrow.next{ right: 10px; }

/* dots */
.shot-dots{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.shot-dots .dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
  cursor: pointer;
  padding: 0;
}

.shot-dots .dot.is-active{
  background: linear-gradient(135deg, rgba(255,106,0,.95), rgba(255,154,42,.95));
  border-color: rgba(255,154,42,.65);
  box-shadow: 0 0 0 6px rgba(255,106,0,.10);
}

/* modal */
.shot-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.shot-modal.is-open{ display: block; }

.shot-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
}

.shot-modal-dialog{
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%,-50%);
  width: min(1200px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(12,14,20,.85);
  box-shadow: 0 30px 90px rgba(0,0,0,.65);
  padding: 14px;
}


.shot-modal-img{
  width: 100%;
  height: auto;
  max-height: calc(100vh - 80px);
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  display: block;
}

@media (min-width: 1400px){
  .shot-modal-dialog{
    width: min(1400px, calc(100vw - 40px));
  }
}


.shot-modal-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.86);
  cursor: pointer;
}

/* Modal arrows */
.shot-modal-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.86);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}

.shot-modal-arrow:hover{ border-color: rgba(255,255,255,.18); }
.shot-modal-arrow:active{ transform: translateY(-50%) scale(.98); }

.shot-modal-arrow.prev{ left: 14px; }
.shot-modal-arrow.next{ right: 14px; }

/* On very small screens, pull arrows inward a bit */
@media (max-width:520px){
  .shot-modal-arrow.prev{ left: 10px; }
  .shot-modal-arrow.next{ right: 10px; }
}

/* Screens walkthrough (stacked images + short copy) */
.walkthrough{
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.shot-row{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.shot-media img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 44px rgba(0,0,0,.45);
  cursor: zoom-in;
}

.shot-copy p{
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  font-size: 15.5px;
}

@media (max-width: 900px){
  .shot-row{
    grid-template-columns: 1fr;
  }
  .shot-media img{
    height: 220px;
  }
}

/* FAQ icon animation */
.faq-icon {
  display: inline-block;
  width: 1.6em;
  opacity: 0.85;
  transform: translateY(1px);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Animate icon when FAQ item is open */
details[open] summary .faq-icon {
  transform: scale(1.12) rotate(-6deg);
  opacity: 1;
}

/* FAQ icon base */
.faq details summary .faq-icon{
  display:inline-block;
  width:1.6em;
  opacity:.85;
  transform: translateY(1px) scale(1) rotate(0deg);
  transition: opacity .2s ease;
  will-change: transform, opacity;
}

/* When opened: run a tiny "pop" animation */
.faq details[open] summary .faq-icon{
  opacity:1;
  animation: faqIconPop .28s cubic-bezier(.2,.8,.2,1);
}

@keyframes faqIconPop{
  0%   { transform: translateY(1px) scale(1) rotate(0deg); }
  60%  { transform: translateY(1px) scale(1.14) rotate(-7deg); }
  100% { transform: translateY(1px) scale(1.08) rotate(-5deg); }
}
