:root{
  --bg:#070A10;
  --panel:#0C111B;
  --panel2:#0B0F17;
  --text:#E8EEF7;
  --muted:#9AA7B8;
  --border: rgba(255,255,255,.10);

  --btn:#3B82F6;
  --btnHover:#2563EB;

  --shadow: 0 18px 50px rgba(0,0,0,.55);
  --shadow2: 0 10px 26px rgba(0,0,0,.35);

  --radius: 18px;
  --radius2: 12px;
  --max: 920px;

  --okBg: rgba(34,197,94,.14);
  --okText:#7CFFB2;

  --warnBg: rgba(245,158,11,.14);
  --warnText:#FFD48A;

  --chipBg: rgba(255,255,255,.06);
  --chipText:#B8C4D6;

  --focus: 0 0 0 4px rgba(59,130,246,.18);
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 380px at 50% -120px, rgba(59,130,246,.18), transparent 60%),
    radial-gradient(700px 320px at 20% 0px, rgba(16,185,129,.10), transparent 60%),
    var(--bg);
  min-height:100vh;
}

/* Top nav */
.topbar{
  position: sticky;
  top:0;
  z-index:10;
  background: rgba(7,10,16,.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner{
  max-width: var(--max);
  margin:0 auto;
  padding: 12px 16px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
}
.nav{
  display:flex; gap:10px; flex-wrap:wrap;
  align-items:center;
}
.nav a{
  font-size:13px;
  color: var(--muted);
  text-decoration:none;
  padding:8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav a:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.08);
  color: var(--text);
}

/* Page */
.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 16px 74px;
}

/* HERO */
.hero{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  margin-top: 2px;
  margin-bottom: 6px;
  gap: 0px;
}

/* Logo layout fix (requires HTML wrapper: <div class="logoWrap"><img class="logoHero" ...></div>) */
.logoWrap{
  width: min(520px, 78vw);
  max-width: 520px;
  height: 180px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 0 auto 0px;
}

.logoHero{
  width:100%;
  height:auto;
  display:block;
  transform: translateY(-2%);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.55));
  user-select:none;
  -webkit-user-drag:none;
}

/* Base hero text (overridden at end for "real" sizing) */
.hero p{
  margin:0;
  color: var(--muted);
  max-width: 66ch;
  font-size: 14px;
  line-height: 1.42;
}
.hero .sub{
  font-size: 13px;
  opacity: .98;
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

/* Cards */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  width: 100%;
}

.cardHeader{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.titleBlock{
  display:flex;
  flex-direction:column;
  gap: 4px;
}

.kicker{
  font-size: 12px;
  letter-spacing: .5px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 800;
}

.card h2{
  margin:0;
  font-size: 15px;
  letter-spacing:.2px;
  font-weight: 900;
}

/* Status pills */
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  padding:7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--chipBg);
  color: var(--chipText);
  white-space: nowrap;
}
.pill.ok{
  background: var(--okBg);
  color: var(--okText);
  border-color: rgba(34,197,94,.22);
}
.pill.warn{
  background: var(--warnBg);
  color: var(--warnText);
  border-color: rgba(245,158,11,.22);
}

/* Form row */
.row{
  display:grid;
  grid-template-columns: 1fr 220px;
  gap: 10px;
  margin-top: 10px;
}
@media (max-width: 720px){
  .row{grid-template-columns: 1fr}
}

/* Inputs */
.input, .select{
  width:100%;
  padding: 12px 12px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  outline:none;
  font-size: 14px;
  background: rgba(0,0,0,.22);
  color: var(--text);
}
.input::placeholder{color: rgba(154,167,184,.75)}
.input:focus, .select:focus{
  border-color: rgba(59,130,246,.55);
  box-shadow: var(--focus);
}

