/* ================================================
   StabilityCore — Global Styles
   stabilitycore.io
   Dark theme, red (#e94560) accents
   ================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-dark: #0d0d1a;
    --bg-section: #111128;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222245;
    --red: #e94560;
    --red-dark: #d63851;
    --blue: #4a90d9;
    --gold: #e6a832;
    --green: #059669;
    --text: #e0e0e0;
    --text-muted: #999;
    --text-dim: #666;
    --white: #ffffff;
    --border: rgba(255,255,255,0.08);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

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

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

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

/* === NAVIGATION === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-size: 1.3em;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.nav-logo span { color: var(--red); }

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

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9em;
    font-weight: 500;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5em;
    cursor: pointer;
}

/* === HERO === */
.hero {
    padding: 140px 24px 80px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,0.015) 40px, rgba(255,255,255,0.015) 41px),
                repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.015) 40px, rgba(255,255,255,0.015) 41px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    margin: 0 auto;
}

.hero-label {
    display: inline-block;
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 3.2em;
    font-weight: 800;
    color: var(--white);
    line-height: 1.08;
    margin-bottom: 16px;
}

.hero h1 span { color: var(--red); }

.hero-subtitle {
    font-size: 1.2em;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-bottom: 28px;
}

.hero-badge {
    display: inline-block;
    background: rgba(233, 69, 96, 0.15);
    border: 1px solid rgba(233, 69, 96, 0.35);
    color: var(--red);
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* === SECTIONS === */
.section {
    padding: 80px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-alt {
    background: var(--bg-section);
}

.section-full {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section h2 {
    font-size: 2em;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.section h2 span { color: var(--red); }

.section h3 {
    font-size: 1.25em;
    font-weight: 700;
    color: var(--white);
    margin: 32px 0 12px;
}

.section p {
    font-size: 1.05em;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 16px;
}

.section-lead {
    font-size: 1.15em;
    color: rgba(255,255,255,0.7);
    max-width: 700px;
}

/* === STATS ROW === */
.stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 36px 0;
}

.stat {
    flex: 1;
    min-width: 180px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    border-top: 3px solid var(--red);
}

.stat-number {
    font-size: 2.2em;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.82em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === VIDEO SECTION === */
.video-section {
    background: var(--bg-dark);
    padding: 60px 24px;
    text-align: center;
}

.video-section h2 {
    color: var(--white);
    font-size: 1.6em;
    margin: 0 0 8px;
    font-weight: 700;
}

.video-section p {
    color: rgba(255,255,255,0.5);
    font-size: 0.95em;
    margin: 0 0 30px;
}

.video-wrap {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(233, 69, 96, 0.2);
    border: 1px solid rgba(233, 69, 96, 0.3);
}

.video-wrap iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
}

/* === CARDS === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 28px;
    border-left: 4px solid var(--red);
    transition: background 0.2s;
}

.card:hover { background: var(--bg-card-hover); }

.card h4 {
    font-size: 1.1em;
    color: var(--white);
    margin-bottom: 8px;
}

.card p {
    font-size: 0.95em;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.card-accent { font-size: 0.8em; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }

/* === TABLE === */
.table-wrap {
    overflow-x: auto;
    margin: 24px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

table th {
    background: var(--bg-card);
    color: var(--white);
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.88em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--red);
}

table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

table tr:hover td { background: rgba(255,255,255,0.02); }

.highlight { font-weight: 700; color: var(--red); }

/* === COMPARE CARDS === */
.compare {
    display: flex;
    gap: 24px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.compare-card {
    flex: 1;
    min-width: 280px;
    border-radius: 12px;
    padding: 28px;
}

.compare-old {
    background: rgba(233, 69, 96, 0.08);
    border: 1px solid rgba(233, 69, 96, 0.2);
}

.compare-new {
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.compare-card h4 { margin: 0 0 14px; color: var(--white); }
.compare-card ul { margin: 0; padding-left: 20px; }
.compare-card li { margin-bottom: 8px; font-size: 0.95em; color: var(--text); }

/* === PHASES / TIMELINE === */
.phases {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.phase {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.phase-marker {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2em;
    flex-shrink: 0;
}

.phase-content { flex: 1; }

.phase-content h4 {
    margin: 0 0 6px;
    font-size: 1.1em;
    color: var(--white);
}

.phase-budget {
    display: inline-block;
    background: var(--bg-card);
    color: var(--white);
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    margin-left: 8px;
}

.phase-content p {
    margin: 4px 0 0;
    font-size: 0.95em;
    color: var(--text-muted);
}

/* === CALLOUT === */
.callout {
    background: linear-gradient(135deg, var(--bg-card), #0f3460);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
    border: 1px solid var(--border);
}

.callout h3 { color: var(--white); margin: 0 0 12px; font-size: 1.3em; }
.callout p { color: rgba(255,255,255,0.8); font-size: 1.05em; margin: 0; line-height: 1.6; }

/* === CTA === */
.cta {
    padding: 80px 24px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
}

.cta h2 { color: var(--white); margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,0.7); font-size: 1.1em; max-width: 600px; margin: 0 auto 28px; }

.btn {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05em;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover { background: var(--red-dark); color: var(--white); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--red);
    color: var(--red);
}

.btn-outline:hover { background: var(--red); color: var(--white); }

/* === TEAM CARD === */
.team-card {
    display: flex;
    gap: 28px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 32px;
    border-left: 4px solid var(--red);
    margin-bottom: 24px;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2em;
    font-weight: 800;
    flex-shrink: 0;
    border: 3px solid var(--red);
}

.team-info h3 { margin: 0 0 4px; font-size: 1.3em; color: var(--white); }
.team-role { color: var(--red); font-weight: 700; font-size: 0.95em; margin-bottom: 12px; }

.team-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.team-cred {
    display: inline-block;
    background: rgba(233, 69, 96, 0.1);
    color: var(--text);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    border: 1px solid rgba(233, 69, 96, 0.2);
}

.team-bio { color: var(--text-muted); font-size: 0.95em; line-height: 1.7; margin: 0; }

/* === IMPACT CARDS === */
.impact-card {
    border-left-color: var(--red);
}

.impact-deaths { font-size: 1.4em; font-weight: 800; color: var(--red); margin-bottom: 4px; }
.impact-damage { font-size: 1.1em; font-weight: 700; color: var(--white); margin-bottom: 8px; }

/* === SCALING PATH === */
.scale-stage {
    display: flex;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 16px;
}

.scale-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 800;
    flex-shrink: 0;
    color: var(--white);
}

.scale-icon-1 { background: var(--red); }
.scale-icon-2 { background: var(--gold); }
.scale-icon-3 { background: var(--green); }

.scale-body {
    flex: 1;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
}

.scale-body h4 { margin: 0 0 4px; font-size: 1.15em; color: var(--white); }

.scale-label {
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.scale-label-1 { color: var(--red); }
.scale-label-2 { color: var(--gold); }
.scale-label-3 { color: var(--green); }

.scale-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin-top: 12px;
}

.scale-spec { font-size: 0.88em; color: var(--text-muted); line-height: 1.5; }
.scale-spec strong { color: var(--text); }

/* === CONTACT FORM === */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 0.88em;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--white);
    font-size: 1em;
    font-family: var(--font);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--red);
}

.form-group textarea { min-height: 150px; resize: vertical; }

/* === FOOTER === */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    text-align: center;
}

.footer-logo {
    font-size: 1.2em;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

.footer-logo span { color: var(--red); }

.footer p {
    font-size: 0.85em;
    color: var(--text-dim);
    margin: 4px 0;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85em;
    transition: color 0.2s;
}

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-hamburger { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(13, 13, 26, 0.98);
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }
    .hero { padding: 120px 20px 60px; }
    .hero h1 { font-size: 2.2em; }
    .section { padding: 50px 20px; }
    .stats { flex-direction: column; }
    .compare { flex-direction: column; }
    .phase { flex-direction: column; gap: 10px; }
    .team-card { flex-direction: column; align-items: center; text-align: center; }
    .team-credentials { justify-content: center; }
    .card-grid { grid-template-columns: 1fr; }
    .scale-specs { grid-template-columns: 1fr; }
    .scale-stage { flex-direction: column; }
    .video-section { padding: 40px 20px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8em; }
    .section h2 { font-size: 1.5em; }
}
