:root{
  --bg:#020611;
  --panel:rgba(4,14,28,.78);
  --panel2:rgba(7,25,42,.78);
  --line:rgba(93,224,255,.26);
  --line2:rgba(89,255,194,.28);
  --text:#eaffff;
  --muted:#a8bfca;
  --cyan:#5de0ff;
  --green:#59ffc2;
  --gold:#ffd166;
}

*{box-sizing:border-box}

body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  font-family:Inter,Arial,sans-serif;
  background:
    radial-gradient(circle at 12% 12%,rgba(93,224,255,.20),transparent 30%),
    radial-gradient(circle at 82% 8%,rgba(89,255,194,.14),transparent 28%),
    radial-gradient(circle at 50% 90%,rgba(93,224,255,.10),transparent 32%),
    linear-gradient(135deg,#01030a,#03111f 50%,#01040b);
  overflow-x:hidden;
}

body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(rgba(255,255,255,.026) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.026) 1px,transparent 1px);
  background-size:44px 44px;
  opacity:.75;
}

body:after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:linear-gradient(to bottom,rgba(255,255,255,.04),transparent 8%,transparent 92%,rgba(255,255,255,.035));
  mix-blend-mode:screen;
}

.page{
  position:relative;
  width:min(1180px,94vw);
  margin:auto;
  padding:26px 0 46px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin-bottom:52px;
}

.brand{
  color:var(--text);
  text-decoration:none;
  font-weight:900;
  letter-spacing:.24em;
  text-transform:uppercase;
  text-shadow:0 0 18px rgba(93,224,255,.45);
}

.top-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.account-pill,.mini-link{
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(3,10,20,.65);
  padding:10px 14px;
  color:var(--muted);
  font-size:13px;
}

.mini-link{
  color:var(--text);
  text-decoration:none;
}

.terminal-hero{
  border:1px solid rgba(93,224,255,.16);
  border-radius:28px;
  padding:30px;
  background:linear-gradient(135deg,rgba(4,14,28,.64),rgba(2,8,18,.40));
  box-shadow:0 0 70px rgba(93,224,255,.09);
}

.terminal-label{
  color:var(--green);
  letter-spacing:.26em;
  font-size:12px;
  font-weight:900;
  margin-bottom:18px;
}

h1{
  min-height:92px;
  margin:0;
  max-width:960px;
  font-size:clamp(38px,6vw,78px);
  line-height:1.02;
  letter-spacing:-.045em;
  text-shadow:0 0 34px rgba(93,224,255,.38);
}

.hero-copy{
  color:var(--muted);
  font-size:18px;
  line-height:1.6;
  max-width:780px;
  margin:18px 0 0;
}

.evidence-note{
  position:relative;
  margin:24px 0;
}

.why-tab{
  cursor:pointer;
  border:1px solid var(--line2);
  border-radius:999px;
  background:rgba(5,22,30,.82);
  color:var(--green);
  padding:12px 16px;
  font-weight:900;
  letter-spacing:.05em;
}

.why-panel{
  display:none;
  margin-top:14px;
  border:1px solid var(--line2);
  border-radius:24px;
  padding:22px;
  background:linear-gradient(135deg,rgba(5,28,38,.82),rgba(2,8,18,.78));
}

.why-panel.open{display:block}

.why-panel h2{
  margin:0 0 10px;
  color:var(--green);
}

.why-panel p{
  margin:10px 0 0;
  color:#d1edf3;
  line-height:1.68;
}

.problem-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.problem-card{
  position:relative;
  min-height:245px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:24px;
  border:1px solid var(--line);
  border-radius:26px;
  background:
    linear-gradient(145deg,rgba(7,25,42,.84),rgba(2,8,18,.76));
  text-decoration:none;
  color:var(--text);
  transition:.22s ease;
}

.problem-card:before{
  content:"";
  position:absolute;
  inset:-45%;
  background:radial-gradient(circle,rgba(93,224,255,.18),transparent 45%);
  opacity:0;
  transition:.22s ease;
}

.problem-card:hover{
  transform:translateY(-5px);
  border-color:rgba(93,224,255,.78);
  box-shadow:0 0 42px rgba(93,224,255,.18);
}

