/*
██╗  ██╗██╗  ██╗ ██████╗ ██████╗ ███████╗██╗   ██╗███████╗██╗  ██╗
██║ ██╔╝██║  ██║██╔═══██╗██╔══██╗██╔════╝██║   ██║██╔════╝╚██╗██╔╝
█████╔╝ ███████║██║   ██║██║  ██║█████╗  ██║   ██║█████╗   ╚███╔╝ 
██╔═██╗ ██╔══██║██║   ██║██║  ██║██╔══╝  ╚██╗ ██╔╝██╔══╝   ██╔██╗ 
██║  ██╗██║  ██║╚██████╔╝██████╔╝███████╗ ╚████╔╝ ███████╗██╔╝ ██╗
╚═╝  ╚═╝╚═╝  ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝  ╚═══╝  ╚══════╝╚═╝  ╚═╝
*/



:root{
  --bg:#8b8b8b;
  --ink:#0b0d10;
  --muted:rgba(11,13,16,.68);

  --glass: rgba(255, 255, 255, 0.347);
  --glass2: rgba(255,255,255,.22);
  --stroke: rgba(255,255,255,.52);
  --stroke2: rgba(0,0,0,.18);
  --shadow: 0 20px 60px rgba(0,0,0,.16);
  --shadow2: 0 10px 30px rgba(0,0,0,.12);

  --chip: rgba(255,255,255,.26);
  --chipStroke: rgba(255,255,255,.55);

  --btn: rgba(255,255,255,.26);
  --btnStroke: rgba(255,255,255,.60);

  --radius: 26px;
  --radius2: 18px;

  --sx: 0px;
  --sy: 0px;

  --max: 1120px;
}

body.dark{
  --bg:#0f1216;
  --ink:#eef2f6;
  --muted:rgba(238,242,246,.72);

  --glass: rgba(255,255,255,.08);
  --glass2: rgba(255,255,255,.05);
  --stroke: rgba(255,255,255,.14);
  --stroke2: rgba(0,0,0,.42);
  --shadow: 0 30px 80px rgba(0,0,0,.50);
  --shadow2: 0 14px 42px rgba(0,0,0,.42);

  --chip: rgba(255,255,255,.08);
  --chipStroke: rgba(255,255,255,.14);

  --btn: rgba(255,255,255,.08);
  --btnStroke: rgba(255,255,255,.16);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--ink);
  overflow-x:hidden;
  scroll-behavior: smooth;
}

/* --- background canvases --- */
#gearBG, #gearBGNoise{
  position: fixed;
  inset: 0;
  width:100%;
  height:100%;
  z-index: 0;
  pointer-events:none;
}

#gearBG{ opacity: .92; mix-blend-mode: normal; }

#gearBGNoise{
  opacity: .25;
  mix-blend-mode: soft-light;
  filter: blur(.25px);
}

#gearBGVignette{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events:none;
  background:
    radial-gradient(900px 600px at 75% 35%, rgba(255,255,255,.28), rgba(255,255,255,0) 60%),
    radial-gradient(1000px 700px at 18% 12%, rgba(255,255,255,.18), rgba(255,255,255,0) 55%),
    radial-gradient(1200px 900px at 50% 75%, rgba(0,0,0,.14), rgba(0,0,0,0) 62%),
    linear-gradient(to bottom, rgba(255,255,255,.08), rgba(255,255,255,0) 40%, rgba(0,0,0,.10));
  opacity: .55;
}

body.dark #gearBGVignette{
  opacity: .75;
  background:
    radial-gradient(900px 600px at 75% 35%, rgba(255,255,255,.14), rgba(255,255,255,0) 60%),
    radial-gradient(1000px 700px at 18% 12%, rgba(255,255,255,.10), rgba(255,255,255,0) 55%),
    radial-gradient(1200px 900px at 50% 75%, rgba(0,0,0,.55), rgba(0,0,0,0) 60%),
    linear-gradient(to bottom, rgba(0,0,0,.38), rgba(0,0,0,0) 40%, rgba(0,0,0,.55));
}

/* --- layout --- */
.shell{ position: relative; z-index: 2; }
.wrap{ width: min(var(--max), calc(100% - 42px)); margin: 0 auto; }

/* --- glass --- */
.glass{
  position: relative;
  border-radius: var(--radius);
  background:
    radial-gradient(140px 120px at calc(50% + var(--sx)) calc(38% + var(--sy)),
      rgba(255,255,255,.55), rgba(255,255,255,0) 65%),
    linear-gradient(180deg, var(--glass), var(--glass2));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.glass::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 45%),
    radial-gradient(220px 160px at 15% 20%, rgba(255,255,255,.30), rgba(255,255,255,0) 70%);
  opacity:.35;
  mix-blend-mode: screen;
}
body.dark .glass::after{ opacity:.22; }

