/* ------------------------------------------------------------------ *
 * Section pages (quants, trading, ai, ventures)
 * ------------------------------------------------------------------ */

/* Hero. Background image is set via inline style on the element. */
.hero-section {
    margin-top: var(--header-h);
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 6px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 16px;
    letter-spacing: 1.5px;
    font-weight: 300;
}

/* Content sections */
.content-section { padding: 80px 0; }
.content-section--alt { background-color: #f8f8f8; }

.section-title {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.section-lede {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    letter-spacing: 0.3px;
}

/* Generic card used by service / platform / category */
.card-base {
    padding: 40px;
    margin-bottom: 30px;
    border: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    height: calc(100% - 30px);
    position: relative;
    overflow: hidden;
}
.card-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #000 0%, #666 100%);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}
.card-base:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}
.card-base:hover::before { transform: scaleY(1); }

.service-card,
.platform-card { /* aliases used by existing markup */ }
.service-card,
.platform-card {
    padding: 40px;
    margin-bottom: 30px;
    border: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    height: calc(100% - 30px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.service-card::before,
.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #000 0%, #666 100%);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}
.service-card:hover,
.platform-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}
.service-card:hover::before,
.platform-card:hover::before { transform: scaleY(1); }

.service-icon,
.platform-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #000;
    transition: transform 0.3s ease, color 0.3s ease;
}
.service-card:hover .service-icon,
.platform-card:hover .platform-icon {
    transform: scale(1.1);
    color: #333;
}

.service-title,
.platform-title {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.service-description,
.platform-description {
    font-size: 15px;
    line-height: 1.75;
    color: #555;
    letter-spacing: 0.2px;
    flex-grow: 1;
}

/* Highlighted side-bar style box */
.highlight-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 40px;
    margin: 30px 0;
    border-left: 4px solid #000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.highlight-box:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transform: translateX(5px);
}
.highlight-box ul {
    margin-top: 20px;
    list-style: none;
    padding: 0;
}
.highlight-box ul li {
    padding: 8px 0;
    font-size: 14px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Smaller card variant used on ventures */
.category-card {
    padding: 30px;
    margin-bottom: 20px;
    border: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}
.category-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    color: inherit;
}
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #000 0%, #666 100%);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}
.category-card:hover::before { transform: scaleY(1); }
.category-title {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.category-description {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    letter-spacing: 0.3px;
    margin: 0;
}

/* Feature list (used on trading page) */
.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.feature-list li:last-child { border-bottom: none; }

/* Stats / numbers strip */
.stats-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 60px 0;
}
.stat-item { text-align: center; padding: 20px; }
.stat-number {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.stat-label {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ccc;
}

/* Code mockup block */
.code-mockup {
    background: #1a1a1a;
    color: #fff;
    padding: 30px;
    border-radius: 2px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 2;
    height: 100%;
}
.code-mockup .c-comment { color: #6c757d; }
.code-mockup .c-keyword { color: #4CAF50; }
.code-mockup .c-string  { color: #FFD700; }
.code-mockup .c-text    { color: #fff; }
.code-mockup .c-indent  { padding-left: 20px; }
.code-mockup__title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    text-transform: uppercase;
}
.code-mockup__caption {
    display: block;
    margin-top: 16px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
}

/* CTA section */
.cta-section {
    background-color: #000;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.cta-title {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 30px;
}
.cta-button {
    background-color: #fff;
    color: #000;
    padding: 15px 40px;
    border: none;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}
.cta-button:hover,
.cta-button:focus-visible {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 30px; letter-spacing: 4px; }
    .hero-subtitle { font-size: 13px; letter-spacing: 1px; }
    .section-title { font-size: 26px; letter-spacing: 2px; }
    .service-card,
    .platform-card { padding: 30px 20px; }
    .cta-title { font-size: 24px; letter-spacing: 2px; }
}
