/* Athens Mfg. — Containerized Design System */

:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #c0392b;
    --accent-light: #e74c3c;
    --gold: #d4a017;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #c0392b;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #868e96;
    --gray-600: #495057;
    --gray-700: #343a40;
    --gray-800: #212529;
    --gray-900: #111111;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-primary); font-size: 16px; line-height: 1.6; color: #111111; background: var(--white); }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; margin-bottom: 0.75rem; color: #1a1a1a; }
h1 { font-size: 3.5rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }
p { margin-bottom: 0.75rem; color: #222222; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-light); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-dark { background: #1a1a2e; color: #ffffff; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #ffffff; }
.section-dark p { color: #e0e0e0; }
.section-subtitle { font-size: 1.125rem; color: #555555; margin-bottom: 2rem; }
.section-dark .section-subtitle { color: #cccccc; }

/* Navigation */
.navbar { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; background: rgba(26,26,46,0.95); backdrop-filter: blur(10px); z-index: 1000; }
.nav-brand a { font-size: 1.5rem; font-weight: 700; color: var(--white); }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: var(--gray-300); font-weight: 500; }
.nav-links a:hover { color: var(--white); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 25px; height: 3px; background: var(--white); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: var(--white); text-align: center; padding-top: 80px; }
.hero h1 { font-size: 5rem; margin-bottom: 0.5rem; background: linear-gradient(135deg, var(--white) 0%, var(--gold) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.75rem; color: var(--gray-300); margin-bottom: 0.25rem; }
.hero-tagline { font-size: 1.125rem; color: var(--gray-400); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; }

/* Buttons */
.btn { display: inline-block; padding: 0.75rem 1.5rem; font-size: 1rem; font-weight: 600; border-radius: var(--radius-md); transition: all var(--transition-fast); cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-light); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--primary); }

/* Grid System */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card { padding: 1.5rem; background: #f5f5f5; border-radius: var(--radius-lg); border: 1px solid #dddddd; transition: all var(--transition-normal); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { color: #1a1a1a; }
.card h4 { color: #1a1a1a; }
.card p { color: #333333; }
.card-dark { background: #252540; border-color: #3a3a5c; }
.card-dark:hover { background: #2e2e4a; }
.card-dark h3, .card-dark h4 { color: #ffffff; }
.card-dark p { color: #dddddd; }
.card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.card-subtitle { font-size: 0.875rem; color: #666666; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.card-dark .card-subtitle { color: var(--gold); }
.card-link { display: inline-block; margin-top: 0.75rem; font-size: 0.875rem; font-weight: 600; }
.card-list { list-style: none; margin-top: 0.75rem; }
.card-list li { padding: 0.375rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.9375rem; color: #dddddd; }
.card-list li:last-child { border-bottom: none; }
.card-list li strong { color: #ffffff; }

/* Card Features */
.card-features { margin-top: 1rem; }
.feature { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.9375rem; }
.feature:last-child { border-bottom: none; }
.feature-label { font-weight: 600; color: var(--white); }
.feature-value { color: var(--gray-300); }

/* Card Metrics */
.card-metrics { margin-top: 1rem; }
.metric { padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.metric:last-child { border-bottom: none; }
.metric-value { font-size: 2rem; font-weight: 700; color: var(--gold); display: block; }
.metric-label { font-weight: 600; color: var(--white); display: block; }
.metric-detail { font-size: 0.8125rem; color: var(--gray-300); display: block; }

/* Stat Cards */
.stat-card { padding: 1.5rem; background: rgba(255,255,255,0.08); border-radius: var(--radius-lg); text-align: center; border: 1px solid rgba(255,255,255,0.15); }
.stat-number { display: block; font-size: 2.5rem; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 0.875rem; color: var(--gray-300); }

/* Law Cards */
.law-card { padding: 1.25rem; background: #f5f5f5; border-radius: var(--radius-lg); border: 1px solid #dddddd; transition: all var(--transition-normal); }
.law-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.law-number { display: inline-block; width: 36px; height: 36px; line-height: 36px; text-align: center; background: var(--accent); color: #ffffff; border-radius: var(--radius-full); font-weight: 700; font-size: 0.875rem; margin-bottom: 0.5rem; }
.law-card h4 { margin-bottom: 0.25rem; font-size: 1rem; color: #1a1a1a; }
.law-card p { color: #333333; margin-bottom: 0; font-size: 0.9375rem; }

/* Allocation Chart */
.allocation-chart { margin: 1.5rem 0; }
.allocation-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.allocation-bar { height: 24px; border-radius: var(--radius-sm); min-width: 20px; }
.allocation-label { font-size: 0.9375rem; font-weight: 500; color: #222222; }

/* UBI Section */
.ubi-explanation { margin-bottom: 1.5rem; }
.ubi-explanation p { font-size: 0.9375rem; line-height: 1.7; color: #222222; }
.ubi-timeline { display: flex; gap: 1rem; flex-wrap: wrap; }
.ubi-milestone { flex: 1; min-width: 120px; padding: 1rem; background: #f5f5f5; border-radius: var(--radius-md); text-align: center; border: 1px solid #dddddd; }
.ubi-year { display: block; font-size: 0.8125rem; color: #666666; font-weight: 600; text-transform: uppercase; }
.ubi-amount { display: block; font-size: 1.25rem; font-weight: 700; color: var(--accent); margin: 0.25rem 0; }
.ubi-note { display: block; font-size: 0.75rem; color: #888888; }

/* Evolution Timeline */
.evolution-timeline { position: relative; padding-left: 2rem; }
.evolution-phase { position: relative; margin-bottom: 1.5rem; padding-left: 1.5rem; }
.evolution-phase:last-child { margin-bottom: 0; }
.evolution-marker { position: absolute; left: -2rem; top: 0.25rem; width: 12px; height: 12px; border-radius: var(--radius-full); background: #cccccc; border: 2px solid var(--white); }
.evolution-marker.active { background: var(--accent); }
.evolution-content h4 { margin-bottom: 0.25rem; color: #1a1a1a; }
.evolution-content p { color: #444444; font-size: 0.9375rem; margin-bottom: 0; }

/* Patent Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline-item { position: relative; margin-bottom: 1.5rem; padding-left: 1.5rem; }
.timeline-dot { position: absolute; left: -2rem; top: 0.25rem; width: 10px; height: 10px; border-radius: var(--radius-full); background: #cccccc; }
.timeline-item.completed .timeline-dot { background: var(--success); }
.timeline-item.in-progress .timeline-dot { background: var(--warning); animation: pulse 2s infinite; }
.timeline-item.pending .timeline-dot { background: #cccccc; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.timeline-content h4 { margin-bottom: 0.125rem; font-size: 1rem; color: #1a1a1a; }
.timeline-content p { color: #444444; font-size: 0.875rem; margin-bottom: 0.125rem; }
.timeline-date { font-size: 0.75rem; color: #888888; font-weight: 600; text-transform: uppercase; }

/* Patent List */
.patent-list { display: flex; flex-direction: column; gap: 1rem; }
.patent-item { padding: 1rem; background: #f5f5f5; border-radius: var(--radius-md); border: 1px solid #dddddd; }
.patent-item h4 { margin-bottom: 0.25rem; font-size: 1rem; color: #1a1a1a; }
.patent-item p { color: #444444; font-size: 0.875rem; margin-bottom: 0.5rem; }
.patent-badge { display: inline-block; padding: 0.125rem 0.5rem; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.priority-high { background: var(--danger); color: #ffffff; }
.priority-medium { background: var(--warning); color: #111111; }

/* Todo */
.todo-section { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #dddddd; }
.todo-list { display: flex; flex-direction: column; gap: 0.5rem; }
.todo-item { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; font-size: 0.9375rem; color: #222222; }
.todo-item input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.todo-item input[type="checkbox"]:checked + span { text-decoration: line-through; color: #999999; }

/* Whitepaper Cards */
.card-link-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card-link-card:hover { border-color: var(--accent); }
.card-number { font-size: 0.75rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.card-link-card h3 { margin-bottom: 0.5rem; color: #ffffff; }
.card-link-card p { color: #cccccc; font-size: 0.9375rem; flex-grow: 1; line-height: 1.6; }
.card-cta { margin-top: 1rem; font-size: 0.875rem; font-weight: 600; color: var(--gold); }

/* CTA */
.cta { background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%); color: #ffffff; }
.cta h2 { color: #ffffff; }
.cta p { color: #ffffff; }

/* Footer */
footer { background: #111111; color: #cccccc; padding: 3rem 0 1.5rem; }
footer h3 { color: #ffffff; margin-bottom: 0.5rem; }
footer h4 { color: #ffffff; margin-bottom: 0.75rem; font-size: 1rem; }
footer p { color: #cccccc; }
footer a { display: block; color: #cccccc; margin-bottom: 0.375rem; font-size: 0.875rem; }
footer a:hover { color: #ffffff; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--primary); padding: 1rem 1.5rem; gap: 1rem; }
    .nav-links.active { display: flex; }
    .nav-toggle { display: flex; }
    .hero h1 { font-size: 3rem; }
    .hero-subtitle { font-size: 1.25rem; }
    h2 { font-size: 1.75rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
}
