:root {
    --color-light: #FFFDE9;
    --color-dark: #373737;
    --color-dark-2: #18181a;
    --color-blue: #4147AE;
    --color-blue-2: #9DD0FF;
    --color-green: #20D569;

    --color-light-transparent: #FFFDE900;
    --color-light-full: #FFFDE9FF;
    --color-dark-2-transparent: #21212100;
    --color-dark-2-full: #212121FF;
    --color-blue-transparent: #4147AE00;
    --color-blue-full: #4147AEFF;

    --pixel-border-color-light: #F0EEDD;
    --pixel-border-color-extra-light: rgba(255, 253, 233, 0.15);
    --pixel-border-color-dark: #373737;
    --pixel-border-color-blue: #565AA3;
    --pixel-border-size: 1px;
    --pixel-size: calc(10px + var(--pixel-border-size));

    --padding-big : 96px;
    --padding-medium : 48px;
    --padding-small : 24px;
    --padding-extra-small : 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-variant-ligatures: none;
}

html, body {
    width: 100%;
    box-sizing: border-box;
    background-color: var(--color-dark-2);
}

body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    min-height: 100vh;
    font-family: "Hanken Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 150%;
    margin: 0;
}

.container {
    max-width: 920px;
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.container[class*=style-grid-] {
    max-width: 1024px;
    padding-left: 4px;
    padding-right: 4px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--padding-small);
    padding-bottom: var(--padding-small);
}

header .logo,
#mm .logo {
    display: inline-block;
    height: 36px;
    user-select: none;
}

a {
    color: inherit;
    text-decoration: none;
}

.header-wrapper {
    padding-top: var(--padding-small);
    padding-bottom: var(--padding-medium);
    position: relative;
    overflow: hidden;
}

header #mm-open {
    display: block;
    cursor: pointer;
}

header #mm-open:hover {
    opacity: 0.8;
}

nav.top-nav {
    display: none;
}

nav.top-nav a {
    white-space: nowrap;
}

nav.top-nav .btn {
    white-space: nowrap;
    min-width: max-content;
}

/* Ensure the logo doesn't shrink */
header .logo {
    flex-shrink: 0;
    margin-right: 20px;
}

main section {
    position: relative;
    padding-top: var(--padding-medium);
    padding-bottom: var(--padding-medium);
    overflow: hidden;
}

body img {
    max-width: 100%;
}

#mm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mm-wrapper {
    position: relative;
    z-index: 50;
}

#mm .container {
    display: flex;
    flex-direction: column;
    row-gap: 46px;
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: var(--color-dark-2);
    min-height: 100vh;
}

.style-light #mm .container {
    background-color: var(--color-dark-2);
    color: var(--color-light);
}

#mm .mm-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

#mm-close {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

#mm-close:hover {
    opacity: 0.8;
}

.mm-nav-wrapper,
.mm-nav-top {
    display: flex;
    flex-direction: column;
    row-gap: 16px;
}

.mm-nav-wrapper {
    row-gap: 48px;
}

.mm-nav-top {
    font-size: 20px;
}

.mm-nav-top a {
    display: block;
    padding: 8px 16px;
    margin: 0 -16px;
    transition: background-color 0.3s ease;
}

.mm-nav-top a:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.style-light {
    background-color: var(--color-light);
    color: var(--color-dark-2);
}

.style-dark {
    background-color: var(--color-dark-2);
    color: var(--color-light);
}

.style-blue {
    background-color: var(--color-dark-2);
    color: var(--color-light);
}

.style-grid-invisible {
    position: relative;
    background-image: linear-gradient(transparent var(--pixel-border-size), transparent 1px), linear-gradient(90deg, transparent var(--pixel-border-size), transparent var(--pixel-border-size));
    background-size: var(--pixel-size) var(--pixel-size);
    max-width: round(down, 925px, var(--pixel-size));
    width: round(down, 90%, var(--pixel-size));
    border-right: transparent var(--pixel-border-size) solid;
    border-bottom: transparent var(--pixel-border-size) solid;
}

