/* TradeSocial Website — Clean Apple-inspired design */

:root {
    --brand-green: #00D851;
    --brand-green-dark: #00B844;
    --brand-green-light: #E8FFF0;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-dark: #1d1d1f;
    --border-color: #d2d2d7;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 4px 24px rgba(0, 0, 0, 0.12);
    --radius: 16px;
    --radius-sm: 12px;
    --max-width: 1080px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.5;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.nav-brand span {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Hero */
.hero {
    padding: 140px 24px 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-green-light);
    color: var(--brand-green-dark);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.08;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.hero h1 .highlight {
    color: var(--brand-green);
}

.hero .subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.4;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--text-primary);
    color: white;
    padding: 14px 28px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-cta img {
    width: 20px;
    height: 20px;
}

/* App Icon */
.app-icon-container {
    margin-bottom: 32px;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 26px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Screenshots Section */
.screenshots {
    padding: 80px 24px;
    background: var(--bg-primary);
    overflow: hidden;
}

.screenshots-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.screenshots h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.screenshots .section-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 48px;
}

.screenshot-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.screenshot-item {
    flex: 0 0 220px;
    text-align: center;
}

.screenshot-placeholder {
    width: 220px;
    height: 440px;
    background: linear-gradient(145deg, #f0f0f3, #e6e6ea);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 2px dashed var(--border-color);
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.screenshot-placeholder .icon {
    font-size: 48px;
    opacity: 0.4;
}

.screenshot-placeholder .label {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
    padding: 0 16px;
    text-align: center;
}

.screenshot-item img {
    width: 220px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-item img:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.12);
}

.screenshot-caption {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Features */
.features {
    padding: 80px 24px;
    background: var(--bg-secondary);
}

.features-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.features h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.features .section-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 48px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    text-align: left;
}

.feature-card {
    background: white;
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

/* How It Works */
.how-it-works {
    padding: 80px 24px;
    background: var(--bg-primary);
}

.how-it-works-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.how-it-works h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.how-it-works .section-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 48px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    text-align: center;
}

.step {
    padding: 16px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-green);
    color: white;
    font-size: 20px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Disclaimer Banner */
.disclaimer {
    padding: 40px 24px;
    background: var(--brand-green-light);
    border-top: 1px solid rgba(0, 216, 81, 0.2);
    border-bottom: 1px solid rgba(0, 216, 81, 0.2);
}

.disclaimer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.disclaimer h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-green-dark);
    margin-bottom: 8px;
}

.disclaimer p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Footer */
.footer {
    padding: 48px 24px 24px;
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-brand img {
    width: 32px;
    height: 32px;
    border-radius: 7px;
}

.footer-brand span {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.footer-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    max-width: 360px;
}

.footer h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}

/* Legal Pages */
.legal-page {
    padding: 120px 24px 80px;
    max-width: 760px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.legal-page .last-updated {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.legal-page h3 {
    font-size: 17px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
}

.legal-page p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-page ul, .legal-page ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-page li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 4px;
}

.legal-page strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-page .highlight-box {
    background: var(--brand-green-light);
    border-left: 3px solid var(--brand-green);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 20px 0;
}

.legal-page .highlight-box p {
    color: var(--text-primary);
    margin: 0;
}

.legal-page .no-list {
    list-style: none;
    padding-left: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 120px 20px 60px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .screenshot-grid {
        gap: 16px;
    }
    
    .screenshot-item {
        flex: 0 0 180px;
    }
    
    .screenshot-placeholder {
        width: 180px;
        height: 360px;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-height: 90vh;
    max-width: 90vw;
    border-radius: 24px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
    animation: lightboxIn 0.25s ease;
}

@keyframes lightboxIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    font-size: 36px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

.screenshot-item img {
    cursor: zoom-in;
}
