@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════ */
:root {
    /* Brand Colors */
    --lorito-blue: #5AC4F6;
    --lorito-blue-dark: #4AA8D6;
    --lorito-accent: #007AFF;
    --lorito-purple: #5856D6;

    /* Backgrounds */
    --bg-primary: #000000;
    --bg-section-alt: #0A0A0A;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --bg-glass: rgba(255, 255, 255, 0.06);
    --bg-glass-border: rgba(255, 255, 255, 0.1);

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-tertiary: rgba(255, 255, 255, 0.4);

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #5AC4F6 0%, #007AFF 50%, #5856D6 100%);
    --gradient-hero-bg: radial-gradient(ellipse at 50% 0%, rgba(90, 196, 246, 0.15) 0%, transparent 60%);
    --gradient-cta: linear-gradient(135deg, #5AC4F6 0%, #007AFF 100%);
    --gradient-glow: radial-gradient(circle, rgba(90, 196, 246, 0.2) 0%, transparent 70%);

    /* Spacing */
    --section-padding: 7rem 2rem;
    --section-padding-mobile: 4rem 1.25rem;

    /* Typography */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --text-hero: clamp(2.5rem, 5vw, 4rem);
    --text-h2: clamp(1.8rem, 3.5vw, 2.8rem);
    --text-h3: clamp(1.2rem, 2vw, 1.5rem);
    --text-body: 1.125rem;
    --text-small: 0.875rem;
    --text-xs: 0.8rem;

    /* Misc */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 100px;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --max-width: 1200px;
}

/* ═══════════════════════════════════════════
   LIGHT THEME
   ═══════════════════════════════════════════ */
[data-theme="light"] {
    --bg-primary: #5697F5;
    --bg-section-alt: #4888E6;
    --bg-card: rgba(255, 255, 255, 0.2);
    --bg-card-hover: rgba(255, 255, 255, 0.3);
    --bg-glass: rgba(255, 255, 255, 0.25);
    --bg-glass-border: rgba(255, 255, 255, 0.35);

    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-tertiary: rgba(255, 255, 255, 0.65);

    --gradient-hero: linear-gradient(135deg, #FFFFFF 0%, #E8F8FF 50%, #D0EFFF 100%);
    --gradient-hero-bg: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    --gradient-cta: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    --gradient-glow: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
}

/* Auto-detect system preference (only if no manual choice) */
@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        --bg-primary: #5697F5;
        --bg-section-alt: #4888E6;
        --bg-card: rgba(255, 255, 255, 0.2);
        --bg-card-hover: rgba(255, 255, 255, 0.3);
        --bg-glass: rgba(255, 255, 255, 0.25);
        --bg-glass-border: rgba(255, 255, 255, 0.35);

        --text-primary: #FFFFFF;
        --text-secondary: rgba(255, 255, 255, 0.85);
        --text-tertiary: rgba(255, 255, 255, 0.65);

        --gradient-hero: linear-gradient(135deg, #FFFFFF 0%, #E8F8FF 50%, #D0EFFF 100%);
        --gradient-hero-bg: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
        --gradient-cta: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
        --gradient-glow: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    }
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--lorito-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--lorito-blue-dark);
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(90, 196, 246, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(90, 196, 246, 0.5);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Scroll-reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered children */
.stagger-children .reveal:nth-child(1) {
    transition-delay: 0s;
}

.stagger-children .reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.stagger-children .reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.stagger-children .reveal:nth-child(4) {
    transition-delay: 0.3s;
}

.stagger-children .reveal:nth-child(5) {
    transition-delay: 0.4s;
}

.stagger-children .reveal:nth-child(6) {
    transition-delay: 0.5s;
}

/* ═══════════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.9rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(40px) saturate(200%) brightness(0.9);
    -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(0.9);
    border-bottom: none;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: background var(--transition-base), padding var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
    padding: 0.6rem 2rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(60px) saturate(200%) brightness(0.85);
    -webkit-backdrop-filter: blur(60px) saturate(200%) brightness(0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Light theme header */
[data-theme="light"] .site-header {
    background: #5697F5;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .site-header.scrolled {
    background: #5697F5;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .site-header {
        background: #5697F5;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    }

    :root:not([data-theme]) .site-header.scrolled {
        background: #5697F5;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    }
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.header-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--lorito-blue);
}

[data-theme="light"] .header-logo span {
    color: #FFFFFF;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .header-logo span {
        color: #FFFFFF;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Menu Button - hidden on desktop */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-base);
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.77, 0, 0.175, 1);
    transform-origin: center;
}

/* X animation when active */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
    display: none;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease;
    border-top: 1px solid transparent;
}

.mobile-drawer.open {
    max-height: 200px;
    opacity: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.25rem 1.25rem;
    animation: mobileDrawerFadeIn 0.35s ease-out;
}

