/* Terrarium Network - Light Mode Theme */

:root {
    /* Light Mode Colors - Forest Green/Seafoam Theme */
    --bg-primary: #fafaf8;
    --bg-secondary: #f4f4f0;
    --bg-card: #ffffff;
    --text-primary: #1a2e1a;
    --text-secondary: #4a5f4a;
    --accent-green: #1b4332;
    --accent-seafoam: #52b788;
    --accent-light: #74c69d;
    --gradient-1: linear-gradient(135deg, #1b4332 0%, #40916c 100%);
    --gradient-2: linear-gradient(135deg, #2d6a4f 0%, #52b788 100%);
    --border-color: #d8e2d8;
    --shadow-sm: 0 1px 2px rgba(27, 67, 50, 0.05);
    --shadow-md: 0 4px 6px rgba(27, 67, 50, 0.07);
    --shadow-lg: 0 10px 25px rgba(27, 67, 50, 0.1);
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 24px;
    --container-max: 1200px;
    
    /* Effects */
    --transition: all 0.3s ease;
    --border-radius: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation - Gradient with Stars */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 24px;
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 50%, #344e41 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Stars effect */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 10px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 40px 25px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 90px 15px, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 130px 8px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 160px 20px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 200px 12px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 250px 18px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 300px 5px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 350px 22px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 400px 14px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 500px 10px, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 600px 20px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 700px 8px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 800px 16px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 900px 12px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 1000px 18px, rgba(255,255,255,0.5), transparent);
    animation: twinkle 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes twinkle {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
}

.nav-logo i {
    font-size: 24px;
    color: #52b788;
}

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

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: #52b788;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0d1f17 0%, #1b4332 50%, #2d6a4f 100%);
}

#starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    max-width: 700px;
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #95d5b2 0%, #74c69d 50%, #52b788 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -2px;
}

.hero-headline {
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 48px;
    letter-spacing: -2px;
    color: #ffffff;
    max-width: 900px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-tagline {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #52b788 0%, #40916c 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(82, 183, 136, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(82, 183, 136, 0.6);
    background: linear-gradient(135deg, #40916c 0%, #52b788 100%);
}

.hero-image {
    position: absolute;
    bottom: -30px;
    right: -50px;
    width: 450px;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* Apps Section */
.apps-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.app-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 32px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.app-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-green);
    box-shadow: var(--shadow-lg);
}

.app-card.coming-soon {
    opacity: 0.75;
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    color: white;
}

/* Terrarium Theme - Earthy, Mossy, Natural Gradients */
.app-icon.connect {
    background: linear-gradient(135deg, #2d6a4f 0%, #40916c 50%, #52b788 100%);
}

.app-icon.akashic {
    background: linear-gradient(135deg, #3a5a40 0%, #588157 50%, #a3b18a 100%);
}

.app-icon.mothership {
    background: linear-gradient(135deg, #606c38 0%, #718c4a 50%, #94a96b 100%);
}

.app-icon.substrate {
    background: linear-gradient(135deg, #344e41 0%, #4a7c59 50%, #6b9d76 100%);
}

.app-icon.abra {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 50%, #40916c 100%);
}


.app-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.app-tagline {
    font-size: 14px;
    color: var(--accent-teal);
    font-weight: 600;
    margin-bottom: 12px;
}

.app-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.app-platforms {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.platform {
    padding: 4px 12px;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.coming-soon-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    background: var(--gradient-2);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

/* About Section */
.about-section {
    padding: var(--section-padding);
    padding-bottom: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    max-width: var(--container-max);
    margin: 0 auto;
    flex-wrap: wrap;
    background: var(--bg-secondary);
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.about-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-visual {
    flex: 0 0 250px;
}

.pyramid-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: flex-end;
}

.pyramid {
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 70px solid var(--accent-green);
    opacity: 0.3;
}

.pyramid:nth-child(2) {
    border-bottom-width: 100px;
    border-left-width: 50px;
    border-right-width: 50px;
    opacity: 0.5;
}

.pyramid:nth-child(3) {
    border-bottom-width: 85px;
    border-left-width: 42px;
    border-right-width: 42px;
    opacity: 0.4;
}

/* Contact Section */
.contact-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
    text-align: center;
}

.contact-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.contact-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-email {
    display: inline-block;
    font-size: 22px;
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-email:hover {
    color: var(--accent-teal);
}

/* Footer */
.footer {
    padding: 48px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-logo i {
    color: var(--accent-green);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 13px;
    opacity: 0.7;
}

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

.footer-divider {
    color: var(--text-secondary);
    opacity: 0.5;
    margin: 0 8px;
}

.footer-location {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-copyright p {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-email {
    margin-top: 8px;
    font-size: 13px !important;
    opacity: 0.8;
}

.footer-email a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-email a:hover {
    color: var(--accent-green);
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 20px;
    }

    .navbar {
        padding: 12px 16px;
    }

    .nav-logo {
        font-size: 16px;
    }

    .nav-logo i {
        font-size: 20px;
    }

    .nav-links {
        gap: 12px;
        font-size: 14px;
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-image {
        display: none;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }

    .apps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .app-card {
        padding: 24px;
    }

    .app-icon {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    .app-card h3 {
        font-size: 18px;
    }

    .app-description {
        font-size: 14px;
    }

    .about-section {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .about-content h2 {
        font-size: 26px;
    }

    .about-content p {
        font-size: 15px;
    }

    .about-visual {
        flex: 0 0 auto;
    }

    .contact-content h2 {
        font-size: 26px;
    }

    .contact-content p {
        font-size: 16px;
    }

    .contact-email {
        font-size: 18px;
    }

    .footer {
        padding: 32px 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .about-content h2 {
        font-size: 22px;
    }

    .contact-content h2 {
        font-size: 22px;
    }
}
