/* ==========================================================================
   TET Funds — Site Styles (v1.0)
   Hand-crafted for tetfunds.com — original design & code.
   ========================================================================== */

:root{
  --bg: #0b1020;
  --bg2:#071023;
  --surface: rgba(255,255,255,.06);
  --surface2: rgba(255,255,255,.10);
  --card: rgba(255,255,255,.07);
  --border: rgba(255,255,255,.14);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted2: rgba(255,255,255,.55);
  --brand: #0EA5E9;
  --brand2:#22C55E;
  --warn:#F59E0B;
  --danger:#EF4444;
  --ok:#22C55E;
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --shadow2: 0 12px 30px rgba(0,0,0,.28);
  --radius: 18px;
  --radius2: 26px;
  --max: 1120px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

@media (prefers-color-scheme: light){
  :root{
    --bg: #f7fafc;
    --bg2:#eef4f9;
    --surface: rgba(0,0,0,.04);
    --surface2: rgba(0,0,0,.06);
    --card: rgba(255,255,255,.86);
    --border: rgba(0,0,0,.10);
    --text: rgba(2,6,23,.94);
    --muted: rgba(2,6,23,.72);
    --muted2: rgba(2,6,23,.55);
    --shadow: 0 18px 50px rgba(2,6,23,.10);
    --shadow2: 0 12px 30px rgba(2,6,23,.10);
  }
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Inter, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(900px 520px at 8% 2%, rgba(14,165,233,.20) 0%, rgba(14,165,233,0) 60%),
    radial-gradient(820px 520px at 98% 10%, rgba(34,197,94,.18) 0%, rgba(34,197,94,0) 60%),
    radial-gradient(920px 520px at 40% 102%, rgba(14,165,233,.14) 0%, rgba(14,165,233,0) 62%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height:100vh;
  line-height:1.5;
}

img{max-width:100%; height:auto}
a{color:inherit; text-decoration:none}
a:hover{opacity:.95}
p{margin:0 0 1rem}
small{color:var(--muted2)}

.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  position:fixed; left:1rem; top:1rem; width:auto; height:auto; padding:.75rem 1rem;
  background:rgba(0,0,0,.8); border:1px solid var(--border); border-radius:12px; z-index:9999;
}

.container{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding:0 20px;
}

.topbar{
  font-size:.92rem;
  color:var(--muted);
  border-bottom:1px solid var(--border);
  background:rgba(0,0,0,.10);
  backdrop-filter: blur(10px);
}
@media (prefers-color-scheme: light){
  .topbar{ background: rgba(255,255,255,.75); }
}
.topbar .row{
  display:flex; align-items:center; justify-content:space-between;
  padding:.55rem 0;
  gap:12px;
}
.topbar a{opacity:.95}
.topbar a:hover{opacity:1}
.topbar .pill{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.25rem .6rem;
  border:1px solid var(--border);
  border-radius:999px;
  background:rgba(255,255,255,.04);
}

.header{
  position:sticky;
  top:0;
  z-index:1000;
  border-bottom:1px solid var(--border);
  background:rgba(0,0,0,.15);
  backdrop-filter: blur(14px);
}
@media (prefers-color-scheme: light){
  .header{ background: rgba(255,255,255,.70); }
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:.85rem 0;
  gap:18px;
}
.brand{
  display:flex; align-items:center; gap:.85rem;
  font-weight:800;
  letter-spacing:.3px;
}
.brand img{width:168px; height:auto}
.navlinks{
  display:flex; align-items:center; gap:1.05rem;
  color:var(--muted);
  font-weight:600;
}
.navlinks a{padding:.35rem .3rem}
.navlinks a.active{color:var(--text)}
.nav-cta{display:flex; align-items:center; gap:.7rem}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  padding:.78rem 1rem;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color:var(--text);
  font-weight:700;
  box-shadow:none;
  transition: transform .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.09)}
.btn:active{transform: translateY(0)}
.btn.primary{
  border-color: rgba(14,165,233,.55);
  background: linear-gradient(135deg, rgba(14,165,233,.85), rgba(34,197,94,.78));
  color: #021018;
}
.btn.primary:hover{filter:saturate(1.04)}
.btn.ghost{background: transparent}
.btn.small{padding:.55rem .85rem; font-size:.95rem}
.btn.block{width:100%}

.icon{
  width:18px; height:18px; display:inline-block; flex:0 0 auto;
}

.menu-btn{
  display:none;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  padding:.6rem .75rem;
  border-radius:14px;
  color:var(--text);
}
.menu-btn svg{width:22px; height:22px}
@media (max-width: 920px){
  .navlinks{display:none}
  .menu-btn{display:inline-flex; align-items:center; justify-content:center}
}

