:root{
  --bg: #f6f8ff;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #4b5563;
  --muted2:#6b7280;
  --line: rgba(17,24,39,.10);

  --blue:#0b5bd3;
  --blue2:#2b7bff;
  --yellow:#f7b500;
  --orange:#ff6a3d;
  --green:#22c55e;

  --shadow: 0 18px 45px rgba(17,24,39,.12);
  --shadow2: 0 10px 26px rgba(17,24,39,.10);
  --r: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(43,123,255,.16), transparent 60%),
    radial-gradient(900px 560px at 90% 8%, rgba(247,181,0,.18), transparent 55%),
    radial-gradient(900px 700px at 50% 100%, rgba(255,106,61,.12), transparent 60%),
    var(--bg);
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{width:min(1140px, 92vw); margin:0 auto}

.site-header{
  position:sticky; top:0; z-index:50;
  background: rgba(246,248,255,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{display:flex; align-items:center; justify-content:space-between; gap:18px; padding:12px 0}
.brand{display:flex; align-items:center; gap:12px}
.brand-logo{
  width:44px; height:44px; border-radius:14px;
  background: #0b1020; padding:7px;
  box-shadow: 0 10px 22px rgba(11,91,211,.18);
}
.brand-text{line-height:1.05}
.brand-name{
  font-family: Outfit, Inter, sans-serif;
  font-weight:800; letter-spacing:.2px;
  font-size:18px;
}
.brand-tag{font-size:12px; color:var(--muted2)}

.nav{display:flex; align-items:center; gap:12px}
.nav a{
  font-weight:600; font-size:14px;
  padding:10px 12px; border-radius:12px;
  color: rgba(17,24,39,.86);
}
.nav a:hover{background: rgba(11,91,211,.08)}
.nav a.pill{border:1px solid var(--line); background: rgba(255,255,255,.7)}
.nav a.primary{
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color:white; border: none;
  box-shadow: 0 12px 26px rgba(11,91,211,.22);
}

.nav-toggle{display:none; border:0; background:transparent; padding:10px; border-radius:12px}
.nav-toggle span{display:block; width:24px; height:2px; background:rgba(17,24,39,.75); margin:5px 0; border-radius:2px}

.hero{
  position:relative;
  padding: 54px 0 34px;
}
.hero-shell{
  position:relative;
  border-radius: 26px;
  overflow:hidden;
  box-shadow: var(--shadow);
  background: #0b1020;
}
.hero-bg{
  position:absolute; inset:0;
  background-image: url('../img/hero-bg.png');
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}
.hero-bg::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(800px 400px at 25% 30%, rgba(11,91,211,.65), rgba(11,16,32,.25) 55%, rgba(11,16,32,.78) 100%),
    linear-gradient(90deg, rgba(11,16,32,.85), rgba(11,16,32,.20) 58%, rgba(11,16,32,.65) 100%);
}
.hero-inner{
  position:relative;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  padding: 46px 42px;
  align-items:center;
}
.hero h1{
  font-family: Outfit, Inter, sans-serif;
  color:white;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.02;
  margin:0 0 12px;
}
.hero p{
  margin:0 0 18px;
  color: rgba(255,255,255,.86);
  font-size: 16px;
  line-height: 1.6;
  max-width: 54ch;
}
.hero-badges{display:flex; flex-wrap:wrap; gap:10px; margin: 16px 0 0}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  font-size: 13px; font-weight:600;
  backdrop-filter: blur(6px);
}
.badge .dot{width:9px;height:9px;border-radius:999px;background: var(--yellow); box-shadow: 0 0 0 4px rgba(247,181,0,.18)}
.badge.blue .dot{background: var(--blue2); box-shadow: 0 0 0 4px rgba(43,123,255,.18)}
.badge.orange .dot{background: var(--orange); box-shadow: 0 0 0 4px rgba(255,106,61,.18)}
.badge.green .dot{background: var(--green); box-shadow: 0 0 0 4px rgba(34,197,94,.18)}

