/* ===== DESIGN TOKENS ===== */
:root{
  --bg:#0b0e12;
  --panel:#11161d;
  --panel-2:#0e1319;
  --text:#e9eef5;
  --muted:#a9b6c7;
  --primary:#4fd1c5;
  --border: rgba(255,255,255,0.08);
}

html[data-theme="light"]{
  --bg:#ffffff;
  --panel:#f4f6fb;
  --panel-2:#eef2f7;
  --text:#0b1220;
  --muted:#4b5563;
  --border: rgba(0,0,0,0.08);
}

/* ===== BASE ===== */
body{
  margin:0;
  font-family:system-ui;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

/* ===== HEADER ===== */
header{
  position:fixed;
  top:0;
  width:100%;
  z-index:1000;
}

.trust-banner{
  background:var(--primary);
  color:#03131a;
  text-align:center;
  padding:8px;
  font-weight:700;
  font-size:14px;
}

.nav-wrapper{
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.6);
}

html[data-theme="light"] .nav-wrapper{
  background: var(--bg); /* already white */
  backdrop-filter: none;
}

.container{
  max-width:1200px;
  margin:auto;
  padding:20px;
}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* ===== BRAND ===== */
.brand{
  display: flex;
  align-items: center;
  gap: 12px; /* space between logo + text */
  font-weight: 800;
  font-size: 22px; /* 👈 bigger title */
  letter-spacing: -0.2px;
  color: var(--text);
}

/* 👇 override only in light mode */
html[data-theme="light"] .brand{
  color: #000000;
}

/* optional (but already covered) */
html:not([data-theme="light"]) .brand{
  color: #ffffff;
}

.brand-text{
  line-height: 1;
}

