:root{
  /* Update this once we confirm the exact Relytech deep red */
  --rely-red: #8B0A0A;

  --black: #0a0a0c;
  --grey: #a7adb7;
  --gold: #d6b25e;

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --border: rgba(255,255,255,.14);
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius: 22px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 700px at 15% 15%, color-mix(in oklab, var(--rely-red) 35%, transparent) 0%, transparent 60%),
    radial-gradient(900px 700px at 85% 20%, rgba(214,178,94,.22) 0%, transparent 55%),
    linear-gradient(180deg, var(--black), #10131a);
  overflow-x:hidden;
}

.bg{
  position:fixed; inset:0;
  pointer-events:none;
  background:
    radial-gradient(700px 500px at 60% 75%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(900px 650px at 10% 85%, rgba(255,255,255,.05), transparent 55%);
  opacity:.85;
}

.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 22px;
  position:sticky; top:0;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(10,10,12,.78), rgba(10,10,12,.35));
  border-bottom:1px solid rgba(255,255,255,.08);
  z-index:10;
}

.brand{ display:flex; align-items:center; gap:12px; }
.logo{
  width:118px;
  height:64px;
  object-fit:contain;
  border-radius:14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  padding:8px;
}
.brandText.noLogo{ padding-left:6px; }
.brandName{ font-weight:900; letter-spacing:.2px; }
.brandTag{ font-size:13px; color:var(--grey); }

.pill{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
  font-weight:650;
}
.dot{
  width:10px; height:10px; border-radius:99px;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(214,178,94,.14);
}

.wrap{
  max-width:1000px;
  margin:34px auto 44px;
  padding:0 16px;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.05));
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  padding:22px;
}

.badge{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(214,178,94,.35);
  background: rgba(214,178,94,.10);
  color: rgba(255,255,255,.90);
  font-weight:750;
  margin-bottom:14px;
}

h1{
  margin:0 0 10px;
  font-size:38px;
  letter-spacing:-.7px;
}
.sub{ margin:0 0 18px; color:var(--muted); line-height:1.5; }

.grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:12px;
  margin: 14px 0 18px;
}

.tile{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  padding:14px 12px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.tile:before{
  content:"";
  position:absolute; inset:-60px;
  background: radial-gradient(circle at 30% 30%, rgba(139,10,10,.22), transparent 55%);
  transform: rotate(10deg);
}
.num{
  position:relative;
  font-size:34px;
  font-weight:950;
  letter-spacing:-.6px;
}
.lbl{
  position:relative;
  margin-top:6px;
  color: var(--grey);
  font-size:13px;
  font-weight:650;
}

.ctaRow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:6px;
}

.ghostBtn, .primaryBtn{
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
  font-weight:750;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.primaryBtn{
  border-color: rgba(214,178,94,.55);
  background: linear-gradient(180deg, rgba(214,178,94,.28), rgba(214,178,94,.10));
}
.primaryBtn[disabled]{ opacity:.55; cursor:not-allowed; }

.fineprint{
  margin-top:16px;
  font-size:13px;
  color: rgba(255,255,255,.74);
  display:flex; align-items:center; gap:8px;
}
.asterisk{
  width:22px; height:22px; border-radius:99px;
  display:inline-grid; place-items:center;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
}

@media (max-width: 820px){
  .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  h1{ font-size:30px; }
}

@media (max-width: 520px){
  .logo{
    width: 104px;
    height: 58px;
    padding: 7px;
  }
}

/* --- Footer + Terms & Conditions modal --- */

body.tcOpen{ overflow:hidden; }

.siteFooter{
  max-width:1000px;
  margin: 10px auto 28px;
  padding: 0 16px 10px;
  color: rgba(255,255,255,.70);
  font-size: 13px;
}
.footerInner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 14px;
}
.siteFooter a{
  color: rgba(214,178,94,.95);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 750;
}
.siteFooter a:hover{ filter: brightness(1.06); }

.tcBackdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(10px);
  z-index:80;
}

.tcModal{
  position:fixed;
  left:50%;
  top:50%;
  transform: translate(-50%,-50%);
  width: min(760px, 92vw);
  max-height: 86vh;
  overflow:auto;
  z-index:81;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  border:1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px 18px;
}

.tcHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  position: sticky;
  top: 0;
  padding: 6px 2px 10px;
  background: linear-gradient(180deg, rgba(10,10,12,.92), rgba(10,10,12,.55));
  margin: -16px -16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.tcHeader h2{
  margin: 0;
  padding: 0 16px;
  font-size: 18px;
}
.tcClose{
  margin-right: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  border-radius: 12px;
  padding: 8px 10px;
  cursor:pointer;
  font-weight: 850;
}
.tcClose:hover{ filter: brightness(1.06); }

.tcIntro{
  margin: 6px 0 12px;
  color: rgba(255,255,255,.78);
  line-height: 1.5;
}

.tcList{
  margin: 0;
  padding-left: 22px;
  color: rgba(255,255,255,.82);
  line-height: 1.55;
}
.tcList li{ margin: 0 0 10px; }

@media (max-width: 520px){
  .footerInner{ justify-content:flex-start; }
  .tcModal{ width: min(760px, 94vw); }
}
