:root {
  --color-primary: #d4af37;
  --color-background: #000000;
  --color-surface: #0f0f0f;
  --color-text-primary: #ffffff;
  --color-text-secondary: #969696;
  --color-text-muted: #545454;
  --color-border: #272727;
  --color-success: #1b942b;
}

body {
  background-color: var(--color-background);
  color: var(--color-text-primary);
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.fade-in {
  opacity: 0;
  animation: fadeInBody 0.5s ease forwards;
}
@keyframes fadeInBody {
  to { opacity: 1; }
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 15px 25px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 22.4px;
  letter-spacing: -0.32px;
  transition: background-color 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  max-width: 100%;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-text-primary);
  box-shadow: inset 0px 1px 20px 0px rgba(255, 255, 255, 0.07);
}

.btn--primary:hover {
  filter: brightness(1.1);
}

/* Animated Button Styles */
.button-container-2 {
    position: relative;
    width: 150px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    transition: 0.5s;
    border-radius: 10px;
    background: #161616;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 26px 35px;
    box-sizing: border-box;
    max-width: 100%;
}

.button-container-2.animation-complete {
    border: 1px solid var(--color-border);
    box-shadow: inset 0px 1px 20px 0px rgba(255, 255, 255, 0.07);
}

.button-container-2 .animated-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.32px;
    line-height: 1;
    background: #D4AF37;
    -webkit-mask: url("https://raw.githubusercontent.com/robin-dela/css-mask-animation/master/img/urban-sprite.png");
    mask: url("https://raw.githubusercontent.com/robin-dela/css-mask-animation/master/img/urban-sprite.png");
    -webkit-mask-size: 3000% 100%;
    mask-size: 3000% 100%;
    border: none;
    color: #fff;
    cursor: pointer;
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
    box-shadow: inset 0px 1px 20px 0px rgba(255, 255, 255, 0.07);
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.button-container-2 .animated-btn:hover {
    -webkit-animation: ani 0.7s steps(29) forwards;
    animation: ani 0.7s steps(29) forwards;
}

.button-container-2 .animated-btn:not(:hover) {
    -webkit-animation: ani2 0.7s steps(29) forwards;
    animation: ani2 0.7s steps(29) forwards;
}

.mas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.32px;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

@-webkit-keyframes ani {
    from {
        -webkit-mask-position: 0 0;
        mask-position: 0 0;
    }
    to {
        -webkit-mask-position: 100% 0;
        mask-position: 100% 0;
    }
}

@keyframes ani {
    from {
        -webkit-mask-position: 0 0;
        mask-position: 0 0;
    }
    to {
        -webkit-mask-position: 100% 0;
        mask-position: 100% 0;
    }
}

@-webkit-keyframes ani2 {
    from {
        -webkit-mask-position: 100% 0;
        mask-position: 100% 0;
    }
    to {
        -webkit-mask-position: 0 0;
        mask-position: 0 0;
    }
}

@keyframes ani2 {
    from {
        -webkit-mask-position: 100% 0;
        mask-position: 100% 0;
    }
    to {
        -webkit-mask-position: 0 0;
        mask-position: 0 0;
    }
}

.btn--secondary {
  background-color: #1f1f1f;
  color: var(--color-text-primary);
}

.btn--secondary:hover {
  background-color: #2f2f2f;
}

.section-title {
    font-size: 56px;
    font-weight: 400;
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
    text-align: center;
    margin: 0;
    background: linear-gradient(to bottom, #ebebeb 0%, #cccccc 40%, #666666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 19px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    text-align: center;
    max-width: 650px;
    margin: 20px auto 0;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 40px;
    }
    .section-subtitle {
        font-size: 16px;
    }
}