.heading-wrapper {
    max-width: 730px;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: var(--padding-medium);
    padding-bottom: var(--padding-medium);
    margin: 0 auto;
}

.heading-wrapper.small {
    max-width: 676px;
}

.relative {
    position: relative;
}

/* Paddings */
.pt-0 {
    padding-top: 0 !important;
    background-color: var(--color-dark-2) !important;
}

.pt-small {
    padding-top: var(--padding-small) !important;
    background-color: var(--color-dark-2) !important;
}

.pb-0 {
    padding-bottom: 0 !important;
    background-color: var(--color-dark-2) !important;
}

.pb-small {
    padding-bottom: var(--padding-small) !important;
    background-color: var(--color-dark-2) !important;
}

.pb-medium {
    padding-bottom: var(--padding-medium) !important;
    background-color: var(--color-dark-2) !important;
}

.pb-big {
    padding-bottom: var(--padding-medium) !important;
    background-color: var(--color-dark-2) !important;
}

.pb-9 {
    padding-bottom: var(--padding-big) !important;
    background-color: var(--color-dark-2) !important;
}

/* Margins */
.mb-medium {
    margin-bottom: var(--padding-medium) !important;
}

/* Texts */
.text-big {
    font-size: 16px;
    line-height: 125%;
}

h1, .h1 {
    font-family: "Moderno-condensed", sans-serif;
    line-height: 100%;
    font-size: 32px;
    font-weight: 400;
}

h2, .h2 {
    font-family: "Moderno-condensed", sans-serif;
    line-height: 125%;
    font-size: 40px;
    font-weight: 400;
    text-wrap: balance;
}

h3, .h3 {
    font-family: "Moderno-condensed", sans-serif;
    line-height: 100%;
    font-size: 32px;
    font-weight: 400;
}

/* Buttons */
.btn {
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    padding: 10px 24px;
    border-radius: 100px;
    overflow: hidden;
    display: block;
    width: fit-content;
    text-align: center;
    cursor: pointer;
    user-select: none;
    appearance: none;
    border: 0;
    font-family: "hanken grotesk", sans-serif;
}

.btn.dark {
    color: var(--color-dark);
}

.btn-primary {
    background-color: var(--color-light);
}

.btn-secondary {
    background-color: var(--color-dark-2);
}

.btn-primary:hover,
.btn-secondary:hover {
    opacity: 0.8;
}

/* Utility */
.flex-basis-100 {
    flex-basis: 100%;
}

.background-color-212121 {
    background-color: #18181a;
}

.position-relative-z-index-1 {
    position: relative;
    z-index: 1;
}

.padding-20px {
    padding: 20px;
}

.display-none-visibility-hidden {
    display: none; 
    visibility: hidden;
}

.height-100vh {
    height: 100vh;
}

.height-60vh {
    height: 60vh;
}

img {
    filter: none; 
}

/* Card base styles - desktop default */
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding-bottom: var(--padding-medium);
}

.cards.full-width {
    grid-template-columns: 1fr;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.cards.full-width .card {
    flex-direction: row;
    text-align: left;
    padding: 0px 64px 0px 64px;
    gap: 48px;
    min-height: 560px;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto 80px auto;
}

.cards.full-width .card .feature-image {
    width: 70%;
    max-width: none;
    height: auto;
    max-height: 520px;
    min-height: 520px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
    flex-shrink: 0;
}

.cards.full-width .content-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    min-width: 320px;
    align-items: flex-start;
    justify-content: center;
    padding-right: 24px;
    text-align: left;
}

.cards.full-width .card:nth-child(even) {
    flex-direction: row-reverse;
}

.cards.full-width .card:nth-child(even) .content-block {
    padding-right: 0;
    padding-left: 24px;
}

.cards.full-width .card h3 {
    font-size: 42px;
}

