/* ===== CSS Reset & Variables ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Islamic inspired with triage.cc boldness */
    --emerald: #047857;
    --emerald-dark: #064E3B;
    --teal: #0D9488;
    --gold: #D97706;
    --red: #DC2626;
    --blue: #2563EB;
    --dark: #0F172A;
    --dark-light: #1E293B;
    --light: #F8FAFC;
    --gray: #94A3B8;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: 120px 24px;
    --container-max: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--dark);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    color: var(--emerald);
}

.nav-links {
    display: flex;
    gap: 32px;
}

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

.nav-links a:hover {
    color: white;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 24px;
    display: none;
    flex-direction: column;
    gap: 16px;
    z-index: 99;
    border-top: 1px solid var(--dark-light);
}

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

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: var(--section-padding);
    padding-top: 140px;
    max-width: var(--container-max);
    margin: 0 auto;
    gap: 48px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--emerald);
    color: white;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 480px;
    margin-bottom: 32px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 16px 32px;
    background: var(--emerald);
    border-radius: 12px;
    transition: background 0.2s, transform 0.2s;
}

.hero-cta:hover {
    background: var(--emerald-dark);
    transform: translateY(-2px);
}

.hero-mockup {
    display: flex;
    justify-content: center;
}

/* Phone Frame */
.phone-frame {
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
}

.phone-frame.phone-dark {
    background: linear-gradient(145deg, #0f0f1a, #1a1a2e);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--emerald);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* App Preview Styles */
.app-preview {
    padding: 48px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.app-header {
    margin-bottom: 32px;
}

.app-time {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.app-location {
    font-size: 0.875rem;
    opacity: 0.8;
}

.app-prayer-time {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.app-prayer-label {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 32px;
}

.app-next {
    font-size: 0.875rem;
    opacity: 0.7;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
}

/* ===== Feature Sections ===== */
.feature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 100vh;
}

.feature-content {
    padding: 80px;
}

.feature-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    opacity: 0.7;
}

.feature-section h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.feature-section p {
    font-size: 1.125rem;
    opacity: 0.8;
    max-width: 400px;
}

.feature-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 48px;
}

/* Feature Colors */
.feature-quran {
    background: var(--emerald);
}

.feature-prayer {
    background: var(--red);
}

.feature-ai {
    background: var(--dark);
}

/* Quran Preview */
.quran-preview {
    padding: 24px;
    background: var(--dark);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.surah-header {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--dark-light);
}

.ayah-arabic {
    font-size: 1.5rem;
    text-align: right;
    direction: rtl;
    line-height: 2;
}

.ayah-translation {
    font-size: 0.875rem;
    color: var(--gray);
}

/* Prayer List Preview */
.prayer-list-preview {
    padding: 24px;
    background: var(--dark);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.prayer-item {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--dark-light);
    border-radius: 12px;
    transition: background 0.2s;
}

.prayer-item.active {
    background: var(--emerald);
}

.prayer-name {
    font-weight: 600;
}

.prayer-schedule {
    font-weight: 700;
}

/* Chat Preview */
.chat-preview {
    padding: 24px;
    background: var(--dark-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.chat-bubble {
    padding: 16px;
    border-radius: 16px;
    max-width: 90%;
}

.chat-bubble.user {
    background: var(--emerald);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
    background: var(--dark);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-bubble.ai p {
    margin-bottom: 8px;
}

.chat-source {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.grid-item {
    padding: 64px 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.grid-icon {
    width: 48px;
    height: 48px;
}

.grid-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.grid-item p {
    font-size: 1rem;
    opacity: 0.8;
}

.grid-green { background: var(--emerald); }
.grid-blue { background: var(--blue); }
.grid-orange { background: var(--gold); }
.grid-dark { background: var(--dark-light); }

/* ===== Company Section ===== */
.company-section {
    background: var(--teal);
    padding: var(--section-padding);
    text-align: center;
}

.company-content {
    max-width: 700px;
    margin: 0 auto;
}

.company-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    opacity: 0.7;
}

.company-section h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.company-section p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.company-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    opacity: 0.8;
}

/* ===== CTA Section ===== */
.cta-section {
    background: var(--dark);
    padding: var(--section-padding);
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 32px;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: var(--dark);
    padding: 12px 24px;
    border-radius: 12px;
    text-align: left;
}

.cta-badge svg {
    color: var(--emerald);
}

.cta-badge-small {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

.cta-badge-large {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-light);
    padding: 48px 24px;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--gray);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
        min-height: auto;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-mockup {
        order: 2;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .feature-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .feature-content {
        padding: 48px 24px;
        text-align: center;
    }
    
    .feature-section p {
        margin: 0 auto;
    }
    
    .feature-mockup {
        padding: 24px;
    }
    
    .feature-prayer .feature-content {
        order: 1;
    }
    
    .feature-prayer .feature-mockup {
        order: 2;
    }
    
    .phone-frame {
        width: 240px;
        height: 500px;
    }
    
    .app-prayer-time {
        font-size: 4rem;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-item {
        padding: 48px 24px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .phone-frame {
        width: 220px;
        height: 460px;
    }
    
    .app-prayer-time {
        font-size: 3.5rem;
    }
    
    .ayah-arabic {
        font-size: 1.25rem;
    }
}

/* ===== Nav Toggle Animation ===== */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
