
.waitlist-modal[hidden] {
    display: none !important;
}

.waitlist-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1000;
}

.waitlist-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.waitlist-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.waitlist-dialog {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: clamp(28px, 5vw, 40px);
    width: min(420px, 90vw);
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-family: 'Nunito Sans', 'Plus Jakarta Sans', sans-serif;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.waitlist-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.waitlist-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.3);
}

.waitlist-intro {
    font-size: 16px;
    color: #ffffff;
    margin: 0;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.waitlist-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    color: #ffffff;
}

.waitlist-form input {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 16px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.waitlist-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.waitlist-form input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.2);
}

.waitlist-form input.invalid {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
    background: rgba(255, 107, 107, 0.1);
}

.waitlist-form input.invalid:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3);
    background: rgba(255, 107, 107, 0.15);
}

.waitlist-submit {
    align-self: stretch;
    border: none;
    border-radius: 18px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    color: #f8f9ff;
    background: linear-gradient(120deg, #5c7bff, #8967ff, #c089ff);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 18px 35px rgba(108, 120, 210, 0.25);
}

.waitlist-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 45px rgba(108, 120, 210, 0.3);
}

.waitlist-message {
    min-height: 20px;
    font-size: 14px;
    color: #ffffff;
    margin: 0;
}

.waitlist-dialog h2 {
    color: #ffffff;
    margin: 0;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: #000000;
    min-height: 100vh;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

.page-frame {
    margin: clamp(4px, 1.5vw, 18px);
    padding: clamp(6px, 2vw, 16px) clamp(14px, 3vw, 36px) clamp(28px, 5vw, 60px);
    background: #000000;
    border: 2px solid #222222;
    border-radius: clamp(20px, 4vw, 32px);
    box-shadow: 0 25px 60px rgba(87, 63, 164, 0.12);
    position: relative;
    min-height: calc(100vh - clamp(32px, 8vw, 64px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #ffffff;
}

/* 3D sphere background container inside page-frame */
#sphere-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

#sphere-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.page-frame::before,
.page-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

.page-frame::before {
    background: none;
    filter: none;
}

.page-frame::after {
    background: none;
    mix-blend-mode: normal;
    opacity: 0;
    pointer-events: none;
}

/* Navigation Bar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    gap: clamp(16px, 4vw, 32px);
    padding: clamp(4px, 1vw, 10px) clamp(16px, 4vw, 40px);
    background: transparent;
    position: relative;
    top: auto;
    z-index: 1;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.logo {
    position: absolute;
    left: clamp(10px, 2vw, 24px);
    top: clamp(6px, 1vw, 14px);
    transform: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

/* Raster logo image */
.logo-img {
    display: block;
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(16px, 4vw, 40px);
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 500;
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: clamp(10px, 2vw, 14px) clamp(16px, 3vw, 22px);
    border-radius: 24px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
    color: #fff;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.25), rgba(180, 189, 255, 0.35));
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 18px 35px rgba(120, 122, 190, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nav-link.active {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: #fff;
}

/* Panels */
.full-panel {
    min-height: min(100vh, 900px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(32px, 6vw, 56px);
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    align-items: center;
    justify-content: space-between;
    padding: clamp(40px, 8vw, 160px) clamp(24px, 6vw, 80px);
    gap: clamp(30px, 5vw, 48px);
}

.hero-text {
    max-width: 700px;
    text-align: center;
    margin-top: 40px;
}

.hero-subtitle {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 400;
    color: #fff;
    font-family:'Nunito Sans', 'Plus Jakarta Sans', sans-serif;
    margin: 0;
}

/* About Page */
.about-hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 4vw, 40px);
    padding: 0 clamp(16px, 5vw, 64px) clamp(64px, 10vw, 140px);
    margin-top: -100px;
}

.about-headline {
    font-family: 'Nunito Sans', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(30px, 5.5vw, 46px);
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    color: #ffffff;
    margin: 100px;
    margin-top: 150px;
    margin-bottom: 200px;
}

.about-section {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 4vw, 40px);
}

.section-eyebrow {
    font-family: 'Nunito Sans', sans-serif;
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 500;
    color: #e5e5e5;
    letter-spacing: 0.05em;
    margin: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 64px);
    align-items: stretch;
    margin-top: -60px;
}

.about-copy {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 3vw, 24px);
}

.about-title {
    font-family: 'Nunito Sans', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 50;
    color: #eaeaea;
    margin: 0;
}

.about-body {
    font-family: 'Nunito Sans', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1.5;
    color: #eaeaea;
    margin: 0;
    margin-top: 80px;
    max-width: 620px;
    margin-bottom: 1;
}

.about-quote {
    font-family: 'Nunito Sans', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(13px, 2vw, 16px);
    line-height: 1.5;
    color: #b8b8b8;
    margin: 16px 0 0 0;
    font-style: italic;
    max-width: 620px;
}

/* stack videos and fade instead of display:none */
.about-card {
    position: relative;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    min-height: auto;
    height: auto;
    overflow: visible;
    display: grid;
}

.about-video {
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity .25s ease;
    border-radius: 24px;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2),
                0 0 60px rgba(255, 255, 255, 0.15);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    overflow: hidden;
    background: #1a1a1a;
}