.mobile-drawer.open .mobile-drawer-inner {
    animation: mobileDrawerSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.mobile-drawer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.mobile-drawer-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mobile-drawer-label {
    font-size: var(--text-small);
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

@keyframes mobileDrawerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

/* Light theme drawer */
[data-theme="light"] .mobile-drawer.open {
    border-top-color: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .mobile-drawer-item {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .mobile-drawer-item:hover {
    background: rgba(255, 255, 255, 0.25);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .mobile-drawer.open {
        border-top-color: rgba(255, 255, 255, 0.15);
    }

    :root:not([data-theme]) .mobile-drawer-item {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.2);
    }

    :root:not([data-theme]) .mobile-drawer-item:hover {
        background: rgba(255, 255, 255, 0.25);
    }
}

/* Language Toggle */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
}

.lang-btn {
    padding: 0.3rem 0.65rem;
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-tertiary);
    font-family: var(--font-family);
    font-size: var(--text-xs);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: var(--text-secondary);
}

.lang-btn.active {
    background: var(--lorito-blue);
    color: #000;
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* When light theme is active, show sun, hide moon */
[data-theme="light"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .theme-toggle .icon-sun {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }

    :root:not([data-theme]) .theme-toggle .icon-moon {
        opacity: 0;
        transform: rotate(90deg) scale(0.5);
    }
}

/* Header CTA */
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    background: var(--gradient-cta);
    color: #FFF;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-family);
    font-size: var(--text-small);
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    text-decoration: none;
}

.header-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(90, 196, 246, 0.4);
    color: #fff;
}

[data-theme="light"] .header-cta,
[data-theme="light"] .beta-button-l {
    background: #4580DD;
    color: #FFFFFF;
}

[data-theme="light"] .header-cta:hover,
[data-theme="light"] .beta-button-l:hover {
    background: #3A70CC;
    box-shadow: 0 4px 20px rgba(58, 112, 204, 0.4);
}

@media (prefers-color-scheme: light) {

    :root:not([data-theme]) .header-cta,
    :root:not([data-theme]) .beta-button-l {
        background: #4580DD;
        color: #FFFFFF;
    }

    :root:not([data-theme]) .header-cta:hover,
    :root:not([data-theme]) .beta-button-l:hover {
        background: #3A70CC;
        box-shadow: 0 4px 20px rgba(58, 112, 204, 0.4);
    }
}

/* Light mode step numbers */
[data-theme="light"] .step-number {
    background: #4580DD;
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(69, 128, 221, 0.3);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .step-number {
        background: #4580DD;
        color: #FFFFFF;
        box-shadow: 0 4px 20px rgba(69, 128, 221, 0.3);
    }
}

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: var(--gradient-glow);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
    pointer-events: none;
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-tagline {
    font-size: var(--text-hero);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #5AC4F6 30%, #FFFFFF 60%, #5AC4F6 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}

[data-theme="light"] .hero-tagline {
    background: none;
    -webkit-text-fill-color: #FFFFFF;
    color: #FFFFFF;
    animation: none;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .hero-tagline {
        background: none;
        -webkit-text-fill-color: #FFFFFF;
        color: #FFFFFF;
        animation: none;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-mockup {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-mockup img {
    width: 100%;
    max-width: 650px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 60px rgba(90, 196, 246, 0.15));
}

/* Hero Audio Player */
.hero-audio-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: -1rem;
    /* Adjust based on image shadow/space */
    margin-bottom: 2rem;
    padding: 0.75rem 1.2rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    z-index: 10;
    width: 90%;
    max-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.6s both;
}

[data-theme="light"] .hero-audio-player {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.15);
}

.audio-play-btn {
    background: var(--gradient-cta);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    flex-shrink: 0;
}

.audio-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(90, 196, 246, 0.4);
}

.audio-play-btn svg {
    width: 18px;
    height: 18px;
}

[data-theme="light"] .audio-play-btn {
    background: #4580DD;
}

.audio-progress-container {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

[data-theme="light"] .audio-progress-container {
    background: rgba(0, 0, 0, 0.1);
}

.audio-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--lorito-blue);
    border-radius: var(--radius-full);
    transition: width 0.1s linear;
}

[data-theme="light"] .audio-progress-bar {
    background: #4580DD;
}

.audio-time {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    min-width: 35px;
    text-align: right;
}

[data-theme="light"] .audio-time {
    color: rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .hero-audio-player {
        background: rgba(255, 255, 255, 0.85);
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 10px 30px rgba(0, 122, 255, 0.15);
    }

    :root:not([data-theme]) .audio-play-btn {
        background: #4580DD;
    }

    :root:not([data-theme]) .audio-progress-container {
        background: rgba(0, 0, 0, 0.1);
    }

    :root:not([data-theme]) .audio-progress-bar {
        background: #4580DD;
    }

    :root:not([data-theme]) .audio-time {
        color: rgba(0, 0, 0, 0.6);
    }
}

