@font-face {
    font-family: 'PPEiko';
    src: url('fonts/PPEiko-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PPEiko';
    src: url('fonts/PPEiko-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'PPPangramSansRounded';
    src: url('fonts/PPPangramSansRounded-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Reset default margins and ensure full viewport height */
body {
    margin: 0;
    min-height: 100vh;
    background-color: #000000;
    box-sizing: border-box;
    font-family: 'PPPangramSansRounded', sans-serif;
    font-weight: 500;
    font-size: 16px;
}

.logo-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #000000;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    z-index: 0;
    background-color: #000000;
}

.logo {
    position: relative;
    z-index: 1;
    max-width: 90%;
    height: auto;
}

.tagline-section {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
    justify-content: flex-end;
}

.tagline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    background-image: url('images/crossing.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    margin-top: 40vh;
    padding-bottom: 10vh;
}

.text-container:first-child {
    height: 50vh;
    justify-content: center;
}

.text-container:last-child {
    height: 50vh;
    justify-content: center;
}

.tagline {
    font-weight: 500;
    font-size: clamp(2rem, 5vh, 6rem);
    text-align: center;
    color: #ffffff;
    line-height: 1.2;
    max-width: 80vmax;
    width: 100%;
    box-sizing: border-box;
    hyphens: auto;
    margin: 0;
}

.journey-text {
    font-family: 'PPEiko', sans-serif;
    font-weight: 300;
    font-size: clamp(2rem, 2vw, 3rem);
    text-align: center;
    color: #8AB3FF;
    line-height: 1.4;
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.journey-text .italic {
    font-style: italic;
}

.journey-text .bold {
    font-family: 'PPPangramSansRounded', sans-serif;
    font-weight: 500;
}

.journey-text a {
    color: #8AB3FF;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

.journey-text a:hover {
    opacity: 0.8;
}

.tagline .italic {
    font-family: 'PPEiko', sans-serif;
    font-style: italic;
    font-weight: 300;
}

.tagline .bold {
    font-family: 'PPPangramSansRounded', sans-serif;
    font-weight: 500;
}

.tagline .normal {
    font-family: 'PPEiko', sans-serif;
    font-weight: 300;
}

.image-section {
    width: 100%;
    min-height: 100vh;
    position: relative;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.journey-container {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 1.5rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 68vh;
    position: relative;
    background-image: url('images/unsplash.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.overlapping-logo {
    position: absolute;
    width: clamp(300px, 80vmin, 750px);
    height: auto;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%) translateY(50%);
    z-index: 1;
    will-change: transform;
    opacity: 0;
    transition: transform 1s ease-out, opacity 1s ease-out;
}

.overlapping-logo.visible {
    transform: translate(-50%, -50%) translateY(-25%);
    opacity: 1;
}

/* Remove the floating animation */
@media (prefers-reduced-motion: no-preference) {
    .overlapping-logo {
        animation: none;
    }
}

@keyframes float {
    0% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-10px);
    }

    100% {
        transform: translate(-50%, -50%) translateY(0);
    }
}

.site-footer {
    width: 100%;
    padding: 1rem 1.5rem;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.7rem;
    line-height: 1.3;
    box-sizing: border-box;
    backdrop-filter: grayscale(30%) blur(2px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-address {
    text-align: left;
}

.footer-copyright {
    text-align: right;
}

@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .footer-address {
        text-align: center;
    }

    .footer-copyright {
        text-align: center;
    }
}

.header-buttons {
    display: flex;
    gap: 1rem;
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 100;
}

.demo-button {
    padding: 0.75rem 1.5rem 0.5rem;
    background-color: #8AB3FF;
    color: #ffffff;
    text-decoration: none;
    font-family: 'PPPangramSansRounded', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1;
    border-radius: 50px;
    transition: all 0.2s ease;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.demo-button:hover {
    background-color: #ffd700;
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    .header-buttons {
        top: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }

    .demo-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

.contact-container {
    position: relative;
    text-align: center;
    z-index: 2;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-text {
    font-weight: 500;
    font-size: 1.25rem;
    color: #ffffff;
    margin: 0;
}

.contact-link {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #8AB3FF;
    color: #ffffff;
    text-decoration: none;
    font-family: 'PPPangramSansRounded', sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1;
    border-radius: 50px;
    transition: all 0.2s ease;
    max-width: 200px;
    margin: 0 auto;
}

.contact-link:hover {
    background-color: #ffd700;
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    .contact-text {
        font-size: 1rem;
    }

    .contact-link {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

.content-section {
    width: 100%;
    height: 100vh;
    background-image: url('images/unsplash.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-container {
    max-width: 80vw;
    width: 90%;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 8px;
}

.content-text {
    font-size: clamp(0.9rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: #ffffff;
    margin: 0;
    text-align: left;
    text-indent: 2em;
    font-family: 'PPPangramSansRounded', sans-serif;
    font-weight: 500;
}

.content-text .italic {
    font-family: 'PPEiko', sans-serif;
    font-style: italic;
    font-weight: 300;
}

.content-text .normal {
    font-family: 'PPEiko', sans-serif;
    font-weight: 300;
}

@media screen and (max-width: 768px) {
    .content-container {
        width: 95%;
        padding: 1.5rem;
    }
}

.image-text-section {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: visible;
    scroll-snap-align: start;
}

.image-container {
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    overflow: visible;
    flex: 1;
    margin-bottom: -10%;
}

.section-image {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    object-fit: cover;
    display: block;
    aspect-ratio: 3/2;
    object-position: bottom;
    transform: translateY(-10vh);
}

.section-text {
    width: 100%;
    text-align: center;
    z-index: 2;
}

.section-text h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
    font-weight: 500;
}

.section-text h2 .italic {
    font-family: 'PPEiko', sans-serif;
    font-style: italic;
    font-weight: 300;
}

.section-text h2 .normal {
    font-family: 'PPEiko', sans-serif;
    font-weight: 300;
}

@media screen and (max-width: 768px) {
    .image-container {
        width: 95%;
    }

    .section-text {
        padding: 0;
    }
}

.two-column-section {
    width: 100%;
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    gap: 4rem;
    box-sizing: border-box;
    background-color: #000000;
    color: #ffffff;
    justify-content: flex-start;
}

.column {
    flex: 1;
    max-width: 600px;
}

.column p:first-of-type {
    text-indent: 2em;
}

.column p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    font-family: 'PPEiko', sans-serif;
    font-weight: 300;
}

.column ul {
    list-style-type: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.column li {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.6;
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-family: 'PPEiko', sans-serif;
    font-weight: 300;
}

.column li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #8AB3FF;
}

@media screen and (max-width: 768px) {
    .two-column-section {
        flex-direction: column;
        gap: 1rem;
        padding: 3rem 1.5rem;
    }

    .column {
        max-width: 100%;
        flex: none;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1a1a1a;
    color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-sizing: border-box;
    position: relative;
}

.modal-content a {
    color: #adcff4;
}

.modal-content.special {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
}

.modal-content.special::-webkit-scrollbar {
    width: 8px;
}

.modal-content.special::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-content.special::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.modal-content.special::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-content h2 {
    margin: 0 0 1.5rem 0;
    font-family: 'PPPangramSansRounded', sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
}

.modal-content input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-family: 'PPPangramSansRounded', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
}

.modal-buttons {
    display: flex;
    margin-top: 1rem;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-buttons button {
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-family: 'PPPangramSansRounded', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-buttons button:first-child {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal-buttons button:last-child {
    background: #8AB3FF;
    color: #ffffff;
}

.modal-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-buttons button:last-child:hover {
    background: #ffd700;
}

.modal-buttons button.disabled {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.modal-buttons button.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.cta-button {
    background: #ffd700 !important;
    color: #000000 !important;
}

.cta-button:hover {
    background: #ffed4a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cta-button + button {
    display: none;
}

.cta-button.hidden + button {
    display: unset;
}

.demo-content {
    padding: 0;
    width: 90vw;
    max-width: 1200px;
    height: 90vh;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: filter 0.3s ease;
}

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

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.modal-header {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1000;
}

.close-button {
    position: static;
    transform: none;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.close-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.countdown {
    position: static;
    transform: none;
    background: rgba(44, 44, 88, 0.7);
    color: #ffffff;
    padding: 8px;
    border-radius: 4px;
    font-family: 'PPPangramSansRounded', sans-serif;
    font-size: 0.67rem;
    display: none;
    white-space: nowrap;
}

.countdown.visible {
    display: block;
}

@media screen and (max-width: 768px) {
    .demo-content {
        width: 95vw;
        height: 95vh;
    }
}

.contact-form-container {
    width: 90%;
    max-width: 600px;
    margin: 1.5rem auto;
    padding: 3vh 1rem 1vh;
    z-index: 2;
    position: relative;
}

.form-group {
    margin-bottom: 1.2vh;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-family: 'PPPangramSansRounded', sans-serif;
    font-size: 0.875rem;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 80px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.submit-button {
    display: block;
    width: 100%;
    padding: 0.6rem;
    background: #8AB3FF;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-family: 'PPPangramSansRounded', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 768px) {
    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.keys-container {
    margin: 20px 0;
}

.key-group {
    margin-bottom: 30px;
}

.key-group h3 {
    margin-bottom: 15px;
    color: #333;
}

.key-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.key-item {
    padding: 10px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    word-break: break-all;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    padding-right: 30px;
}

.key-item::after {
    content: '📋';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.key-item:hover {
    background-color: #e9e9e9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.key-item:hover::after {
    opacity: 1;
}

.key-item:active {
    background-color: #ddd;
    transform: translateY(0);
    box-shadow: none;
}

.expiry-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(255, 0, 0, 0.7);
    color: white;
    padding: 20px 40px;
    font-size: 2rem;
    font-weight: bold;
    border-radius: 8px;
    z-index: 1001;
    display: none;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}

.expiry-banner.visible {
    display: block;
    animation: fadeIn 5s ease-out;
}

.expiry-banner.visible ~ .iframe-container {
    filter: grayscale(100%) blur(1px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-15deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(-15deg) scale(1);
    }
}

.error-message {
    color: #ff4444;
    font-size: 14px;
    margin-top: 8px;
    min-height: 20px;
}

.error-message:not(:empty) + .cta-text {
    color: #ebf4ac;
}

.terms-checkbox {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terms-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.terms-checkbox label {
    font-size: 14px;
    color: #ccc;
    cursor: pointer;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}
