
:root {
    --primary-gold: #D4A574;
    --amber: #F4C430;
    --deep-blue: #2C3E50;
    --sage: #8FAF9E;
    --parchment: #F5F1E8;
    --cream: #FEFDF8;
    --charcoal: #333333;
    --gray: #7F8C8D;
    --success: #4CAF50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--charcoal);
    background: var(--parchment);
    padding-top: 80px;
}

:is(html.theme-dark, body.theme-dark) {
    --primary-gold: #E8C47C;
    --amber: #F2D18A;
    --deep-blue: #0A1421;
    --sage: #9BC4B0;
    --parchment: #0F131A;
    --cream: #151B24;
    --charcoal: #F3F4F8;
    --gray: #B7BEC9;
    --success: #68D391;
    background: var(--parchment);
    color: var(--charcoal);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--parchment) 0%, var(--cream) 100%);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.header .container {
    position: relative;
    padding-right: 120px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: nowrap;
    min-height: 44px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-gold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
    vertical-align: middle;
}

.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--deep-blue), #1A252F);
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}

.logo-name {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--deep-blue);
    line-height: 1.1;
}

.logo-hebrew {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray);
    line-height: 1.1;
}

:is(html.theme-dark, body.theme-dark) .logo-name {
    color: var(--charcoal);
}

:is(html.theme-dark, body.theme-dark) .logo-hebrew {
    color: var(--primary-gold);
    opacity: 0.85;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.header-nav {
    display: none;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.header-nav a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: var(--deep-blue);
}

:is(html.theme-dark, body.theme-dark) .header-nav a:hover {
    color: var(--charcoal);
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(44, 62, 80, 0.15);
    background: transparent;
    color: var(--deep-blue);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
}

:is(html.theme-dark, body.theme-dark) .menu-toggle {
    color: var(--charcoal);
    border-color: rgba(255, 255, 255, 0.2);
}

@media (min-width: 860px) {
    .header-nav {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }
}

/* Lightning Menu Toggle */
.lightning-menu-toggle {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    font-size: 24px;
    line-height: 1;
    margin-right: 12px;
    transition: all 0.3s ease-in-out;
    flex-shrink: 0;
    white-space: nowrap;
    height: 24px;
}

.lightning-menu-toggle:hover,
.lightning-menu-toggle:focus-visible {
    outline: none;
}

.lightning-menu-toggle:focus-visible .lightning-icon {
    outline: 2px solid var(--primary-gold);
    outline-offset: 4px;
    border-radius: 2px;
}

.lightning-icon {
    display: inline-block;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
    filter: drop-shadow(0 0 3px rgba(212, 165, 116, 0.3));
    font-size: 24px;
    line-height: 1;
}

.lightning-menu-toggle:hover .lightning-icon {
    filter: drop-shadow(0 0 8px rgba(212, 165, 116, 0.5));
    transform: scale(1.1);
}

.lightning-menu-toggle.active .lightning-icon {
    transform: rotate(25deg);
    filter: drop-shadow(0 0 12px rgba(212, 165, 116, 0.7));
}

/* Idle pulse animation */
@keyframes lightningPulse {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(212, 165, 116, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(212, 165, 116, 0.5));
    }
}

.lightning-menu-toggle:not(.active):not(:hover) .lightning-icon {
    animation: lightningPulse 10s ease-in-out infinite;
}

/* Menu Tray */
.menu-tray {
    position: fixed;
    top: 0;
    left: 0;
    width: 40%;
    max-width: 400px;
    min-width: 280px;
    height: 100vh;
    z-index: 2000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.menu-tray.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.menu-tray-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1999;
}

.menu-tray.active .menu-tray-backdrop {
    opacity: 1;
}

.menu-tray-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 40%;
    max-width: 400px;
    min-width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(245, 241, 232, 0.95) 0%, rgba(254, 253, 248, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 80px 32px 32px;
    overflow-y: auto;
    z-index: 2000;
}

:is(html.theme-dark, body.theme-dark) .menu-tray-content {
    background: linear-gradient(135deg, rgba(15, 19, 26, 0.95) 0%, rgba(21, 27, 36, 0.95) 100%);
}