/* Actions */
.actions{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor:pointer;
  font-weight: 900;
  font-size: 14px;
  user-select:none;
  transition: background .12s ease, border-color .12s ease, transform .06s ease;
}
.btn:active{transform: translateY(1px)}
.btn.primary{
  background: var(--btn);
  border-color: rgba(59,130,246,.65);
  color:#fff;
  box-shadow: 0 12px 26px rgba(59,130,246,.25);
}
.btn.primary:hover{
  background: var(--btnHover);
  border-color: rgba(37,99,235,.7);
}
.btn.ghost:hover{background: rgba(255,255,255,.07)}
.btn:disabled{
  opacity:.6;
  cursor:not-allowed;
  box-shadow:none;
}

/* Text helpers */
.subtext{
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.status{
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  min-height: 18px;
}

/* Upload UI */
.fileRow{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top: 10px;
  flex-wrap:wrap;
}
.fileFake{
  flex: 1;
  min-width: 220px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 12px 12px;
  border-radius: var(--radius2);
  border: 1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: 13px;
}
.fileFake strong{
  color: var(--text);
  font-weight: 900;
  font-size: 13px;
}
.fileMeta{
  font-size:12px;
  margin-top:2px;
}
.fileTag{
  font-size:12px;
}

input[type="file"]{
  position:absolute;
  left:-9999px;
  width:1px; height:1px;
}

/* Locked state */
.locked{
  opacity: .55;
  pointer-events:none;
  filter: grayscale(.18);
}

/* Toast */
.toast{
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17,19,24,.92);
  color:#fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  display:none;
  z-index: 100;
  max-width: min(760px, calc(100% - 24px));
  box-shadow: 0 14px 34px rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.10);
}

/* Spinner */
.spinner{
  width:14px; height:14px;
  border:2px solid rgba(255,255,255,.35);
  border-top-color: rgba(255,255,255,1);
  border-radius: 99px;
  display:inline-block;
  animation: spin .8s linear infinite;
}
@keyframes spin{to{transform: rotate(360deg)}}

/* ----------------------------------------------------
   OVERRIDES: HERO TEXT (bigger + clearer)
   (Must be at the end to win.)
----------------------------------------------------- */

/* First line */
.hero .sub{
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.5;
  color: rgba(232,238,247,.92);
  opacity: 1;
  margin-top: 2px;
  text-shadow: 0 1px 10px rgba(0,0,0,.55);
}

/* Second line */
.hero p:not(.sub){
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.65;
  color: rgba(232,238,247,.98);
  font-weight: 600;
  margin-top: 3px;
  text-shadow: 0 1px 10px rgba(0,0,0,.55);
}


.modalOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 999;
}

.modalCard{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid var(--border);
  border-radius: 18px;
  padding: 26px 28px;
  width: min(420px, 92%);
  text-align:center;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}

.modalCard h3{
  margin:0 0 10px;
  font-size: 20px;
  font-weight: 900;
}

.modalCard p{
  margin:0 0 18px;
  font-size:14px;
  color: var(--muted);
  line-height:1.45;
}


.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-auth {
  display: flex;
  gap: 12px;
}

.register-link {
  padding: 6px 12px;
  border-radius: 6px;
  background: #fff;
  color: #000;
  font-weight: 600;
}

/* ----------------------------------------------------
   FOOTER (Google + Stripe trust footer)
   Add this at the very end of main.css
----------------------------------------------------- */

.site-footer{
  margin-top: 56px;
  padding: 22px 16px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}

.footer-inner{
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.footer-title{
  font-weight: 900;
  letter-spacing: .2px;
  margin-bottom: 6px;
}

.footer-muted{
  color: var(--muted);
  opacity: .92;
  font-size: 13px;
  line-height: 1.45;
}

.footer-links{
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

/* Kill default blue links and match theme */
.site-footer a{
  color: rgba(232,238,247,.86);
  text-decoration: none;
  opacity: .86;
}

.site-footer a:hover{
  opacity: 1;
  text-decoration: underline;
}

.site-footer a:focus{
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}

/* Make the first link (Science behind Apuope) slightly more prominent */
.footer-links a:first-child{
  font-weight: 800;
  opacity: .95;
}

/* Responsive: stack nicely on mobile */
@media (max-width: 820px){
  .footer-inner{
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links{
    align-items: center;
  }
}
