/* Urbane Font Family */
@font-face {
    font-family: 'Urbane';
    src: url('../fonts/Urbane-Light.woff2') format('woff2'),
        url('../fonts/Urbane-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbane';
    src: url('../fonts/Urbane-Medium.woff2') format('woff2'),
        url('../fonts/Urbane-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbane';
    src: url('../fonts/Urbane-Bold.woff2') format('woff2'),
        url('../fonts/Urbane-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbane';
    src: url('../fonts/Urbane-Heavy.woff2') format('woff2'),
        url('../fonts/Urbane-Heavy.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-bg: #0a0a0a;
    --color-text: #ffffff;
    --color-teal: #00dfc4;
    --color-teal-glow: rgba(0, 223, 196, 0.4);
    --color-subtext: #a1a1aa;
    --color-card-bg: rgba(255, 255, 255, 0.03);
    --color-card-border: rgba(255, 255, 255, 0.05);

    --font-main: 'Urbane', sans-serif;

    --nav-height: 80px;
    --glass-blur: blur(12px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    /* We use canvas for bg, so body bg is just fallback */
}

/* --- BACKGROUND CANVAS --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* --- TYPOGRAPHY --- */
h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.25rem;
    color: var(--color-subtext);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.text-teal {
    color: var(--color-teal);
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--color-teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-link {
    color: var(--color-teal);
    text-decoration: underline;
    text-decoration-color: transparent;
}

.text-link:hover {
    text-decoration-color: var(--color-teal);
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 100;
    transition: background 0.3s;
}

.glass {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--color-card-border);
}

.nav-content {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Store Badges */
.store-badges {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    /* Center them */
}

/* Default (Google Play) - Has padding in image, so needs more height */
.store-badge img {
    height: 60px;
    width: auto;
    transition: transform 0.2s ease;
}

/* App Store - No padding, needs to be much smaller to match visual height */
.store-badge:last-child img {
    height: 40px;
    /* Reduced from 45px to 40px based on user feedback (Play was smaller) */
}

.store-badge:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .store-badges {
        flex-wrap: nowrap;
        /* Tries to keep them on one line unless tiny screen */
        justify-content: center;
        gap: 10px;
        padding: 0 0.5rem;
    }

    .store-badge {
        flex: 1;
        /* Distribute space equally */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Google Play - Scaled up 25% from desktop (60px * 1.25 = 75px) */
    .store-badge img {
        height: 75px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }

    /* App Store - Scaled up 25% from desktop (40px * 1.25 = 50px) */
    .store-badge:last-child img {
        height: 50px;
        /* Maintains the 1.5:1 visual ratio from desktop */
    }
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.lang-switcher a {
    color: var(--color-subtext);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.lang-switcher a:hover {
    color: var(--color-text);
}

.lang-switcher a.active {
    color: var(--color-teal);
    background: rgba(0, 223, 196, 0.1);
}

.divider {
    color: #333;
}

/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
    /* Offset fixed nav */
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    gap: 4rem;
}

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

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    margin-bottom: 3rem;
    max-width: 480px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--color-teal);
    color: #000;
}

.btn-primary:hover {
    background: #00ebb0;
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.glow-effect {
    box-shadow: 0 0 20px rgba(0, 223, 196, 0);
    /* Start hidden */
    transition: all 0.3s ease;
}

.glow-effect:hover {
    box-shadow: 0 0 30px var(--color-teal-glow);
}

/* --- HERO VISUAL (Phone) --- */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    /* height: 80vh; */
    max-height: 800px;
    min-width: 0;
    /* CRITICAL: Allows flex item to shrink below content size */
}

.phone-mockup {
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.1s ease-out;
    /* Smooth follow interaction handled by JS */
    width: 320px;
    height: 650px;
    /* Approximately */
    /* Container for absolute images */
}

/* Modified for image stack */
.app-screen {
    width: 100%;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 8px solid #1a1a1a;
    position: absolute;
    /* Stack them */
    top: 0;
    left: 0;
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

.app-screen.active {
    opacity: 1;
    z-index: 2;
}

.glow-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 600px;
    background: var(--color-teal);
    filter: blur(80px);
    opacity: 0.2;
    z-index: -1;
    border-radius: 50%;
    animation: pulseGlow 5s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.15;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* --- HORIZONTAL SCROLLING GALLERY --- */
.image-side {
    flex: 1;
    overflow: hidden;
    /* Prevent overflow of the container itself */
    display: flex;
    justify-content: flex-start;
    /* Align to start for scrolling */
    position: relative;
    /* Mask/Fade effect on sides - Adjusted to not cover buttons */
    /* mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); */
    width: 100%;
    align-items: center;
    /* Center buttons vertically */
}

/* Navigation Buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-teal);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
    /* Hidden by default, shown on hover of container */
}

.image-side:hover .scroll-btn {
    opacity: 1;
}

.scroll-btn:hover {
    background: var(--color-teal);
    color: #000;
    box-shadow: 0 0 15px var(--color-teal-glow);
}

.scroll-btn.left {
    left: 10px;
}

.scroll-btn.right {
    right: 10px;
}

/* Hide on mobile/touch devices where swipe is natural */
@media (hover: none) {
    .scroll-btn {
        display: none !important;
    }
}

.gallery-scroller {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 10%;
    /* Add padding so first/last items can be centered */
    width: 100%;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    cursor: grab;
    align-items: center;
    /* Vertically center images */
}

.gallery-scroller::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.gallery-scroller:active {
    cursor: grabbing;
}

.gallery-item {
    scroll-snap-align: center;
    flex: 0 0 auto;
    width: 260px;
    height: auto;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover img {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--color-teal-glow);
}

/* --- FOOTER --- */
.glass-footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-subtext);
    border-top: 1px solid var(--color-card-border);
    backdrop-filter: blur(5px);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.footer-links a:hover {
    color: var(--color-teal);
}

.dot {
    font-size: 0.5rem;
    opacity: 0.5;
}

/* --- SUPPORT PAGE STYLES --- */
.page-container {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 40px;
    min-height: calc(100vh - 80px);
    /* minus footer approx */
    display: flex;
    justify-content: center;
    padding-left: 20px;
    padding-right: 20px;
}

.glass-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    max-width: 800px;
    width: 100%;
}

.glass-card h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-teal);
}

.glass-card .intro {
    margin-bottom: 3rem;
}

.contact-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid var(--color-card-border);
    text-align: center;
}

