/* ============================================
   RestEasy - CSS Stylesheet
   Dark theme with neon green accent
   ============================================ */

/* CSS Custom Properties (Variables) */
:root {
    /* Colors */
    --color-bg: #0A0A0A;
    --color-surface: #141414;
    --color-accent: #00FF7F;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #A0A0A0;
    --color-text-muted: #666666;

    /* Typography */
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Container */
    --container-max: 1200px;
}

/* ============================================
   CSS Reset / Normalize
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* ============================================
   Global Styles
   ============================================ */

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background gradient for depth */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%,
        rgba(0, 255, 127, 0.03) 0%,
        transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-secondary);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

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

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    z-index: 2;
}

.hero-container {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

/* Mockup Column */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-mockup {
    position: relative;
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 0.8s ease-out;
}

.mockup-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 255, 127, 0.1));
    border-radius: var(--radius-xl);
}

/* Glow effect under device */
.device-mockup::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100px;
    background: radial-gradient(ellipse at center,
        rgba(0, 255, 127, 0.15) 0%,
        transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

/* Content Column */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.brand {
    margin-bottom: var(--spacing-sm);
}

.brand-name {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero-headline {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

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

/* CTA Button */
.cta-container {
    margin-top: var(--spacing-lg);
}

/* Mobile CTA (hidden by default, shown only on mobile) */
.mobile-cta-container {
    display: none;
    text-align: center;
    margin-top: var(--spacing-lg);
}

.app-store-link {
    display: inline-block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.app-store-link:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 10px 30px rgba(0, 255, 127, 0.3));
}

.app-store-badge {
    height: 60px;
    width: auto;
}

/* ============================================
   Value Props Section
   ============================================ */

.value-props {
    position: relative;
    background-color: var(--color-surface);
    padding: var(--spacing-3xl) var(--spacing-lg);
    z-index: 2;
}

.value-props-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.value-prop-item {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
}

.value-prop-item:nth-child(1) { animation-delay: 0.1s; }
.value-prop-item:nth-child(2) { animation-delay: 0.2s; }
.value-prop-item:nth-child(3) { animation-delay: 0.3s; }

.value-prop-item:hover {
    background: rgba(0, 255, 127, 0.05);
    border-color: rgba(0, 255, 127, 0.2);
    transform: translateY(-5px);
}

.value-prop-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 0 20px rgba(0, 255, 127, 0.3));
}

.value-prop-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.value-prop-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin: 0;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    position: relative;
    padding: var(--spacing-2xl) var(--spacing-lg);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 2;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
}

.footer-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    margin: 0 var(--spacing-sm);
}

.footer-link:hover {
    color: var(--color-accent);
}

/* ============================================
   Privacy Policy Page
   ============================================ */

.privacy-container {
    position: relative;
    min-height: 100vh;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-lg);
    z-index: 2;
}

.privacy-header {
    margin-bottom: var(--spacing-3xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--color-accent);
}

.privacy-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.last-updated {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.privacy-content {
    line-height: 1.8;
}

.privacy-section {
    margin-bottom: var(--spacing-2xl);
}

.privacy-section h2 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.privacy-section p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-secondary);
}

.privacy-section ul {
    list-style-position: inside;
    margin: var(--spacing-sm) 0 var(--spacing-md) var(--spacing-lg);
}

.privacy-section li {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xs);
}

.privacy-footer {
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--color-text-muted);
}

/* ============================================
   Animations
   ============================================ */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }

    .hero-visual {
        order: 2;
    }

    .hero-content {
        order: 1;
        align-items: center;
    }

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

    .brand-name {
        font-size: 3rem;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .value-props-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    :root {
        font-size: 14px;
    }

    .hero {
        min-height: auto;
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .hero-container {
        gap: var(--spacing-xl);
    }

    .brand-name {
        font-size: 2.5rem;
    }

    .hero-headline {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    /* Stack hero visual elements vertically on mobile */
    .hero-visual {
        flex-direction: column;
    }

    .device-mockup {
        max-width: 300px;
    }

    /* Show mobile CTA, hide desktop CTA on mobile */
    .mobile-cta-container {
        display: block;
    }

    .hero-content .cta-container {
        display: none;
    }

    .app-store-badge {
        height: 50px;
    }

    .value-prop-item {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .value-prop-icon {
        font-size: 2.5rem;
    }

    .value-prop-title {
        font-size: 1.25rem;
    }

    .privacy-title {
        font-size: 2rem;
    }

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

/* Small Mobile (< 375px) */
@media (max-width: 374px) {
    .brand-name {
        font-size: 2rem;
    }

    .hero-headline {
        font-size: 1.5rem;
    }

    .device-mockup {
        max-width: 250px;
    }
}