.hero-cta{display:flex; gap:12px; flex-wrap:wrap; margin-top: 18px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius: 14px;
  font-weight:800;
  font-family: Outfit, Inter, sans-serif;
  letter-spacing:.2px;

  /* Light theme default (fix invisible white text on light sections) */
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  color: var(--ink);

  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.98);
  box-shadow: 0 10px 22px rgba(17,24,39,.10);
}
{transform: translateY(-1px); background: rgba(255,255,255,.13)}
.btn.ghost{
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(17,24,39,.14);
  color: rgba(17,24,39,.88);
}
.btn.ghost:hover{
  background: rgba(255,255,255,.82);
}

.btn.primary{
  border:none;
  background: linear-gradient(135deg, var(--yellow), #ffcf2c);
  color:#101418;
  box-shadow: 0 16px 32px rgba(247,181,0,.28);
}
.btn.primary:hover{background: linear-gradient(135deg, #ffcf2c, var(--yellow))}

.hero-card{
  position:relative;
  border-radius: 22px;
  padding: 16px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
}
.hero-card .hero-card-top{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin-bottom: 14px;
}
.hero-card .tag{
  display:inline-flex; gap:8px; align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  font-weight:700; font-size: 12px;
}
.hero-card .tag .spark{width:18px;height:18px;border-radius:8px;background: rgba(247,181,0,.18); display:grid; place-items:center}
.hero-card .tag .spark::before{content:"✦"; color: var(--yellow); font-weight:900}
.hero-card img{
  width:100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
}

.hero-ring{
  position:absolute;
  right:-90px; top:-120px;
  width: 320px; height:320px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 18px rgba(43,123,255,.08);
  filter: drop-shadow(0 22px 40px rgba(11,91,211,.22));
}
.hero-ring::after{
  content:"";
  position:absolute; inset: 36px;
  border-radius:999px;
  border: 2px dashed rgba(247,181,0,.25);
}

.section{
  padding: 26px 0;
}
.section-title{
  font-family: Outfit, Inter, sans-serif;
  font-size: 28px;
  margin:0 0 10px;
}
.section-sub{margin:0 0 16px; color: var(--muted); line-height:1.7; max-width: 72ch}

.mag-cut{
  position:relative;
  padding: 26px 0;
}
.mag-cut::before{
  content:"";
  position:absolute;
  inset: -40px 0 auto 0;
  height: 200px;
  background: linear-gradient(135deg, rgba(43,123,255,.18), rgba(247,181,0,.14), rgba(255,106,61,.12));
  transform: skewY(-3deg);
  transform-origin: left;
  z-index:-1;
  border-top: 1px solid rgba(17,24,39,.06);
  border-bottom: 1px solid rgba(17,24,39,.06);
}

.grid-3{display:grid; grid-template-columns: repeat(3, 1fr); gap:22px}
.grid-2{display:grid; grid-template-columns: repeat(2, 1fr); gap:16px}

.card{
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow2);
  padding: 16px;
}

/* Home: Knowledge Hub cards spacing + readability */
.kh-card{ padding: 18px; }
.kh-card h3{ margin-top: 6px; }
.kh-card p{ line-height: 1.75; }

.card h3{margin:0 0 8px; font-size: 16px; font-family: Outfit, Inter, sans-serif}
.card p{margin:0; color: var(--muted); line-height: 1.65}

.icon-chip{
  width:42px;height:42px;border-radius: 14px;
  display:grid; place-items:center;
  background: rgba(43,123,255,.12);
  border: 1px solid rgba(43,123,255,.18);
  margin-bottom: 10px;
  font-weight: 900;
  color: var(--blue);
}

.do-dont{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.list-row{
  display:flex; align-items:flex-start; gap:12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(17,24,39,.08);
  background: rgba(255,255,255,.78);
}
.list-row .mark{
  width:28px;height:28px;border-radius: 10px;
  display:grid; place-items:center;
  font-weight: 900;
  flex: 0 0 auto;
}
.mark.good{background: rgba(34,197,94,.16); color: #0a7a3b; border: 1px solid rgba(34,197,94,.28)}
.mark.bad{background: rgba(255,106,61,.16); color: #b23417; border: 1px solid rgba(255,106,61,.28)}
.list-row p{margin:0; color: var(--muted); line-height: 1.55}

.funfact-hero{
  display:grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items:center;
}
.figure{
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
  background: white;
}
.figure img{width:100%; height:auto}
.fact-card{
  position:relative;
  padding: 18px 18px;
}
.fact-num{
  font-family: Outfit, Inter, sans-serif;
  font-weight: 900;
  font-size: 34px;
  color: var(--blue);
  letter-spacing: .5px;
}
.fact-title{
  font-family: Outfit, Inter, sans-serif;
  margin: 6px 0 8px;
  font-size: 18px;
}
.fact-text{margin:0; color: var(--muted); line-height: 1.7}

.khub-hero{
  display:grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items:center;
}

.pills{display:flex; gap:10px; flex-wrap:wrap; margin-top: 10px}
.pills button{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 800;
  font-family: Outfit, Inter, sans-serif;
  cursor:pointer;
}
.pills button.active{
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color:white; border:none;
}
.khub-grid{display:grid; grid-template-columns: 1.25fr .75fr; gap:16px}
.article{
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow2);
  padding: 18px;
}
.article h3{margin:0 0 8px; font-family: Outfit, Inter, sans-serif; font-size: 18px}
.article p{margin:0 0 10px; color: var(--muted); line-height:1.7}
.article ul{margin: 8px 0 0 18px; color: var(--muted); line-height: 1.7}
.article small{color: var(--muted2)}
.article .readmore{margin-top: 12px}
.article .readmore a{display:inline-flex}

.form-wrap{max-width: 520px; margin: 0 auto}
.field{display:flex; flex-direction:column; gap:8px; margin-bottom: 12px}
label{font-weight: 700; font-size: 13px; color: rgba(17,24,39,.82)}
input, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  font-size: 14px;
}
textarea{min-height: 120px; resize: vertical}
.helper{color: var(--muted2); font-size: 13px; line-height: 1.6}
.alert{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,106,61,.30);
  background: rgba(255,106,61,.10);
  color:#7a2613;
  margin-bottom: 12px;
  display:none;
}
.alert.ok{
  border-color: rgba(34,197,94,.30);
  background: rgba(34,197,94,.10);
  color:#075b2b;
}

.site-footer{
  margin-top: 46px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  border-top: 1px solid var(--line);
}
.footer-grid{
  padding: 28px 0;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}
.footer-logo-row{display:flex; align-items:center; gap:12px}
.footer-logo{width:42px;height:42px;border-radius:14px;background: rgba(11,91,211,.10); border:1px solid rgba(11,91,211,.14); padding:7px}
.footer-title{font-family: Outfit, Inter, sans-serif; font-weight:900; font-size: 18px}
.footer-sub{color: var(--muted2); font-size: 13px}
.footer-note{margin: 12px 0 0; color: var(--muted); line-height:1.7}
.footer-links{display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:18px; justify-content:end; align-content:start}
.footer-col{min-width: 0}
.footer-col-title{font-family: Outfit, Inter, sans-serif; font-weight: 900; margin-bottom: 10px; font-size: 13px; letter-spacing:.35px; text-transform: uppercase; color: rgba(17,24,39,.78)}
.footer-col a{display:block; padding: 6px 0; color: rgba(17,24,39,.80)}
.footer-col a:hover{color: var(--blue)}
.footer-bottom{
  padding: 14px 0 18px;
  display:flex; align-items:center; justify-content:space-between;
  color: rgba(17,24,39,.70);
  font-size: 13px;
}
.to-top{
  width:36px;height:36px;border-radius: 12px;
  display:grid; place-items:center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
}
.to-top:hover{border-color: rgba(43,123,255,.30); box-shadow: 0 10px 24px rgba(11,91,211,.12)}

.page-hero{
  padding: 30px 0 10px;
}
.page-hero h1{font-family: Outfit, Inter, sans-serif; margin:0 0 8px; font-size: 34px}
.page-hero p{margin:0; color: var(--muted); line-height: 1.7; max-width: 78ch}

.hr{height:1px;background: var(--line); margin: 18px 0}

.auth-card{
  max-width: 520px;
  margin: 26px auto;
}

@media (max-width: 920px){
  .hero-inner{grid-template-columns: 1fr; padding: 28px 22px}
  .hero-ring{display:none}
  .khub-hero, .khub-grid, .funfact-hero{grid-template-columns: 1fr}
  .footer-grid{grid-template-columns: 1fr}
  .footer-links{justify-content:flex-start}
  .grid-3{grid-template-columns: 1fr}
  .grid-2{grid-template-columns: 1fr}
  .do-dont{grid-template-columns: 1fr}
}

@media (max-width: 760px){
  .nav-toggle{display:block}
  .nav{
    position: fixed;
    inset: 70px 16px auto 16px;
    display:none;
    flex-direction:column;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--shadow2);
    z-index:60;
  }
  .nav a{width:100%}
  .nav.open{display:flex}
  .mag-cut::before{transform:none; height: 220px; inset:-16px 0 auto 0}
}


/* ===== Verification Gate (Home only) ===== */
.gate-open{ overflow:hidden; }
.verify-gate{
  position: fixed; inset: 0;
  display:none;
  z-index: 9999;
}
.verify-gate.is-open{ display:flex; align-items:center; justify-content:center; padding: 18px; }
.verify-gate .gate-backdrop{
  position:absolute; inset:0;
  background: rgba(12,18,38,.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.verify-gate .gate-card{
  position:relative;
  width: min(560px, 94vw);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(244,250,255,.93));
  border: 1px solid rgba(17,24,39,.12);
  box-shadow: 0 40px 100px rgba(17,24,39,.28), 0 0 1px rgba(43,123,255,.10);
  overflow:hidden;
  animation: gateSlideIn .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.verify-gate .gate-top{
  padding: 22px 22px 12px;
  display:flex; gap: 14px; align-items:center;
}
.verify-gate .gate-icon{
  width:44px;height:44px;border-radius: 16px;
  display:grid;place-items:center;
  background: radial-gradient(circle at 30% 30%, rgba(43,123,255,.25), rgba(34,197,94,.10));
  border: 1px solid rgba(43,123,255,.20);
}
.verify-gate .gate-title{
  font-family: Outfit, Inter, sans-serif;
  font-weight: 900;
  font-size: 24px;
  margin:0;
}
.verify-gate .gate-sub{ margin: 2px 0 0; color: var(--muted); font-size: 14px; }

.verify-gate .gate-body{ padding: 0 22px 20px; }
.verify-gate .target{
  margin: 10px 0 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(43,123,255,.10), rgba(247,181,0,.10));
  border: 1px solid rgba(17,24,39,.10);
  font-weight: 800;
  color: rgba(17,24,39,.88);
}
.verify-gate .options{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.verify-gate .opt{
  cursor:pointer;
  user-select:none;
  padding: 16px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(250,253,255,.90));
  border: 1px solid rgba(17,24,39,.14);
  box-shadow: 0 8px 20px rgba(17,24,39,.10);
  font-weight: 900;
  font-size: 18px;
  text-align:center;
  transition: all .15s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.verify-gate .opt:hover{
  transform: translateY(-1px);
  border-color: rgba(43,123,255,.30);
  box-shadow: 0 14px 34px rgba(11,91,211,.12);
}
.verify-gate .opt[aria-disabled="true"]{ pointer-events:none; opacity:.65; }
.verify-gate .hint{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(17,24,39,.18);
  color: rgba(17,24,39,.60);
  font-size: 12.5px;
  text-align:center;
}
.verify-gate .shake{ animation: gateShake .35s ease; }
@keyframes gateShake{
  0%,100%{ transform: translateX(0) }
  20%{ transform: translateX(-6px) }
  40%{ transform: translateX(6px) }
  60%{ transform: translateX(-4px) }
  80%{ transform: translateX(4px) }
}
@keyframes gateSlideIn{
  0%{ transform: scale(0.92) translateY(-20px); opacity: 0; }
  100%{ transform: scale(1) translateY(0); opacity: 1; }
}

/* ===== Footer overrides (fix low-contrast/white links) ===== */
.site-footer{
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
}
.site-footer .footer-col a,
.site-footer a{
  color: rgba(17,24,39,.82);
}
.site-footer a:hover{
  color: var(--blue);
  text-decoration: underline;
}


.ul{ margin: 12px 0 0; padding-left: 18px; color: rgba(17,24,39,.78); }
.ul li{ margin: 6px 0; }
.callout{
  display:flex; align-items:center; justify-content:space-between; gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(34,197,94,.10), rgba(43,123,255,.10));
  border: 1px solid rgba(17,24,39,.10);
}
@media (max-width: 640px){
  .callout{ flex-direction: column; align-items: flex-start; }
}

/* Ensure CTA buttons readable on light gradient sections */
.section .cta-row .btn{ color: var(--ink); }
