/* --- P1 CREATIONS LLC | MASTER CONSOLIDATED STYLE --- */

:root {
    --bg: #0a0a0b;
    --secondary: #161618;
    --text: #f0f0f2;
    --accent: #00ff88;
    --border: rgba(255, 255, 255, 0.1);
    --transition: cubic-bezier(0.23, 1, 0.32, 1);
}

/* 1. BASE BODY & LAYOUT */
body {
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 2. CONSOLIDATED REVEAL ENGINE */
.reveal, .reveal-delay {
    opacity: 0;
    transform: translateY(30px);
    transition: 1.2s var(--transition);
}

.reveal-delay { transition-delay: 0.2s; }

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

/* 3. NAVIGATION & LINKS */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: 0.3s ease;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent);
}

/* 4. HERO, KICKER & BUTTONS */
.hero { padding: 160px 0 80px; text-align: center; }

.company-kicker {
    display: inline-block;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 10px;
    color: var(--accent);
    margin-bottom: 30px;
    text-transform: uppercase;
}

h1 .accent { color: var(--accent); }

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.btn-primary, .btn-secondary {
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-secondary {
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

/* 5. SECTIONS: ORIGIN, BENTO, STATS */
section { padding: 100px 0; }

.origin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    height: 450px;
    background: linear-gradient(145deg, #1a1a1d, #0a0a0b);
    border-radius: 30px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- BENTO GRID: SWARM ON TOP CONFIGURATION --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Changed to 2 columns */
    gap: 20px;
    margin-top: 40px;
}

.bento-item {
    background: var(--secondary);
    padding: 3rem; /* Increased padding for a more premium feel */
    border-radius: 28px;
    border: 1px solid var(--border);
    transition: 0.3s var(--transition);
}

.bento-item:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

/* Forces Swarm to take up the entire top row */
.main-feature { 
    grid-column: span 2; 
    background: linear-gradient(145deg, #1a1a1d, #111);
    text-align: center; /* Centers the text for the hero feature */
}

.main-feature h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.main-feature p {
    max-width: 600px;
    margin: 0 auto;
}

.stats-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-box {
    background: var(--secondary);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
    text-align: center;
    transition: 0.3s var(--transition);
}

.stat-box:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
}

/* 6. FOOTER */
.main-footer {
    margin-top: auto;
    padding: 100px 0 50px;
    background: #050505;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-brand {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand .logo { font-size: 2rem; font-weight: 900; margin-bottom: 20px; }
.mission-text { opacity: 0.5; max-width: 320px; line-height: 1.7; }

.footer-bottom {
    margin-top: 80px;      /* Space between the grid and the copyright */
    padding-top: 30px;     /* Space inside the border */
    border-top: 1px solid var(--border);
    text-align: center;    /* THE FIX: Centers the text */
    font-size: 0.8rem;
    opacity: 0.4;          /* Slightly increased from 0.2 for better readability */
    width: 100%;           /* Ensures it spans the full container */
}

/* 7. RESPONSIVE DESIGN */

/* Tablets and Below (Everything under 992px) */
@media (max-width: 992px) {
    .origin-grid, 
    .stats-wrapper, 
    .bento-grid, 
    .footer-grid {
        grid-template-columns: 1fr; /* Stacks everything in one column */
    }

    .main-feature { 
        grid-column: span 1; /* Stops the Swarm from spanning across */
    }

    .hero h1 { 
        font-size: 2.8rem; 
    }

    .image-placeholder { 
        height: 300px; 
    }
}

/* Small Phones Specific (Everything under 768px) */
@media (max-width: 768px) {
    .main-feature {
        text-align: left; /* Changes from centered to left-aligned for better readability on phones */
    }
    
    .company-kicker {
        font-size: 1.1rem;
        letter-spacing: 5px; /* Shrinks the LLC brand slightly so it doesn't wrap */
    }
}

/* --- HAMBURGER & MOBILE MENU FIX --- */

/* Hide checkbox/toggle on desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2000; /* Must be higher than the glass-nav */
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--accent);
    transition: 0.3s var(--transition);
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block; /* Shows button on mobile/tablet */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        width: 100%;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s var(--transition);
        z-index: 1500;
    }

    /* THE TRIGGER: This is what the JS "toggles" */
    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
    }

    /* HAMBURGER ANIMATION (X-Shape) */
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* --- FOUNDER'S LOG SPECIFIC STYLES --- */

.log-feed {
    max-width: 800px; /* Keeps the text at a readable width */
    margin: 0 auto 100px;
}

