:root {
    --primary-bg: #120A21;
    /* Deepest purple */
    --secondary-bg: #2A1B4E;
    /* Lighter purple for cards */
    --accent-gold: #FFD700;
    --text-white: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Poppins', sans-serif;
    --transition-speed: 0.6s;
}

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

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Animations - Apple Style Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Header / Nav */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 10, 33, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    width: 200px;
    /* Placeholder width for layout */
    height: 40px;
    /* Force original small height */
}

.logo img {
    height: 120px;
    width: auto;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    /* Ensure it doesn't get cut off */
    max-width: none;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: translateY(-50%) scale(1.05);
    /* Maintain vertical center on hover */
}

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

.nav-item {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-item:hover {
    color: var(--text-white);
}

.lang-switch {
    border: 1px solid var(--glass-border);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    background: var(--glass-bg);
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Ambient Background (Removed Distinct Orbs for Clarity) */
.ambient-light {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    background: radial-gradient(circle at center, #2e1a5e 0%, var(--primary-bg) 70%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
}

.hero-subtitle {
    color: var(--accent-gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--accent-gold);
    color: #120A21;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* Hero Image (Mockup) */
.hero-image {
    margin-top: 3rem;
    width: 100%;
    max-width: 800px;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

/* Bento Grid Features */
.features {
    padding: 6rem 2rem;
    background: var(--primary-bg);
    position: relative;
}

/* Background ambient glow for section */
.features::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.bento-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bento-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Card Title Gradient */
.card-title {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(90deg, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.card-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 90%;
}

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

/* Feature Images */
.card-visual {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: visible;
    pointer-events: none;
}

.feature-img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transform: translate(10%, 10%);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.bento-card:hover .feature-img {
    transform: translate(5%, 5%) scale(1.02);
}

/* Fallbacks */
.visual-prayer,
.visual-compass {
    z-index: 0;
}

/* Tall Card (Prayer Times) Special Styling */
.grid-span-2.card-tall {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(18, 10, 33, 0.4) 100%);
}

.grid-span-2 .feature-img {
    max-width: 70%;
    /* Bigger image */
    margin-right: -2rem;
    margin-bottom: -3rem;
    transform: translate(0, 5%) rotate(-2deg);
    /* Slight tilt for dynamism */
}

.grid-span-2:hover .feature-img {
    transform: translate(0, 0) rotate(0deg) scale(1.05);
    /* Straighten and pop on hover */
}

/* Pricing Section */
.pricing {
    padding: 6rem 2rem;
    background: transparent;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.pricing-card.premium {
    background: rgba(255, 215, 0, 0.05);
    /* Subtle gold tint */
    border-color: var(--accent-gold);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
    transform: scale(1.02);
}

.popular-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-gold);
    color: #120A21;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: none;
    /* Reset light mode */
}

.card-header {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: var(--text-white);
}

.period {
    font-size: 1rem;
    color: var(--text-muted);
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.features-list li.checked::before {
    content: '✓';
    color: var(--accent-gold);
    margin-right: 0.8rem;
    font-weight: bold;
}

.features-list li.unchecked {
    opacity: 0.5;
    text-decoration: line-through;
}

.features-list li.highlight {
    color: var(--text-white);
    font-weight: 500;
}

.item-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: -0.5rem;
    margin-left: 2rem;
    display: block;
}

.full-width {
    width: 100%;
    text-align: center;
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    background: transparent;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

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

/* Media Queries */
@media (min-width: 768px) {
    h1 {
        font-size: 4rem;
    }

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

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

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Support Page Styles --- */
.support-container {
    padding: 8rem 2rem 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.support-container h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.support-intro {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-size: 1.2rem;
}

.faq-group {
    margin-bottom: 4rem;
}

.faq-group h3 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.faq-item {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    transition: background 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-item summary {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-white);
    list-style: none;
    /* Hide default triangle */
    position: relative;
    padding-right: 3rem;
}

/* Custom Accordion Icon */
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
    color: var(--accent-gold);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
    animation: fadeIn 0.3s ease;
}

.faq-answer ul,
.faq-answer ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.faq-answer li {
    margin-bottom: 0.3rem;
}

.contact-box {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    padding: 3rem;
    border-radius: 20px;
    margin-top: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-box p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

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

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