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

:root {
    /* Layout sizing */
    --navbar-height: 76px;
    /* Dark theme (default) */
    --primary-color: #818cf8;
    --primary-dark: #6366f1;
    --secondary-color: #a78bfa;
    --accent-color: #f472b6;
    --bg-dark: #0f1016;
    --bg-darker: #050508;
    --bg-card: rgba(20, 20, 32, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-2: linear-gradient(135deg, #ec4899 0%, #ef4444 100%);
    --gradient-3: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --navbar-bg: rgba(15, 16, 22, 0.7);
    --navbar-bg-scrolled: rgba(15, 16, 22, 0.9);
    --shadow-color: rgba(0, 0, 0, 0.4);
    --phone-bg: #1e1e24;
    --phone-border: #3f3f46;
    --visual-bg: rgba(255, 255, 255, 0.1);
    --visual-bg-subtle: rgba(255, 255, 255, 0.05);
    --floating-card-bg: rgba(30, 30, 35, 0.9);
}

[data-theme="light"] {
    /* Light theme */
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #7c3aed;
    --accent-color: #db2777;
    --bg-dark: #f8fafc;
    --bg-darker: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.7);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: rgba(0, 0, 0, 0.08);
    --gradient-1: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-2: linear-gradient(135deg, #db2777 0%, #e11d48 100%);
    --gradient-3: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
    --navbar-bg: rgba(255, 255, 255, 0.85);
    --navbar-bg-scrolled: rgba(255, 255, 255, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.08);
    --phone-bg: #ffffff;
    --phone-border: #e2e8f0;
    --visual-bg: rgba(0, 0, 0, 0.08);
    --visual-bg-subtle: rgba(0, 0, 0, 0.04);
    --floating-card-bg: rgba(255, 255, 255, 0.9);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

[dir="rtl"] body {
    font-family: 'Heebo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.noise-overlay {
    display: none;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.book-left,
.book-right {
    position: absolute;
    width: 20px;
    height: 28px;
    border-radius: 2px;
}

.book-left {
    left: 0;
    background: #f97316;
    transform: perspective(100px) rotateY(-15deg);
}

.book-right {
    right: 0;
    background: #1e40af;
    transform: perspective(100px) rotateY(15deg);
}

.star {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: white;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.cta-button {
    background: var(--gradient-1);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
    background: var(--bg-lighter);
}

.lang-btn svg {
    transition: transform 0.3s ease;
}

.language-selector.active .lang-btn svg {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

[dir="rtl"] .lang-option {
    text-align: right;
}

.lang-option:first-child {
    border-radius: 8px 8px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 8px 8px;
}

.lang-option:hover {
    background: var(--bg-lighter);
    color: var(--text-primary);
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-inner {
    direction: rtl;
}

[dir="rtl"] .bento-grid {
    direction: rtl;
}

[dir="rtl"] .footer-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .download-buttons,
[dir="rtl"] .hero-buttons {
    flex-direction: row-reverse;
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.theme-icon {
    position: absolute;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

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

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

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

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--navbar-height) + 6rem) 0 8rem;
    overflow: hidden;
    z-index: 2;
    isolation: isolate;
}


.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 500px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 100px;
    /* Pill shape */
}

.hero-reviews {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatars {
    display: flex;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #000;
    margin-left: -12px;
}

.avatar:first-child {
    margin-left: 0;
}

.review-text {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.stars {
    color: #fbbf24;
    letter-spacing: 2px;
}

.count {
    color: var(--text-secondary);
}

/* Floating Cards in Hero */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.hero-phone {
    transform: rotate(0deg);
    position: relative;
    /* Straight for this design */
}

.floating-card {
    position: absolute;
    background: var(--floating-card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 40px var(--shadow-color);
    z-index: 20;
    min-width: 180px;
}

.card-zmanim {
    top: 15%;
    right: -40px;
    animation: float-slow 6s infinite ease-in-out;
}

.card-prayer {
    bottom: 20%;
    left: -40px;
    animation: float-slow 7s infinite ease-in-out 1s;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.card-content {
    display: flex;
    flex-direction: column;
}

.card-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-value {
    font-weight: 700;
    font-size: 1.1rem;
}

@keyframes float-slow {

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

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.9s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

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

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

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

.slide-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.slide-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Bento Grid Features */
.features {
    padding: 8rem 0;
    position: relative;
    background: var(--bg-dark);
    z-index: 0;
    clear: both;
    margin-top: 2rem;
}

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

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(260px, auto);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Span Classes */
.card-large {
    grid-column: span 2;
}

.card-tall {
    grid-row: span 2;
}

.card-full {
    grid-column: span 3;
}

/* Visuals inside cards */
.card-visual {
    margin-top: 1rem;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* List Visual */
.visual-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
    padding-left: 1rem;
}

.list-item {
    width: 100%;
    padding: 0.8rem;
    background: var(--visual-bg-subtle);
    border-radius: 8px;
    display: flex;
    gap: 10px;
}

.list-item.active {
    background: rgba(99, 102, 241, 0.15);
    border-left: 3px solid var(--primary-color);
}

.line-long,
.line-medium,
.line-short {
    height: 8px;
    background: var(--visual-bg);
    border-radius: 4px;
}

.line-long {
    width: 120px;
}

.line-medium {
    width: 80px;
}

.line-short {
    width: 40px;
}

/* GitHub Grid Visual */
.visual-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.github-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    width: 100%;
    max-width: 200px;
}

.grid-square {
    aspect-ratio: 1;
    border-radius: 3px;
    transition: all 0.2s ease;
}

/* GitHub contribution levels */
.grid-square.level-0 {
    background: var(--visual-bg-subtle);
}

.grid-square.level-1 {
    background: rgba(99, 102, 241, 0.2);
}

.grid-square.level-2 {
    background: rgba(99, 102, 241, 0.4);
}

.grid-square.level-3 {
    background: rgba(99, 102, 241, 0.6);
}

.grid-square.level-4 {
    background: var(--primary-color);
}

.grid-square:hover {
    transform: scale(1.2);
    border: 1px solid var(--primary-color);
}

/* Clock Visual */
.visual-clock {
    display: flex;
    justify-content: center;
    align-items: center;
}

.clock-face {
    width: 80px;
    height: 80px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    position: relative;
}

.clock-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 3px;
    background: var(--text-primary);
    transform-origin: left center;
    transform: rotate(-90deg);
    animation: clock-spin 10s linear infinite;
}

@keyframes clock-spin {
    100% {
        transform: rotate(270deg);
    }
}

/* Compass Visual */
.visual-compass {
    display: flex;
    justify-content: center;
}

.compass-arrow {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 50px solid var(--accent-color);
    transform: rotate(45deg);
    filter: drop-shadow(0 4px 10px rgba(236, 72, 153, 0.5));
}

/* Toggles Visual */
.visual-toggles {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.toggle-switch {
    width: 54px;
    height: 30px;
    background: var(--visual-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    appearance: none;
    -webkit-appearance: none;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.toggle-switch.is-light {
    background: var(--gradient-1);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.toggle-switch.is-light::after {
    transform: translateX(22px);
}

.toggle-switch:focus-visible {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.font-preview {
    font-size: 2.5rem;
    color: var(--text-primary);
}

.font-preview.serif {
    font-family: serif;
    font-style: italic;
    color: var(--text-secondary);
}

/* Responsive Bento */
@media (max-width: 960px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-large {
        grid-column: span 2;
    }

    .card-tall {
        grid-row: span 1;
        grid-column: span 1;
    }

    .card-wide {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
    }

    .bento-card {
        min-height: 200px;
    }
}

/* Screenshots Section */
.screenshots {
    padding: 8rem 0;
    background: var(--bg-darker);
}

.screenshots-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.screenshot-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.screenshot-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.screenshot-frame {
    text-align: center;
}

/* Phone Mockup - Images already in frames */
.phone-mockup {
    position: relative;
    display: inline-block;
}

.phone-mockup:hover {
    transform: translateY(-10px) scale(1.02);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.phone-notch {
    display: none;
}

.phone-screen {
    width: 250px;
    height: 520px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: visible;
}

.hero-screen {
    width: 280px;
    height: 580px;
    background-image: url('assets/images/prayers_example.png');
}

[data-theme="light"] .hero-screen {
    background-image: url('assets/images/prayers_example_light.png');
}

.screen-1 {
    background-image: url('assets/images/prayers_list.png');
}

[data-theme="light"] .screen-1 {
    background-image: url('assets/images/prayers_list_light.png');
}

.screen-2 {
    background-image: url('assets/images/zmanim.png');
}

.screen-3 {
    background-image: url('assets/images/tracker.png');
}

[data-theme="light"] .screen-3 {
    background-image: url('assets/images/tracker_light.png');
}

.screen-4 {
    background-image: url('assets/images/settings.png');
}

[data-theme="light"] .screen-4 {
    background-image: url('assets/images/settings_light.png');
}

.screen-5 {
    background-image: url('assets/images/themes.png');
}

[data-theme="light"] .screen-5 {
    background-image: url('assets/images/themes_light.png');
}

.screenshot-label {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Download Section */
.download {
    padding: 8rem 0;
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

.download-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.download-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.download-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.coming-soon-btn {
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.75rem;
    background: var(--gradient-1);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: not-allowed;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coming-soon-btn:disabled {
    opacity: 0.9;
}

.coming-soon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(99, 102, 241, 0.35);
}

.download-btn img {
    height: 60px;
    width: auto;
    display: block;
}

.download-btn:hover {
    transform: translateY(-5px);
}

[data-theme="light"] .gradient-orb {
    opacity: 0.15;
}

[data-theme="light"] .feature-card:hover {
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}



/* Legal Pages */
.legal-page {
    padding: 8rem 0 4rem;
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 3rem;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legal-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section ul li {
    margin-bottom: 0.5rem;
}

.legal-section strong {
    color: var(--text-primary);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-made-with {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 960px) {
    .hero-title {
        font-size: 3.5rem;
    }

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

    .card-large {
        grid-column: span 2;
    }

    .card-tall {
        grid-row: span 1;
        grid-column: span 1;
    }

    .card-wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 104px;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a:not(.cta-button) {
        display: none;
    }

    .hero {
        padding: calc(var(--navbar-height) + 4rem) 0 8rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-badge {
        align-self: center;
    }

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

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

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

    .hero-visual {
        margin-top: 2rem;
    }

    .card-zmanim {
        right: -10px;
    }

    .card-prayer {
        left: -10px;
    }

    .screenshots-carousel {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

}

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

    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .bento-card {
        min-height: 220px;
    }

    .container {
        padding: 0 1.5rem;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.1rem;
    }
}