/* Base Reset & Typography */
:root {
    --bg-color: #FFFFFF;
    /* High contrast white */
    --card-bg: #FFFFFF;
    /* White cards */
    --card-border: #F5F5F7;
    /* Greyish white for subtle borders */
    --text-primary: #09090B;
    /* Deep Black */
    --text-secondary: #555555;
    /* Dark Grey */
    --accent: #E73250;
    /* Red from palette */
    --accent-glow: rgba(231, 50, 80, 0.1);
    --border-color: #E5E5E5;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --section-alt-bg: #FAFAFA;
    /* Off-white for alternate sections */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    /* Changed from white to primary black */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.95);
    /* Light backdrop */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 4rem 0;
    background: radial-gradient(circle at center, #FFF 0%, #FAFAFA 100%);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
    line-height: 1.1;
    color: var(--text-primary);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.hero-cards {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.card h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.primary-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: #FFF;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid var(--accent);
    box-shadow: 0 4px 15px rgba(231, 50, 80, 0.3);
}

.primary-btn:hover {
    background: transparent;
    color: var(--accent);
}

/* Strategy Section */
.strategy-section,
.systems-overview,
.deliverables-section,
.detail-section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

.truth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.truth-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.truth-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.truth-card .number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: rgba(0, 0, 0, 0.05);
    /* Adjusted for light mode */
    margin-bottom: 1rem;
}

.quote-box {
    background: var(--section-alt-bg);
    padding: 2rem;
    text-align: center;
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Systems Overview */
.system-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.system-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.system-item span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: var(--accent);
    color: #FFF;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Detail Sections */
.alt-bg {
    background: var(--section-alt-bg);
}

.module-header {
    margin-bottom: 3rem;
}

.module-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
}

.module-tag {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.col h3,
.full-width-box h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.check-list li,
.feature-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.check-list li::before {
    content: "✓";
    color: var(--accent);
    position: absolute;
    left: 0;
}

.tag-box {
    margin-top: 2rem;
    background: #FFF;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.tag-box span {
    display: inline-block;
    background: #F0F0F0;
    color: #333;
    padding: 4px 10px;
    border-radius: 4px;
    margin: 4px;
    font-size: 0.85rem;
}

.highlight {
    color: var(--text-primary);
    border-left: 2px solid var(--accent);
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.decision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.decision {
    background: rgba(231, 50, 80, 0.05);
    /* Light red tint */
    border: 1px solid rgba(231, 50, 80, 0.2);
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* System 2: Website */
.wireframe-mock {
    border: 2px dashed #CCC;
    padding: 1rem;
    border-radius: 8px;
    background: #FFF;
}

.mock-hero {
    background: #EEE;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
    padding: 1rem;
    color: #333;
}

.mock-body span {
    display: block;
    background: #F0F0F0;
    height: 10px;
    margin-bottom: 8px;
    width: 60%;
}

/* System 3: Content */
.four-col-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.bucket-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 6px;
    border-top: 3px solid var(--accent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.bucket-card h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.target-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    background: #FFF;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stat {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
}

.stat span {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

/* System 4: Timeline */
.timeline {
    position: relative;
    max-width: 800px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E0E0E0;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.marker {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: #FFF;
    border: 2px solid var(--accent);
    border-radius: 50%;
}

.content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* System 5 */
.centered-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.topics-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.topics-list span {
    border: 1px solid #CCC;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.arrow {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* System 6: Decision Loop */
.decision-loop-box {
    background: var(--section-alt-bg);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
}

.decision-loop-box ol {
    text-align: left;
    max-width: 350px;
    margin: 2rem auto;
    color: var(--text-primary);
}

.decision-loop-box ol li {
    margin-bottom: 0.5rem;
}

.loop-actions span {
    display: inline-block;
    margin: 0 1rem;
    font-weight: 700;
    color: var(--accent);
    /* Highlight actions with accent */
}

/* Deliverables */
.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.del-item {
    background: #FFF;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 3px solid var(--accent);
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Footer */
.footer {
    padding: 6rem 0;
    text-align: center;
    background: radial-gradient(circle at top, #333 0%, #000 100%);
    /* Keep footer dark for contrast */
    border-top: 1px solid #333;
    color: #FFF;
}

.footer .positioning-statement {
    color: var(--accent);
}

.footer .copyright {
    color: #888;
}

.positioning-statement {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    max-width: 700px;
    margin: 2rem auto 4rem auto;
    color: var(--accent);
}

.copyright {
    color: #555;
    font-size: 0.8rem;
}

/* Tables */
.table-container {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.data-table,
.gantt-table,
.price-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    /* Ensure readability on mobile */
}

.data-table th,
.data-table td,
.gantt-table th,
.gantt-table td,
.price-table th,
.price-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th,
.gantt-table th,
.price-table th {
    background: #EFEFEF;
    /* Light grey header */
    color: var(--text-primary);
    font-weight: 700;
}

.data-table tr:last-child td,
.price-table tr:last-child td {
    border-bottom: none;
}

/* Gantt Specifics */
.gantt-table th,
.gantt-table td {
    text-align: center;
    border: 1px solid var(--border-color);
}

.gantt-table th:first-child,
.gantt-table td:first-child {
    text-align: left;
    min-width: 200px;
    position: sticky;
    left: 0;
    background: var(--card-bg);
    /* Keep label visible */
    z-index: 10;
    border-right: 2px solid #DDD;
}

.legend {
    display: inline-block;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: #F5F5F7;
    border: 1px solid #CCC;
    border-radius: 8px;
    color: var(--text-primary);
}

.legend .block {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 4px;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

.active {
    background-color: var(--accent);
}

.review {
    background-color: #999;
}

.done {
    color: #2E7D32;
    font-weight: bold;
    font-size: 1.2rem;
}

td.active {
    background-color: rgba(231, 50, 80, 0.4);
}

/* Red tint */
td.review {
    background-color: rgba(150, 150, 150, 0.2);
}

/* Price Table */
.investment-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.investment-block {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    flex: 1 1 450px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.investment-block:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.inv-header {
    text-align: center;
    margin-bottom: 2rem;
}

.inv-header h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.price-table td {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.price-table tr.total-row td {
    font-weight: 700;
    color: #FFF;
    background: #09090B;
    /* Black background for total */
    border-top: 2px solid var(--accent);
    font-size: 1.1rem;
}

/* Responsive Tables */
@media (max-width: 600px) {
    .investment-block {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-links {
        display: none;
    }

    /* Simplified for now */

    .reverse-mobile {
        display: flex;
        flex-direction: column-reverse;
        /* Reorder text first on mobile if needed, but standard stack is fine */
    }
}