/* TheLeftyGolf Design System
   Inspired by: Linear.app, Reflect.app
   No Playfair Display. Modern. Confident.
*/

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

/* ===== TOKENS ===== */
:root {
    /* Colors - Dark mode */
    --bg-primary: #0c0c0c;
    --bg-secondary: #111111;
    --bg-tertiary: #171717;
    --bg-elevated: #1c1c1c;
    
    --border-subtle: #222222;
    --border-default: #2e2e2e;
    --border-strong: #404040;
    
    --text-primary: #ededed;
    --text-secondary: #a1a1a1;
    --text-tertiary: #6e6e6e;
    
    --accent-primary: #10b981;
    --accent-secondary: #059669;
    --accent-muted: rgba(16, 185, 129, 0.15);
    
    --gold: #eab308;
    --gold-muted: rgba(234, 179, 8, 0.15);
    
    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
}

/* ===== BASE ===== */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
    color: var(--text-secondary);
    max-width: 65ch;
}

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

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-narrow {
    max-width: 800px;
}

.container-wide {
    max-width: 1400px;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(12, 12, 12, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.nav-logo {
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: var(--space-8);
}

.nav-link {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: color var(--duration-fast) ease;
}

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

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(64px + var(--space-16)) var(--space-6) var(--space-16);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 720px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: var(--space-6);
}

.hero-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: var(--space-6);
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--accent-primary), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-10);
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--duration-fast) ease;
}

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

.btn-primary:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-default);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-strong);
}

/* ===== STATS ===== */
.stats {
    display: flex;
    gap: var(--space-12);
    padding: var(--space-10) 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.stat-value {
    font-size: var(--text-3xl);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.stat-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--space-24) 0;
}

.section-header {
    margin-bottom: var(--space-12);
}

.section-header h2 {
    margin-bottom: var(--space-3);
}

.section-header p {
    font-size: var(--text-lg);
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-6);
    transition: border-color var(--duration-fast) ease;
}

.card:hover {
    border-color: var(--border-default);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-6);
}

/* ===== RANKING LIST ===== */
.ranking-list {
    display: flex;
    flex-direction: column;
}

.ranking-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: padding-left var(--duration-fast) ease;
}

.ranking-item:hover {
    padding-left: var(--space-3);
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-num {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-tertiary);
}

.ranking-item:nth-child(1) .ranking-num { color: var(--gold); }
.ranking-item:nth-child(2) .ranking-num { color: #c0c0c0; }
.ranking-item:nth-child(3) .ranking-num { color: #cd7f32; }

.ranking-name {
    font-size: var(--text-lg);
    font-weight: 500;
}

.ranking-location {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

/* ===== FOOTER ===== */
.footer {
    padding: var(--space-12) 0;
    border-top: 1px solid var(--border-subtle);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: var(--space-6);
}

.footer-link {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    transition: color var(--duration-fast) ease;
}

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

.footer-copy {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-description {
        font-size: var(--text-base);
    }
    
    .stats {
        flex-wrap: wrap;
        gap: var(--space-8);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: var(--space-6);
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===== Newsletter Signup ===== */
.newsletter-section {
    padding: 4rem 0;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 420px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-family: inherit;
    transition: border-color 0.2s;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

.newsletter-input::placeholder {
    color: var(--text-tertiary);
}

.newsletter-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.newsletter-msg {
    margin-top: 0.75rem;
    font-size: var(--text-sm);
    font-weight: 500;
}

.newsletter-msg.success {
    color: var(--accent-primary);
}

.newsletter-msg.error {
    color: #ef4444;
}

@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
    }
}
