/* ===================================
   PRECISION & ORDER - DESIGN SYSTEM
   Minimalist, masculine, timeless
   =================================== */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #FFFFFF;
    background-color: #0B0B0B;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   DESIGN TOKENS
   =================================== */

:root {
    /* Colors */
    --color-black: #000000;
    --color-dark-bg: #0B0B0B;
    --color-dark-surface: #111111;
    --color-white: #FFFFFF;
    --color-muted: #E6E6E6;
    --color-border: #BDBDBD;
    --color-card: #1A1A1A;
    --color-subtle: #2A2A2A;
    
    /* Typography */
    --font-display: 'Libre Bodoni', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Containers */
    --container-max: 1200px;
    --container-padding: 2rem;
    
    /* Animations */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-white);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-muted);
}

.text-large {
    font-size: 1.125rem;
}

.text-small {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

/* ===================================
   LINKS & INTERACTIONS
   =================================== */

/* Base link styles - override default blue/purple */
a {
    color: var(--color-white);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-muted);
}

a:visited {
    color: var(--color-white);
}

a:active {
    color: var(--color-border);
}

/* Content links (within text) */
.post-body a,
.playbook-content a,
.content-main a {
    color: var(--color-border);
    text-decoration: underline;
    text-decoration-color: var(--color-subtle);
    text-underline-offset: 2px;
    transition: all var(--transition-fast);
}

.post-body a:hover,
.playbook-content a:hover,
.content-main a:hover {
    color: var(--color-white);
    text-decoration-color: var(--color-border);
}

.post-body a:visited,
.playbook-content a:visited,
.content-main a:visited {
    color: var(--color-muted);
    text-decoration-color: var(--color-subtle);
}

/* ===================================
   LAYOUT & CONTAINERS
   =================================== */

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

/* ===================================
   NAVIGATION
   =================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(11, 11, 11, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-subtle);
    z-index: 1000;
    transition: var(--transition-base);
}

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

.nav-logo {
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-white);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 30px;
    height: 24px;
    justify-content: space-between;
    align-items: stretch;
}

.nav-toggle span {
    display: block;
    height: 3px;
    background: var(--color-white);
    transition: var(--transition-base);
    border-radius: 1px;
    width: 100%;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--color-dark-bg);
        flex-direction: column;
        padding: var(--space-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
        border-bottom: 1px solid var(--color-subtle);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-link {
        padding: var(--space-sm) 0;
    }
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    min-height: 48px;
}

.btn-primary {
    background: var(--color-white) !important;
    color: var(--color-black) !important;
    border: 1px solid var(--color-white);
}

.btn-primary:hover {
    background: var(--color-muted) !important;
    color: var(--color-black) !important;
    transform: translateY(-1px);
    border-color: var(--color-muted);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-black);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--color-muted);
    border: 1px solid var(--color-subtle);
}

.btn-outline:hover {
    border-color: var(--color-white);
    color: var(--color-white);
    transform: translateY(-1px);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-3xl) 0;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #000000 0%, #0B0B0B 50%, #111111 100%);
}



.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-headline {
    margin-bottom: var(--space-lg);
    font-weight: 700;
    animation: warmGlow 4s ease-in-out infinite, slideInUp 1s ease 0.2s both;
    transition: all 0.3s ease;
    letter-spacing: -0.03em;
    text-align: center;
    position: relative;
    /* Base glow that's always visible */
    text-shadow: 
        0 0 8px rgba(255, 220, 150, 0.3),
        0 0 16px rgba(255, 200, 120, 0.2),
        0 0 24px rgba(255, 180, 100, 0.1);
}

.hero-headline:hover {
    transform: translateY(-2px);
    text-shadow: 
        0 0 25px rgba(255, 220, 150, 0.9),
        0 0 50px rgba(255, 200, 120, 0.7),
        0 0 75px rgba(255, 180, 100, 0.5),
        0 0 100px rgba(255, 160, 80, 0.3),
        0 0 125px rgba(255, 140, 60, 0.2);
}

.hero-subhead {
    font-size: 1.25rem;
    margin-bottom: var(--space-2xl);
    color: var(--color-muted);
    font-family: var(--font-sans);
    animation: slideInUp 1s ease 0.4s both;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 1s ease 0.6s both;
}

