/* ══════════════════════════════════════════
   Aruna — Landing Page Styles
   ══════════════════════════════════════════ */

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

:root {
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-blur: 20px;
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.45);
    --accent: #FF8C00;
    --accent-glow: rgba(255, 140, 0, 0.3);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

/* ── Background Canvas ── */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 12px 0;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
    border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

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

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

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

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ── Hero Section ── */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    max-width: 560px;
}

.hero-title {
    font-size: clamp(56px, 8vw, 96px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 220, 180, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-description {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 480px;
}

/* App Store Button */
.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.app-store-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.apple-icon {
    flex-shrink: 0;
}

.app-store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.app-store-label {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0.3px;
}

.app-store-store {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ── Phone Mockup ── */
.hero-phone {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: 580px;
    background: #0a0a0a;
    border-radius: 44px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 25px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    padding: 12px;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 34px;
    background: #0a0a0a;
    border-radius: 0 0 20px 20px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(180deg,
        rgba(158, 64, 26, 0.8) 0%,
        rgba(242, 140, 38, 0.6) 50%,
        rgba(30, 20, 40, 0.9) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.phone-placeholder span {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── Features Section ── */
.features {
    position: relative;
    z-index: 1;
    padding: 120px 24px;
}

.features-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 64px;
}

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

.feature-card {
    padding: 40px 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    text-align: left;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 140, 0, 0.12);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 16px;
    margin-bottom: 24px;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ── CTA Section ── */
.cta {
    position: relative;
    z-index: 1;
    padding: 100px 24px;
    text-align: center;
}

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
}

.cta h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-btn {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #FF8C00, #FF6200);
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

/* ── Footer ── */
.footer {
    position: relative;
    z-index: 1;
    padding: 40px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

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

.footer-links a {
    font-size: 13px;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ══════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════ */

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-description {
        max-width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
        background: rgba(10, 5, 2, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 52px;
    }

    .phone-mockup {
        width: 220px;
        height: 460px;
        border-radius: 36px;
        padding: 10px;
    }

    .phone-notch {
        width: 96px;
        height: 28px;
    }

    .phone-screen {
        border-radius: 28px;
    }

    .cta-inner {
        padding: 40px 24px;
    }

    .app-store-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Legal Page Styles (used in privacy.html / terms.html) ── */
.legal-page {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.legal-page h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.legal-page .legal-date {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 48px;
}

.legal-page h2 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
}

.legal-page p,
.legal-page li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-page ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-page a {
    color: var(--accent);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}
