/* ==========================================
   TAYYIB CAPITAL V3 - STYLESHEET
   ========================================== */

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

:root {
    --color-black: #000000;
    --color-emerald: #10b981;
    --color-emerald-light: #34d399;
    --color-emerald-dark: #004225;
    --color-neutral-900: #171717;
    --color-neutral-800: #262626;
    --color-neutral-700: #404040;
    --color-neutral-600: #525252;
    --color-neutral-500: #737373;
    --color-neutral-400: #a3a3a3;
    --color-neutral-300: #d4d4d4;
    --color-neutral-200: #e5e5e5;
    --color-neutral-100: #f5f5f5;
    --color-neutral-50: #fafafa;
    --color-white: #ffffff;
    --color-gold: #C9A84C;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-white);
    background: var(--color-black);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-emerald-light);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-neutral-300);
    max-width: 800px;
    margin: 0 auto;
}

.text-large {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--color-neutral-300);
    margin-bottom: 1.5rem;
}

.text-highlight {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-emerald-light);
    line-height: 1.75;
}

.gradient-text {
    background: linear-gradient(to right, var(--color-emerald-light), var(--color-emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--color-emerald);
    color: var(--color-black);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--color-emerald-light);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(16, 185, 129, 0.1);
}

/* Navigation */
#header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-neutral-800);
    transition: all 0.3s ease;
}

#header.scrolled {
    background: rgba(0, 0, 0, 0.95);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--color-neutral-300);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-emerald-light);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 6rem;
    text-align: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(4, 66, 37, 0.2), var(--color-black));
}

.gradient-orb {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2), transparent);
    filter: blur(80px);
}

.hero-content {
    max-width: 1100px;
}

.tagline {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 9999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-emerald);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-neutral-300);
    margin-bottom: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-emerald-light);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Fade In Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.fade-in-delay-1 {
    opacity: 0;
    animation: fadeIn 1s ease 0.2s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 1s ease 0.4s forwards;
}

.fade-in-delay-3 {
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Vision Section */
.section-vision {
    background: linear-gradient(to bottom, var(--color-black), var(--color-neutral-900));
}

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

.heartbeat-container {
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
    background: linear-gradient(to bottom right, rgba(4, 66, 37, 0.5), var(--color-black));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.heartbeat-svg {
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}

#heartbeatPath {
    animation: drawPath 3s ease-in-out infinite;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

.heartbeat-label {
    text-align: center;
}

.label-small {
    font-size: 0.875rem;
    color: var(--color-emerald);
    margin-bottom: 0.5rem;
}

.label-large {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Pillars Section */
.section-pillars {
    background: var(--color-black);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

.pillar-card {
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--color-neutral-800);
    background: linear-gradient(to bottom right, rgba(23, 23, 23, 0.5), var(--color-black));
    transition: all 0.3s ease;
}

.pillar-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-5px);
}

.pillar-number {
    font-size: 0.75rem;
    color: var(--color-emerald-light);
    margin-bottom: 1rem;
}

.pillar-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pillar-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.pillar-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-emerald-light);
    margin-bottom: 0.75rem;
}

.pillar-description {
    font-size: 0.875rem;
    color: var(--color-neutral-300);
    line-height: 1.6;
}

/* Virtuous Cycle */
.virtuous-cycle {
    margin-top: 3rem;
}

.cycle-svg {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
}

.cycle-circle {
    animation: rotatePath 20s linear infinite;
}

@keyframes rotatePath {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -942; }
}

.cycle-node {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Why Now Section */
.section-why-now {
    background: var(--color-neutral-900);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.reason-card {
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--color-neutral-800);
    background: rgba(0, 0, 0, 0.5);
}

.reason-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.reason-card ul {
    list-style: none;
}

.reason-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-neutral-300);
}

.reason-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--color-emerald-light);
    border-radius: 50%;
}

.why-now-conclusion {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-emerald-light);
}

/* Proof Section */
.section-proof {
    background: var(--color-black);
}

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

.proof-points {
    margin: 1.5rem 0;
}

.proof-point {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    align-items: baseline;
}

.proof-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-emerald-light);
    white-space: nowrap;
}

.proof-value {
    color: var(--color-neutral-300);
}

.trade-ledger {
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: linear-gradient(to bottom right, rgba(4, 66, 37, 0.3), var(--color-black));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.ledger-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-emerald-light);
    margin-bottom: 1rem;
}

.ledger-entries {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.ledger-entry {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.entry-id {
    color: var(--color-emerald-light);
}

.entry-arrow {
    color: var(--color-neutral-600);
}

.entry-type {
    color: var(--color-neutral-300);
}

.entry-status.verified {
    color: var(--color-emerald-light);
}

.entry-status.pending {
    color: #fbbf24;
}

/* Impact Section */
.section-impact {
    background: var(--color-neutral-900);
}

.phases {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.phase-card {
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: linear-gradient(to bottom right, rgba(4, 66, 37, 0.2), var(--color-black));
}

.phase-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.phase-number {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-emerald);
    color: var(--color-black);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
}

.phase-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.phase-years {
    font-size: 0.875rem;
    color: var(--color-emerald-light);
}

.phase-goals {
    list-style: none;
}

.phase-goals li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-neutral-300);
}

.phase-goals li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--color-emerald-light);
    border-radius: 50%;
}

.impact-conclusion {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-emerald-light);
    margin-top: 4rem;
}

/* Invest Section */
.section-invest {
    background: linear-gradient(to bottom, var(--color-black), var(--color-neutral-900));
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.benefit-card {
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--color-emerald-light);
    background: var(--color-white);
    color: var(--color-black);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: var(--color-neutral-600);
    line-height: 1.6;
}

.invest-cta {
    text-align: center;
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: linear-gradient(to bottom right, rgba(4, 66, 37, 0.3), var(--color-black));
}

.invest-message {
    font-size: 1.25rem;
    color: var(--color-neutral-300);
    margin-bottom: 1.5rem;
}

.invest-statement {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.invest-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Final CTA Section */
.section-final-cta {
    background: var(--color-black);
    padding: 5rem 0;
    text-align: center;
}

.final-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.final-subtitle {
    font-size: 1.25rem;
    color: var(--color-neutral-300);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.social-links a {
    color: var(--color-neutral-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--color-emerald-light);
}

.social-links span {
    color: var(--color-neutral-600);
}

/* Footer */
.footer {
    background: var(--color-black);
    border-top: 1px solid var(--color-neutral-800);
    padding: 2.5rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-info {
    text-align: right;
    font-size: 0.875rem;
    color: var(--color-neutral-500);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-neutral-800);
    font-size: 0.75rem;
    color: var(--color-neutral-600);
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2rem;
    }
    
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vision-grid,
    .proof-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu,
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        padding: 2rem;
        border-top: 1px solid var(--color-neutral-800);
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .pillars-grid,
    .reasons-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .ledger-entry {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 6rem 1rem 4rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
    }
    
    section {
        padding: 4rem 0;
    }
}