/* ============================================
   TradingView - Optimized CSS
   Performance & SEO Optimized
   ============================================ */

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance optimizations for Core Web Vitals */
img, svg, picture, video {
    max-width: 100%;
    height: auto;
    display: block;
}

svg {
    width: 100%;
    height: auto;
    vertical-align: middle;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary-blue: #2962FF;
    --primary-blue-hover: #1e4fd9;
    --success-green: #0ECB81;
    --danger-red: #F6465D;
    --warning-yellow: #FFB800;
    
    /* Text Colors */
    --text-primary: #131722;
    --text-secondary: #787B86;
    --text-light: rgba(255, 255, 255, 0.6);
    
    /* Background Colors */
    --bg-white: #FFFFFF;
    --bg-light: #F5F7FA;
    --bg-dark: #131722;
    --bg-overlay: rgba(0, 0, 0, 0.05);
    
    /* Border & Shadow */
    --border-color: #E5E7EB;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 100px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 50px;
}

/* ===== TYPOGRAPHY ===== */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-white);
    /* Optimize font rendering for better LCP */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1;
    font-kerning: normal;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

/* Prevent layout shift - set explicit dimensions */
.hero-chart,
.chart-container,
.chart-area,
.blog-image,
.market-image,
.image-placeholder {
    aspect-ratio: auto;
    contain: layout;
    will-change: transform;
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    transition: all var(--transition-base);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    color: inherit;
}

.logo svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--text-primary);
    outline: none;
}

.nav-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    flex-shrink: 0;
}

.btn-signin {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.btn-signin:hover,
.btn-signin:focus {
    background: var(--bg-light);
    outline: none;
}

.btn-signup {
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    white-space: nowrap;
}

.btn-signup:hover,
.btn-signup:focus {
    background: var(--primary-blue-hover);
    outline: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: var(--spacing-xs);
    border: none;
    background: transparent;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
    display: block;
}

/* ===== HERO SECTION ===== */
.hero {
    margin-top: 70px;
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

.hero-subtitle .internal-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

.hero-subtitle .internal-link:hover {
    border-bottom-color: var(--primary-blue);
}

.hero-search {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 14px var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--transition-fast);
    background: var(--bg-white);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.1);
}

.search-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 14px var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-fast);
    white-space: nowrap;
}

.search-btn:hover,
.search-btn:focus {
    background: var(--primary-blue-hover);
    outline: none;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1;
}

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