.log-entry {
    background: var(--secondary);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid var(--border);
    margin-bottom: 40px;
    transition: 0.3s var(--transition);
}

.log-entry:hover {
    border-color: var(--accent);
    transform: translateX(10px); /* Subtle slide effect on hover */
}

.log-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.log-date {
    font-weight: 700;
    opacity: 0.4;
    font-size: 0.9rem;
}

.log-category {
    color: var(--accent);
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.log-body h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.log-body p {
    line-height: 1.8;
    opacity: 0.7;
}

/* --- ROADMAP TIMELINE STYLES --- */

.timeline-container {
    position: relative;
    padding: 60px 0;
    max-width: 900px;
}

/* The vertical track */
.timeline-line {
    position: absolute;
    left: 30px; /* Aligned with the dots */
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 80px; /* Space for the line and dot */
    margin-bottom: 80px;
}

/* The circular milestone dots */
.timeline-dot {
    position: absolute;
    left: 22px;
    top: 0;
    width: 18px;
    height: 18px;
    background: var(--secondary);
    border: 3px solid var(--border);
    border-radius: 50%;
    z-index: 2;
}

.timeline-dot.current {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent);
}

/* Timeline Content Card */
.timeline-content {
    background: var(--secondary);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: 0.3s var(--transition);
}

.timeline-content:hover {
    border-color: var(--accent);
}

.date {
    display: block;
    color: var(--accent);
    font-weight: 900;
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.milestone-list {
    margin-top: 20px;
    padding-left: 20px;
    list-style: none;
}

.milestone-list li {
    position: relative;
    margin-bottom: 10px;
    opacity: 0.7;
    font-size: 0.95rem;
}

/* Custom Checkmark for Milestones */
.milestone-list li::before {
    content: "→";
    position: absolute;
    left: -20px;
    color: var(--accent);
}

/* Mobile Tweak: Ensure the line stays visible on small screens */
@media (max-width: 768px) {
    .timeline-container { padding-left: 10px; }
    .timeline-content { padding: 1.5rem; }
}

/* --- OFFERING PAGE STYLES --- */

.offering-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.offering-card {
    background: var(--secondary);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid var(--border);
    position: relative;
    text-align: center;
}

.offering-card.highlight {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
}

.card-badge {
    background: var(--accent);
    color: var(--bg);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.price {
    font-size: 3rem;
    font-weight: 900;
    margin: 20px 0;
}

.perks {
    list-style: none;
    margin: 30px 0;
    padding: 0;
    text-align: left;
}

.perks li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.perks li::before {
    content: "✓";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: 900;
}

.scarcity-warning {
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 80px;
    font-size: 0.9rem;
}

/* USE OF FUNDS BENTO */
.bento-funds {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.fund-box {
    background: var(--secondary);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.fund-box.main { grid-column: span 2; border-left: 4px solid var(--accent); }

/* TERMS TABLE */
.terms-table-wrapper { margin: 100px 0; }
.terms-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.terms-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.terms-table td:first-child { font-weight: 700; opacity: 0.6; }
.terms-table td:last-child { text-align: right; font-weight: 900; }

/* FORM WRAPPER */
.form-wrapper {
    background: var(--secondary);
    padding: 4rem;
    border-radius: 40px;
    border: 1px solid var(--border);
    max-width: 800px;
    margin: 0 auto 100px;
}

.input-group { margin-bottom: 20px; }
input, select, textarea {
    width: 100%;
    padding: 1.2rem;
    background: #000;
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 12px;
    font-family: inherit;
}

/* --- INVESTOR PORTAL ANALYTICS --- */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.stat-card {
    background: var(--secondary);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    text-align: left;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    margin: 10px 0;
}

.stat-card p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
}

/* PROGRESS BAR */
.funding-status-section {
    background: var(--secondary);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid var(--border);
    margin-bottom: 60px;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.progress-track {
    width: 100%;
    height: 12px;
    background: #000;
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    transition: 1s var(--transition);
}

/* DEPLOYMENT VIZ */
.deployment-viz {
    margin-bottom: 100px;
    text-align: center;
}

.viz-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    height: 200px;
    align-items: flex-end;
}

.viz-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.viz-bar-wrapper {
    width: 60px;
    height: 150px;
    background: #000;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.viz-bar {
    width: 100%;
    background: var(--accent);
    border-radius: 8px;
    opacity: 0.8;
}

.viz-item span {
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.6;
}

/* RESPONSIVE PORTAL */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }
    .viz-grid { gap: 20px; }
    .viz-bar-wrapper { width: 45px; }
}
