/* ============================================
   TradingPal - Unified Design System
   Modern, Consistent, Premium Trading App Theme
   ============================================ */

@font-face {
    font-family: 'SF Pro Display';
    font-weight: 300;
    src: local('SF Pro Display Light'), local('SFProDisplay-Light');
}
@font-face {
    font-family: 'SF Pro Display';
    font-weight: 400;
    src: local('SF Pro Display Regular'), local('SFProDisplay-Regular');
}
@font-face {
    font-family: 'SF Pro Display';
    font-weight: 600;
    src: local('SF Pro Display Semibold'), local('SFProDisplay-Semibold');
}
@font-face {
    font-family: 'SF Pro Display';
    font-weight: 700;
    src: local('SF Pro Display Bold'), local('SFProDisplay-Bold');
}

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

:root {
    /* Terracotta/Red Brand Colors */
    --brand-primary: #C05746;
    --brand-primary-light: #D4685A;
    --brand-primary-dark: #A04838;
    --brand-glow: rgba(192, 87, 70, 0.4);

    --primary: #2C2C2E;
    --primary-dark: #1C1C1E;
    --primary-soft: #232325;
    --accent-red: #FF3B30;
    
    /* Grays */
    --gray-950: #0B0B0D;
    --gray-900: #121214;
    --gray-850: #1A1A1D;
    --gray-800: #222225;
    --gray-700: #2F2F33;
    --gray-600: #3A3A40;
    
    /* Glass */
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.16);
    
    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.72);
    --text-tertiary: rgba(255, 255, 255, 0.56);
    
    /* Shadows */
    --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(44, 44, 46, 0.35);
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--gray-950);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo {
    width: 28px;
    height: 28px;
}

.nav-wordmark {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.6px;
    color: #FFFFFF;
    text-transform: uppercase;
    font-stretch: expanded;
}

.footer-wordmark {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.6px;
    color: #FFFFFF;
    text-transform: uppercase;
    font-stretch: expanded;
    margin-bottom: 1rem;
    display: block;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.nav-cta {
    padding: 9px 20px;
    background: transparent;
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    position: relative;
    overflow: hidden;
    padding: 8rem 2rem 4rem;
}

/* Terracotta gradient background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(44, 44, 46, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(35, 35, 37, 0.7) 0%, transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(28, 28, 30, 0.6) 0%, transparent 40%);
    pointer-events: none;
}

/* Plus pattern overlay with pulsing effect */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(255, 255, 255, 0.12) 50px, rgba(255, 255, 255, 0.12) 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(255, 255, 255, 0.12) 50px, rgba(255, 255, 255, 0.12) 51px);
    animation: plusPulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes plusPulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
    backdrop-filter: blur(10px);
}

.hero-badge span {
    color: var(--text-primary);
    font-weight: 600;
}

h1 {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    font-stretch: expanded;
    text-transform: uppercase;
}

h1 .gradient-text {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 720px;
    margin: 0 auto 3rem;
    letter-spacing: -0.01em;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

.cta-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    margin-bottom: 3rem;
}

.btn {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 28px;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--gray-950);
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(255, 255, 255, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

/* Screenshot Placeholder */
.hero-screenshot {
    max-width: 1100px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.screenshot-container {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(20px);
}

.screenshot-placeholder {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-850) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 1rem;
    border: 1px solid var(--glass-border);
}

/* Features Section */
.features {
    padding: 8rem 2rem;
    background: var(--gray-950);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-stretch: expanded;
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    border-radius: 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Screenshots Section */
.screenshots {
    padding: 8rem 2rem;
    background: var(--gray-950);
}

.screenshots-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.screenshot-card {
    background: var(--gray-900);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.screenshot-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
}

.screenshot-image {
    width: 100%;
    aspect-ratio: 9/16;
    background: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 1rem;
}

.screenshot-info {
    padding: 1.5rem;
}

.screenshot-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.screenshot-desc {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* About Section */
.about {
    padding: 8rem 2rem;
    background: var(--bg-primary);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about-text h2 {
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    font-stretch: expanded;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.team {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.team-member {
    padding: 2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.team-member:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(8px);
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.team-bio {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Stats Section */
.stats {
    padding: 8rem 2rem;
    background: var(--gray-900);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.stats-grid {
    max-width: 1200px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-stretch: expanded;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* About Section */
.about {
    padding: 8rem 2rem;
    background: var(--gray-950);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.team-member {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
}

.team-member:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gray-800);
    border: 2px solid var(--glass-border);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.team-name {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.team-role {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.team-bio {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* Footer */
footer {
    padding: 4rem 2rem 2rem;
    background: var(--gray-950);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    width: 36px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--text-primary);
}

.copyright {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-top: 2rem;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

/* Responsive */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.25rem;
    }
    
    .nav-logo {
        width: 24px;
        height: 24px;
    }
    
    .nav-wordmark {
        font-size: 1rem;
    }
    
    .hero {
        padding: 8rem 1.5rem 4rem;
        min-height: auto;
    }
    
    h1 {
        font-size: 2.25rem;
        line-height: 1.15;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
    }
    
    .cta-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.875rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .features,
    .stats,
    .about {
        padding: 5rem 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .features-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-title {
        font-size: 1.25rem;
    }
    
    .feature-description {
        font-size: 0.9375rem;
    }
    
    .stats-grid {
        gap: 2rem;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    .footer-logo {
        width: 28px;
        margin-bottom: 1rem;
    }
    
    .footer-links {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-link {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.875rem 1rem;
    }
    
    .nav-logo {
        width: 22px;
        height: 22px;
    }
    
    .nav-wordmark {
        font-size: 0.9375rem;
    }
    
    .hero {
        padding: 7rem 1rem 2.5rem;
    }
    
    .hero-badge {
        font-size: 0.6875rem;
        padding: 0.4rem 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 0.875rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9375rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-badge {
        font-size: 0.6875rem;
        padding: 0.375rem 0.75rem;
    }
    
    .feature-card {
        padding: 1.75rem 1.25rem;
    }
    
    .feature-icon {
        font-size: 2.25rem;
    }
    
    .feature-title {
        font-size: 1.125rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    .footer-logo {
        width: 24px;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .screenshot-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-text h2 {
        font-size: 1.75rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .team-member {
        padding: 1.5rem 1rem;
    }
    
    .team-name {
        font-size: 1.25rem;
    }
}
