@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500;600;700&display=swap');

/* Color Palette */
:root {
    --bg-page: #0d1117;
    --brand-dark: #0a0c10;
    --brand-black: #050608;
    --brand-primary: #ffc107;
    --brand-primary-hover: #ffb300;
    --brand-accent: #f59e0b;
    --text-dark: #f0f6fc;
    --text-muted: #8b949e;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);

    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--brand-dark);
    background-image: url('stars-bg.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Honeypot field (invisible to real users, bots still fill it) */
.hp-field {
    position: absolute;
    left: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Base Utility Classes */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--brand-primary);
    color: #1a2b4c;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.btn-primary:hover {
    background-color: var(--brand-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}

.glass-btn {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    border: none;
    color: #1a2b4c;
    font-weight: 700;
}

.glass-btn-sm {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #1a2b4c;
    border: 1px solid rgba(255, 193, 7, 0.7);
    padding: 10px 24px;
    box-shadow: 0 6px 18px rgba(255, 193, 7, 0.35);
}

.glass-btn-sm:hover {
    background: linear-gradient(135deg, var(--brand-primary-hover), var(--brand-primary));
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 193, 7, 0.45);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-light);
}

a {
    color: inherit;
    text-decoration: none;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-light);
    letter-spacing: -1px;
}

/* Layout */
main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 100;
    transition: all 0.3s ease;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(26, 43, 76, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
}

.logo-wordmark {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-logo-icon {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--brand-primary);
}

.nav-links a.btn.glass-btn-sm {
    color: #1a2b4c !important;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent)) !important;
    border: 1px solid rgba(255, 193, 7, 0.72) !important;
    box-shadow: 0 8px 22px rgba(255, 193, 7, 0.42) !important;
}

.nav-links a.btn.glass-btn-sm:hover {
    color: #1a2b4c !important;
    background: linear-gradient(135deg, var(--brand-primary-hover), var(--brand-primary)) !important;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0;
    color: var(--text-light);
    position: relative;
    z-index: 2;
}

.hero-left {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.email-signup {
    display: flex;
    gap: 10px;
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.email-input {
    background: transparent;
    border: none;
    color: white;
    padding: 14px 24px;
    border-radius: 50px;
    outline: none;
    font-family: var(--font-body);
    font-size: 1.05rem;
    width: 280px;
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.waitlist-feedback {
    display: none;
    margin-top: 10px;
    font-weight: 600;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mascot-img {
    max-width: 900px;
    height: auto;
    width: 130%;
    object-fit: contain;
    transform-origin: center;
    animation: float 5s ease-in-out infinite;
    margin-right: -60px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* --- Features Showcase --- */
.features-showcase {
    display: flex;
    flex-direction: column;
    gap: 120px;
    padding: 80px 0;
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.feature-row.reversed {
    flex-direction: row-reverse;
}

.feature-readable-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
}

.feature-readable-row .feature-text,
.feature-readable-row .feature-visual {
    width: 100%;
    max-width: none;
    flex: none;
}

.feature-readable-row .feature-visual {
    justify-content: flex-start;
}

.feature-text {
    flex: 1;
    max-width: 500px;
}

.feature-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(to right, #ffffff, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.feature-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.feature-result {
    font-size: 1.05rem;
    color: var(--brand-primary);
    margin-top: 16px;
    line-height: 1.6;
    font-style: italic;
}

.feature-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.glass-teaser-img {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    max-width: 900px;
}



/* Make first two feature images bigger for visibility */
.feature-large .glass-teaser-img {
    max-width: 100%;
    padding: 12px;
}

.feature-large .glass-teaser-img img {
    min-height: 0;
    object-fit: contain;
}

.feature-concepts-img {
    max-width: 1100px;
    padding: 8px;
}

.feature-concepts-img img {
    width: 100%;
    aspect-ratio: unset;
    min-height: 0;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* Swapped-image explicit sizing:
   feature3.png is portrait (1614x2201) -> keep this smaller.
   feature2.jpg is landscape (1210x611) -> make this larger/readable. */
.feature-unexpected-img {
    max-width: 360px;
    padding: 10px;
}

.feature-unexpected-img img {
    width: 100%;
    aspect-ratio: 1614 / 2201;
    min-height: 0;
    height: auto;
    object-fit: cover;
    object-position: center top;
}

.feature-study-next-img {
    max-width: 1100px;
    padding: 10px;
}

.feature-study-next-img img {
    width: 100%;
    aspect-ratio: unset;
    min-height: 0;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.glass-teaser-img img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    display: block;
}

/* --- Waitlist Banner --- */
.waitlist-banner {
    padding: 80px 0;
    display: flex;
    justify-content: center;
}

.glass-banner {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(245, 158, 11, 0.1));
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 60px;
    text-align: center;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.glass-banner h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: white;
}

/* --- FAQ Section --- */
.faq-section {
    margin-bottom: 80px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.faq-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    text-align: left;
    transition: color 0.3s ease;
}

.faq-question i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--brand-accent);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px;
    margin-top: 40px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-light);
}

.footer-contact {
    text-align: center;
    margin: 10px 0;
}

.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.footer-contact p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.footer-contact a {
    color: var(--brand-primary);
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--brand-primary-hover);
}

.footer-contact i {
    margin-right: 6px;
    color: var(--brand-primary);
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Feedback widget */
.feedback-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    border: 1px solid rgba(255, 193, 7, 0.55);
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #1a2b4c;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 999px;
    padding: 12px 18px;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feedback-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.5);
}

