/* ============================================
   ReflektAI Landing Page Styles
   Design: "Confident Warmth. Premium Minimalism."
   ============================================ */

/* CSS Variables - Design Tokens */
:root {
    /* Colors */
    --primary-black: #0A0A0A;
    --pure-black: #000000;
    --warm-white: #FAFAF9;
    --pure-white: #FFFFFF;
    --gray-100: #F5F5F4;
    --gray-200: #E7E5E4;
    --gray-300: #D6D3D1;
    --gray-400: #A8A29E;
    --gray-500: #78716C;
    --gray-600: #57534E;
    --gray-700: #44403C;
    --gray-800: #292524;
    --gray-900: #1C1917;

    /* Typography */
    --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    --spacing-xxxl: 64px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-subtle: 0 1px 2px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.02);
    --shadow-small: 0 2px 6px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
    --shadow-medium: 0 4px 10px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.04);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.33, 1, 0.68, 1);
    --transition-normal: 350ms cubic-bezier(0.33, 1, 0.68, 1);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 1.6;
    color: var(--primary-black);
    background-color: var(--warm-white);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.15;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--spacing-md) 0;
    background: rgba(250, 250, 249, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary-black);
}

/* Hero Section */
.hero {
    padding: 140px 0 var(--spacing-xxxl);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

@media (min-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr 1fr;
    }
}

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

@media (min-width: 768px) {
    .hero-content {
        text-align: left;
    }
}

.hero-title {
    font-size: clamp(36px, 6vw, 56px);
    letter-spacing: -1.5px;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-black);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
    max-width: 500px;
}

@media (min-width: 768px) {
    .hero-subtitle {
        margin-left: 0;
        margin-right: auto;
    }
}

/* Store Buttons */
.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .store-buttons {
        justify-content: flex-start;
    }
}

.store-badge {
    display: inline-flex;
    align-items: center;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.store-badge:hover {
    transform: scale(0.98);
    opacity: 0.85;
}

.store-badge img {
    height: 40px;
    width: auto;
}

/* Google Play badge has extra padding built-in, compensate */
.store-badge img[alt*="Google Play"] {
    height: 60px;
    margin: -10px -10px;
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: var(--primary-black);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-medium);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--gray-800);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    color: var(--gray-500);
    font-size: 14px;
}

/* Section Title */
.section-title {
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

/* Features Section */
.features {
    padding: var(--spacing-xxxl) 0;
    background: var(--pure-white);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--spacing-md);
    background: var(--primary-black);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pure-white);
}

.feature-icon i {
    width: 24px;
    height: 24px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.25px;
    margin-bottom: var(--spacing-xs);
}

.feature-description {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.5;
}

/* How It Works Section */
.how-it-works {
    padding: var(--spacing-xxxl) 0;
    background: var(--warm-white);
}

.steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .steps {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
    }
}

.step {
    text-align: center;
    max-width: 280px;
}

.step-number {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--spacing-md);
    background: var(--primary-black);
    color: var(--pure-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.25px;
    margin-bottom: var(--spacing-xs);
}

.step-description {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.5;
}

.step-divider {
    display: none;
}

@media (min-width: 768px) {
    .step-divider {
        display: block;
        width: 60px;
        height: 2px;
        background: var(--gray-200);
        margin-top: 24px;
    }
}

/* CTA Section */
.cta {
    padding: var(--spacing-xxxl) 0;
    background: var(--primary-black);
    color: var(--pure-white);
    text-align: center;
}

.cta-title {
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -1px;
    margin-bottom: var(--spacing-md);
}

.cta-subtitle {
    font-size: 18px;
    color: var(--gray-400);
    margin-bottom: var(--spacing-xl);
}

.cta .store-buttons {
    justify-content: center;
}

.cta .store-button {
    background: var(--pure-white);
    color: var(--primary-black);
}

/* Footer */
.footer {
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    background: var(--warm-white);
    border-top: 1px solid var(--gray-200);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

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

@media (min-width: 768px) {
    .footer-brand {
        text-align: left;
    }
}

.footer-tagline {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: var(--spacing-xs);
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-links a {
    font-size: 14px;
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--gray-500);
}

/* Legal Pages */
.legal-page {
    padding: 140px 0 var(--spacing-xxxl);
}

.legal-page h1 {
    font-size: clamp(32px, 5vw, 48px);
    letter-spacing: -1px;
    margin-bottom: var(--spacing-lg);
}

.legal-page .last-updated {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: var(--spacing-xxl);
}

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

.legal-content h2 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.25px;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.legal-content p {
    margin-bottom: var(--spacing-md);
    color: var(--gray-700);
}

.legal-content ul {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.legal-content li {
    margin-bottom: var(--spacing-xs);
    color: var(--gray-700);
}

.legal-content a {
    color: var(--primary-black);
    text-decoration: underline;
}

.legal-content a:hover {
    opacity: 0.7;
}
