:root {
  --bg: #F7FAFF;
  --p: #0066ff;
  --s: #00a3ff;
  --ink: #050c18;
  --mute: #1d2d44;
  --line: rgba(0, 102, 255, .16);
  --glass: rgba(255, 255, 255, .42);
  --glass-card: rgba(255, 255, 255, .38);
  --glass-border: rgba(0, 102, 255, .18);
  --f: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  color-scheme: light;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.075rem/1.7 var(--f);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Desktop Custom Cursor */
@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  html, html * {
    cursor: none !important;
  }
  input, textarea, [contenteditable="true"] {
    cursor: text !important;
  }
}

/* Mobile & Touch: Disable Custom Cursor Completely */
@media (max-width: 860px), (pointer: coarse), (hover: none) {
  #c1, #c2 {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  html, html * {
    cursor: auto !important;
  }
  input, textarea, [contenteditable="true"] {
    cursor: text !important;
  }
}


a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--p);
  outline-offset: 3px;
}

#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

#scrim {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 65% at 50% 50%, rgba(247, 250, 255, .32), rgba(247, 250, 255, 0) 82%);
}

#bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--p);
  box-shadow: 0 0 12px var(--s);
  z-index: 60;
}

@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  #c1, #c2 {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 9999999;
    border-radius: 50%;
    transform: translate3d(-100px, -100px, 0);
    will-change: transform;
  }

  #c1 {
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    background: #00d4ff;
    box-shadow: 0 0 10px #00d4ff, 0 0 20px rgba(0, 102, 255, 0.9);
  }

  #c2 {
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border: 1.5px solid rgba(0, 102, 255, 0.65);
    background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, rgba(0, 102, 255, 0.02) 70%, transparent 100%);
    box-shadow: 0 0 16px rgba(0, 102, 255, 0.25);
    transition: border-color 0.2s, background-color 0.2s;
  }
}

/* Header & Navigation */
header {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 5%;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-weight: 700;
  letter-spacing: .5em;
  color: var(--p);
  text-decoration: none;
  font-size: 1.1rem;
}

/* Hide mobile nav toggle by default on desktop */
.zionic-nav-toggle {
  display: none !important;
}

nav {
  position: relative;
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 6px;
}

nav a {
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mute);
  white-space: nowrap;
  padding-bottom: 4px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: color .3s ease;
}

nav a:hover, nav a.on {
  color: var(--p) !important;
}

#nav-indicator {
  position: absolute;
  bottom: 0px;
  left: 0;
  height: 2px;
  background: var(--p);
  box-shadow: 0 0 10px var(--s);
  border-radius: 2px;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2), width 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.25s ease;
  will-change: transform, width;
  opacity: 0;
}

/* Main Content */
main {
  position: relative;
  z-index: 1;
}

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 5%;
}

.in {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.lbl {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--p);
  margin-bottom: 1.2rem;
}

h1 {
  font-size: clamp(3.2rem, 11vw, 9rem);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.05em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

h1 span {
  display: block;
  overflow: hidden;
}

h1 i {
  display: block;
  font-style: normal;
}

.g {
  background: linear-gradient(100deg, #0052d9, #00a3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.035em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 .8rem;
}

p {
  max-width: 44em;
  margin: 0 0 1.1rem;
  color: var(--mute);
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 34em;
  color: #1c2b45;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 1.05rem 2.4rem;
  font: 700 .8rem var(--f);
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(100deg, #0052d9, #0a84ff);
  border: 0;
  border-radius: 3px;
  box-shadow: 0 10px 30px rgba(0, 102, 255, .3);
  transition: transform .35s, box-shadow .35s;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 102, 255, .4);
}

.deep {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--p);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.deep:hover {
  color: var(--s);
  transform: translateX(5px);
}

.panel {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: clamp(1.6rem, 5vw, 4.5rem);
  box-shadow: 0 25px 50px -12px rgba(0, 102, 255, .08), inset 0 1px 1px rgba(255, 255, 255, .7);
}

.grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 2.4rem;
}

.g3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.g4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.g2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.it {
  padding: 2rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--glass-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -8px rgba(0, 102, 255, .05), inset 0 1px 1px rgba(255, 255, 255, .6);
  transition: border-color .35s ease, box-shadow .35s ease, background .35s ease;
  will-change: transform, opacity;
}

.it:hover {
  border-color: var(--p);
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 20px 40px rgba(0, 102, 255, .16), inset 0 1px 1px rgba(255, 255, 255, .85);
}

.it p {
  margin: 0;
  font-size: 1rem;
}

.n {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--p);
  margin-bottom: .9rem;
}

.bad {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--p);
  color: var(--p);
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 1.4rem;
}

.bad.f {
  background: var(--p);
  color: #fff;
}

.ul {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  font-weight: 600;
  color: #52627c;
}

.ul li {
  margin: .5rem 0;
}

.ul li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 2px;
  background: var(--p);
  margin-right: .8rem;
  vertical-align: middle;
}

.stat {
  font-size: clamp(3.4rem, 9vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  display: block;
}

.stat + small {
  display: block;
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--p);
  font-weight: 700;
  margin-top: .5rem;
}

.row {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2.4rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2.4rem;
}