.feedback-panel {
    position: fixed;
    right: 24px;
    bottom: 82px;
    width: min(360px, calc(100vw - 24px));
    z-index: 1201;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(10, 12, 16, 0.96), rgba(5, 6, 8, 0.96));
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(18px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.feedback-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.feedback-header {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-light);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feedback-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}

.feedback-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.feedback-form {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-categories {
    display: flex;
    gap: 8px;
}

.feedback-category {
    flex: 1;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 8px 10px;
    cursor: pointer;
}

.feedback-category.is-active {
    background: rgba(255, 193, 7, 0.18);
    border-color: rgba(255, 193, 7, 0.7);
    color: var(--brand-primary);
}

.feedback-form textarea {
    width: 100%;
    min-height: 128px;
    resize: vertical;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    padding: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.03);
    outline: none;
}

.feedback-form textarea:focus {
    border-color: rgba(255, 193, 7, 0.7);
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

.feedback-form textarea::placeholder {
    color: rgba(139, 148, 158, 0.95);
}

.feedback-send {
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #1a2b4c;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 11px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.feedback-send:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.feedback-status {
    min-height: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* --- Fullscreen Image Overlay --- */
.img-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.img-overlay.visible {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.img-overlay img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .hero {
        gap: 34px;
    }

    .mascot-img {
        width: 118%;
        max-width: 760px;
        margin-right: -20px;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    main {
        padding-top: 90px;
    }

    .navbar {
        padding: 14px 22px;
    }

    .logo {
        gap: 9px;
    }

    .nav-logo-icon {
        width: 46px;
        height: 46px;
    }

    .logo-wordmark {
        font-size: 1.15rem;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 0.86rem;
    }

    .nav-links .glass-btn-sm {
        padding: 8px 14px;
    }

    .hero {
        gap: 24px;
    }

    .hero-left {
        max-width: 52%;
    }

    .hero-right {
        max-width: 48%;
    }

    .mascot-img {
        width: 120%;
        max-width: 700px;
        margin-right: -12px;
    }
}

@media (max-width: 1024px) and (orientation: portrait) {
    main {
        padding-top: 102px;
    }

    .navbar {
        padding: 12px 16px;
        gap: 10px;
        background-color: rgba(10, 12, 16, 0.92);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--glass-border);
    }

    .logo {
        gap: 8px;
    }

    .logo-wordmark {
        font-size: 1.08rem;
        letter-spacing: -0.2px;
    }

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

    .nav-links {
        gap: 0;
    }

    .nav-links a:not(.glass-btn-sm) {
        display: none;
    }

    .nav-links .glass-btn-sm {
        font-size: 0.82rem;
        padding: 8px 13px;
        white-space: nowrap;
        border-radius: 999px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .hero-left {
        max-width: 100%;
    }

    .hero-subtitle {
        max-width: 680px;
        margin-inline: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-right {
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
    }

    .mascot-img {
        width: min(88vw, 560px);
        max-width: 560px;
        margin-right: 0;
        transform: none;
    }

    .email-signup {
        width: min(100%, 640px);
        margin-inline: auto;
    }

    .email-input {
        width: 100%;
    }
}

@media (max-width: 768px) {
    main {
        padding-top: 98px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 26px;
    }

    .hero-left {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .email-signup {
        flex-direction: column;
        border-radius: 16px;
        width: 100%;
    }

    .email-input {
        width: 100%;
    }

    .hero-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .mascot-img {
        width: min(92vw, 460px);
        max-width: 460px;
        margin-right: 0;
        transform: none;
    }

    .feature-row,
    .feature-row.reversed {
        flex-direction: column;
        gap: 30px;
    }

    .feature-text {
        max-width: 100%;
        text-align: center;
    }

    .feature-unexpected-img img,
    .feature-study-next-img img {
        height: auto;
    }

    .section-title {
        font-size: 2rem;
    }

    .glass-banner {
        padding: 40px 20px;
    }

    .glass-banner h2 {
        font-size: 1.8rem;
    }

    .navbar {
        padding: 12px 14px;
        gap: 10px;
        background-color: rgba(10, 12, 16, 0.92);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--glass-border);
    }

    .logo {
        gap: 8px;
    }

    .logo-wordmark {
        font-size: 1.05rem;
        letter-spacing: -0.2px;
    }

    .nav-logo-icon {
        width: 38px;
        height: 38px;
    }

    .nav-links {
        gap: 0;
    }

    .nav-links a:not(.glass-btn-sm) {
        display: none;
    }

    .nav-links .glass-btn-sm {
        font-size: 0.8rem;
        padding: 8px 12px;
        white-space: nowrap;
        border-radius: 999px;
        box-shadow: 0 6px 16px rgba(255, 193, 7, 0.34) !important;
    }

    .feedback-fab {
        right: 14px;
        bottom: 14px;
    }

    .feedback-panel {
        right: 14px;
        left: 14px;
        width: auto;
        bottom: 66px;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .mascot-img {
        width: min(94vw, 500px);
        max-width: 500px;
    }
}
