/* StockIceberg Main Stylesheet - Iceberg Theme */

:root {
    /* Ocean & Ice Colors */
    --ice-surface: #E8F4F8;
    --ice-tip: #B8E0E8;
    --water-line: #4A90A4;
    --water-shallow: #3A7A8C;
    --water-mid: #2C5F70;
    --water-deep: #1E4454;
    --water-abyss: #0F2938;

    /* UI Colors */
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --secondary: #10B981;
    --accent: #F59E0B;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --background: #FFFFFF;
    --surface: #F9FAFB;

    /* Gradients */
    --ocean-gradient: linear-gradient(180deg,
        var(--ice-surface) 0%,
        var(--water-line) 20%,
        var(--water-shallow) 40%,
        var(--water-mid) 60%,
        var(--water-deep) 80%,
        var(--water-abyss) 100%
    );

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Menlo', 'Monaco', 'Courier New', monospace;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.6;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo a {
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

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

.cta-button {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: var(--primary-dark);
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
    display: none;
}

/* Hero Section with Iceberg */
.hero-section {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    background: var(--ocean-gradient);
    position: relative;
    overflow: hidden;
}

.iceberg-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.hero-content {
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

/* Iceberg Visualization */
.iceberg-visual {
    max-width: 900px;
    margin: 0 auto 3rem;
    position: relative;
}

.iceberg-tip {
    background: linear-gradient(135deg, #E8F4F8, #B8E0E8);
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 10;
}

.iceberg-tip h3 {
    color: var(--water-deep);
    margin-bottom: 1rem;
}

.iceberg-tip ul {
    list-style: none;
    color: var(--text-primary);
}

.iceberg-tip li {
    padding: 0.3rem 0;
}

.water-line {
    height: 4px;
    background: linear-gradient(90deg,
        transparent,
        var(--water-line) 20%,
        var(--water-line) 80%,
        transparent
    );
    position: relative;
    z-index: 5;
}

.iceberg-depth {
    background: linear-gradient(180deg,
        rgba(58, 122, 140, 0.9),
        rgba(15, 41, 56, 0.95)
    );
    padding: 2rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.iceberg-depth h3 {
    color: white;
    margin-bottom: 2rem;
    text-align: center;
}

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

.layer {
    padding: 1.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.layer:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.layer h4 {
    color: var(--ice-tip);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.layer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Depth-based coloring */
.layer-1 { border-left: 4px solid var(--water-shallow); }
.layer-2 { border-left: 4px solid var(--water-mid); }
.layer-3 { border-left: 4px solid var(--water-deep); }
.layer-4 { border-left: 4px solid var(--water-abyss); }

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

/* Sections */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Methodology Section */
.methodology-section {
    background: var(--surface);
}

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

.method-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.method-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.method-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.method-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.learn-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: gap 0.3s ease;
}

.learn-more:hover {
    gap: 0.5rem;
}

/* Learning Paths */
.paths-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.path {
    padding: 2.5rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.path.beginner {
    background: linear-gradient(135deg, #E8F4F8, #B8E0E8);
}

.path.intermediate {
    background: linear-gradient(135deg, #4A90A4, #3A7A8C);
    color: white;
}

.path.advanced {
    background: linear-gradient(135deg, #2C5F70, #0F2938);
    color: white;
}

.path h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.path p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.path ul {
    list-style: none;
    margin-bottom: 2rem;
}

.path li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.path li::before {
    content: "→";
    position: absolute;
    left: 0;
}

.path-cta {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid currentColor;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    transition: all 0.3s ease;
}

.path-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

/* Key Concepts Grid */
.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.concept {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.concept:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.concept h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.concept p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.concept a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Footer */
.main-footer {
    background: var(--water-abyss);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--ice-tip);
}

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

.footer-column li {
    padding: 0.3rem 0;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

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

    .paths-container {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes wave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.iceberg-tip {
    animation: float 6s ease-in-out infinite;
}

.water-line {
    animation: wave 4s ease-in-out infinite;
}

/* Pricing Tiers Section */
.pricing-tiers {
    background: var(--surface);
}

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

.tier {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    border: 2px solid #E5E7EB;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.tier:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.tier.featured {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

.tier.featured:hover {
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.25);
}

.tier .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tier-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #F3F4F6;
}

.tier-header h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tier-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 1rem 0;
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price .period {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.tier-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.tier-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    border-bottom: 1px solid #F3F4F6;
}

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

.tier-cta {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.free-cta {
    background: #F3F4F6;
    color: var(--text-primary);
    border: 2px solid #D1D5DB;
}

.free-cta:hover {
    background: #E5E7EB;
    transform: translateY(-2px);
}

.analyst-cta {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.analyst-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.professional-cta {
    background: linear-gradient(135deg, #2C5F70, #0F2938);
    color: white;
    border: 2px solid #2C5F70;
}

.professional-cta:hover {
    background: linear-gradient(135deg, #0F2938, #000);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 41, 56, 0.4);
}

/* Tier-specific accents */
.tier.free .tier-header h3 {
    color: #6B7280;
}

.tier.analyst .tier-header h3 {
    color: var(--primary);
}

.tier.professional .tier-header h3 {
    color: #0F2938;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet and smaller */
@media (max-width: 968px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .methodology-grid,
    .concepts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    /* Navigation - Mobile */
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-image {
        height: 32px;
    }

    /* Hide desktop menu on mobile */
    .nav-menu {
        display: none;
    }

    /* Mobile hamburger menu (if JS is added later) */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-primary);
    }

    /* Show mobile menu when active */
    .nav-menu.mobile-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem;
        gap: 0.5rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.mobile-active li {
        width: 100%;
    }

    .nav-menu.mobile-active a {
        display: block;
        padding: 0.75rem 1rem;
        text-align: center;
    }

    /* Hero Section - Mobile */
    .hero-section {
        margin-top: 60px;
        min-height: auto;
        padding: 2rem 0;
    }

    .iceberg-container {
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Iceberg Visual - Simplified for mobile */
    .iceberg-visual {
        margin: 2rem 0;
    }

    .iceberg-tip h1 {
        font-size: 1.5rem;
    }

    .iceberg-tip ul li,
    .layer p {
        font-size: 0.9rem;
    }

    .layer h4 {
        font-size: 1rem;
    }

    /* CTA Buttons - Stack on mobile */
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    /* Sections - Mobile padding */
    .methodology-section,
    .pricing-tiers,
    .key-concepts,
    .cta-section {
        padding: 3rem 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* Grid layouts - Single column on mobile */
    .methodology-grid,
    .concepts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Typography - Scale down for mobile */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .section-intro {
        font-size: 1rem;
    }

    /* Cards - Better spacing on mobile */
    .method-card,
    .concept {
        padding: 1.5rem;
    }

    /* Footer - Stack columns */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .nav-container {
        padding: 0.5rem 1rem;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}