.tags span {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--mute);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: .45rem 1.2rem;
  background: rgba(255, 255, 255, .5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.trust {
  margin-top: 2.4rem;
  padding: 1.4rem 1.6rem;
  border-radius: 10px;
  background: rgba(0, 102, 255, .04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
}

.trust b {
  display: block;
  color: var(--p);
  margin-bottom: .3rem;
}

.trust p {
  margin: 0 0 .3rem;
}

.sum {
  border: 1px solid var(--line);
  background: rgba(0, 102, 255, .05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.4rem;
}

.sum span {
  display: block;
  font-size: .65rem;
  letter-spacing: .3em;
  font-weight: 700;
  color: var(--p);
  margin-bottom: .3rem;
}

.sum p {
  margin: 0;
  font-weight: 500;
  color: var(--ink);
  font-size: .95rem;
}

.it h3.t {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.25rem;
}

form {
  display: grid;
  gap: 1.2rem;
  max-width: 560px;
  margin-top: 2rem;
}

label {
  display: grid;
  gap: .4rem;
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--p);
}

input, textarea {
  font: 400 1rem var(--f);
  color: var(--ink);
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .85rem 1rem;
  width: 100%;
  transition: border-color .3s, background .3s;
}

input:focus, textarea:focus {
  background: rgba(255, 255, 255, .9);
  border-color: var(--p);
}

#fs {
  color: var(--p);
  font-weight: 500;
  margin: 0;
}

footer {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2rem 5% 3rem;
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--mute);
}

.rv {
  will-change: transform, opacity;
}

.close {
  min-height: 70vh;
}

/* ==========================================================================
   MOBILE FIRST OPTIMIZATIONS (< 860px)
   ========================================================================== */
@media (max-width: 860px) {
  header {
    padding: 1rem 5% !important;
    height: 64px !important;
    justify-content: space-between !important;
  }

  .logo {
    font-size: 1.05rem !important;
    letter-spacing: 5px !important;
    z-index: 10002 !important;
  }

  /* Hide default nav bar in header */
  header > nav {
    display: none !important;
  }

  /* Animated Mobile Hamburger Button */
  .zionic-nav-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    width: 42px !important;
    height: 42px !important;
    background: rgba(0, 102, 255, 0.06) !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    cursor: pointer;
    padding: 0 !important;
    z-index: 10002 !important;
    transition: all 0.25s ease !important;
  }

  .zionic-nav-toggle:active {
    transform: scale(0.92);
  }

  .zionic-nav-toggle span {
    display: block !important;
    height: 2px !important;
    border-radius: 2px !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s, background-color 0.3s !important;
  }

  .zionic-nav-toggle span:nth-child(1) {
    width: 20px !important;
    background: var(--ink) !important;
  }

  .zionic-nav-toggle span:nth-child(2) {
    width: 14px !important;
    background: var(--p) !important;
  }

  .zionic-nav-toggle.open span:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg) !important;
  }

  .zionic-nav-toggle.open span:nth-child(2) {
    width: 20px !important;
    transform: translateY(-3.5px) rotate(-45deg) !important;
    background: var(--ink) !important;
  }

  /* Sections & Spacing */
  section {
    padding: 5.5rem 5% 3.5rem !important;
    min-height: auto !important;
  }

  #top {
    padding-top: 7rem !important;
    padding-bottom: 4rem !important;
    min-height: 85vh !important;
  }

  h1 {
    font-size: clamp(2.3rem, 11vw, 4.2rem) !important;
    letter-spacing: -1.5px !important;
    line-height: 1.02 !important;
    margin-bottom: 0.8rem !important;
  }

  h2 {
    font-size: clamp(1.5rem, 7vw, 2.3rem) !important;
    letter-spacing: -0.5px !important;
    line-height: 1.2 !important;
  }

  .g3, .g4, .g2 {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }

  .panel {
    padding: 2.2rem 1.25rem !important;
  }

  .row {
    flex-direction: column !important;
    gap: 1.5rem !important;
    align-items: flex-start !important;
  }

  .row > p {
    border-left: none !important;
    border-top: 1px solid var(--line) !important;
    padding-left: 0 !important;
    padding-top: 1.2rem !important;
    max-width: 100% !important;
  }

  .btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 320px !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Glassmorphic Mobile Drawer Overlay */
.zionic-mobile-drawer {
  display: none;
}

@media (max-width: 860px) {
  .zionic-mobile-drawer {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(247, 250, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 10001;
    flex-direction: column;
    justify-content: space-between;
    padding: 5.5rem 6% 2rem;
    padding-top: max(5.5rem, calc(env(safe-area-inset-top) + 4rem));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    box-sizing: border-box;
    overflow-y: auto;
  }

  .zionic-mobile-drawer.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .drawer-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
  }

  .drawer-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0.8rem;
    border-radius: 8px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    transition: all 0.25s ease;
  }

  .drawer-nav-item:active, .drawer-nav-item:hover {
    color: var(--p);
    padding-left: 14px;
  }

  .drawer-nav-item.active {
    color: var(--p) !important;
    font-weight: 700 !important;
    background: rgba(0, 102, 255, 0.08) !important;
    border-left: 4px solid var(--p) !important;
    padding-left: 14px !important;
    box-shadow: 0 0 16px rgba(0, 102, 255, 0.12) !important;
  }

  .drawer-nav-item .tag {
    font-size: 0.65rem;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(0, 102, 255, 0.08);
    color: var(--p);
  }

  .drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
  }

  .drawer-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 1.1rem 1.5rem;
    background: var(--p);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.25);
    cursor: pointer;
    border: none;
  }

  .drawer-meta {
    font-size: 0.7rem;
    color: var(--mute);
    letter-spacing: 1.5px;
    text-align: center;
    text-transform: uppercase;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