.logo{
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

/* ===== NAV ===== */
.nav-cta{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.btn{
  padding:10px 14px;
  border-radius:12px;
  background:rgba(255,255,255,0.06);
  border:1px solid var(--border);
  color:var(--text);
  text-decoration:none;
  font-weight:600;
  transition:.2s;
}

.btn:hover{
  transform:translateY(-2px);
  border-color:var(--primary);
}

.btn.primary{
  background:var(--text);
  color:var(--bg);
}

.divider{
  opacity:0.3;
}

/* ===== DROPDOWN ===== */
.nav-dropdown{
  position:relative;
}

.dropdown-menu{
  position:absolute;
  top:100%;
  left:0;
  background:var(--panel);
  border-radius:12px;
  display:none;
  flex-direction:column;
  min-width:220px;
  padding:8px;
  padding-top:14px;
  box-shadow:0 12px 30px rgba(0,0,0,0.3);
  border:1px solid var(--border);
  margin-top:0;
}

.dropdown-menu a{
  padding:10px 12px;
  text-decoration:none;
  color:var(--text);
  border-radius:8px;
  font-weight:500;
}

.dropdown-menu a:hover{
  background:var(--bg);
  color:var(--primary);
}

.nav-dropdown:hover .dropdown-menu{
  display:flex;
}

/* invisible bridge fills the gap so hover doesn't break */
.nav-dropdown .dropdown-menu::before{
  content:"";
  position:absolute;
  top:-12px;
  left:0;
  right:0;
  height:12px;
}

/* ===== HERO ===== */
main{
  padding-top:140px;
}

.hero{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
}

.hero h1{
  font-size:48px;
  line-height:1.1;
  margin:10px 0;
}

.hero h1 span{
  color:var(--primary);
}

.hero p{
  color:var(--muted);
  max-width:500px;
}

.hero-visual img{
  width:100%;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,0.2);
}

/* eyebrow */
.eyebrow{
  font-size:13px;
  color:var(--muted);
  font-weight:700;
  letter-spacing:0.5px;
}

.pill{
  background:var(--primary);
  color:#03131a;
  padding:4px 8px;
  border-radius:999px;
  margin-right:6px;
}

/* ===== SECTION ===== */
.section-title{
  font-size:28px;
  margin-bottom:5px;
}

.section-kicker{
  color:var(--muted);
  margin-bottom:20px;
}

/* ===== CARDS ===== */
.horizontal-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.highlight-card{
  padding:22px;
  background:var(--panel);
  border-radius:16px;
  text-decoration:none;
  color:var(--text);
  border:1px solid var(--border);
  transition:.25s;
}

.highlight-card:hover{
  transform:translateY(-6px);
  border-color:var(--primary);
  background:var(--bg);
}

.highlight-card h3{
  margin-top:0;
  color:var(--primary);
}




/* ===== THEME SWITCH ===== */
.theme-switch{
  position:relative;
  width:52px;
  height:28px;
  flex-shrink:0;
  cursor:pointer;
}

.theme-switch input{
  display:none;
}

.slider{
  position:absolute;
  inset:0;
  background:var(--panel-2);
  border:1px solid var(--border);
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 5px;
  font-size:11px;
  line-height:1;
  transition:background .3s;
}

.slider::before{
  content:"";
  position:absolute;
  width:22px;
  height:22px;
  background:var(--primary);
  border-radius:50%;
  left:3px;
  top:50%;
  transform:translateY(-50%);
  transition:transform 0.3s cubic-bezier(.4,0,.2,1);
  z-index:1;
}

input:checked + .slider::before{
  transform:translateY(-50%) translateX(23px);
}

/* ===== HIDE-ON-SCROLL HEADER ===== */
header {
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}

header.nav-hidden {
  transform: translateY(-100%);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9999;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #03131a;
  border: none;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(79,209,197,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: #38bdf8;
}

/* on mobile, nudge above tab bar */
@media (max-width: 800px) {
  .back-to-top {
    bottom: 88px;
    right: 16px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}

/* ===== SHARED FOOTER ===== */
footer {
  background: #000000 !important;
  color: #ffffff;
  padding: 48px 0 0;
  font-family: system-ui;
  border-top: none !important;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 14px;
}

.footer-col p,
.footer-col a {
  font-size: 14px;
  color: #aab4c0;
  line-height: 1.7;
  text-decoration: none;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-disclaimer {
  font-size: 12px !important;
  color: #6b7a89 !important;
  line-height: 1.65;
}

.footer-yt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ff0000;
  color: #fff !important;
  padding: 9px 14px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  margin-top: 8px;
  transition: background .2s;
}

.footer-yt:hover {
  background: #cc0000;
  color: #fff !important;
}

.footer-liability {
  max-width: 1200px;
  margin: 36px auto 0;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-liability p {
  font-size: 11px;
  color: #4a5568;
  line-height: 1.65;
  margin: 0;
}

.footer-liability strong {
  color: #6b7a89;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  font-size: 12px;
  color: #4a5568;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  font-size: 12px;
  color: #4a5568;
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

@media (max-width: 800px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== MOBILE ===== */
@media (max-width:800px){
  .hero{
    grid-template-columns:1fr;
  }

  .hero h1{
    font-size:34px;
  }

  .horizontal-grid{
    grid-template-columns:1fr;
  }

  .nav-cta{
    justify-content:center;
  }
}

.hero-visual{
  position: relative;
}

.hero-img{
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: none;
}

/* default = dark mode */
.hero-img.dark{
  display: block;
}

/* switch on light mode */
html[data-theme="light"] .hero-img.dark{
  display: none;
}

html[data-theme="light"] .hero-img.light{
  display: block;
}

/* ===== MOBILE NAV OVERRIDES ===== */
@media (max-width: 800px) {

  /* Hide desktop nav links on mobile */
  .nav-cta {
    display: none;
  }

  /* Show compact header: logo left, theme toggle right */
  .nav {
    justify-content: space-between;
  }

  /* Slim the theme toggle so it fits the header */
  .theme-switch {
    display: flex;
  }

  /* Show the toggle in the header on mobile */
  .mobile-header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Push page content above the tab bar */
  main {
    padding-bottom: 80px;
  }
}

/* ===== BOTTOM TAB BAR ===== */
.mobile-tab-bar {
  display: none;
}

@media (max-width: 800px) {
  .mobile-tab-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: var(--panel);
    border-top: 1px solid var(--border);
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
  }

  .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 0;
    cursor: pointer;
    text-decoration: none;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    border: none;
    background: none;
    transition: color .2s;
    -webkit-tap-highlight-color: transparent;
  }

  .tab-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
  }

  .tab-item.active,
  .tab-item:hover {
    color: var(--primary);
  }

  .tab-item.danger {
    color: #f87171;
  }

  .tab-item.danger.active,
  .tab-item.danger:hover {
    color: #ef4444;
  }

  /* Active underline indicator */
  .tab-item.active span {
    font-weight: 700;
  }
}

/* ===== FOR YOU DRAWER ===== */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,0.5);
  align-items: flex-end;
}

.drawer-overlay.open {
  display: flex;
}

.drawer {
  width: 100%;
  background: var(--panel);
  border-radius: 20px 20px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 16px);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}

.drawer-overlay.open .drawer {
  transform: translateY(0);
}

.drawer-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 8px;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px 12px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
}

.drawer-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
}

.drawer-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  font-weight: 500;
  transition: background .15s;
}

.drawer-link:last-child {
  border-bottom: none;
}

.drawer-link:hover {
  background: var(--bg);
}

.drawer-link svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}