.hero-cta .btn-primary {
    animation: buttonPulse 3s infinite 2s;
    background: var(--color-white) !important;
    color: var(--color-black) !important;
    border: 1px solid var(--color-white);
}

.hero-cta .btn-primary:hover {
    background: var(--color-muted) !important;
    color: var(--color-black) !important;
    border-color: var(--color-muted);
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .hero-headline,
    .hero-subhead,
    .hero-cta,
    .footer-tagline {
        animation: none;
    }
    
    .hero-headline {
        text-shadow: 
            0 0 12px rgba(255, 220, 150, 0.5),
            0 0 24px rgba(255, 200, 120, 0.3),
            0 0 36px rgba(255, 180, 100, 0.2);
    }
    
    .footer-tagline {
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
    }
    
    .hero-headline:hover,
    .footer-tagline:hover {
        transform: none;
        text-shadow: 
            0 0 20px rgba(255, 220, 150, 0.7),
            0 0 40px rgba(255, 200, 120, 0.5),
            0 0 60px rgba(255, 180, 100, 0.3);
    }
}

/* Performance optimization for mobile */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: var(--space-2xl) 0;
    }
    
    .hero::before {
        background-size: 30px 30px;
        animation-duration: 15s;
    }
    
    .hero::after {
        background-size: 80px 80px, 120px 120px, 160px 160px;
    }
    
    .precision-line.vertical {
        display: none; /* Hide vertical lines on mobile for cleaner look */
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-headline {
        animation-delay: 0.1s;
    }
    
    .hero-subhead {
        animation-delay: 0.2s;
    }
    
    .hero-cta {
        animation-delay: 0.3s;
    }
}

/* ===================================
   SECTIONS
   =================================== */

section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
}

/* ===================================
   FEATURED CONTENT
   =================================== */

.featured-content {
    background: var(--color-dark-surface);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.post-card {
    background: var(--color-card);
    padding: var(--space-lg);
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.post-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-subtle);
}

.post-card.featured {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .post-card.featured {
        grid-column: span 1;
    }
}

.post-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-pillar {
    color: var(--color-white);
    font-weight: 600;
}

.post-reading-time {
    color: var(--color-muted);
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--color-white);
}

.post-excerpt {
    margin-bottom: var(--space-md);
    color: var(--color-muted);
}