.contact-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-section p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.accordion details {
    border-bottom: 1px solid var(--color-card-border);
    margin-bottom: 1rem;
}

.accordion summary {
    padding: 1rem 0;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 2rem;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-teal);
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.accordion details[open] summary::after {
    content: '-';
}

.faq-answer {
    padding-bottom: 1.5rem;
    color: var(--color-subtext);
    font-size: 1rem;
    animation: fadeIn 0.3s ease;
}

/* --- ANIMATIONS --- */
.how-it-works-section {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.how-it-works-section h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.role-accordion {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.role-accordion details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.role-accordion details[open] {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 223, 196, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.role-accordion summary {
    padding: 2rem;
    font-weight: 700;
    font-size: 1.5rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.role-accordion summary::-webkit-details-marker {
    display: none;
}

.role-accordion summary::after {
    content: '+';
    font-size: 2rem;
    color: var(--color-teal);
    transition: transform 0.3s ease;
    font-weight: 300;
}

.role-accordion details[open] summary::after {
    transform: rotate(45deg);
}

.role-content {
    padding: 0 2rem 2rem 2rem;
    color: var(--color-subtext);
    animation: fadeIn 0.5s ease;
}

.role-motto {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-teal);
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-card-border);
}

/* --- Nested Accordion (Questions) --- */
.role-content details {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0.5rem;
}

.role-content details:last-child {
    border-bottom: none;
}

.role-content details[open] {
    background: transparent;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.1);
    /* Keep border consistent */
}

.role-content summary {
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    justify-content: flex-start;
    gap: 1rem;
}

.role-content summary:hover {
    color: var(--color-teal);
}

.role-content summary::after {
    content: '+';
    font-size: 1.5rem;
    position: absolute;
    right: 0;
    font-weight: 300;
}

.role-content details[open] summary::after {
    transform: rotate(45deg);
    color: var(--color-teal);
}

/* Icon in summary */
.role-content summary svg {
    color: var(--color-teal);
    min-width: 20px;
}

.role-content .answer {
    padding: 0 0 1rem 2.5rem;
    /* Indent answer to align with text */
    color: var(--color-subtext);
    font-size: 1rem;
    line-height: 1.6;
    animation: fadeIn 0.3s ease;
}

/* --- ANIMATIONS --- */
.qa-block {
    margin-bottom: 2rem;
}

.qa-block h3 {
    color: var(--color-text);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.qa-block h3 svg {
    color: var(--color-teal);
    min-width: 20px;
}

.qa-block p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    padding-left: 2rem;
    /* Indent answer to align with text of question */
}

/* --- ANIMATIONS --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotateY(-5deg);
    }

    50% {
        transform: translateY(-15px) rotateY(-2deg);
    }

    100% {
        transform: translateY(0px) rotateY(-5deg);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        gap: 3rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    h1 {
        font-size: 3rem;
    }

    .hero-visual {
        width: 100%;
        height: auto;
    }

    .phone-mockup {
        transform: none !important;
        /* Disable JS tilt on mobile for performance/usability */
        animation: none;
        height: auto;
        /* let it scale */
        min-height: 500px;
        /* preserve space */
    }

    .app-screen {
        width: 280px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .glass-card h1 {
        font-size: 2rem;
    }

    .phone-mockup {
        min-height: 400px;
    }

    .app-screen {
        width: 240px;
    }

    /* Gallery Mobile Adjustments */
    .image-side {
        width: 100vw;
        margin-left: -2rem;
        /* Negate the container padding */
        margin-right: -2rem;
        mask-image: none;
        /* Full width feel */
        -webkit-mask-image: none;
    }

    .gallery-scroller {
        padding: 20px 2rem;
    }

    .gallery-item {
        width: 200px;
    }
}