.about-video.is-active {
    opacity: 1;
}

.video-caption {
    font-family: 'Nunito Sans', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(25px, 4vw, 32px);
    line-height: 1.6;
    color: #eaeaea;
    margin-top: 100px;
    margin-left: 60px;
    text-align: left;
}

/* Features */
.features-panel {
    position: relative;
    z-index: 1;
    padding: clamp(60px, 9vw, 140px) clamp(20px, 6vw, 72px);
}

.panel-inner {
    width: 100%;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 5vw, 48px);
    align-items: flex-start;
}

.panel-inner h2 {
    font-family: 'Nunito Sans', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 500;
    color: #eaeaea;
    margin: 0;
}

.panel-inner p {
    font-family: 'Nunito Sans', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(18px, 2.4vw, 22px);
    line-height: 1.6;
    color: #eaeaea;
    margin: 0;
    max-width: 100%;
    width: 100%;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 4vw, 32px);
    width: 100%;
    align-items: stretch;
}

/* Basic styling for the image within the card */
.feature-card-image {
    display: block; /* Removes extra space below image */
    width: 100%; /* Ensures the image fits inside its container */
    height: auto;    /* Maintains the aspect ratio */
    border-radius: 24px; /* Matches potential card border-radius */
    object-fit: cover; /* Ensures image covers the area, cropping if necessary */
}


/* Full image card - Second feature card */
.full-image-card {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-height: 500px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 12px rgba(255, 255, 255, 0.08),
        0 0 24px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.full-image-card:hover {
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.25),
        0 0 0 2px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(255, 255, 255, 0.15),
        0 0 40px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.full-image-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 50%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
    z-index: 1;
}

.full-image-card .feature-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.feature-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(24px, 4vw, 40px);
    margin: 0;
    z-index: 2;
    text-align: left;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

.feature-card-heading {
    font-family: 'Nunito Sans', sans-serif;
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 clamp(8px, 1.5vw, 12px) 0;
}

.feature-card-description {
    margin: 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: clamp(18px, 2.5vw, 26px);
    line-height: 1.5;
    color: #ffffff;
}

/* Fallback for descriptions that are direct children of full-image-card (second card) */
.full-image-card > .feature-card-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(20px, 4vw, 32px);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 2;
    font-size: clamp(24px, 3.5vw, 36px);
    text-align: left;
}