/* Mobile drawer */
.drawer-backdrop{
  position:fixed; inset:0;
  background: rgba(0,0,0,.55);
  display:none;
  z-index:1100;
}
.drawer{
  position:fixed;
  right:0; top:0; height:100%; width:min(420px, 92vw);
  background: rgba(10,12,20,.92);
  border-left:1px solid var(--border);
  backdrop-filter: blur(14px);
  transform: translateX(100%);
  transition: transform .22s var(--ease);
  z-index:1200;
  padding:18px;
}
@media (prefers-color-scheme: light){
  .drawer{ background: rgba(255,255,255,.92); }
}
.drawer.open{transform: translateX(0)}
.drawer-backdrop.open{display:block}
.drawer .top{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding-bottom:12px; border-bottom:1px solid var(--border); margin-bottom:14px;
}
.drawer nav a{
  display:flex; align-items:center; justify-content:space-between;
  padding:.85rem .75rem;
  border:1px solid var(--border);
  border-radius:16px;
  background: rgba(255,255,255,.05);
  margin:.55rem 0;
  color:var(--text);
  font-weight:700;
}
.drawer nav a small{font-weight:600}
.drawer .mini{
  margin-top:12px;
  color:var(--muted);
  font-size:.95rem;
}

/* Hero */
.hero{
  position:relative;
  padding: clamp(56px, 7.5vw, 92px) 0 44px;
}
.hero .grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 34px;
  align-items:center;
}
@media (max-width: 920px){
  .hero .grid{grid-template-columns:1fr; gap:22px}
}
.kicker{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.4rem .7rem;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  color:var(--muted);
  font-weight:700;
  font-size:.95rem;
}
.kicker b{color:var(--text)}
h1{
  margin:.85rem 0 .65rem;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height:1.05;
  letter-spacing:-.02em;
}
.lead{
  font-size:1.1rem;
  color:var(--muted);
  max-width: 58ch;
}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:1.2rem}
.hero .meta{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top: 1.15rem;
}
.badge{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.45rem .75rem;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  color:var(--muted);
  font-weight:700;
  font-size:.95rem;
}
.badge strong{color:var(--text)}
.panel{
  border:1px solid var(--border);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panel .inner{padding:18px}
.panel h2{margin:0 0 .25rem; font-size:1.25rem}
.panel p{color:var(--muted)}
.panel .stats{
  display:grid; grid-template-columns: 1fr 1fr;
  gap:12px; margin-top:12px;
}
.stat{
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  border-radius: 16px;
  padding:12px;
}
.stat .n{
  font-size:1.2rem; font-weight:800; letter-spacing:-.02em;
}
.stat .t{color:var(--muted); font-weight:600; font-size:.95rem}

/* Sections */
section{padding: 56px 0}
.section-title{
  display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap;
  margin-bottom: 18px;
}
h2{margin:0; font-size: clamp(1.45rem, 2.2vw, 2rem); letter-spacing:-.01em}
.section-title p{margin:0; color:var(--muted); max-width:70ch}
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
@media (max-width: 920px){
  .grid-3{grid-template-columns:1fr}
}
.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
@media (max-width: 920px){
  .grid-2{grid-template-columns:1fr}
}
.card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow2);
  padding:18px;
}
.card h3{margin:.1rem 0 .45rem; font-size:1.15rem}
.card p{color:var(--muted)}
.card .link{
  margin-top:.8rem;
  display:inline-flex; align-items:center; gap:.55rem;
  color: var(--text);
  font-weight:800;
}
.card .link svg{width:18px; height:18px}
.card:hover{transform: translateY(-1px); transition: transform .15s var(--ease)}
.card.nohover:hover{transform:none}
.list{
  margin:.65rem 0 0;
  padding-left: 1.1rem;
  color:var(--muted);
}
.list li{margin:.4rem 0}

.callout{
  border:1px solid rgba(14,165,233,.30);
  background: linear-gradient(135deg, rgba(14,165,233,.18), rgba(34,197,94,.12));
  border-radius: var(--radius2);
  padding: 20px;
  box-shadow: var(--shadow);
}
.callout .row{display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap}
.callout p{color:var(--muted); margin:.35rem 0 0}
.callout .actions{display:flex; gap:12px; flex-wrap:wrap}

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

.page-hero{
  padding: 44px 0 22px;
}
.breadcrumbs{
  color:var(--muted);
  font-weight:700;
  font-size:.95rem;
}
.breadcrumbs a{color:var(--muted)}
.breadcrumbs a:hover{color:var(--text)}
.page-hero h1{margin-top:.65rem}

