/* 
    ForgeStack Systems - v3 Styles 
    Aesthetic: High-end, sophisticated dark mode, glassy, fluid typography, perfect QA grid logic
*/

:root {
    /* Color Palette */
    --color-bg-base: #020617; /* Very deep slate */
    --color-bg-panel: rgba(15, 23, 42, 0.4); 
    --color-border: rgba(255, 255, 255, 0.06);
    --color-glass-edge: inset 0 1px 0 rgba(255,255,255,0.15); /* Premium physical glass feel */

    --color-accent-primary: #0ea5e9; 
    --color-accent-secondary: #38bdf8;
    --color-accent-hover: #0284c7;
    
    --color-accent-gold: #fbbf24;
    --color-accent-gold-bg: rgba(251, 191, 36, 0.1);

    --color-text-primary: #f8fafc;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Fluid Sizing Variables */
    --step--1: clamp(0.83rem, calc(0.78rem + 0.23vw), 0.96rem);
    --step-0: clamp(1.00rem, calc(0.91rem + 0.43vw), 1.25rem);
    --step-1: clamp(1.20rem, calc(1.07rem + 0.63vw), 1.56rem);
    --step-2: clamp(1.44rem, calc(1.26rem + 0.89vw), 1.95rem);
    --step-3: clamp(1.73rem, calc(1.48rem + 1.24vw), 2.44rem);
    --step-4: clamp(2.07rem, calc(1.73rem + 1.70vw), 3.05rem);
    --step-5: clamp(2.49rem, calc(2.03rem + 2.31vw), 3.82rem);
    --step-6: clamp(2.99rem, calc(2.37rem + 3.10vw), 4.77rem);
    
    /* Layout */
    --transition-standard: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Mesh Animations */
.bg-mesh {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #031024 0%, var(--color-bg-base) 100%);
}

.mesh-blob {
    position: absolute;
    filter: blur(120px);
    opacity: 0.5;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background: rgba(14, 165, 233, 0.15); /* Cyan */
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%; right: -10%;
    width: 60vw; height: 60vw;
    background: rgba(251, 191, 36, 0.08); /* Gold */
    animation-delay: -5s;
}

.blob-3 {
    top: 40%; left: 60%;
    width: 40vw; height: 40vw;
    background: rgba(56, 189, 248, 0.1); /* Light Blue */
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

/* Typography Base */
h1, h2, h3, h4, .footer-logo, .step-number {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

p {
    color: var(--color-text-secondary);
}

a {
    color: var(--color-accent-primary);
    text-decoration: none;
    transition: var(--transition-standard);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-cyan {
    color: var(--color-accent-secondary);
}
.text-gold {
    color: var(--color-accent-gold);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Utilities Setup */
.glass-card, .glass-panel, .site-header {
    background: var(--color-bg-panel);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), var(--color-glass-edge);
}

/* Header */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0.5rem 0;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-image {
    height: 56px; /* Balanced size for a slim, modern header */
    display: block;
    mix-blend-mode: screen; 
}

.main-nav {
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    color: var(--color-text-secondary);
    font-size: var(--step--1);
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--color-text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-standard);
    font-family: var(--font-body);
    font-size: var(--step--1);
    letter-spacing: 0.02em;
}

.btn-primary {
    background-color: var(--color-accent-primary);
    color: #fff !important;
    border: 1px solid transparent;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255,255,255,0.03);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255,255,255,0.2);
}

.btn-large {
    padding: 1.1rem 2.2rem;
    font-size: var(--step-0);
}

.btn.compact {
    padding: 0.6rem 1.25rem;
}

/* Split Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    position: relative;
    padding-bottom: 2rem; /* reduced slightly to make room for stats banner above the fold */
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--color-border);
    color: var(--color-accent-secondary);
    font-size: var(--step--1);
    font-weight: 700; /* Bolder for new text */
    letter-spacing: 0.08em; /* Slightly wider */
    margin-bottom: 2rem;
}

.hero-headline {
    font-size: var(--step-6);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-subhead {
    font-size: var(--step-1);
    margin-bottom: 3rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.trust-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--color-text-secondary);
    font-size: var(--step--1);
    font-weight: 500;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-icon {
    color: var(--color-accent-gold);
}

.visual-panel {
    border-radius: 24px;
    padding: 1rem;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.visual-panel:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}

.glass-panel-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 80%;
    background: var(--color-accent-primary);
    filter: blur(100px);
    opacity: 0.2;
    z-index: -1;
}

/* Impact Statistics Banner */
.impact-section {
    padding: 2rem 0;
}

.impact-banner {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 2rem;
    border-radius: 16px;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 180px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: var(--step-3);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.stat-label {
    font-size: var(--step--1);
    color: var(--color-text-secondary);
    line-height: 1.3;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--color-border);
}

/* Generalized Sections */
.section-header {
    margin-bottom: 4rem;
}
.section-header.center {
    text-align: center;
}
.section-header.text-center { /* Alias for center */
    text-align: center;
}
.section-header h2 {
    font-size: var(--step-4);
    margin-bottom: 1rem;
}
.section-header p {
    font-size: var(--step-1);
    max-width: 700px;
    text-wrap: balance;
}
.section-header.center p, .section-header.text-center p {
    margin: 0 auto;
}

