:root {
  --bg0: #0a0b0e;
  --bg1: #15171c;
  --accent: #9A2AFA;
  --accent-glow: rgba(154, 42, 250, 0.3);
  --text: #f0f0f2;
  --muted: #9ba0a8;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(20, 22, 28, 0.4);
  --radius: 22px;
  --max: 1200px;
  --pad: 24px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --section-gap: 140px; 
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg0), var(--bg1) 40%, var(--bg0));
  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: 16px;
  z-index: 1000;
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  min-height: 70px;
}

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

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

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

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  opacity: 0.8;
  transition: opacity 0.3s var(--ease);
}

.nav__link:hover {
  opacity: 1;
}

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

.burger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  margin: 3px 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

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

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

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

.mobileNav {
  display: none;
  background: rgba(10, 11, 14, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  border-radius: 0 0 24px 24px;
  padding: 16px 20px 20px;
  margin-top: -1px;
}

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

.mobileNav__link {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 16px;
  font-weight: 500;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

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

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

.pill--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

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

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

.section {
  padding: 180px 0;
}

.h1, .h2 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.h1 {
  font-size: clamp(36px, 5vw, 56px);
}

.h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0 0;
}

.footer {
  padding: 60px 0 20px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
}

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

.footer__sub {
  color: var(--muted);
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer__social img {
  width: 32px;
  height: 32px;
  opacity: 0.8;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.footer__social img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer__link {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.3s var(--ease);
}

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

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

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

.fab:hover {
  transform: translateY(-4px);
}

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

.fab__text {
  font-weight: 500;
  color: var(--text);
}


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

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

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

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

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
  .burger {
    display: none;
  }
  .mobileNav {
    display: none !important;
  }
  .footer__inner {
    grid-template-columns: 1fr auto auto;
    gap: 80px;
    align-items: start;
  }
  .footer__right {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
  .footer__right-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
  }
}
