/* =============================================
   Third World VC - Styles
   ============================================= */

:root {
    --teal: #4ECDC4;
    --teal-dark: #3DB8B0;
    --green: #8BC34A;
    --silver: #E8E8E8;
    --silver-dark: #CCCCCC;
    --bg-primary: #121212;
    --bg-white: #181818;
    --bg-light: #1f1f1f;
    --bg-dark: #0e0e0e;
    --text-primary: #f5f5f5;
    --text-secondary: #999;
    --text-muted: #666;
    --text-light: #f5f5f5;
    --border: #2a2a2a;
    --border-light: #242424;
    --gradient-brand: linear-gradient(135deg, #4ECDC4 0%, #6BD4A8 50%, #8BC34A 100%);
    --gradient-silver: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 50%, #f5f5f5 100%);
    --error: #ef4444;
    --success: #22c55e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { 
    scroll-behavior: smooth; 
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    /* iOS safe area support */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* =============================================
   Navigation
   ============================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 18, 18, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

nav.scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3); }

.logo-lockup {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    height: 38px;
    width: auto;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.logo-text span {
    color: var(--teal);
}

.logo { height: 40px; width: auto; filter: brightness(0) invert(1); }

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

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

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

.nav-cta-group {
    display: flex;
    gap: 0.75rem;
}

.nav-cta {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav-cta.investor {
    background: var(--gradient-silver);
    color: #111;
}

.nav-cta.founder {
    background: var(--gradient-brand);
    color: #111;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    padding: 2rem;
    z-index: 999;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-menu ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.mobile-menu ul li {
    margin-bottom: 1rem;
}

.mobile-menu ul a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 4rem 4rem;
    position: relative;
    background: var(--bg-dark);
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(78, 205, 196, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -25%;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content { max-width: 800px; position: relative; z-index: 1; }

.hero h1 {
    font-size: 3.5rem; /* Fallback for older browsers */
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.hero h1:last-of-type {
    margin-bottom: 2rem;
}

.hero h1 .highlight {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    touch-action: manipulation; /* Faster tap response */
    border: none;
    cursor: pointer;
}

.btn-investor {
    background: var(--gradient-silver);
    color: #111;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-investor:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.25);
}

.btn-founder {
    background: var(--gradient-brand);
    color: #111;
    box-shadow: 0 4px 20px rgba(78, 205, 196, 0.3);
}

.btn-founder:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(78, 205, 196, 0.4);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 4rem;
    justify-content: center;
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
}

.stat { display: flex; flex-direction: column; align-items: center; }

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.4rem;
    font-weight: 500;
}

/* =============================================
   Sections
   ============================================= */
section { padding: 6rem 4rem; }

.section-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: var(--teal);
}

.section-title {
    font-size: 2rem; /* Fallback for older browsers */
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* =============================================
   Portfolio Section
   ============================================= */
.portfolio { 
    background: var(--bg-white); 
    text-align: center;
}

.portfolio-placeholder {
    margin-top: 2rem;
    padding: 4rem 2rem;
    background: var(--bg-light);
    border: 1px dashed var(--border);
    border-radius: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-placeholder p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* =============================================
   Portal Pages (Investor & Founder)
   ============================================= */
.portal-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.portal-page.investor-portal {
    background: linear-gradient(180deg, #151515 0%, var(--bg-primary) 100%);
}

.portal-page.investor-portal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-silver);
}

.portal-page.founder-portal {
    background: linear-gradient(180deg, #131313 0%, var(--bg-primary) 100%);
}

.portal-page.founder-portal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
}

.portal-container {
    width: 100%;
    max-width: 540px;
}

.portal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.portal-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.portal-icon.silver {
    background: rgba(255, 255, 255, 0.1);
    color: var(--silver);
}

.portal-icon.teal {
    background: rgba(78, 205, 196, 0.15);
    color: var(--teal);
}

.portal-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.portal-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 450px;
    margin: 0 auto;
}

/* =============================================
   Forms
   ============================================= */
.intake-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group { 
    display: flex; 
    flex-direction: column; 
    gap: 0.4rem; 
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group label .required {
    color: var(--teal);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem; /* 16px prevents iOS zoom on focus */
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    background: rgba(255, 255, 255, 0.08);
}

.page-investors .form-group input:focus,
.page-investors .form-group select:focus,
.page-investors .form-group textarea:focus,
.investor-portal .form-group input:focus,
.investor-portal .form-group select:focus,
.investor-portal .form-group textarea:focus {
    border-color: var(--silver);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error);
}

.form-group select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.form-group select option {
    background: var(--bg-light);
    color: var(--text-primary);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Form Submit Button */
.form-submit {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.form-submit.silver {
    background: var(--gradient-silver);
    color: #111;
}

.form-submit.teal {
    background: var(--gradient-brand);
    color: #111;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.3);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-submit .btn-loading {
    display: none;
}

.form-submit.loading .btn-text {
    visibility: hidden;
}

.form-submit.loading .btn-loading {
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =============================================
   Thank You Page
   ============================================= */
.thankyou-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: var(--bg-dark);
}

.thankyou-content {
    max-width: 500px;
}

.thankyou-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    background: rgba(78, 205, 196, 0.15);
    color: var(--teal);
}

.thankyou-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.thankyou-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* =============================================
   404 Page
   ============================================= */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: var(--bg-dark);
}

.error-content {
    max-width: 500px;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* =============================================
   Footer
   ============================================= */
footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 4rem 2rem;
    border-top: 1px solid var(--border-light);
}

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

.footer-left { 
    display: flex; 
    align-items: center; 
    gap: 1.5rem; 
}

.footer-logo-lockup {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-icon {
    height: 50px;
    width: auto;
}

.footer-logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

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

.footer-logo { 
    height: 32px; 
    width: auto; 
    filter: brightness(0) invert(1); 
}

.footer-tagline { 
    font-size: 0.8rem; 
    color: var(--text-muted); 
}

.footer-links { 
    display: flex; 
    gap: 2rem; 
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover { color: var(--teal); }

/* =============================================
   Animations
   ============================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content > * { 
    animation: fadeInUp 0.6s ease forwards; 
    opacity: 0; 
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3) { animation-delay: 0.2s; }
.hero-content > *:nth-child(4) { animation-delay: 0.3s; }
.hero-content > *:nth-child(5) { animation-delay: 0.4s; }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
    nav { padding: 1rem 2rem; }
    .nav-links { display: none; }
    .nav-cta-group { display: none; }
    .mobile-menu-btn { display: flex; }
    .mobile-menu { display: block; }
    
    section { padding: 4rem 2rem; }
    .hero { padding: 6rem 2rem 3rem; }
    
    .footer-content { 
        flex-direction: column; 
        gap: 1.5rem; 
        text-align: center; 
    }
    .footer-left { 
        flex-direction: column; 
        gap: 0.5rem; 
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-stats { 
        flex-wrap: wrap; 
        gap: 2rem; 
    }
    
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .hero-cta-group { 
        flex-direction: column; 
        align-items: center; 
    }
    .btn { 
        width: 100%; 
        max-width: 280px; 
    }
    .hero-stats { 
        flex-direction: column; 
        gap: 1.5rem; 
    }
    
    footer { padding: 2rem 1.5rem; }
    .footer-links { 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 1rem; 
    }
}