.post-link {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.post-link:hover {
    color: var(--color-muted);
}

.post-link::after {
    content: '→';
    transition: var(--transition-fast);
}

.post-link:hover::after {
    transform: translateX(4px);
}

/* Playbook Card */
.playbook-card {
    background: linear-gradient(135deg, var(--color-card) 0%, var(--color-subtle) 100%);
    border: 1px solid var(--color-subtle);
}

.playbook-badge {
    display: inline-block;
    background: var(--color-white);
    color: var(--color-black);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.playbook-title {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.playbook-description {
    margin-bottom: var(--space-md);
}

/* ===================================
   EMAIL CAPTURE
   =================================== */

.email-capture-inline {
    background: var(--color-black);
    border-top: 1px solid var(--color-subtle);
    border-bottom: 1px solid var(--color-subtle);
}

.email-capture-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.email-capture-title {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.email-capture-subtitle {
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
    color: var(--color-muted);
}

.email-form {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

.form-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    background: var(--color-card);
    border: 1px solid var(--color-subtle);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-white);
    background: var(--color-dark-surface);
}

.form-input::placeholder {
    color: var(--color-muted);
}

.privacy-note {
    font-size: 0.8rem;
    color: var(--color-muted);
}

@media (max-width: 768px) {
    .email-form {
        flex-direction: column;
        align-items: center;
    }
    
    .form-input {
        width: 100%;
        max-width: 350px;
    }
    
    .btn {
        width: 100%;
        max-width: 350px;
    }
}

/* ===================================
   THREE PILLARS
   =================================== */

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.pillar-card {
    text-align: left;
    padding: var(--space-xl);
    background: var(--color-card);
    border: 1px solid var(--color-subtle);
    transition: var(--transition-base);
}

.pillar-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border);
}

.pillar-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    color: var(--color-muted);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.pillar-title {
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
}

.pillar-description {
    margin-bottom: var(--space-lg);
    font-size: 1.05rem;
    line-height: 1.7;
}

.pillar-link {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.pillar-link:hover {
    color: var(--color-muted);
    transform: translateX(4px);
}

/* ===================================
   SOCIAL PROOF
   =================================== */

.social-proof {
    text-align: center;
    background: var(--color-dark-surface);
}

.social-proof-text {
    font-size: 1.125rem;
    color: var(--color-muted);
    font-weight: 500;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--color-black);
    border-top: 1px solid var(--color-subtle);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    color: var(--color-muted);
    font-style: italic;
    animation: subtleFooterGlow 8s ease-in-out infinite;
    transition: all 0.3s ease;
}

.footer-tagline:hover {
    color: var(--color-white);
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.15),
        0 0 20px rgba(255, 255, 255, 0.08);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.footer-nav-section {
    display: flex;
    flex-direction: column;
}

.footer-nav-title {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
    color: var(--color-white);
}

.footer-nav-link {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
}

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

.footer-social {
    text-align: right;
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
    margin-top: var(--space-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-muted);
    transition: var(--transition-fast);
}

.social-link:hover {
    color: var(--color-white);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-subtle);
}

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

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .footer-social {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ===================================
   UTILITIES
   =================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===================================
   HERO ANIMATIONS
   =================================== */

/* Warm 2700K Glow Effect - Much More Visible */
@keyframes warmGlow {
    0% {
        text-shadow: 
            0 0 10px rgba(255, 220, 150, 0.4),
            0 0 20px rgba(255, 200, 120, 0.3),
            0 0 30px rgba(255, 180, 100, 0.2),
            0 0 40px rgba(255, 160, 80, 0.1);
    }
    25% {
        text-shadow: 
            0 0 15px rgba(255, 220, 150, 0.6),
            0 0 30px rgba(255, 200, 120, 0.4),
            0 0 45px rgba(255, 180, 100, 0.3),
            0 0 60px rgba(255, 160, 80, 0.2),
            0 0 80px rgba(255, 140, 60, 0.1);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(255, 220, 150, 0.8),
            0 0 40px rgba(255, 200, 120, 0.6),
            0 0 60px rgba(255, 180, 100, 0.4),
            0 0 80px rgba(255, 160, 80, 0.3),
            0 0 100px rgba(255, 140, 60, 0.2),
            0 0 120px rgba(255, 120, 40, 0.1);
    }
    75% {
        text-shadow: 
            0 0 15px rgba(255, 220, 150, 0.6),
            0 0 30px rgba(255, 200, 120, 0.4),
            0 0 45px rgba(255, 180, 100, 0.3),
            0 0 60px rgba(255, 160, 80, 0.2),
            0 0 80px rgba(255, 140, 60, 0.1);
    }
    100% {
        text-shadow: 
            0 0 10px rgba(255, 220, 150, 0.4),
            0 0 20px rgba(255, 200, 120, 0.3),
            0 0 30px rgba(255, 180, 100, 0.2),
            0 0 40px rgba(255, 160, 80, 0.1);
    }
}

/* Subtle Footer Glow Animation */
@keyframes subtleFooterGlow {
    0%, 100% {
        text-shadow: 
            0 0 3px rgba(255, 255, 255, 0.05),
            0 0 6px rgba(255, 255, 255, 0.02);
    }
    50% {
        text-shadow: 
            0 0 8px rgba(255, 255, 255, 0.1),
            0 0 15px rgba(255, 255, 255, 0.05),
            0 0 20px rgba(255, 255, 255, 0.02);
    }
}



/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Button Pulse Animation */
@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Enhanced Hero Visibility State */
.hero.hero-visible .precision-line {
    animation-play-state: running;
}

.hero.hero-visible .hero-headline {
    animation-play-state: running;
}

/* Additional Sophisticated Effects */
@keyframes borderScan {
    0%, 100% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-border-scan {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    animation: borderScan 6s ease-in-out infinite;
    z-index: 3;
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}