/* ═══════════════════════════════════════════
   BETA SIGNUP (Reused from index2)
   ═══════════════════════════════════════════ */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--lorito-blue);
    color: #fff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 1.5rem;
}

.download-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 30px rgba(90, 196, 246, 0.3);
}

.download-btn:active {
    transform: scale(0.98);
}

.download-btn svg {
    flex-shrink: 0;
}

.hero-availability {
    color: var(--text-tertiary);
    font-size: var(--text-small);
    margin-top: 0.75rem;
}

.beta-section-landing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
}

.hero .beta-section-landing {
    align-items: flex-start;
}

.cta-final .beta-section-landing {
    align-items: center;
}

.platform-hint-landing {
    font-size: var(--text-small);
    color: var(--text-tertiary);
}

.platform-toggle-landing {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-full);
}

.platform-toggle-landing .platform-btn-l {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-tertiary);
    font-family: var(--font-family);
    font-size: var(--text-small);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.platform-toggle-landing .platform-btn-l:hover {
    color: var(--text-secondary);
}

.platform-toggle-landing .platform-btn-l.active {
    background: rgba(90, 196, 246, 0.2);
    color: var(--lorito-blue);
}

/* Light mode: white icons instead of blue */
[data-theme="light"] .platform-toggle-landing .platform-btn-l.active {
    background: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
}

[data-theme="light"] .platform-toggle-landing .platform-btn-l.active .platform-icon-img-l {
    filter: brightness(0) invert(1);
    opacity: 1;
}

[data-theme="light"] .platform-toggle-landing .platform-icon-img-l {
    filter: brightness(0) invert(1);
    opacity: 0.4;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .platform-toggle-landing .platform-btn-l.active {
        background: rgba(255, 255, 255, 0.3);
        color: #FFFFFF;
    }

    :root:not([data-theme]) .platform-toggle-landing .platform-btn-l.active .platform-icon-img-l {
        filter: brightness(0) invert(1);
        opacity: 1;
    }

    :root:not([data-theme]) .platform-toggle-landing .platform-icon-img-l {
        filter: brightness(0) invert(1);
        opacity: 0.4;
    }
}

.platform-toggle-landing .platform-btn-l svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.platform-toggle-landing .platform-icon-img-l {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

.platform-toggle-landing .platform-btn-l.active .platform-icon-img-l {
    opacity: 0.9;
    filter: brightness(0) invert(0.7) sepia(1) saturate(3) hue-rotate(170deg);
}

/* Light theme: deeper shadow on showcase images */
[data-theme="light"] .showcase-image img,
[data-theme="light"] .step-image {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .hero-mockup img {
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.12));
}

[data-theme="light"] .feature-card:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .section-label {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .site-footer {
    border-top-color: rgba(255, 255, 255, 0.15);
}

@media (prefers-color-scheme: light) {

    :root:not([data-theme]) .showcase-image img,
    :root:not([data-theme]) .step-image {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    }

    :root:not([data-theme]) .hero-mockup img {
        filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.12));
    }

    :root:not([data-theme]) .feature-card:hover {
        border-color: rgba(255, 255, 255, 0.5);
    }

    :root:not([data-theme]) .section-label {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
        color: #fff;
    }

    :root:not([data-theme]) .footer-bottom {
        border-top-color: rgba(255, 255, 255, 0.15);
    }

    :root:not([data-theme]) .site-footer {
        border-top-color: rgba(255, 255, 255, 0.15);
    }
}

.beta-form-landing {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    max-width: 460px;
}

.beta-input-wrapper-l {
    display: flex;
    align-items: center;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-full);
    padding: 0.3rem;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.beta-input-wrapper-l:focus-within {
    border-color: rgba(90, 196, 246, 0.4);
    box-shadow: 0 0 0 3px rgba(90, 196, 246, 0.1);
}

.beta-input-l {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
    min-width: 0;
}

.beta-input-l::placeholder {
    color: var(--text-tertiary);
}

.beta-button-l {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--gradient-cta);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.65rem 1.4rem;
    font-family: var(--font-family);
    font-size: var(--text-small);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    flex-shrink: 0;
}

.beta-button-l:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 20px rgba(90, 196, 246, 0.4);
}

.beta-button-l:active {
    transform: scale(0.97);
}

