/* ============================================
   Living Laboratories — The Burton-Poynting Theory
   © 2026 Kevin Burton. All rights reserved.
   ============================================ */

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

:root {
    --color-bg: #0a0e1a;
    --color-bg-alt: #0f1424;
    --color-bg-card: #141a2e;
    --color-bg-card-hover: #1a2240;
    --color-text: #c8cdd8;
    --color-text-bright: #e8ecf4;
    --color-text-muted: #6b7394;
    --color-heading: #ffffff;
    --color-accent: #4a9eff;
    --color-accent-glow: rgba(74, 158, 255, 0.15);
    --color-accent-secondary: #f39c12;
    --color-gold: #f39c12;
    --color-border: rgba(74, 158, 255, 0.12);
    --color-border-subtle: rgba(255, 255, 255, 0.06);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --max-width: 1200px;
    --nav-height: 72px;
}

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

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

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

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

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

/* --- Navigation --- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-heading);
    text-decoration: none;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-heading);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: 0.2s;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 40px) 24px 80px;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, rgba(74, 158, 255, 0.08) 0%, transparent 60%),
                var(--color-bg);
}

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

.hero-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--color-heading);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-quote {
    margin: 40px auto;
    max-width: 600px;
}

.hero-quote blockquote {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text-bright);
    line-height: 1.8;
    border-left: 3px solid var(--color-accent);
    padding-left: 20px;
    text-align: left;
}

.hero-quote cite {
    display: block;
    margin-top: 12px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-style: normal;
    color: var(--color-text-muted);
    padding-left: 20px;
    text-align: left;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.3);
}

.btn-primary:hover {
    background: #5aabff;
    color: #fff;
    box-shadow: 0 6px 30px rgba(74, 158, 255, 0.45);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--color-accent-glow);
    color: var(--color-heading);
    border-color: var(--color-heading);
    transform: translateY(-2px);
}

.btn-text {
    background: none;
    padding: 8px 0;
    color: var(--color-accent);
    font-weight: 600;
}

.btn-text:hover {
    color: var(--color-accent-secondary);
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.section:nth-child(even) {
    background: var(--color-bg-alt);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--color-heading);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 60px;
}

/* --- Reconciliation --- */
.reconciliation-content {
    max-width: 720px;
    margin: 40px auto 0;
}

.reconciliation-content .lead {
    font-size: 1.15rem;
    color: var(--color-text-bright);
    line-height: 1.8;
    margin-bottom: 20px;
}

.reconciliation-content p {
    margin-bottom: 16px;
    text-align: justify;
}

/* --- Laws Grid --- */
.laws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.law-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.law-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-gold));
    opacity: 0;
    transition: opacity 0.3s;
}

.law-card:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(74, 158, 255, 0.1);
}

.law-card:hover::before {
    opacity: 1;
}

.law-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-accent);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 12px;
}

.law-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 4px;
}

.law-subtitle {
    font-size: 0.85rem;
    color: var(--color-gold);
    font-weight: 500;
    margin-bottom: 12px;
}

.law-card p:last-child {
    font-size: 0.92rem;
    color: var(--color-text);
    line-height: 1.65;
}

.laws-cta {
    text-align: center;
}

/* --- Tools Grid --- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.tool-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
}

.tool-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(74, 158, 255, 0.12);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.tool-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-heading);
    margin-bottom: 12px;
}

.tool-card p {
    color: var(--color-text);
    margin-bottom: 24px;
    line-height: 1.65;
}

/* --- About --- */
.section-about {
    background: var(--color-bg);
}

.about-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

/* --- Footer --- */
.main-footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding: 48px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-heading);
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

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

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

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

.footer-legal p {
    margin-bottom: 4px;
}

.footer-legal a {
    color: var(--color-text-muted);
    text-decoration: underline;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 14, 26, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links.open {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--nav-height) + 60px) 20px 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 60px 0;
    }

    .laws-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-quote blockquote {
        font-size: 0.95rem;
    }

    .law-card {
        padding: 24px;
    }

    .tool-card {
        padding: 28px;
    }
}