/* Advantages Section */
.advantages-section {
    padding: 8rem 2rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.advantage-card {
    padding: 3rem;
    border-radius: 20px;
    transition: var(--transition-standard);
}

.advantage-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
    background: rgba(30, 41, 59, 0.7);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), var(--color-glass-edge);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    width: 64px; height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    box-shadow: var(--color-glass-edge);
}

.advantage-card h3 {
    font-size: var(--step-1);
    margin-bottom: 1rem;
}

/* Process Timeline (CSS Grid - ROBUST QA OVERHAUL) */
.process-section {
    padding: 8rem 0;
}

.boundary-callout {
    background: rgba(14, 165, 233, 0.05); /* very light cyan tint */
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    max-width: 800px;
    margin: 0 auto 5rem; /* push away from timeline */
    text-align: left;
    backdrop-filter: blur(10px);
}

.boundary-icon {
    font-size: 1.5rem;
    line-height: 1;
    margin-top: 0.15rem;
}

.boundary-text {
    font-size: var(--step-0);
    color: var(--color-text-primary);
    line-height: 1.6;
}

.boundary-text strong {
    color: var(--color-accent-secondary);
}

.timeline-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline-grid::before {
    content: '';
    position: absolute;
    top: 2rem;
    bottom: 2rem;
    left: 11px; /* Center of the 24px column width minus half of line width */
    width: 2px;
    background: linear-gradient(to bottom, var(--color-accent-primary), var(--color-accent-gold));
    opacity: 0.4;
    z-index: 0;
}

.timeline-row {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.timeline-graphic {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.step-dot {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--color-bg-base);
    border: 3px solid var(--color-accent-primary);
    box-shadow: 0 0 15px var(--color-accent-primary);
    flex-shrink: 0;
    margin-top: 1.6rem; /* Push dot down exactly to align with heading text */
}

.timeline-content {
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    /* By default fills the 1fr column */
}

.step-number {
    position: absolute;
    right: 2rem; top: 1.5rem;
    font-size: var(--step-5);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05); /* very subtle */
}

.timeline-content h4 {
    font-size: var(--step-2);
    margin-bottom: 0.75rem;
    color: var(--color-accent-secondary);
}


/* Pricing Section */
.pricing-section {
    padding: 8rem 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: stretch; /* vital QA fix to stretch all children equally */
}

.pricing-card {
    padding: 3.5rem 2.5rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-standard);
    height: 100%; /* Ensure it takes full stretched height */
}

.pricing-card:hover {
    transform: translateY(-8px);
}

.pricing-card.featured {
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.15), var(--color-glass-edge);
    transform: translateY(-10px);
}
.pricing-card.featured:hover {
    transform: translateY(-15px);
}

.pricing-header {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: var(--step-2);
    margin-bottom: 0.5rem;
}

.best-for {
    font-size: var(--step--1);
    margin-bottom: 1.5rem;
    min-height: 48px;
}

.founding-badge {
    display: inline-block;
    background: var(--color-accent-gold-bg);
    color: var(--color-accent-gold);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: var(--step--1);
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.amount {
    font-size: var(--step-5);
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.standard-amount {
    font-size: var(--step--1);
    text-decoration: line-through;
}

.pricing-features {
    list-style: none;
    flex-grow: 1; /* Pushes everything under it down */
    display: flex;
    flex-direction: column;
}

.pricing-features li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1.25rem;
    font-size: var(--step-0);
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent-primary);
    font-weight: bold;
}

.pricing-disclaimer {
    text-align: center;
    font-size: var(--step--1);
    margin-top: 2rem;
    opacity: 0.7;
}

/* Founder Signature (Subtle) */
.founder-signature-section {
    padding: 2rem 2rem 6rem;
}

.founder-signature {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 600px; /* Narrower for subtle reading */
    margin: 0 auto;
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.signature-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--step-0);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-secondary);
    flex-shrink: 0;
}

.signature-info {
    text-align: left;
}

.signature-info p {
    font-size: var(--step--1);
    margin-bottom: 0.25rem;
}

.signature-info strong {
    color: var(--color-text-primary);
}

.signature-bio {
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem !important;
}

.linkedin-link {
    font-size: var(--step--1);
    font-weight: 600;
    color: var(--color-accent-secondary);
    display: inline-block;
}

.linkedin-link:hover {
    color: var(--color-accent-primary);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 5rem 0 2rem;
    background: rgba(0,0,0,0.5); /* Darken bottom edge */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-size: var(--step-2);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.footer-details h4 {
    margin-bottom: 1rem;
    font-size: var(--step-0);
}

.footer-details p {
    font-size: var(--step--1);
    margin-bottom: 0.5rem;
}

.footer-details .btn {
    margin-top: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    font-size: var(--step--1);
    color: var(--color-text-muted);
}

/* Base Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 1rem; }
    .main-nav { display: none; }
    
    .hero { padding: 10rem 0 4rem; text-align: center; }
    .hero-split { grid-template-columns: 1fr; gap: 3rem; }
    .hero-actions { justify-content: center; flex-direction: column; }
    .trust-banner { justify-content: center; }
    .hero-subhead { margin: 0 auto 3rem; }
    
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-5px); }
    
    /* Let dividers vanish and stack stats */
    .stat-divider { display: none; }
    .impact-banner { flex-direction: column; gap: 1.5rem; }

    /* Founder Signature Mobile */
    .founder-signature {
        flex-direction: column;
        text-align: center;
        border-left: none;
        border-right: none;
    }
    .signature-info {
        text-align: center;
    }
}