.problem-card:hover:before{opacity:1}

.card-num{
  position:relative;
  color:var(--cyan);
  font-size:13px;
  font-weight:950;
  letter-spacing:.24em;
}

.problem-card h2{
  position:relative;
  margin:22px 0 14px;
  font-size:22px;
  line-height:1.25;
}

.problem-card p{
  position:relative;
  margin:0;
  color:var(--muted);
  line-height:1.58;
}

.launch{
  position:relative;
  display:inline-flex;
  width:max-content;
  margin-top:20px;
  border-radius:999px;
  padding:10px 13px;
  background:rgba(93,224,255,.10);
  border:1px solid rgba(93,224,255,.28);
  color:var(--cyan);
  font-weight:900;
}

.future{
  border-style:dashed;
}

.future .launch{
  color:var(--green);
  border-color:rgba(89,255,194,.32);
  background:rgba(89,255,194,.08);
}

@media(max-width:760px){
  .page{padding-top:18px}
  .topbar{align-items:flex-start;flex-direction:column;margin-bottom:28px}
  .top-actions{width:100%;justify-content:flex-start}
  .account-pill{border-radius:18px;width:100%}
  .terminal-hero{padding:22px;border-radius:22px}
  h1{min-height:126px}
  .problem-grid{grid-template-columns:1fr}
  .problem-card{min-height:auto}
}

.account-pill{
  position:relative;
  cursor:pointer;
  transition:.22s ease;
}

.account-pill:hover,
.account-pill:focus{
  color:var(--text);
  border-color:rgba(93,224,255,.78);
  box-shadow:0 0 28px rgba(93,224,255,.22);
  transform:translateY(-1px);
  outline:none;
}

.account-pill:after{
  content:"Open profile";
  position:absolute;
  left:50%;
  top:calc(100% + 10px);
  transform:translateX(-50%) translateY(-4px);
  opacity:0;
  pointer-events:none;
  white-space:nowrap;
  border:1px solid var(--line2);
  border-radius:999px;
  background:rgba(5,22,30,.95);
  color:var(--green);
  padding:8px 11px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.04em;
  box-shadow:0 0 24px rgba(89,255,194,.14);
  transition:.18s ease;
  z-index:20;
}

