/* TrendTickr Landing Page Styles */
/* Modern, Apple-inspired design for fintech/trading theme */

/* ==========================================================================
   FONT DECLARATIONS - SF Pro Display
   ========================================================================== */

@font-face {
    font-family: 'SF Pro Display';
    src: url('assets/fonts/SFPRODISPLAYTHIN.OTF') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('assets/fonts/SFPRODISPLAYLIGHT.OTF') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('assets/fonts/SFPRODISPLAYREGULAR.OTF') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('assets/fonts/SFPRODISPLAYMEDIUM.OTF') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('assets/fonts/SFPRODISPLAYBOLD.OTF') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   CSS RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
    color: #4a4a4a;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Force SF Pro Display on all elements */
button, input, textarea, select {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   SCROLL ANIMATIONS (Initial states - JS will trigger animations)
   ========================================================================== */

/* Default state - visible (graceful degradation if JS fails) */
[data-scroll-animate] {
    opacity: 1;
    transform: translateY(0) translateX(0);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hidden states - only applied when JS is working */
.js-enabled [data-scroll-animate]:not(.animated) {
    opacity: 0;
}

.js-enabled [data-scroll-animate="fade-in"]:not(.animated) {
    opacity: 0;
}

.js-enabled [data-scroll-animate="fade-in-up"]:not(.animated) {
    opacity: 0;
    transform: translateY(30px);
}

.js-enabled [data-scroll-animate="fade-in-left"]:not(.animated) {
    opacity: 0;
    transform: translateX(-30px);
}

.js-enabled [data-scroll-animate="fade-in-right"]:not(.animated) {
    opacity: 0;
    transform: translateX(30px);
}

/* Animated state (added by JavaScript) */
[data-scroll-animate].animated {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-small {
    height: 35px;
    width: auto;
}

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

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    transition: color 0.3s ease;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.nav-link:hover {
    color: #007aff;
}

.nav-link.active {
    color: #007aff;
    font-weight: 600;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: 40px;
}

.main-logo {
    height: clamp(80px, 12vw, 120px);
    width: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.hero-headline {
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subheadline {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: #64748b;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-cta {
    margin-top: 40px;
}

.cta-button {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(135deg, #007aff 0%, #0056d3 100%);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.3);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 122, 255, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
}

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

/* ==========================================================================
   VIDEO INTRODUCTION SECTION
   ========================================================================== */

.video-intro-section {
    padding: 100px 0;
    background: #ffffff;
    text-align: center;
}

.video-intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.video-headline {
    margin-bottom: 16px;
    color: #1a1a1a;
}

.video-subheadline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #64748b;
    margin-bottom: 50px;
    font-weight: 400;
}

.video-container {
    position: relative;
    margin-bottom: 30px;
}

.video-wrapper {
    position: relative;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.2);
}

.promo-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.play-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.play-icon {
    font-size: 24px;
    color: #007aff;
    margin-left: 3px;
}

.video-caption {
    font-size: 14px;
    color: #64748b;
    font-style: italic;
}

/* ==========================================================================
   APP PREVIEW SECTION
   ========================================================================== */

.app-preview-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    text-align: center;
}

.app-preview-content {
    max-width: 800px;
    margin: 0 auto 80px auto;
}

.section-headline {
    margin-bottom: 24px;
    color: #1a1a1a;
}

.section-description {
    margin-bottom: 40px;
    font-size: 18px;
    line-height: 1.8;
}

.feature-highlights {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 40px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.7);
    padding: 12px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.highlight-icon {
    font-size: 20px;
}

.highlight-text {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
}

/* Three App Previews Grid */
.app-previews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.app-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.phone-mockup {
    position: relative;
    max-width: 220px;
    filter: drop-shadow(0 25px 60px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
    margin-bottom: 16px;
    width: 100%;
}

.phone-mockup:hover {
    transform: translateY(-5px) scale(1.02);
}

.app-screenshot {
    width: 100%;
    height: auto;
    border-radius: 25px;
}

.preview-caption {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */

.features-section {
    padding: 120px 0;
    background: #ffffff;
}

.features-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 18px;
    color: #64748b;
    margin-top: 16px;
    font-weight: 400;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: #fafafa;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #007aff 0%, #0056d3 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon .icon {
    font-size: 32px;
    filter: grayscale(1) brightness(0) invert(1);
}

.feature-title {
    margin-bottom: 16px;
    color: #1a1a1a;
}

.feature-description {
    color: #64748b;
    line-height: 1.7;
}

/* ==========================================================================
   SIGNUP SECTION
   ========================================================================== */

.signup-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%);
    color: #ffffff;
    text-align: center;
}

.signup-content {
    max-width: 600px;
    margin: 0 auto;
}

.signup-headline {
    color: #ffffff;
    margin-bottom: 16px;
}

.signup-subheadline {
    font-size: 18px;
    color: #a0aec0;
    margin-bottom: 40px;
    font-weight: 400;
}

.signup-form {
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.email-input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 16px;
    border-radius: 50px;
    outline: none;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.email-input::placeholder {
    color: #a0aec0;
}

.submit-button {
    padding: 16px 32px;
    background: linear-gradient(135deg, #007aff 0%, #0056d3 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.submit-button:hover {
    background: linear-gradient(135deg, #0056d3 0%, #003d99 100%);
    transform: translateY(-1px);
}

.privacy-notice {
    font-size: 14px;
    color: #a0aec0;
    font-style: italic;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.success-message h3 {
    color: #22c55e;
    margin-bottom: 8px;
}

.success-message p {
    color: #a0aec0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    padding: 60px 0 40px;
    background: #000000;
    color: #ffffff;
}

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

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

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-link {
    color: #a0aec0;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #007aff;
    transform: translateY(-2px);
}

.social-icon {
    font-size: 16px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #2d3748;
}

.copyright {
    color: #64748b;
    font-size: 14px;
}

/* ==========================================================================
   WHITEPAPER STYLES
   ========================================================================== */

.whitepaper-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.whitepaper-logo-img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.whitepaper-title {
    text-align: center;
    margin-bottom: 1rem;
    color: #5b21b6;  /* TrendTickr Purple */
}

.whitepaper-date {
    text-align: center;
    margin-bottom: 3rem;
}

.feature-list li {
    color: #1a1a1a !important; /* Black text for feature list items */
}

/* Additional specificity for whitepaper feature lists */
.problem-solution-grid .feature-list li {
    color: #1a1a1a !important;
}

.problem-box .feature-list li,
.solution-box .feature-list li {
    color: #1a1a1a !important;
}

/* Black text for careers page "what we offer" list */
.what-we-offer li {
    color: #1a1a1a !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 12px 16px;
    }
    
    .nav-links {
        gap: 12px; /* Reduced from 20px */
    }
    
    .nav-link {
        font-size: 13px; /* Reduced from 14px */
        font-weight: 500;
    }
    
    .hero-section {
        padding: 80px 0 60px;
    }
    
    .hero-content {
        padding-top: 60px;
    }
    
    .video-intro-section,
    .app-preview-section,
    .features-section,
    .signup-section {
        padding: 80px 0;
    }
    
    .app-preview-content {
        margin-bottom: 60px;
    }
    
    .app-previews-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 100%;
    }
    
    .phone-mockup {
        max-width: 180px;
    }
    
    .feature-highlights {
        flex-direction: column;
        gap: 16px;
    }
    
    .highlight-item {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-group {
        flex-direction: column;
        gap: 16px;
        border-radius: 16px;
        padding: 16px;
    }
    
    .email-input,
    .submit-button {
        border-radius: 12px;
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        order: 2;
    }
    
    .footer-social {
        order: 3;
    }
    
    .phone-mockup {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 8px; /* Even smaller gap */
        flex-wrap: wrap; /* Allow wrapping if needed */
        justify-content: center;
    }
    
    .nav-link {
        font-size: 12px; /* Smaller font */
        padding: 4px 6px; /* Add some touch-friendly padding */
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .video-wrapper {
        border-radius: 12px;
    }
    
    .promo-video {
        border-radius: 12px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-icon {
        font-size: 20px;
    }
    
    .app-previews-grid {
        gap: 10px;
        max-width: 100%;
        grid-template-columns: repeat(3, 1fr);
        padding: 0 10px;
    }
    
    .phone-mockup {
        max-width: 100px;
        min-width: 80px;
    }
    
    .preview-caption {
        font-size: 11px;
        margin-top: 8px;
    }
    
    .feature-highlights {
        gap: 12px;
    }
    
    .highlight-item {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Extra small screens - ensure images stay side by side */
@media (max-width: 320px) {
    .app-previews-grid {
        gap: 8px;
        padding: 0 5px;
    }
    
    .phone-mockup {
        max-width: 85px;
        min-width: 70px;
    }
    
    .preview-caption {
        font-size: 10px;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

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

.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Smooth scrolling for all browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Respect users' motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    [data-scroll-animate] {
        transition: none !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .scroll-indicator,
    .video-intro-section,
    .signup-section {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cta-button,
    .submit-button {
        border: 2px solid;
    }
    
    .feature-card {
        border: 2px solid;
    }
}