/* GoldenRatioFit - Dark Theme Styles */

:root {
    /* Color Palette - Dark Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: #151520;
    --bg-card-hover: #1e1e2d;
    
    /* Accent Colors - Golden/Orange */
    --accent-primary: #f59e0b;
    --accent-secondary: #fbbf24;
    --accent-gradient-start: #f59e0b;
    --accent-gradient-end: #f97316;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(249, 115, 22, 0.05) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-gradient-start) 0%, var(--accent-gradient-end) 100%);
    --gradient-text: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 50%, #f97316 100%);
    
    /* Spacing */
    --section-padding: 120px;
    --container-max-width: 1200px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.15);
    --shadow-button: 0 4px 14px rgba(245, 158, 11, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
}

.phi-symbol {
    font-size: 1.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-cta {
    padding: 10px 20px;
    background: var(--gradient-accent);
    color: var(--bg-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-button);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0;
}

.phi-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-secondary);
    margin-bottom: 32px;
}

.phi-icon {
    font-size: 1.25rem;
    font-weight: 700;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    margin-bottom: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cta-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

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

.btn-primary {
    background: var(--gradient-accent);
    color: var(--bg-primary);
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.125rem;
    border-radius: 14px;
}

.apple-icon {
    width: 24px;
    height: 24px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

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

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-secondary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Body Types Section */
.body-types {
    background: var(--bg-secondary);
}

.archetype-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.archetype-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition-normal);
}

.archetype-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: rgba(245, 158, 11, 0.2);
}

.archetype-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    padding: 20px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 20px;
    color: var(--accent-primary);
}

.archetype-icon svg {
    width: 100%;
    height: 100%;
}

.archetype-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.archetype-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

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

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

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

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.15);
}

.feature-card.featured {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(249, 115, 22, 0.05) 100%);
    border-color: rgba(245, 158, 11, 0.3);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    padding: 14px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 14px;
    color: var(--accent-primary);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

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

/* Golden Ratio Section */
.golden-ratio-section {
    background: var(--bg-secondary);
}

.golden-ratio-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.golden-ratio-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 16px 0 24px;
    letter-spacing: -0.02em;
}

.golden-ratio-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.ratio-visual {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.ratio-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.ratio-line:first-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ratio-label {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.ratio-value {
    font-family: 'SF Mono', monospace;
    font-weight: 600;
    color: var(--accent-primary);
}

.golden-ratio-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phi-circle {
    width: 280px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    position: relative;
}

.phi-large {
    font-size: 120px;
    font-weight: 200;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.9;
}

.spiral-decoration {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(245, 158, 11, 0.1);
    border-radius: 50%;
}

.spiral-decoration::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 50%;
}

.spiral-decoration::after {
    content: '';
    position: absolute;
    inset: 40px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 50%;
}

/* Download Section */
.download {
    background: var(--bg-primary);
    padding: 80px 0;
}

.download-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(249, 115, 22, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 32px;
    padding: 64px;
    text-align: center;
}

.download-content {
    max-width: 500px;
    margin: 0 auto;
}

.download-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.download-content > p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

.download-note {
    margin-top: 20px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 64px 0 32px;
}

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

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 32px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 48px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.phi-footer {
    margin-top: 8px;
    font-family: 'SF Mono', monospace;
    font-size: 0.75rem !important;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .golden-ratio-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .golden-ratio-visual {
        order: -1;
    }
    
    .phi-circle {
        width: 200px;
        height: 200px;
    }
    
    .phi-large {
        font-size: 80px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .hero-cta {
        margin-bottom: 56px;
    }
    
    .features-grid,
    .archetype-grid {
        grid-template-columns: 1fr;
    }
    
    .download-card {
        padding: 40px 24px;
        margin: 0 -24px;
        border-radius: 0;
    }
    
    .footer-links {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        height: 64px;
    }
    
    .nav-brand .brand-text {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .btn-large {
        padding: 16px 28px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .archetype-card,
    .feature-card {
        padding: 28px 24px;
    }
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

.gradient-orb {
    animation: pulse 6s ease-in-out infinite;
}

.orb-2 {
    animation-delay: -3s;
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 80px;
}

/* Selection styling */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: var(--text-primary);
}