.menu-tray.active .menu-tray-content {
    transform: translateX(0);
}

.menu-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 200px;
    color: var(--primary-gold);
    opacity: 0.1;
    filter: blur(2px);
    pointer-events: none;
    z-index: 0;
    user-select: none;
    line-height: 1;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.menu-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-gold);
    padding: 0 20px 20px 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
    line-height: 1;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .menu-title {
        font-size: 20px;
        padding: 0 16px 16px 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .menu-title {
        font-size: 18px;
        padding: 0 12px 14px 12px;
        text-align: center;
    }
}

.menu-link {
    display: block;
    padding: 16px 20px;
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    border-radius: 12px;
    transition: all 0.25s ease-in-out;
    transform: translateX(-20px);
    opacity: 0;
}

.menu-tray.active .menu-link {
    transform: translateX(0);
    opacity: 1;
}

.menu-tray.active .menu-link:nth-child(1) {
    transition-delay: 0.05s;
}

.menu-tray.active .menu-link:nth-child(2) {
    transition-delay: 0.1s;
}

.menu-tray.active .menu-link:nth-child(3) {
    transition-delay: 0.15s;
}

.menu-tray.active .menu-link:nth-child(4) {
    transition-delay: 0.2s;
}

.menu-tray.active .menu-link:nth-child(5) {
    transition-delay: 0.25s;
}

.menu-tray.active .menu-link:nth-child(6) {
    transition-delay: 0.3s;
}

.menu-link:hover,
.menu-link:focus-visible {
    background: rgba(212, 165, 116, 0.15);
    color: var(--primary-gold);
    transform: translateX(-8px) scale(1.02);
}

.menu-link:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--primary-gold);
    background: transparent;
    color: var(--primary-gold);
    cursor: pointer;
    transition: all 0.3s ease, border-color 0.2s ease;
    box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    position: relative;
    flex-shrink: 0;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--amber) 100%);
    color: var(--cream);
    box-shadow: 0 8px 18px rgba(212, 165, 116, 0.3);
}

.theme-toggle::before {
    content: attr(data-icon);
    line-height: 1;
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 3px;
}

:is(html.theme-dark, body.theme-dark) .header,
:is(html.theme-dark, body.theme-dark) .hero,
:is(html.theme-dark, body.theme-dark) .desktop-demo-section,
:is(html.theme-dark, body.theme-dark) .features,
:is(html.theme-dark, body.theme-dark) .privacy,
:is(html.theme-dark, body.theme-dark) .app-store-section {
    background: linear-gradient(135deg, var(--parchment) 0%, var(--cream) 100%);
}

:is(html.theme-dark, body.theme-dark) .badge {
    background: rgba(232, 196, 124, 0.12);
    border: 1px solid rgba(232, 196, 124, 0.28);
}

:is(html.theme-dark, body.theme-dark) .badge:hover {
    background: rgba(232, 196, 124, 0.2);
}

:is(html.theme-dark, body.theme-dark) .feature-card,
:is(html.theme-dark, body.theme-dark) .practice-card,
:is(html.theme-dark, body.theme-dark) .practice-card.completed {
    background: rgba(21, 27, 36, 0.92);
    border-color: rgba(232, 196, 124, 0.18);
    color: var(--charcoal);
}

:is(html.theme-dark, body.theme-dark) .feature-card h3,
:is(html.theme-dark, body.theme-dark) .feature-card p,
:is(html.theme-dark, body.theme-dark) .practice-card h4,
:is(html.theme-dark, body.theme-dark) .practice-card p,
:is(html.theme-dark, body.theme-dark) .desktop-demo-header h2,
:is(html.theme-dark, body.theme-dark) .desktop-demo-header p {
    color: var(--charcoal);
}

:is(html.theme-dark, body.theme-dark) .phone-screen,
:is(html.theme-dark, body.theme-dark) .desktop-screen,
:is(html.theme-dark, body.theme-dark) .wide-screen,
:is(html.theme-dark, body.theme-dark) .app-iframe {
    background: var(--cream);
}

:is(html.theme-dark, body.theme-dark) .desktop-frame::after {
    color: var(--gray);
}

