/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Instrument Sans', sans-serif;
    background-color: #00110F;
    color: #00110F;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* 1. Lock page to viewport and remove scrollbars */
html, body { height: 100%; overflow: hidden; }

.main-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: max(16px, 2vh) max(16px, env(safe-area-inset-left, 0px)) max(16px, 2vh) max(16px, env(safe-area-inset-right, 0px));
}

/* 2. Stretch inner content to use all available space */
.hero-section {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.frame-content,
.main-content,
.header-section {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.background-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 37.5%; /* 540px / 1440px */
    height: 100%;
    background-image: url('./assets/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(0, 17, 15, 0) 47.2%, 
        rgba(0, 17, 15, 0.5) 60.5%, 
        rgba(0, 17, 15, 1) 68%);
}

.background-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(4.5px);
}

.background-yellow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 17, 15, 0.9);
}

.loading-content {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 212px;
    height: 170px;
    justify-content: center;
}

.logo-vector {
    width: 210px;
    height: 120px;
}

.logo-text {
    width: 211.05px;
    height: 30.04px;
}

/* Main Page Styles */
.main-page {
    min-height: 100vh;
    width: 100vw;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 56px 32px;
    gap: 16px;
}

.main-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.main-background .background-yellow {
    background: rgba(254, 254, 49, 0.9);
}

.hero-section {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1376px;
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 16px;
}

.frame-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0 0;
    width: 100%;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 2px 0;
    width: 100%;
}

.header-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.location-section {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
}

.location-text {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    font-size: 48px;
    line-height: 1.5em;
    letter-spacing: 0.04em;
    color: #00110F;
    margin: 0;
}

.divider-line {
    width: 100%;
    height: 1px;
    background-color: #00110F;
}

.content-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
    align-items: flex-start;
}

.description {
    flex: 1;
    min-width: 300px;
}

.launch-text {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.5em;
    letter-spacing: 0.04em;
    color: #00110F;
    margin: 0 0 8px 0;
}

.about-text {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.5em;
    letter-spacing: 0.04em;
    color: #00110F;
    margin: 0;
}

.cta-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 24px 16px;
    width: 640px;
    height: 108px;
    background: linear-gradient(90deg, 
        #FF5093 7.4%, 
        #FFBE18 52.4%, 
        #FFFFFF 100%);
    border-radius: 24px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 32px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta-button:link,
.cta-button:visited {
  background: linear-gradient(90deg,
    #FF5093 7.4%,
    #FFBE18 52.4%,
    #FFFFFF 100%);
  color: #00110F !important;   /* always black */
}

.cta-button span {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 500;
    font-size: 36px;
    line-height: 1.67em;
    color: #00110F;
    text-align: center;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px 0 0;
    width: 100%;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: #00110F;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.copyright {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.25em;
    letter-spacing: 0.04em;
    color: #00110F;
    margin: 0;
}

.rights {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.25em;
    letter-spacing: 0.04em;
    color: #00110F;
    margin: 0;
}

/* Responsive Design */

/* Tablet Styles */
@media (max-width: 1024px) {
    .main-page {
        padding: 40px 24px;
        gap: 48px;
    }
    
    .location-text {
        font-size: 36px;
    }
    
    .launch-text,
    .about-text {
        font-size: 24px;
    }
    
    .cta-button {
        width: 100%;
        max-width: 500px;
        height: 80px;
        padding: 16px 12px;
    }
    
    .cta-button span {
        font-size: 28px;
    }
    
    .content-section {
        flex-direction: column;
        gap: 32px;
    }
    
    .description {
        min-width: auto;
    }
    
    .background-image {
        width: 50%;
    }
    
    .logo-vector {
        width: 168px;
        height: 96px;
    }
    
    .logo-container {
        width: 170px;
        height: 136px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .main-page {
        padding: 24px 16px;
        gap: 32px;
    }
    
    .frame-content {
        gap: 64px;
    }
    
    .location-text {
        font-size: 28px;
        line-height: 1.4em;
    }
    
    .launch-text,
    .about-text {
        font-size: 20px;
        line-height: 1.4em;
    }
    
    .cta-button {
        width: 100%;
        height: 64px;
        padding: 12px 8px;
        border-radius: 16px;
    }
    
    .cta-button span {
        font-size: 20px;
    }
    
    .content-section {
        gap: 24px;
    }
    
    .location-section {
        gap: 32px;
    }
    
    .header-section {
        gap: 16px;
    }
    
    .background-image {
        width: 60%;
    }
    
    .logo-vector {
        width: 126px;
        height: 72px;
    }
    
    .logo-container {
        width: 128px;
        height: 102px;
        gap: 15px;
    }
    
    .logo-text {
        width: 126px;
        height: 18px;
    }
    
    .logo-text svg {
        width: 126px;
        height: 18px;
    }
    
    .logo-text text {
        font-size: 14px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .main-page {
        padding: 16px 12px;
    }
    
    .location-text {
        font-size: 24px;
    }
    
    .launch-text,
    .about-text {
        font-size: 18px;
    }
    
    .cta-button span {
        font-size: 18px;
    }
    
    .background-image {
        width: 70%;
    }
    
    .logo-vector {
        width: 105px;
        height: 60px;
    }
    
    .logo-container {
        width: 107px;
        height: 85px;
    }
    
    .logo-text {
        width: 105px;
        height: 15px;
    }
    
    .logo-text svg {
        width: 105px;
        height: 15px;
    }
    
    .logo-text text {
        font-size: 12px;
    }
}

/* Animation for loading screen */
.loading-screen {
    animation: fadeIn 0.5s ease-in;
}

.main-page {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Logo animation */
.logo-container {
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}
/* ==========  A11Y HELPERS  ========== */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Ensure focus outline is visible on all interactive elements */
button:focus-visible,
lottie-player:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- exact overlay box, left-aligned ---- */
.logo-wrapper {
  position: relative;
  width: 170px;   /* original width  */
  height: 212px;  /* original height */
  align-self: flex-start;   /* keep left in flex column */
}

.logo-wrapper img,
.logo-wrapper lottie-player {
  position: absolute;
  inset: 0;
  width: 88%;
  height: 100%;
  transition: opacity .3s;
}

.logo-wrapper lottie-player {
    transform: translateX(-6%); /* pull back to the left (tweak as needed) */
}

/* ---- hover / focus swap ---- */
.logo-static  { opacity: 1; }
.logo-lottie  { opacity: 0; pointer-events: none; }

.logo-wrapper:hover .logo-static,
.logo-wrapper:focus-within .logo-static { opacity: 0; }

.logo-wrapper:hover .logo-lottie,
.logo-wrapper:focus-within .logo-lottie {
  opacity: 1;
  pointer-events: auto;
}