.cards .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    row-gap: 32px;
    padding: 32px 24px;
    overflow: hidden;
    border-radius: 12px;
    height: 100%;
    min-height: 320px;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.6s ease-out;
}

.cards .card:nth-child(2) {
    transform: translateX(100px);
}

.cards .card.slide-in {
    opacity: 1;
    transform: translateX(0);
}

.cards .feature-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    min-height: 340px;
    border-radius: 12px;
    object-fit: contain;
}

.cards .content-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

.cards .card h3 {
    font-size: 36px;
}

.cards .card:hover {
    background-color: var(--color-dark-2);
}

/* Homepage hero - force it to behave like an even card (text left, video right) */
.homepage-hero {
    margin-top: 2rem;
}

/* Force homepage hero to use reverse layout like even cards */
.cards.full-width .card.homepage-hero {
    flex-direction: row-reverse !important;
}

.cards.full-width .card.homepage-hero .content-block {
    padding-right: 0 !important;
    padding-left: 24px !important;
}

.homepage-hero .feature-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.homepage-hero .content-block {
    padding: 20px;
    position: relative;
    z-index: 1;
    background: transparent;
    padding: 0;
    width: 60%;
    max-width: none;
}

.homepage-hero .content-block h1 {
    margin-bottom: 1rem;
}

.homepage-hero .content-block p {
    margin-bottom: 1.5rem;
}

.homepage-hero .background-image.feature-image {
    position: absolute;
    top: -250px;
    left: 30%;
    width: 70%;
    height: 180%;
    object-fit: contain;
    z-index: 0;
    opacity: 1;
    max-height: none;
    margin: auto;
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.3s ease;
}

.homepage-hero .background-image.feature-image:hover {
    transform: perspective(1000px) rotateY(-7.5deg);
}

.homepage-hero .btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    width: auto;
    justify-content: flex-start;
    align-items: baseline;
}

.background-image {
    position: absolute;
    top: 0;
    left: 40%;
    width: 50%;
    height: 150%;
    object-fit: contain;
    z-index: 0;
    opacity: 1;
    max-height: 100vh;
    margin: auto;
}

.homepage header {
    backdrop-filter: blur(8px);
}

.header-wrapper {
    position: relative;
    overflow: hidden;
}

.header-wrapper .container {
    position: relative;
    z-index: 1;
}

/* Add 3D slanted effect for feature images */
.cards.full-width .card .feature-image {
    transform: perspective(1000px) rotateY(10deg);
    transition: transform 0.3s ease;
}

.cards.full-width .card:nth-child(2) .feature-image {
    transform: perspective(1000px) rotateY(-10deg);
}

.cards.full-width .card:nth-child(3) .feature-image {
    transform: perspective(1000px) rotateY(10deg);
}

.cards.full-width .card .feature-image:hover {
    transform: perspective(1000px) rotateY(7.5deg);
}

.cards.full-width .card:nth-child(2) .feature-image:hover {
    transform: perspective(1000px) rotateY(-7.5deg);
}

.cards.full-width .card:nth-child(3) .feature-image:hover {
    transform: perspective(1000px) rotateY(7.5deg);
}

.homepage-hero .background-image.feature-image {
    width: 80%;
    left: 25%;
}

.background-image.feature-image {
    position: absolute;
    top: 0;
    left: 40%;
    width: 50%;
    height: 150%;
    object-fit: contain;
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.3s ease;
    z-index: 0;
    opacity: 1;
    max-height: 100vh;
    margin: auto;
}

.background-image.feature-image:hover {
    transform: perspective(1000px) rotateY(-7.5deg);
}

/* Footer Styles */
.landing-footer {
    background-color: #18181a !important;
    color: #fffde9;
    padding: 1.5rem 0 1rem 0;
    margin-top: auto;
    border-top: 1px solid #333;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.footer-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-link {
    display: block;
    text-decoration: none;
}

.footer-company-logo {
    height: 100px;
    width: auto;
    filter: brightness(1.1);
    margin: 0 !important;
    transition: opacity 0.3s ease;
}