/* Prose */
.prose{
  color:var(--muted);
  max-width: 78ch;
}
.prose h2, .prose h3{color:var(--text)}
.prose h3{margin: 1.35rem 0 .55rem; font-size:1.2rem}
.prose ul{padding-left:1.1rem}
.prose li{margin:.5rem 0}
.prose a{color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px}

/* FAQ accordion */
.accordion{
  border:1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
}
.acc-item + .acc-item{border-top:1px solid var(--border)}
.acc-btn{
  width:100%;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding: 16px 16px;
  background: rgba(255,255,255,.05);
  border:0;
  color:var(--text);
  cursor:pointer;
  font-weight:800;
  text-align:left;
}
.acc-btn span{flex:1}
.acc-panel{
  max-height:0;
  overflow:hidden;
  transition: max-height .25s var(--ease);
  background: rgba(255,255,255,.03);
}
.acc-panel .inner{
  padding: 0 16px 16px;
  color:var(--muted);
}
.acc-btn svg{transition: transform .2s var(--ease)}
.acc-item.open .acc-panel{max-height: 500px}
.acc-item.open .acc-btn svg{transform: rotate(180deg)}

/* Forms */
.form{
  display:grid; gap:12px;
}
.field{
  display:grid; gap:6px;
}
label{font-weight:800}
input, select, textarea{
  width:100%;
  padding: .85rem .9rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--text);
  outline: none;
}
textarea{min-height: 120px; resize: vertical}
input::placeholder, textarea::placeholder{color: var(--muted2)}
.helper{color:var(--muted2); font-size:.92rem}
.error{color: #ffd6d6; font-weight:700; font-size:.95rem}
@media (prefers-color-scheme: light){
  .error{color:#b42318}
}
.success{
  border:1px solid rgba(34,197,94,.40);
  background: rgba(34,197,94,.10);
  padding: 14px 14px;
  border-radius: 16px;
  color: var(--text);
}
.notice{
  border:1px solid rgba(245,158,11,.35);
  background: rgba(245,158,11,.10);
  padding: 14px 14px;
  border-radius: 16px;
  color: var(--text);
}
.inline{
  display:flex; gap:12px;
}
@media (max-width: 740px){
  .inline{flex-direction:column}
}

.checkbox{
  display:flex; gap:10px; align-items:flex-start;
  border:1px dashed var(--border);
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
}
.checkbox input{width:auto; margin-top:3px}

/* Footer */
.footer{
  border-top:1px solid var(--border);
  margin-top: 60px;
  padding: 42px 0 28px;
  background: rgba(0,0,0,.10);
}
@media (prefers-color-scheme: light){
  .footer{ background: rgba(255,255,255,.65); }
}
.footer .grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap:16px;
}
@media (max-width: 920px){
  .footer .grid{grid-template-columns:1fr}
}
.footer h3{margin:0 0 .55rem}
.footer a{color:var(--muted)}
.footer a:hover{color:var(--text)}
.footer .links{display:grid; gap:.45rem}
.footer .fineprint{
  margin-top: 18px;
  padding-top: 16px;
  border-top:1px solid var(--border);
  color:var(--muted2);
  font-size:.92rem;
}
.footer .fineprint a{color:var(--muted2); text-decoration:underline; text-underline-offset:3px}
.footer .fineprint a:hover{color:var(--text)}
.footer .brandline{
  display:flex; align-items:center; gap:.75rem;
}
.footer .brandline img{width:150px}

/* Cookie banner */
.cookie{
  position:fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1400;
  display:none;
}
.cookie .wrap{
  max-width: var(--max);
  margin: 0 auto;
  border:1px solid var(--border);
  background: rgba(10,12,20,.90);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 14px 14px;
  box-shadow: var(--shadow);
  display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap;
}
@media (prefers-color-scheme: light){
  .cookie .wrap{ background: rgba(255,255,255,.92); }
}
.cookie p{margin:0; color:var(--muted); max-width: 76ch}
.cookie .actions{display:flex; gap:10px; flex-wrap:wrap}

/* Reveal on scroll */
.reveal{opacity:0; transform: translateY(10px); transition: opacity .55s var(--ease), transform .55s var(--ease)}
.reveal.in{opacity:1; transform:none}

/* Utility */
.m0{margin:0}
.mt8{margin-top:8px}
.mt12{margin-top:12px}
.mt16{margin-top:16px}
.mt20{margin-top:20px}
.mt24{margin-top:24px}
.mb0{margin-bottom:0}
.center{text-align:center}
.kbd{
  display:inline-flex; align-items:center; justify-content:center;
  padding:.1rem .45rem; border-radius:10px; border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  font-weight:800; font-size:.85rem; color:var(--muted);
}