.hero-chart {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hero-chart:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.chart-container {
    padding: var(--spacing-sm);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

.chart-symbol {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-price {
    font-size: 18px;
    font-weight: 600;
}

.chart-price.positive {
    color: var(--success-green);
}

.chart-price span {
    font-size: 14px;
    margin-left: var(--spacing-xs);
}

.chart-area {
    height: 300px;
    width: 100%;
    min-height: 300px;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

.chart-line {
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: drawLine 2s ease-in-out;
}

@keyframes drawLine {
    from {
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* ===== SECTIONS ===== */
section {
    padding: var(--spacing-3xl) 0;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ===== FEATURES SECTION ===== */
.features {
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    padding: var(--spacing-lg);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--success-green));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    line-height: 1.3;
}

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

.feature-card p .internal-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

/* ===== SHOWCASE SECTION ===== */
.showcase {
    background: var(--bg-white);
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.showcase-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.image-placeholder:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.image-placeholder svg {
    width: 100%;
    height: auto;
    display: block;
}

.showcase-text h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    line-height: 1.2;
}

.showcase-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.showcase-features {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.showcase-features li {
    padding: var(--spacing-sm) 0;
    font-size: 16px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.showcase-features li:last-child {
    border-bottom: none;
}

.showcase-button {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 14px var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.showcase-button:hover,
.showcase-button:focus {
    background: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 98, 255, 0.3);
    outline: none;
}

/* ===== MARKETS SECTION ===== */
.markets {
    background: var(--bg-light);
}

.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.market-card {
    padding: var(--spacing-lg);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.market-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(41, 98, 255, 0.05), rgba(14, 203, 129, 0.05));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.market-card:hover::after {
    opacity: 1;
}

.market-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.market-image {
    width: 100%;
    height: 120px;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.market-image svg {
    width: 100%;
    height: 100%;
}

.market-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

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

/* ===== PRICING SECTION ===== */
.pricing {
    background: var(--bg-white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    padding: 40px var(--spacing-lg);
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    transition: all var(--transition-base);
}

.pricing-card.featured {
    border-color: var(--primary-blue);
    transform: scale(1.05);
}

.pricing-card:hover {
    box-shadow: var(--shadow-md);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: white;
    padding: 4px var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.plan-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.plan-price {
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    line-height: 1;
}

.plan-price span {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: var(--spacing-lg);
}

.plan-features li {
    padding: var(--spacing-sm) 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    line-height: 1.5;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-button {
    width: 100%;
    padding: 14px;
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.plan-button.primary {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.plan-button:hover,
.plan-button:focus {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    outline: none;
}

/* ===== DOWNLOAD SECTION ===== */
.download {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.download-main {
    max-width: 900px;
    margin: 0 auto;
}

.download-button-wrapper {
    margin-bottom: var(--spacing-2xl);
}

.download-main-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-2xl) var(--spacing-3xl);
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e4fd9 100%);
    border: none;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: white;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%;
    justify-content: space-between;
}

.download-main-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.download-main-btn:hover::before {
    left: 100%;
}

.download-main-btn:hover,
.download-main-btn:focus {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #1e4fd9 0%, var(--primary-blue) 100%);
    outline: none;
}

.download-icon-large {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    flex-shrink: 0;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.download-main-btn:hover .download-icon-large {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(5deg);
}

.download-icon-large svg {
    width: 64px;
    height: 64px;
}

.download-content-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    text-align: left;
}

.download-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.download-subtitle {
    font-size: clamp(14px, 1.5vw, 16px);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.4;
}

.download-arrow-large {
    font-size: 48px;
    color: white;
    font-weight: bold;
    transition: transform var(--transition-base);
    flex-shrink: 0;
    opacity: 0.9;
}

.download-main-btn:hover .download-arrow-large {
    transform: translateY(8px);
    opacity: 1;
}

.download-features {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-top: var(--spacing-2xl);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.feature-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.feature-item:hover {
    background: var(--bg-white);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.feature-item .feature-icon {
    font-size: 36px;
    flex-shrink: 0;
    line-height: 1;
}

.feature-item .feature-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.feature-item .feature-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.testimonial-header {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.avatar-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--success-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.testimonial-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.testimonial-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.testimonial-rating {
    color: var(--warning-yellow);
    font-size: 14px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.testimonial-meta {
    display: flex;
    gap: var(--spacing-xs);
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

/* ===== BLOG SECTION ===== */
.blog {
    background: var(--bg-white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.blog-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.blog-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: var(--spacing-md);
}

.blog-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-blue);
    background: rgba(41, 98, 255, 0.1);
    padding: 4px var(--spacing-sm);
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-sm);
}

.blog-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    line-height: 1.4;
}

.blog-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.blog-meta {
    display: flex;
    gap: var(--spacing-xs);
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

/* ===== FAQ SECTION ===== */
.faq {
    background: var(--bg-light);
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item.active {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(41, 98, 255, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    cursor: pointer;
    transition: background var(--transition-fast);
    gap: var(--spacing-md);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.faq-toggle {
    font-size: 24px;
    font-weight: 300;
    color: var(--primary-blue);
    transition: transform var(--transition-base);
    flex-shrink: 0;
    line-height: 1;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer p {
    padding: 0 var(--spacing-md) var(--spacing-md);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== CONTENT RICH SECTION ===== */
.content-rich {
    background: var(--bg-light);
}

.content-rich-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-text {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.content-text h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    line-height: 1.2;
}

.content-text h3 {
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 600;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    line-height: 1.3;
}

.content-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* ===== SOLUTIONS SECTION ===== */
.solutions {
    background: var(--bg-white);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.solution-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-base);
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.solution-icon {
    font-size: 40px;
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.solution-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    line-height: 1.3;
}

.solution-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.solution-card p strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.footer-logo svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.footer-section p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-fast);
}

.footer-section ul li a:hover,
.footer-section ul li a:focus {
    color: white;
    outline: none;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ===== INTERNAL LINKS ===== */
.internal-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

.internal-link:hover,
.internal-link:focus {
    border-bottom-color: var(--primary-blue);
    text-decoration: none;
    outline: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .showcase-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .download-main-btn {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-xl);
    }

    .download-content-main {
        text-align: center;
    }

    .download-arrow-large {
        font-size: 36px;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .testimonials-grid,
    .blog-grid,
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .markets-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-3xl: 60px;
    }

    .nav-menu,
    .nav-actions {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transition: left var(--transition-base);
        z-index: 999;
    }

    .nav-menu.active,
    .nav-actions.active {
        left: 0;
    }

    .nav-menu {
        gap: var(--spacing-sm);
    }

    .nav-actions {
        gap: var(--spacing-sm);
        flex-direction: column;
        align-items: stretch;
    }

    .nav-actions .btn-signin,
    .nav-actions .btn-signup {
        width: 100%;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: var(--spacing-2xl) 0;
        min-height: auto;
    }

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

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

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .section-title {
        font-size: 28px;
    }

    .showcase-content {
        grid-template-columns: 1fr;
    }

    .showcase-text h2 {
        font-size: 24px;
    }

    .features-grid,
    .markets-grid,
    .testimonials-grid,
    .blog-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
    }


    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .content-text {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-search {
        flex-direction: column;
    }

    .search-input,
    .search-btn {
        width: 100%;
    }

    .pricing-card {
        padding: var(--spacing-lg);
    }

    .plan-price {
        font-size: 36px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .nav-actions,
    .hamburger,
    .hero-search,
    .showcase-button,
    .plan-button {
        display: none;
    }
}
