:root {
    --hc-red: #ec3750;
    --hc-orange: #ff8c37;
    --hc-yellow: #f1c40f;
    --hc-green: #33d6a6;
    --hc-cyan: #5bc0de;
    --hc-blue: #338eda;
    --hc-purple: #a633d6;
    --hc-darker: #121217;
    --hc-dark: #17171d;
    --hc-darkless: #252429;
    --hc-muted: #8492a6;
    --hc-smoke: #e0e6ed;
    --hc-snow: #f9fafc;
    --hc-white: #ffffff;
    --hc-text: #1f2d3d;
    --hc-font-body: "Phantom Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --hc-font-heading: "Phantom Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --hc-font-monospace: "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: var(--hc-darker);
    font-family: var(--hc-font-body);
    color: var(--hc-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar,
html::-webkit-scrollbar {
    display: none;
}

body.video-active {
    overflow: hidden;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.video-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-overlay video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-controls {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    gap: 12px;
}

.overlay-btn {
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.overlay-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.image-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.image-container img {
    display: block;
    width: 100%;
    height: auto;
}

.clouds-layer.marquee {
    position: relative;
    width: 100%;
    height: 45vh;
    display: flex;
    overflow-x: clip;
    overflow-y: visible;
    z-index: 4;
    pointer-events: none;
    align-items: center;
    margin-top: 20vh;
}

.marquee-content {
    display: flex;
    gap: 0;
    padding-right: 0;
    animation: scrollMarquee 45s linear infinite;
    align-items: center;
}

.cloud-wrapper {
    position: relative;
    flex-shrink: 0;
    animation: gentleBob 6s infinite alternate ease-in-out;
    opacity: 1;
    margin-left: -3vw;
    margin-right: -3vw;
}

.cloud-bg {
    width: 100%;
    height: auto;
    display: block;
}

.prize {
    position: absolute;
    width: 35%;
    height: auto;
    bottom: 25%;
    z-index: 5;
    filter: drop-shadow(0px 8px 12px rgba(0, 0, 0, 0.4));
}

.p-left {
    left: 12%;
}

.p-right {
    right: 12%;
}

.p-center {
    left: 50%;
    transform: translateX(-50%);
    width: 45%;
}

.air1 {
    width: 520px;
    top: -120px;
    animation-duration: 5s;
}

.air2 {
    width: 480px;
    top: 100px;
    animation-duration: 7s;
    animation-direction: alternate-reverse;
}

.land1 {
    width: 460px;
    top: -20px;
    animation-duration: 4s;
}

.land2 {
    width: 550px;
    top: 150px;
    animation-duration: 8s;
}

.water1 {
    width: 530px;
    top: -100px;
    animation-duration: 6s;
    animation-direction: alternate-reverse;
}

.water2 {
    width: 450px;
    top: -20px;
    animation-duration: 5.5s;
}

.space1 {
    width: 500px;
    top: -160px;
    animation-duration: 6.5s;
}

.space2 {
    width: 490px;
    top: 40px;
    animation-duration: 9s;
    animation-direction: alternate-reverse;
}

.water2-prize {
    bottom: 50%;
}

.space4-prize {
    width: 22%;
    bottom: 50%;
    right: 25%;
}

.air3-prize {
    width: 60%;
}

.space3-prize {
    bottom: 35%;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes gentleBob {
    0% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(15px);
    }
}

.logo-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 10;
    padding-bottom: 25vh;
}

.logo {
    width: 90vw;
    max-width: 1200px;
    max-height: 95vh;
    height: auto;
    object-fit: contain;
    margin-top: -140px;
}

.flag {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
    max-width: 120px;
    height: auto;
}

@font-face {
    font-family: 'Sand Beach';
    src: url('sandscript_btn.ttf') format('truetype'),
        url('SandBeach.ttf') format('truetype'),
        url('SandBeach.otf') format('opentype');
}

.hero-text {
    color: var(--hc-white);
    font-family: 'Sand Beach', 'Pacifico', 'Satisfy', cursive;
    font-weight: 700;
    font-size: clamp(4rem, 8vw, 9rem);
    margin: -140px 0 0 0;
    text-align: center;
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.7);
    letter-spacing: normal;
}

.sub-text {
    color: var(--hc-white);
    font-family: var(--hc-font-heading);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.5vw, 3rem);
    line-height: 1.25;
    letter-spacing: 0.009em;
    margin: 15px 0 0 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.story {
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    padding-top: 100vh;
    padding-bottom: 120px;
}

.story-section {
    min-height: 20vh;
    display: flex;
    align-items: center;
    padding: 40px 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.map-arrow {
    position: absolute;
    top: 50%;
    height: 100%;
    width: 30vw;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

.map-arrow-right {
    left: 45vw;
}

.map-arrow-left {
    right: 45vw;
}

.map-arrow path {
    fill: none;
    stroke: var(--hc-muted);
    stroke-width: 4px;
    stroke-dasharray: 12 12;
    stroke-linecap: round;
}

.map-arrow polygon {
    fill: var(--hc-muted);
}

.s-left {
    justify-content: flex-start;
}

.s-right {
    justify-content: flex-end;
}

.story-text {
    max-width: 600px;
    background: transparent;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.story-text--wide {
    max-width: 800px;
}

.s-eyebrow {
    color: var(--hc-red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.s-heading {
    color: var(--hc-white);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 1.2rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.6);
}

.s-body {
    color: var(--hc-smoke);
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.7);
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.step-flow {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.step-flow li {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.step-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--hc-red);
    line-height: 0.8;
    text-shadow: 0 4px 12px rgba(236, 55, 80, 0.4);
    opacity: 0.9;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.mode-card {
    background: rgba(18, 18, 23, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.mode-card.air:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--hc-blue);
    box-shadow: 0 15px 40px rgba(51, 142, 218, 0.3);
}

.mode-card.air:hover::before {
    background: radial-gradient(circle at top, rgba(51, 142, 218, 0.15) 0%, transparent 70%);
    opacity: 1;
}

.mode-card.water:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--hc-cyan);
    box-shadow: 0 15px 40px rgba(91, 192, 222, 0.3);
}

.mode-card.water:hover::before {
    background: radial-gradient(circle at top, rgba(91, 192, 222, 0.15) 0%, transparent 70%);
    opacity: 1;
}

.mode-card.land:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--hc-orange);
    box-shadow: 0 15px 40px rgba(255, 140, 55, 0.3);
}

.mode-card.land:hover::before {
    background: radial-gradient(circle at top, rgba(255, 140, 55, 0.15) 0%, transparent 70%);
    opacity: 1;
}

.mode-card.frontier:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--hc-purple);
    box-shadow: 0 15px 40px rgba(166, 51, 214, 0.3);
}

.mode-card.frontier:hover::before {
    background: radial-gradient(circle at top, rgba(166, 51, 214, 0.15) 0%, transparent 70%);
    opacity: 1;
}

.mode-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.mode-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--hc-white);
}