.beta-button-l:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.beta-message-l {
    font-size: var(--text-small);
    min-height: 1.2rem;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.beta-message-l.show {
    opacity: 1;
    transform: translateY(0);
}

.beta-message-l.success {
    color: #34D399;
}

.beta-message-l.error {
    color: #F87171;
}

/* ═══════════════════════════════════════════
   SECTION COMMONS
   ═══════════════════════════════════════════ */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--lorito-blue);
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.9rem;
    background: rgba(90, 196, 246, 0.1);
    border: 1px solid rgba(90, 196, 246, 0.2);
    border-radius: var(--radius-full);
}

.section-title {
    font-size: var(--text-h2);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: var(--text-body);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0.75rem auto 0;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════
   FEATURES SECTION
   ═══════════════════════════════════════════ */
.features {
    background: var(--bg-section-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    position: relative;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-cta);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(90, 196, 246, 0.2);
    transform: translateY(-4px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-emoji {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-size: var(--text-h3);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════ */
.how-it-works {
    background: var(--bg-primary);
    overflow: hidden;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

/* Connector line */
.steps-container::before {
    content: '';
    position: absolute;
    top: 48px;
    left: 16.66%;
    right: 16.66%;
    height: 2px;
    background: linear-gradient(to right, rgba(90, 196, 246, 0.3), rgba(0, 122, 255, 0.3), rgba(88, 86, 214, 0.3));
    z-index: 0;
}

.step-card {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 1rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-cta);
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(90, 196, 246, 0.3);
}

.step-title {
    font-size: var(--text-h3);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto 1.5rem;
}

.step-image {
    width: 180px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.step-image img {
    width: 100%;
    border-radius: var(--radius-lg);
}

/* ═══════════════════════════════════════════
   APP SHOWCASE (Screenshots in Features)
   ═══════════════════════════════════════════ */
.app-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 4rem;
}

.app-showcase.reverse {
    direction: rtl;
}

.app-showcase.reverse>* {
    direction: ltr;
}

.showcase-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.showcase-content h3 {
    font-size: var(--text-h2);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.showcase-content p {
    font-size: var(--text-body);
    color: var(--text-secondary);
    line-height: 1.6;
}

.showcase-image {
    display: flex;
    justify-content: center;
}

.showcase-image img {
    width: 260px;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform var(--transition-slow);
}

.showcase-image img:hover {
    transform: scale(1.03);
}

/* ═══════════════════════════════════════════
   CTA FINAL
   ═══════════════════════════════════════════ */
.cta-final {
    background: var(--bg-section-alt);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-final::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--gradient-glow);
    border-radius: 50%;
    pointer-events: none;
}

.cta-final .section-inner {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: var(--text-h2);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: var(--text-body);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cta-availability {
    font-size: var(--text-small);
    color: var(--text-tertiary);
    margin-top: 1.5rem;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
    padding: 3rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--bg-primary);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-brand img {
    width: 36px;
}

.footer-tagline {
    font-size: var(--text-small);
    color: var(--text-tertiary);
    max-width: 280px;
    line-height: 1.5;
}

.footer-column h4 {
    font-size: var(--text-small);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-column a {
    font-size: var(--text-small);
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--lorito-blue);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

.footer-heart {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

.footer-heart span {
    color: #34D399;
}

/* ═══════════════════════════════════════════
   LEGAL PAGES
   ═══════════════════════════════════════════ */
.legal-page {
    padding: 8rem 2rem 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: var(--text-h2);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.legal-page .legal-updated {
    font-size: var(--text-small);
    color: var(--text-tertiary);
    margin-bottom: 2.5rem;
}

.legal-page h2 {
    font-size: var(--text-h3);
    font-weight: 700;
    margin: 2rem 0 0.75rem;
}

.legal-page p,
.legal-page ul {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-page ul {
    padding-left: 1.5rem;
}

.legal-page li {
    margin-bottom: 0.3rem;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-mockup {
        order: 2;
    }

    .hero .beta-section-landing {
        align-items: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-showcase {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .app-showcase.reverse {
        direction: ltr;
    }

    .showcase-content {
        align-items: center;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--section-padding-mobile);
    }

    .hero {
        padding: 7rem 1.25rem 3rem;
        min-height: auto;
    }

    .hero-mockup img {
        max-width: 350px;
    }

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

    .steps-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .steps-container::before {
        display: none;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .header-cta span {
        display: none;
    }

    .beta-input-wrapper-l {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 0.2rem;
    }

    .beta-input-l {
        width: 100%;
        text-align: center;
        padding: 0.6rem 1rem;
    }

    .beta-button-l {
        width: 100%;
        padding: 0.7rem 1rem;
        border-radius: var(--radius-sm);
    }

    /* Mobile: hide lang + theme from header-actions, show hamburger */
    .header-actions .lang-toggle,
    .header-actions .theme-toggle {
        display: none;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-drawer {
        display: block;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 0.7rem 1rem;
    }

    .header-logo span {
        display: none;
    }
}