.account-pill:hover:after,
.account-pill:focus:after{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

@media(hover:none){
  .account-pill:hover{
    transform:none;
  }

  .account-pill:after{
    display:none;
  }
}

.evidence-note{
  position:fixed;
  right:0;
  top:50%;
  transform:translateY(-50%);
  z-index:30;
  margin:0;
}

.why-tab{
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  min-height:210px;
  border-radius:22px 0 0 22px;
  border:1px solid rgba(89,255,194,.34);
  border-right:0;
  background:linear-gradient(180deg,rgba(5,28,38,.94),rgba(2,8,18,.88));
  color:var(--green);
  padding:18px 12px;
  box-shadow:0 0 34px rgba(89,255,194,.10);
  transition:.22s ease;
}

.evidence-note:hover .why-tab,
.why-tab:focus{
  color:var(--text);
  border-color:rgba(89,255,194,.78);
  box-shadow:0 0 34px rgba(89,255,194,.24);
}

.why-panel{
  display:block;
  position:absolute;
  right:58px;
  top:50%;
  width:min(520px,calc(100vw - 92px));
  transform:translateY(-50%) translateX(18px);
  opacity:0;
  pointer-events:none;
  margin:0;
  border:1px solid rgba(89,255,194,.34);
  border-radius:26px;
  padding:24px;
  background:
    radial-gradient(circle at 15% 10%,rgba(89,255,194,.16),transparent 34%),
    linear-gradient(135deg,rgba(5,28,38,.96),rgba(2,8,18,.92));
  box-shadow:0 0 58px rgba(89,255,194,.16);
  transition:.22s ease;
}

.evidence-note:hover .why-panel,
.why-panel.open{
  opacity:1;
  pointer-events:auto;
  transform:translateY(-50%) translateX(0);
}

.why-panel h2{
  color:var(--green);
  letter-spacing:.02em;
}

.why-panel p{
  color:#d1edf3;
}

@media(max-width:760px){
  .evidence-note{
    position:relative;
    right:auto;
    top:auto;
    transform:none;
    margin:22px 0;
  }

  .why-tab{
    writing-mode:horizontal-tb;
    transform:none;
    min-height:0;
    width:100%;
    border-radius:999px;
    border-right:1px solid rgba(89,255,194,.34);
  }

  .why-panel{
    position:relative;
    right:auto;
    top:auto;
    width:100%;
    margin-top:14px;
    transform:translateY(-6px);
  }

  .evidence-note:hover .why-panel,
  .why-panel.open{
    transform:translateY(0);
  }
}

.power-logout{
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid rgba(255,107,138,.42);
  background:rgba(255,107,138,.08);
  color:#ff6b8a;
  font-size:18px;
  font-weight:900;
  cursor:pointer;
  opacity:.72;
  transition:.22s ease;
}

.top-actions:hover .power-logout,
.power-logout:hover,
.power-logout:focus{
  opacity:1;
  color:#fff;
  background:#dc2626;
  border-color:#ff6b8a;
  box-shadow:0 0 28px rgba(255,107,138,.34);
  outline:none;
}

/* Testing mode: only Reference Intelligence V2 is active */
.problem-card.disabled-tool{
  cursor:not-allowed;
  opacity:.46;
  filter:saturate(.45);
  pointer-events:none;
  border-color:rgba(168,191,202,.16);
  box-shadow:none;
}

.problem-card.disabled-tool:hover{
  transform:none;
  box-shadow:none;
}

.problem-card.active-tool{
  border-color:rgba(89,255,194,.72);
  box-shadow:0 0 34px rgba(89,255,194,.18),0 0 18px rgba(93,224,255,.12);
}

.toolStatus{
  display:inline-flex;
  margin-top:12px;
  width:max-content;
  max-width:100%;
  border:1px solid rgba(255,209,102,.34);
  border-radius:999px;
  padding:6px 9px;
  color:var(--gold);
  font-size:12px;
  font-weight:900;
  letter-spacing:.04em;
}

.ai-special-card{
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  margin:18px 0 24px;
  padding:18px 20px;
  border:1px solid rgba(89,255,194,.36);
  border-radius:20px;
  background:
    linear-gradient(135deg,rgba(5,28,38,.88),rgba(2,8,18,.76)),
    radial-gradient(circle at 8% 50%,rgba(89,255,194,.16),transparent 34%);
  color:var(--text);
  text-decoration:none;
  box-shadow:0 0 36px rgba(89,255,194,.12), inset 0 0 22px rgba(93,224,255,.045);
  overflow:hidden;
  transition:.22s ease;
}

.ai-special-card:before{
  content:"";
  position:absolute;
  inset:-40%;
  background:radial-gradient(circle,rgba(93,224,255,.18),transparent 42%);
  opacity:.38;
  pointer-events:none;
}

.ai-special-card:hover{
  transform:translateY(-3px);
  border-color:rgba(89,255,194,.72);
  box-shadow:0 0 48px rgba(89,255,194,.20);
}

.ai-special-mark{
  position:relative;
  width:88px;
  height:88px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:10px;
  border:1px solid rgba(93,224,255,.42);
  background:rgba(3,10,20,.72);
  color:var(--green);
  font-size:11px;
  font-weight:950;
  letter-spacing:.12em;
  text-shadow:0 0 16px rgba(89,255,194,.58);
  box-shadow:0 0 28px rgba(93,224,255,.18);
}

.ai-special-copy{
  position:relative;
}

.ai-special-copy h2{
  margin:0 0 6px;
  font-size:20px;
  line-height:1.22;
  letter-spacing:0;
}

.ai-special-copy p{
  margin:0;
  color:#d1edf3;
  line-height:1.55;
  font-size:14px;
}

.ai-special-launch{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:10px 13px;
  border:1px solid rgba(89,255,194,.36);
  background:rgba(89,255,194,.10);
  color:var(--green);
  font-weight:950;
  white-space:nowrap;
}

@media(max-width:760px){
  .ai-special-card{
    grid-template-columns:1fr;
    align-items:start;
    padding:18px;
  }
  .ai-special-mark{
    width:74px;
    height:74px;
  }
  .ai-special-launch{
    width:max-content;
  }
}