:is(html.theme-dark, body.theme-dark) .footer {
    background: #0A1421;
    color: white;
}

:is(html.theme-dark, body.theme-dark) .footer-section h3 {
    color: var(--primary-gold);
}

:is(html.theme-dark, body.theme-dark) .footer-section p,
:is(html.theme-dark, body.theme-dark) .footer-section a {
    color: rgba(255, 255, 255, 0.85);
}

:is(html.theme-dark, body.theme-dark) .footer-section a:hover {
    color: var(--primary-gold);
}

:is(html.theme-dark, body.theme-dark) .footer-badge {
    background: rgba(232, 196, 124, 0.12);
    border-color: rgba(232, 196, 124, 0.35);
    color: var(--primary-gold);
}

:is(html.theme-dark, body.theme-dark) .footer-badge:hover {
    background: rgba(232, 196, 124, 0.2);
    border-color: rgba(232, 196, 124, 0.5);
}

:is(html.theme-dark, body.theme-dark) .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.15);
}

:is(html.theme-dark, body.theme-dark) .footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

:is(html.theme-dark, body.theme-dark) .footer-bottom a {
    color: rgba(232, 196, 124, 0.9);
}

.hebrew-blessing {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--primary-gold);
    font-weight: 300;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    z-index: 1001;
    line-height: 1;
    display: flex;
    align-items: center;
}

.hebrew-blessing:hover {
    opacity: 1;
}


/* Footer */
.footer {
    background: var(--deep-blue);
    color: white;
    padding: 60px 0 30px;
    text-align: left;
}

/* Responsive grid: 4 columns on xl, 2 columns on md, 1 column on mobile */
.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 48px;
    align-items: start;
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Mobile: 1 column */
@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-gold);
    line-height: 1.4;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    line-height: 1.7;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--primary-gold);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

/* Footer badge container - centered alignment */
.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    align-items: center;
}

.footer-badge {
    background: rgba(212, 165, 116, 0.12);
    border: 1px solid rgba(212, 165, 116, 0.35);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.8rem;
    color: var(--primary-gold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.footer-badge:hover {
    background: rgba(212, 165, 116, 0.2);
    border-color: rgba(212, 165, 116, 0.5);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.2);
    transform: translateY(-1px);
}

/* Footer icon styling */
.footer-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.8;
}

/* Footer bottom section */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 32px;
    margin-top: 32px;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom-content .theme-toggle {
    margin-left: 16px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    text-align: center;
    margin: 0;
    line-height: 1.6;
}

.footer-bottom a {
    color: rgba(212, 165, 116, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--primary-gold);
    text-decoration: underline;
}

/* Footer responsive adjustments */
@media (max-width: 640px) {
    .footer {
        padding: 48px 0 24px;
    }

    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .footer-section p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .footer-section a {
        font-size: 0.9rem;
    }

    .footer-badges {
        gap: 6px;
        margin-top: 12px;
    }

    .footer-badge {
        padding: 5px 12px;
        font-size: 0.75rem;
    }

    .footer-bottom {
        padding-top: 24px;
        margin-top: 24px;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}


/* Shared surface tokens for cards / mockups */
:root {
    --surface: #FFFFFF;
    --surface-muted: rgba(255, 255, 255, 0.7);
    --surface-border: rgba(44, 62, 80, 0.1);
}

:is(html.theme-dark, body.theme-dark) {
    --surface: #1A222E;
    --surface-muted: rgba(26, 34, 46, 0.85);
    --surface-border: rgba(232, 196, 124, 0.16);
}

:is(html.theme-dark, body.theme-dark) .hero-cta-primary {
    background: var(--primary-gold);
    color: #0A1421;
}

:is(html.theme-dark, body.theme-dark) .hero-cta-primary:hover {
    background: var(--amber);
    color: #0A1421;
}

@media (max-width: 768px) {
    .hebrew-blessing {
        right: 15px;
        font-size: 12px;
    }

    .menu-tray,
    .menu-tray-content {
        width: 85vw;
        min-width: 280px;
    }
}

@media (max-width: 480px) {
    .hebrew-blessing {
        right: 12px;
        font-size: 11px;
    }

    .header .container {
        padding-right: 72px;
    }
}