.feature-card {
    padding: 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 12px rgba(255, 255, 255, 0.08),
        0 0 24px rgba(255, 255, 255, 0.05),
        0 12px 28px rgba(132, 138, 188, 0.18);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(255, 255, 255, 0.15),
        0 0 40px rgba(255, 255, 255, 0.1),
        0 12px 28px rgba(132, 138, 188, 0.25);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.feature-card h3 {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

.feature-card p {
    font-size: clamp(16px, 2.4vw, 18px);
    color: #dddddd;
    margin: 0;
    line-height: 1.6;
}

/* Contact */
.contact-panel {
    position: relative;
    z-index: 1;
    padding: clamp(80px, 12vw, 160px) clamp(24px, 6vw, 72px);
    display: flex;
    justify-content: center;
}

.contact-cta {
    margin-top: 12px;
    font-family: 'Nunito Sans', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(20px, 3vw, 26px);
    color: #4d7dff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s, transform 0.3s;
}

.contact-cta:hover {
    color: #2f5dea;
    transform: translateY(-2px);
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: clamp(24px, 6vw, 48px);
    right: clamp(24px, 6vw, 48px);
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(220, 222, 235, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4d7dff;
    box-shadow: 0 22px 35px rgba(110, 120, 190, 0.25);
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.show-back-top .back-to-top {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-4px);
}

.back-to-top svg {
    width: 28px;
    height: 28px;
}

.hero-title {
    font-size: calc(1.5 * clamp(26px, 4vw, 40px));
    font-weight: 500;
    color: #fff;
    font-family: 'Plus Jakarta Sans', 'Nunito Sans', sans-serif;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.btn-waitlist {
    padding: clamp(18px, 3vw, 22px) clamp(50px, 10vw, 80px);
    margin-top: clamp(60px, 10vw, 120px);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(255, 255, 255, 0.22) 100%
    );
    border: 2px solid transparent;
    border-radius: 50px;
    color: #ffffff;
    font-family: 'Nunito Sans', 'Plus Jakarta Sans', sans-serif;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(72px) saturate(220%);
    -webkit-backdrop-filter: blur(72px) saturate(220%);
    position: relative;
    z-index: 10;
    overflow: visible;
}

/* Moving gradient border */
.btn-waitlist::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(
        90deg,
        #667eea,
        #764ba2,
        #f093fb,
        #4facfe,
        #00f2fe,
        #43e97b,
        #667eea,
        #764ba2
    );
    background-size: 200% 100%;
    animation: movingGradient 4s linear infinite;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

@keyframes movingGradient {
    0% {
        background-position: 200% 0%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.btn-waitlist:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.25), rgba(180, 189, 255, 0.35));
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 18px 35px rgba(120, 122, 190, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.btn-waitlist:active {
    transform: translateY(0) scale(0.98);
    background: rgba(255, 255, 255, 0.08);
}

/* Continuous border rotation animation */
@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Theme Toggle */
.theme-toggle {
    position: absolute;
    bottom: clamp(16px, 4vw, 32px);
    right: clamp(16px, 5vw, 48px);
    width: 56px;
    height: 56px;
    background: white;
    border: none;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 1;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.theme-toggle svg {
    color: #333;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-container {
        flex-direction: column;
        gap: 50px;
    }

    .image-placeholder {
        min-width: 100%;
        max-width: 600px;
    }

    .hero-text {
        text-align: center;
    }

    .btn-waitlist {
        z-index: 100;
    }

    .hero-section {
        z-index: 100;
    }
}

@media (max-width: 900px) {
    /* feature grid stacked instead side-by-side */
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-body {
        max-width: none;
    }

    .about-card {
        min-height: auto;
        height: auto;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 20px 30px;
        flex-direction: column;
        gap: 16px;
    }

    .logo {
        position: static;
        margin: 0 auto;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .nav-link {
        font-size: 14px;
        padding: 8px 14px;
    }

    .hero-section {
        padding: 40px 20px;
        min-height: auto;
        gap: 30px;
        z-index: 100;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .btn-waitlist {
        padding: 16px 40px;
        font-size: 20px;
        margin-top: 40px;
        z-index: 100;
        pointer-events: auto;
    }

    .image-placeholder {
        height: 400px;
    }

    .full-image-card {
        min-height: 400px; /* Adjusted height for mobile stacking */
    }
    
    .feature-card-content {
        padding: 24px; /* Reduced padding for mobile */
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .about-video {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .about-headline {
        font-size: clamp(20px, 4vw, 28px);
        margin: 20px;
        margin-top: 120px;
        margin-bottom: 80px;
    }

    .about-body {
        margin-top: 30px;
    }

    .video-caption {
        font-size: clamp(16px, 3.5vw, 22px);
        margin-top: 40px;
        margin-left: 20px;
    }

    .page-frame {
        margin: 0;
        padding: 12px 16px 24px;
        border-radius: 0;
        border: none;
        min-height: 100vh;
    }

    .waitlist-dialog {
        width: min(380px, 95vw);
        padding: 24px;
    }

    .contact-panel {
        padding: 60px 20px;
    }
}

/* iPhone and small mobile devices */
@media screen and (max-width: 480px) {
    .logo-img {
        width: 36px;
        height: 36px;
    }

    .nav-menu {
        gap: 8px;
    }

    .nav-link {
        font-size: 12px;
        padding: 6px 10px;
    }

    .hero-title {
        font-size: clamp(32px, 8vw, 48px);
    }

    .hero-subtitle {
        font-size: clamp(18px, 5vw, 24px);
    }

    .btn-waitlist {
        padding: 14px 32px;
        font-size: 18px;
        margin-top: 30px;
    }

    .feature-card {
        padding: 0;
        width: 100%;
    }

    .feature-card h3 {
        font-size: 18px;
    }

    .feature-card p {
        font-size: 16px;
    }

    .full-image-card {
        min-height: unset; /* Remove the desktop 500px restriction */
        height: auto;      /* Let the content dictate the height */
        aspect-ratio: 1/1;
    }

    .feature-card-image {
        width: 100%;
        height: auto; 
        aspect-ratio: 16/9;
        object-fit: cover;
    }

    .full-image-card .feature-card-image {
        height: 100%;
        width: 100%;
        position: absolute; /* Stick to the back */
        inset: 0;           
        object-position: center top; /* Ensures the top of the image (faces/heads) isn't cut off */
    }

    .waitlist-dialog {
        width: min(340px, 92vw);
        padding: 20px;
    }

    .waitlist-form input {
        padding: 10px 14px;
        font-size: 14px;
    }

    .waitlist-submit {
        padding: 12px 16px;
        font-size: 14px;
    }

    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}


@media (max-width: 415px) {
    .feature-card {
        padding: 0;
    }

    .feature-card h3 {
        font-size: 18px;
    }

    .feature-card p {
        font-size: 16px;
    }
}
