/* Dose Track - Design System */
:root {
    /* Brand Colors */
    --bg-primary: #0A0A0A;
    --bg-secondary: #121212;
    --bg-tertiary: #1E1E1E;
    --bg-card: #1A1A2E;
    
    --accent-blue: #4a9eff;
    --accent-blue-light: #64D2FF;
    --accent-blue-dark: #2d7dd2;
    --accent-gold: #C9A227;
    --accent-gold-light: #E5C158;
    
    --text-primary: #F2F2F2;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5);
    
    /* Spacing */
    --section-padding: 80px;
    --container-max: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-blue-light);
}

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

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

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

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: #e0e0e0;
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-app-store {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 14px 28px;
    border-radius: 14px;
}

.btn-app-store:hover {
    background: #e0e0e0;
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-app-store .btn-text {
    text-align: left;
}

.btn-app-store .btn-text-small {
    font-size: 0.75rem;
    font-weight: 400;
}

.btn-app-store .btn-text-large {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(74, 158, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(100, 210, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    margin: 0 auto 32px;
    box-shadow: var(--shadow-xl);
}

.hero h1 {
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 640px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Section Headers */
.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(74, 158, 255, 0.15);
    color: var(--accent-blue);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    background: var(--bg-primary);
}

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

.feature-card {
    background: var(--bg-tertiary);
    border-radius: 20px;
    padding: 32px;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(74, 158, 255, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-blue);
    font-size: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 12px;
}

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

/* Screenshots Section */
.screenshots {
    background: var(--bg-tertiary);
}

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

.screenshot-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
}

.screenshot-img:hover {
    transform: scale(1.02);
}

.screenshot-label {
    text-align: center;
    margin-top: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* CTA Section */
.cta {
    background: linear-gradient(180deg, var(--bg-primary) 0%, #050505 100%);
    padding: 100px 0;
    text-align: center;
}

.cta h2 {
    margin-bottom: 20px;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
}

.cta-badges {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.cta-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cta-badge-icon {
    width: 24px;
    height: 24px;
    background: rgba(74, 158, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    font-size: 0.75rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand p {
    margin-top: 12px;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Page Styles (Privacy, Support) */
.page {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.page-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 48px;
    border: 1px solid var(--border-color);
}

.page h1 {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.page-updated {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(74, 158, 255, 0.1);
    color: var(--text-muted);
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.page h2 {
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 16px;
    padding-left: 16px;
    position: relative;
}

.page h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-light) 100%);
    border-radius: 2px;
}

.page p {
    margin-bottom: 16px;
    font-size: 1rem;
}

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

.page li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.page li::marker {
    color: var(--accent-blue);
}

.page strong {
    color: var(--text-primary);
    font-weight: 600;
}

.disclaimer-box {
    background: linear-gradient(135deg, rgba(255, 159, 10, 0.1) 0%, rgba(255, 159, 10, 0.05) 100%);
    border-left: 4px solid #FF9F0A;
    padding: 24px;
    margin: 32px 0;
    border-radius: 0 12px 12px 0;
}

.disclaimer-box h2 {
    color: #FF9F0A;
    margin-top: 0;
}

.disclaimer-box h2::before {
    background: #FF9F0A;
}

.contact-box {
    background: var(--bg-tertiary);
    padding: 24px;
    border-radius: 16px;
    margin-top: 32px;
    border: 1px solid var(--border-color);
}

.contact-box strong {
    color: var(--accent-blue);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    gap: 16px;
    z-index: 99;
}

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

.mobile-nav a {
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .nav {
        display: none;
    }
    
    .nav-mobile-toggle {
        display: block;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-icon {
        width: 100px;
        height: 100px;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .page-container {
        padding: 32px 24px;
        margin: 0 16px;
        border-radius: 16px;
    }
    
    .cta-badges {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .btn-app-store {
        width: 100%;
        justify-content: center;
    }
}

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

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

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