.footer-logo-link:hover .footer-company-logo {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #fffde9 !important;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #206EB5 !important;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1rem;
    text-align: center;
}

.footer-copyright {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

/* Override the style-blue background for better page layout */
body.style-blue {
    background: linear-gradient(to bottom, var(--color-blue) 0%, var(--color-dark-2) 50%);
}

/* Footer Bottom Content */
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal-links {
    display: flex;
    gap: 1rem;
}

.footer-legal-link {
    color: #999 !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: var(--color-blue-2) !important;
}

/* Terms of Service Styles - Complete Custom Implementation */
.tos-container {
    max-width: 800px;
    margin: 0 auto;
    color: white;
}

/* Custom TOS page header - bypass all existing classes */
.tos-custom-header {
    background: transparent;
    padding: 2rem 0 1rem 0; /* Much tighter spacing */
    text-align: center;
}

.tos-custom-header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.tos-custom-header p {
    color: #B8B8B8;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* Custom TOS main content - bypass container classes */
.tos-custom-main {
    background-color: var(--color-dark-2);
    padding: 1rem 0 3rem 0; /* Tight top padding */
    position: relative;
}

.tos-custom-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.tos-custom-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Reset any inherited styles and create tight spacing */
.tos-section {
    margin-bottom: 1.2rem !important; /* Tighter section spacing */
    padding: 0 !important;
}

.tos-section:last-child {
    margin-bottom: 0 !important;
}

.tos-section h2 {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: white !important;
    margin: 0 0 0.6rem 0 !important; /* Tighter title spacing */
    padding: 0 !important;
    line-height: 1.3 !important;
}

.tos-section p {
    color: #B8B8B8 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1rem !important;
}

.tos-section ul {
    color: #B8B8B8 !important;
    line-height: 1.6 !important;
    padding: 0 0 0 1.5rem !important;
    margin: 0 !important;
    list-style-type: disc !important;
}

.tos-section li {
    margin-bottom: 0.4rem !important; /* Tight list spacing */
    padding: 0 !important;
    color: #B8B8B8 !important;
    font-size: 1rem !important;
}

.tos-section li:last-child {
    margin-bottom: 0 !important;
}

/* Waitlist Styles */
.waitlist-hero {
    text-align: center;
    padding: 60px 40px !important;
}

.waitlist-content {
    max-width: 800px;
    margin: 0 auto;
}

.waitlist-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.waitlist-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--color-light);
}

.waitlist-description {
    margin-bottom: 40px;
    color: rgba(255, 253, 233, 0.8);
}

.waitlist-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.waitlist-form {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: nowrap;
    margin-bottom: 20px;
}

.waitlist-form .form-group {
    flex: 1;
    min-width: 0;
}

.waitlist-input {
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    border: 2px solid rgba(255, 253, 233, 0.2);
    border-radius: 100px;
    background-color: rgba(255, 253, 233, 0.05);
    color: var(--color-light);
    transition: all 0.3s ease;
}

.waitlist-input::placeholder {
    color: rgba(255, 253, 233, 0.4);
}

.waitlist-input:focus {
    outline: none;
    border-color: var(--color-light);
    background-color: rgba(255, 253, 233, 0.1);
}

.waitlist-btn {
    white-space: nowrap;
    padding: 12px 32px !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.waitlist-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 253, 233, 0.2);
}

.waitlist-error {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 8px;
    text-align: left;
}

.waitlist-message {
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 20px;
}

.waitlist-message.success {
    background-color: rgba(32, 213, 105, 0.1);
    border: 2px solid var(--color-green);
    color: var(--color-green);
}

.waitlist-message.error {
    background-color: rgba(255, 59, 48, 0.1);
    border: 2px solid #ff3b30;
    color: #ff6b6b;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .waitlist-hero {
        padding: 40px 20px !important;
    }
    
    .waitlist-title {
        font-size: 32px;
    }
    
    .waitlist-form {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .waitlist-btn {
        width: 100%;
    }
}
