:root {
    --almost-black: #040E12;
    --primary: #0F232B;
    --yellow-accent: #F7D80F;
    --gayser: #D5E1E7;
    --silver: #C3C8CA;
    --blue: #4E7CD1;
    --blue-lagoon: #80E9F7;
}
/* ----------------------------------- */
/* RESET */
/* ----------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
html, body {
  width: 100vw;
  overflow-x: clip;
  /* font-family: 'Inter', sans-serif; */
  background: var(--primary); /* Match XPRTIA style */
  color: #d7dade;
  scroll-behavior: smooth;
}

img, video {
  max-width: 100%;
  display: block;
}

/* ----------------------------------- */
/* GLOBAL LAYOUT HELPERS */
/* ----------------------------------- */

main {
  width: 100%;
  min-height: 100vh;
  /* padding-top: 100px; space for the nav */
}
/* Success Message */
.success-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.4s ease-out;
    max-width: 400px;
    font-family: 'Neue Haas Display', sans-serif;
    font-size: 16px;
    font-weight: 500;
}

.success-message::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Auto fade out after 5 seconds */
.success-message.fade-out {
    animation: fadeOut 0.4s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .success-message {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
        font-size: 14px;
        padding: 14px 18px;
    }
    
    @keyframes slideInRight {
        from {
            transform: translateY(-100px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    @keyframes fadeOut {
        to {
            opacity: 0;
            transform: translateY(-100px);
        }
    }
}

/* Error Message */
.error-message {
    display: block;
    color: #ef4444;
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
    padding-left: 4px;
    animation: slideDown 0.3s ease-out;
    font-family: inherit;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input error state */
.input-wrap:has(+ .error-message) input,
.input-wrap:has(+ .error-message) textarea {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05);
}

/* Icon color change on error */
.input-wrap:has(+ .error-message) .icon svg path {
    stroke: #ef4444;
}

/* Focus state for error inputs */
.input-wrap:has(+ .error-message) input:focus,
.input-wrap:has(+ .error-message) textarea:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .error-message {
        font-size: 12px;
        margin-top: 6px;
    }
} 

/* A centered container used across sections */
.container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 100px 75px;
}

/* Utilities */
.hidden {
  /* display: none !important; */
}
.text-center {
  text-align: center;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* Buttons baseline */
button {
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
}

/* For debugging layout if needed */
section {
  z-index: 50;
  position: relative;
}
.section {
  padding: 80px 0;
}
.cta {
    font-family: 'Montserrat';
    background: #F1CF00;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 26px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background .2s ease;
    display: inline-block;

    /* angled corners */
    clip-path: polygon(
        10px 0%, 100% 0%, 100% calc(100% - 10px),
        calc(100% - 10px) 100%, 0% 100%, 0% 10px
    );
}

.cta:hover {
    background: #d4b700;
}

.mobile-only{
  display: none;
}
/* .stack-section {
    position: sticky;
    top: 0;
}
.stack-wrapper {
  position: relative;
}

.stack-section {
  position: sticky;
  top: -100px;
}

.s1 { z-index: 1; }
.s2 { z-index: 2; }
.s3 { z-index: 3; 
    top: -275px;}
.s4 { z-index: 4; }
.s10 { z-index: 10; } */

.stack-wrapper {
  position: relative;
}

.stack-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
/* Stacking overlay for dimming effect */
.stack-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    transition: opacity 0.1s linear;
}
/* z-index still ok if you want explicit order */
.s1 { z-index: 1; }
.s2 { z-index: 2; }
.s3 { z-index: 3; }
.s4 { z-index: 4; }
.s10 { z-index: 10; }



@media(max-width:1440px){
  .container{
    padding: 72px 50px;
    
  }
}
@media(max-width:1024px){
  .mobile-only{
    display: flex;
  }
}
@media(max-width:768px){
  
  .container{
    padding: 50px 13px;
  }
  .stack-section{
    padding-bottom: 50px;
  }
}

.section-top-background{
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}
@media(min-width:1920px){
  .section-top-background{
    width: 100vw;
  }
}
.stack-section-background{
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    width: 100%;
}
@media(max-width:768px) and (min-width:430px){
  
}