.site-header {
  position: relative;
  z-index: 1000;
  padding: 0 20px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.header-container {
  max-width: 1150px;
  margin: 0 auto;
  background-color: var(--color-surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  box-shadow: inset 0px 1px 20px 0px rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(2px);
  position: relative;
  z-index: 1001;
}

/* Center the navigation */
.header-container .main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Ensure the animated button in nav is aligned to the right */
.header-container .button-container-2 {
  margin-left: auto;
  margin-right: 0;
}

/* Vertically center the logo in the navigation bar */
.header-container .logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.header-container .logo img {
  vertical-align: middle;
  margin-top: 2px; /* adjust as needed for perfect centering */
}

.logo img {
  height: 40px;
  display: block;
}

.main-nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 10;
}

.main-nav a {
  color: var(--color-text-primary);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  transition: color 0.3s ease;
  cursor: pointer;
  display: inline-block;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.main-nav li {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .header-container {
    justify-content: space-between;
  }
}

/* Responsive Hamburger Menu */
.hamburger-menu {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 1010;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
}

.hamburger-menu span {
  width: 24px;
  height: 2px;
  background-color: var(--color-text-primary);
  display: block;
  transition: all 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.hamburger-menu.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #0f0f0f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-logo {
    width: 100px;
    margin-bottom: 40px;
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    margin: 15px 0;
    transition: color 0.3s;
}

.mobile-nav a:hover {
    color: #d4af37;
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .header-container > .button-container-2 {
    display: none;
  }
  .hamburger-menu {
    display: flex;
  }
  .header-container {
    justify-content: space-between;
  }
  .mobile-nav.open {
    display: flex;
  }
}

/* Legal Page Styles */
.legal-page {
  padding-top: 40px;
  padding-bottom: 80px;
}

.legal-hero {
  position: relative;
  text-align: center;
  padding: 80px 20px 120px;
  background-size: cover;
  background-position: center;
  margin-bottom: 40px;
}

.legal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0.9) 40%, rgba(0,0,0,1) 70%);
}

.legal-hero .container {
  position: relative;
  z-index: 1;
}

.legal-hero__title {
  font-size: 100px;
  font-weight: 400;
  font-family: 'Outfit', sans-serif !important;
  line-height: 1.15;
  letter-spacing: 0px !important;
  margin: 0 0 10px 0;
  background: linear-gradient(to bottom, #ebebeb 0%, #cccccc 40%, #666666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-hero__subtitle {
  font-size: 19px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 450px;
  margin: 0 auto;
}

.legal-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.legal-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  box-shadow: inset 0px 1px 20px 0px rgba(255, 255, 255, 0.07);
  min-height: 200px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.legal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(212, 175, 55, 0.08); /* subtle gold overlay */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  border-radius: 20px;
  z-index: 1;
}
.legal-card:hover::after {
  opacity: 1;
}
.legal-card {
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}
.legal-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0px 1px 20px 0px rgba(255, 255, 255, 0.1), 0 4px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--color-primary);
}
.legal-card > * {
  position: relative;
  z-index: 2;
}

.legal-card__icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.legal-card__title {
  font-size: 18px;
  font-weight: 400;
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  color: var(--color-text-primary);
}

.legal-card__description {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 1024px) {
  .legal-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .legal-hero__title {
    font-size: 60px;
  }
  .legal-card {
    min-height: 180px;
    padding: 30px 20px;
  }
}

/* Footer Styles */
.site-footer {
  padding: 100px 20px;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-border);
  box-shadow: 0px 1px 200px 0px rgba(255, 255, 255, 0.07);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 50px;
}

.footer-logo-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 2;
}

.copyright {
  color: var(--color-text-muted);
  font-size: 16px;
  margin: 0;
}

.footer-column {
  flex: 1;
}

.footer-heading {
  font-size: 19px;
  font-weight: 400;
  font-family: 'Outfit', sans-serif;
  margin: 0 0 20px 0;
}

.footer-heading a {
  color: inherit;
  text-decoration: none;
  font: inherit;
  font-weight: inherit;
  font-size: inherit;
}
.footer-heading a:hover, .footer-heading a:focus {
  color: var(--color-primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-text-primary);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer-logo-column {
    align-items: center;
  }
}

/* Space Grotesk Regular for specific texts on the legal page */
.legal-hero__subtitle {
  font-family: 'Space Grotesk', sans-serif;
}

.legal-card__title {
  font-family: 'Space Grotesk', sans-serif;
}

.legal-card__description {
  font-family: 'Space Grotesk', sans-serif;
}

.copyright {
  font-family: 'Space Grotesk', sans-serif;
}

.footer-links a {
  font-family: 'Space Grotesk', sans-serif;
} 

/* Page transition overlay */
.transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 9998;
  transition: opacity 0.5s ease;
}
.transition-overlay.active {
  opacity: 1;
  pointer-events: all;
} 