.mode-desc {
    color: var(--hc-smoke);
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

.guild-desc {
    color: var(--hc-smoke);
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

.build-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
    columns: 2;
    column-gap: 40px;
}

.build-list li {
    font-size: 1.5rem;
    color: var(--hc-smoke);
    margin-bottom: 1rem;
    font-weight: 700;
}

.build-list li::before {
    content: "•";
    color: var(--hc-red);
    margin-right: 10px;
}

.credit-loop {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hc-orange);
}

.credit-arrow {
    color: var(--hc-muted);
    font-size: 1.2rem;
}

.expedition-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 2rem;
}

.expedition-card {
    display: flex;
    align-items: center;
    background: var(--hc-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    gap: 20px;
}

.exp-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.exp-thumb--air {
    background: rgba(51, 142, 218, 0.2);
}

.exp-thumb--water {
    background: rgba(91, 192, 222, 0.2);
}

.exp-thumb--frontier {
    background: rgba(166, 51, 214, 0.2);
}

.exp-info {
    flex: 1;
}

.exp-guild {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.exp-guild.air {
    color: var(--hc-blue);
}

.exp-guild.water {
    color: var(--hc-cyan);
}

.exp-guild.frontier {
    color: var(--hc-purple);
}

.exp-title {
    margin: 5px 0;
    font-size: 1.3rem;
}

.exp-builder {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: var(--hc-muted);
}

.exp-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.exp-bar {
    height: 100%;
    background: var(--hc-green);
}

.exp-pct {
    font-size: 0.8rem;
    color: var(--hc-smoke);
}

.faq-list {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-q {
    font-size: 1.25rem;
    font-weight: 700;
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
    color: var(--hc-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-q::after {
    content: "+";
    color: var(--hc-muted);
}

.faq-item[open] .faq-q::after {
    content: "−";
}

.faq-a {
    padding-bottom: 20px;
    margin: 0;
    color: var(--hc-smoke);
    font-size: 1.1rem;
    line-height: 1.5;
}

.trek-footer {
    text-align: center;
    padding: 80px 20px;
    background: transparent;
    position: absolute;
    bottom: 5%;
    left: 0;
    right: 0;
}

.footer-heading {
    font-size: clamp(3rem, 6vw, 5rem);
    margin: 0 0 10px 0;
}

.footer-sub {
    font-size: 1.2rem;
    color: var(--hc-smoke);
    margin: 0 0 40px 0;
}

.footer-btn {
    display: inline-block;
    background: var(--hc-red);
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 30px;
    transition: transform 0.2s, background 0.2s;
}

.footer-btn:hover {
    transform: scale(1.05);
    background: #ff4760;
}

/* Attempt to hide Fillout branding */
a[href*="fillout.com"]:not([data-fillout-id]), 
[class*="fillout-branding"], 
[class*="fillout-watermark"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Hero section action buttons - matching shapes */
.hero-btn-container {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    pointer-events: auto;
}

.hero-btn-container div[data-fillout-id] button,
.hero-btn-container .hero-rsvp-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    padding: 0 24px !important;
    border-radius: 6px !important;
    font-family: var(--hc-font-heading), sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    border: none !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.hero-rsvp-btn {
    background: var(--hc-red);
    color: white;
    transition: transform 0.2s, background 0.2s;
}

.hero-rsvp-btn:hover {
    transform: scale(1.05);
    background: #ff4760;
}