:root {
  --bg0: #030303;
  --bg1: #111112;
  --accent: #A00000;
  --accent-glow: rgba(160, 0, 0, 0.3);
  --text: #f0f0f2;
  --muted: #8c8f96;
  --border: rgba(255, 255, 255, 0.12);
  --glass: linear-gradient(135deg, rgba(20, 20, 22, 0.8), rgba(10, 10, 10, 0.95));
  --radius: 12px;
  --max: 1240px;
  --pad: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --section-gap: 190px; 
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at top center, var(--bg1) 0%, var(--bg0) 100%);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  min-height: 80px;
}
.topbar.menu-open {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.brand {
  display: flex;
  align-items: center;
}

.brand__logo {
  height: 42px;
  width: auto;
}

.nav {
  display: none;
  gap: 40px;
  align-items: center;
}

.nav__link {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  opacity: 0.7;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
  position: relative;
}

.nav__link:hover {
  opacity: 1;
  color: var(--accent);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.burger {
  display: none;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 1100;
  position: relative;
}

.burger span {
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
  position: absolute;
  left: 0;
}

.burger span:nth-child(1) {
  top: 0;
}

.burger span:nth-child(2) {
  top: 9px;
}

.burger span:nth-child(3) {
  top: 18px;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobileNav {
  display: none;
  background: transparent;
  padding: 24px 20px 32px;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  border: none;
}

.mobileNav__link {
  display: block;
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--radius) !important;
  padding: 16px;
  text-align: center;
  color: var(--text) !important;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  position: relative;
  z-index: 2;
  transform: translateZ(0);
  will-change: transform;
}

.mobileNav.is-open {
  display: grid;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.pill:hover {
  transform: translateY(-2px);
}

.pill--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.pill--primary:hover {
  background: #ff0a0a;
  border-color: #ff0a0a;
  box-shadow: 0 8px 32px rgba(255, 10, 10, 0.5);
}

.pill--ghost {
  background: var(--glass);
  color: var(--text);
}

.pill--ghost:hover {
  border-color: var(--accent);
  background: rgba(230, 0, 0, 0.05);
}

.pill--full {
  width: 100%;
}

.pill__img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.section {
  padding: 200px 0;
}

.h1, .h2 {
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
}

.h1 {
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: -0.01em;
}

.h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  letter-spacing: 0.02em;
}

.sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin: 16px 0 0;
  font-weight: 400;
}

.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.8);
}

.footer__inner {
  display: grid;
  gap: 48px;
}

.footer__sub {
  color: var(--muted);
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.7;
  max-width: 360px;
}

.footer__social {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.footer__social img {
  width: 36px;
  height: 36px;
  opacity: 0.6;
  transition: all 0.3s var(--ease);
  filter: grayscale(100%);
}

.footer__social img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-3px);
}

.footer__links, .footer__legal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__bottom {
  text-align: left;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s var(--ease);
}

.footer__link:hover {
  color: var(--accent);
}

.footer__copy {
  color: var(--muted);
  font-size: 14px;
}

.fab {
  position: fixed;
  right: 32px;
  bottom: 32px;
  height: 60px;
  padding: 0 24px 0 16px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 100;
  transition: all 0.3s var(--ease);
}

.fab:hover {
  transform: translateY(-4px);
  border-color: #25D366;
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.2);
}

.fab__img {
  width: 28px;
  height: 28px;
}

.fab__text {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13px;
  color: var(--text);
}

.bg-fade-bottom, 
.bg-fade-both {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

.bg-fade-bottom {
  -webkit-mask-image: linear-gradient(to bottom, black 40%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, black 40%, rgba(0,0,0,0) 100%);
}

.bg-fade-both {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, black 20%, black 80%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, black 20%, black 80%, rgba(0,0,0,0) 100%);
}

.relative-wrapper {
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .nav,
  .topbar__actions .pill {
    display: none !important;
  }
  
  .burger {
    display: block;
  }
  
  .fab__text {
    display: none;
  }
  
  .fab {
    width: 56px;
    height: 56px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
  }
  
  .fab__img {
    margin: 0;
  }
  
  .mobileNav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 24px 20px 32px;
    background: transparent !important;
    border: none !important;
    z-index: 1000;
  }

  .mobileNav::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: -1;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%), 
                        linear-gradient(to bottom, #000 80%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%), 
                linear-gradient(to bottom, #000 80%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    pointer-events: none;
  }

  .mobileNav.is-open {
    display: grid;
    gap: 12px;
  }
  
  .mobileNav__link {
    display: block;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--radius) !important;
    padding: 16px;
    text-align: center;
    color: var(--text) !important;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    position: relative;
    z-index: 2;
  }
.mobileNav .pill--primary {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  transform: translateZ(0);
  will-change: transform;
}
  
  .mobile-break {
    display: block;
  }
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
  .burger {
    display: none;
  }
  .mobileNav {
    display: none !important;
  }
  .footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    align-items: start;
  }
}
