/* --- 1. RESET & VARIABLES --- */
:root {
    /* The Palette */
    --bg-color: #000000;       /* Pitch Black */
    --surface-color: #111111;  /* Slightly lighter for cards */
    --text-color: #ffffff;     /* Pure White */
    --text-muted: #a1a1a1;     /* Grey for secondary text */
    
    /* Tactical Colors */
    --hospital-red: #FF3B30;   /* WARNING / ENEMY */
    --gravity-green: #30D158;  /* SAFETY / SOLUTION */
    
    /* Typography */
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-stack);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* Crisp text on iPhone */
}

/* --- 2. TYPOGRAPHY --- */
h1, h2, h3 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Scales smoothly from phone to desktop */
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--text-color);
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    max-width: 65ch; /* Optimal reading length */
}

/* --- 3. LAYOUT UTILITIES --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 100px 0;
    border-bottom: 1px solid #222;
}

/* --- 4. HERO SECTION (The Hook) --- */
header.hero {
    min-height: 90vh; /* Full screen impact */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #222 0%, #000 70%);
}

.hero-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--text-color);
    padding: 18px 40px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border: 2px solid var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    margin-top: 2rem;
}

.hero-btn:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-3px); /* Slight lift effect */
}

/* --- 5. THE ENEMY (Hospital Red) --- */
.problem-section h2 span {
    color: var(--hospital-red); /* Highlights the word "Problem" or "Risk" */
}

.stat-box {
    background-color: var(--surface-color);
    border-left: 4px solid var(--hospital-red); /* Red Border */
    padding: 2rem;
    margin-top: 2rem;
}

.stat-box h3 {
    color: var(--hospital-red);
    margin-bottom: 1rem;
}

/* --- 6. THE SOLUTION (Gravity Green) --- */
.solution-section h2 span {
    color: var(--gravity-green);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Stacks on mobile */
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background-color: var(--surface-color);
    padding: 2.5rem;
    border-top: 4px solid var(--gravity-green);
    text-align: center;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    background-color: #1a1a1a;
}

.step-number {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    color: var(--gravity-green);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* --- 7. THE PROOF (Data Table) --- */
.table-wrapper {
    overflow-x: auto; /* Scrollable table on small phones */
}

.proof-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    min-width: 600px; /* Forces scroll on very small screens */
}

.proof-table th, 
.proof-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid #333;
}

.proof-table th {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.proof-table td {
    font-size: 1.2rem;
    font-weight: 600;
}

.text-red { color: var(--hospital-red); }
.text-green { color: var(--gravity-green); }

/* --- 8. FOOTER --- */
footer {
    text-align: center;
    padding: 4rem 0;
    border-top: 1px solid #222;
}

.footer-hashtag {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

/* --- 9. MOBILE RESPONSIVENESS (The Critical Part) --- */
@media (max-width: 768px) {
    section {
        padding: 60px 0; /* Less padding on mobile */
    }

    .container {
        width: 90%;
    }

    /* Stack the table if needed, or allow scroll */
    .table-wrapper {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-btn {
        width: 100%; /* Full width button on phone */
        padding: 20px;
    }
}