/* --- nav --- */
.nav{
  position: sticky;
  top: 14px;
  z-index: 20;
  padding: 12px 0 0;
}

.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 12px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  color: var(--ink);
  padding-left: 4px;
}

.badge{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  font-weight: 800;
  letter-spacing: .5px;
  background: rgba(255,255,255,.18);
  border: 1px solid var(--stroke);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}

.brandtxt{ display:flex; flex-direction:column; line-height:1.1; }
.name{ font-weight: 800; }
.role{ font-size: 12px; color: var(--muted); margin-top: 2px; }

.links{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.links a{
  text-decoration:none;
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.26);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
body.dark .links a{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
}

.links a:hover{
  transform: translateY(-1px);
  color: var(--ink);
  background: rgba(255,255,255,.26);
}

.iconBtn{
  border: none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.26);
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
body.dark .iconBtn{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
}
.iconBtn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.26);
  color: var(--ink);
}
.icon{ opacity:.9; }

/* --- hero --- */
.hero{
  padding: 78px 0 40px;
  display:grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 26px;
  align-items: start;
}

.hero h1{
  font-size: clamp(44px, 6vw, 72px);
  margin: 0 0 12px;
  letter-spacing: -1.2px;
}
.typewriter{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cursor{
  display: inline-block;
  width: 0.7ch;
  opacity: 0;
  color: var(--ink);
}
.cursor.blink{
  opacity: 1;
  animation: cursorBlink 1s ease-in-out infinite;
}
@keyframes cursorBlink{
  0%, 100%{ opacity: 0; }
  50%{ opacity: 1; }
}

.lede{
  color: var(--muted);
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 18px;
}

.chips{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.chip{
  background: var(--chip);
  border: 1px solid var(--chipStroke);
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24);
}

.btnRow{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 999px;
  text-decoration:none;
  color: var(--ink);
  font-weight: 800;
  background: var(--btn);
  border: 1px solid var(--btnStroke);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.30), var(--shadow2);
  transition: transform .18s ease, background .18s ease;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.34); }

.btn.primary{
  background: rgba(0,0,0,.86);
  border-color: rgba(0,0,0,.86);
  color: rgba(255,255,255,.95);
}
body.dark .btn.primary{
  background: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.92);
  color: rgba(0,0,0,.90);
}

.term{
  padding: 18px 18px 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.term .hdr{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-weight: 900;
  letter-spacing: .14em;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.term pre{
  margin:0;
  white-space: pre-wrap;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* --- sections --- */
.section{ padding: 24px 0; }
.section,
.hero{
  scroll-margin-top: 120px;
}
.card{
  padding: 22px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.eyebrow{
  font-weight: 900;
  letter-spacing: .14em;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
h2{
  margin: 0 0 10px;
  font-size: clamp(22px, 3.2vw, 34px);
  letter-spacing: -.6px;
}
.body{
  margin:0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 70ch;
}

.grid3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 14px;
}

.cards{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-top: 14px;
}

.title{ font-weight: 900; letter-spacing: -.2px; margin-bottom: 6px; }
.meta{ color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.txt{ color: var(--muted); font-size: 14px; line-height: 1.65; }

.footer{
  padding: 34px 0 44px;
  display:flex;
  justify-content:space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

/* --- responsive --- */
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .grid3{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .navbar{ border-radius: 26px; }
}

/* =========================
   Mobile nav (drawer)
   ========================= */
.mobileOnly{ display:none; }
.desktopOnly{ display:flex; }

.drawerBackdrop{
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.drawer{
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(var(--max), calc(100% - 28px));
  z-index: 1000;
  padding: 14px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.drawer .drawerGrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.drawer .drawerGrid a,
.drawer .drawerGrid button{
  width: 100%;
  justify-content: center;
}

@media (max-width: 640px){
  .navbar{
    border-radius: 22px;
    padding: 12px 12px;
  }

  .hero{ padding: 34px 0 22px; }
  .hero h1{ font-size: 48px; }
  .term{ margin-top: 10px; }

  .desktopOnly{ display:none !important; }
  .mobileOnly{ display:flex !important; }

  .links{ gap: 8px; }
  .iconBtn, .btn{ padding: 11px 12px; }

  .chips{ gap: 8px; }
  .chip{ padding: 7px 10px; font-size: 12px; }

  #gearBGVignette{ opacity: .75; }
}
