:root {
  --bg: #050507;
  --panel: rgba(255,255,255,0.075);
  --panel-2: rgba(255,255,255,0.045);
  --border: rgba(255,255,255,0.12);
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --soft: #d7d7dc;
  --accent: #7f1d1d;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text) !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif !important;
  background:
    radial-gradient(circle at 15% 8%, rgba(255,255,255,0.14), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(127,29,29,0.28), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(180,180,190,0.14), transparent 40%),
    linear-gradient(180deg, #030305, #0b0b0f 55%, #050507) !important;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  z-index: -1;
}

a {
  color: inherit;
}

header,
nav,
main,
section,
footer,
.container,
.wrapper,
.content {
  position: relative;
  z-index: 1;
}

main,
.container,
.wrapper,
.content {
  width: min(100% - 34px, var(--max));
  margin-left: auto;
  margin-right: auto;
}

nav,
header,
section,
footer,
.card,
.panel,
.box,
article,
.feature,
.hero,
iframe,
blockquote {
  border-radius: 30px;
}

nav {
  margin: 28px auto 0;
  width: min(100% - 34px, var(--max));
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: rgba(10,10,14,0.68) !important;
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 18px 60px rgba(0,0,0,0.32);
}

header,
.hero {
  margin: 28px auto;
  width: min(100% - 34px, var(--max));
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.105), rgba(255,255,255,0.035)),
    rgba(0,0,0,0.18) !important;
  backdrop-filter: blur(22px);
  box-shadow: 0 38px 120px rgba(0,0,0,0.46);
}

section,
article,
.card,
.panel,
.box,
.feature {
  border: 1px solid var(--border) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.038)) !important;
  box-shadow: 0 28px 90px rgba(0,0,0,0.28);
}

section {
  margin: 22px auto;
  padding: clamp(24px, 4vw, 44px);
}

h1,
h2,
h3 {
  color: var(--text) !important;
  letter-spacing: -0.055em;
}

h1 {
  font-size: clamp(3.4rem, 10vw, 9rem);
  line-height: 0.88;
  font-weight: 860;
  background: linear-gradient(125deg, #ffffff, #e5e5ea 28%, #8a8a94 55%, #ffffff 78%, #6f6f78);
  -webkit-background-clip: text;
  color: transparent !important;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.94;
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

p,
li,
span,
small {
  color: inherit;
}

p,
li {
  color: var(--muted);
}

button,
.button,
.btn,
a.button,
a.btn,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 17px;
  border-radius: 999px !important;
  border: 1px solid var(--border) !important;
  background: rgba(255,255,255,0.92) !important;
  color: #09090b !important;
  text-decoration: none;
  font-weight: 760;
  transition: 180ms ease;
}

button:hover,
.button:hover,
.btn:hover,
a.button:hover,
a.btn:hover {
  transform: translateY(-2px);
  background: #fff !important;
}

img,
video {
  max-width: 100%;
  border-radius: 24px;
}

iframe {
  max-width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

footer {
  width: min(100% - 34px, var(--max));
  margin: 28px auto 34px;
  padding: 24px;
  color: rgba(255,255,255,0.46) !important;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
}

@media (max-width: 760px) {
  nav,
  header,
  .hero,
  main,
  .container,
  .wrapper,
  .content,
  footer {
    width: min(100% - 22px, var(--max));
  }

  header,
  .hero,
  section {
    border-radius: 24px;
  }
}

/* Hide top Z navigation bar */
nav {
  display: none !important;
}

/* Restore and polish top bar */
nav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  max-width: 1120px !important;
  min-height: 58px !important;
  border-radius: 999px !important;
}

@media (min-width: 761px) {
  nav {
    width: min(100% - 34px, 1120px) !important;
    margin: 28px auto 0 !important;
    padding: 10px 18px !important;
    gap: 18px !important;
    overflow: hidden !important;
  }

  nav * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  nav a {
    white-space: nowrap !important;
  }
}

/* Remove top empty Z bar */
nav {
  display: none !important;
}

/* Remove leftover top nav spacing / ghost bar */
nav,
body > nav,
.wrap > nav,
header nav,
.nav,
.navbar {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* Pull page content up after nav removal */
.wrap {
  padding-top: 8px !important;
}

header,
.hero {
  margin-top: 12px !important;
}

/* Remove the leftover empty top header card */
body > header,
.wrap > header,
header:empty {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  overflow: hidden !important;
}

/* Pull the first real content card up */
.wrap,
main,
.container,
.wrapper,
.content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
