/* ===== SHARED INNER PAGE STYLES — CRYPTO/TRADING THEME ===== */

/* ===== PAGE HERO BANNER ===== */
.page-hero {
    position: relative;
    height: 50vh;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(var(--accent-rgb), 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    filter: saturate(0.5) brightness(0.8);
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   background: linear-gradient(
    135deg,
    rgba(10, 14, 23, 0.15) 0%,
    rgba(10, 14, 23, 0.30) 50%,
    rgba(10, 14, 23, 0.50) 100%
);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 60px;
}

.page-hero-content::before {
    content: '';
    position: absolute;
    left: 40px;
    bottom: 60px;
    width: 2px;
    height: 60%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(var(--accent-rgb), 0.3),
        transparent
    );
    pointer-events: none;
}

.page-hero-content .hero-tag {
    opacity: 1;
    animation: none;
}

.page-hero-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.08;
    max-width: 800px;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.page-hero-content h1 em {
    font-style: normal;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero-content p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 560px;
    font-weight: 400;
    line-height: 1.7;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    background: var(--bg-secondary);
    padding: 14px 40px;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 10;
}

.breadcrumbs-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
    font-family: 'JetBrains Mono', monospace;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover     { color: var(--accent); }
.breadcrumbs .separator  { color: var(--text-dim); font-size: 0.65rem; }
.breadcrumbs .current    { color: var(--accent); font-weight: 500; }

/* ===== PAGE CONTENT WRAPPERS ===== */
.page-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px;
    position: relative;
    z-index: 1;
}

.page-content-narrow {
    max-width: 860px;
    margin: 0 auto;
    padding: 100px 40px;
    position: relative;
    z-index: 1;
}

/* ===== TWO-COLUMN LAYOUTS ===== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.two-col-offset {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start;
}

/* ===== CONTENT TYPOGRAPHY ===== */
.page-content h2,
.page-content-narrow h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -0.4px;
}

.page-content h2 em,
.page-content-narrow h2 em {
    font-style: normal;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-content h3,
.page-content-narrow h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    margin-top: 48px;
    letter-spacing: -0.2px;
}

.page-content p,
.page-content-narrow p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.page-content p strong,
.page-content-narrow p strong {
    color: var(--text);
    font-weight: 600;
}

/* ===== VALUES / FEATURES GRID ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.value-card {
    padding: 36px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.value-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at 50% 0%,
        rgba(var(--accent-rgb), 0.06) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--accent-rgb), 0.2);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.value-card:hover::before { transform: scaleX(1); }
.value-card:hover::after  { opacity: 1; }

.value-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    color: var(--accent);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 20px;
    opacity: 0.25;
    letter-spacing: -1px;
}

.value-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.value-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 48px;
    margin-top: 64px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(var(--accent-rgb), 0.3) 10%,
        rgba(var(--accent-rgb), 0.3) 90%,
        transparent
    );
}

.timeline-item {
    position: relative;
    padding-bottom: 48px;
    transition: padding-left 0.3s ease;
}

.timeline-item:hover       { padding-left: 8px; }
.timeline-item:last-child  { padding-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--bg);
    border: 2px solid rgba(var(--accent-rgb), 0.5);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -44px;
    top: 4px;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    border-radius: 50%;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-item:hover::before {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.5);
}

.timeline-item:hover::after { opacity: 1; }

.timeline-year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.timeline-item h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===== STATS ROW ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    margin: 64px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.stats-row .stat-box {
    background: var(--bg-card);
    padding: 40px 32px;
    text-align: center;
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-row .stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.4s ease;
}

.stats-row .stat-box:hover            { background: var(--bg-card-hover); }
.stats-row .stat-box:hover::before    { width: 100%; }

.stats-row .stat-box .stat-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.4rem;
    color: var(--accent);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    display: block;
}

.stats-row .stat-box .stat-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

/* ===== FULL-WIDTH IMAGE BANNER ===== */
.image-banner {
    width: 100%;
    max-width: 100%;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.image-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(var(--accent-rgb), 0.08),
        transparent 60%
    );
    z-index: 1;
    pointer-events: none;
}

.image-banner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    filter: saturate(0.7) brightness(0.9);
    transition: filter 0.6s ease;
}

.image-banner:hover img {
    filter: saturate(0.85) brightness(0.95);
}

/* ===== INFO BOXES ===== */
.info-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.info-box {
    background: var(--bg-card);
    padding: 28px 28px 28px 26px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(var(--accent-rgb), 0.04),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.info-box:hover {
    border-left-color: var(--accent-light);
    transform: translateX(4px);
}

.info-box:hover::before { opacity: 1; }

.info-box h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 12px;
}

.info-box p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===== TEAM DETAIL GRID ===== */
.team-detail-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    margin-bottom: 64px;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--border);
    align-items: start;
    transition: all 0.3s ease;
}

.team-detail-grid:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.team-detail-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.4s ease;
    filter: saturate(0.8);
}

.team-detail-grid:hover .team-detail-img {
    transform: scale(1.02);
    filter: saturate(1);
}

.team-detail-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    color: var(--text);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.team-detail-info .team-role {
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.team-detail-info p {
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.team-detail-info .team-meta {
    display: flex;
    gap: 32px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.team-detail-info .team-meta div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-detail-info .team-meta label {
    font-size: 0.68rem;
    color: var(--accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.team-detail-info .team-meta span {
    font-size: 0.88rem;
    color: var(--text);
    font-weight: 500;
}

/* ===== CONTACT PAGE GRID ===== */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* ===== MAP PLACEHOLDER ===== */
.map-container {
    width: 100%;
    height: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    overflow: hidden;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(var(--accent-rgb), 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.map-container::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.5),
                0 0 40px rgba(var(--accent-rgb), 0.2);
    animation: mapPulse 2s ease-in-out infinite;
}

@keyframes mapPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.5); opacity: 0.6; }
}

/* ===== JOB LISTINGS ===== */
.job-listing {
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.job-listing::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    width: 2px;
    height: 0;
    background: var(--gradient-primary);
    transition: height 0.3s ease;
    border-radius: 2px;
}

.job-listing:hover             { padding-left: 16px; }
.job-listing:hover::before     { height: 100%; }
.job-listing:first-child       { padding-top: 0; }

.job-listing h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.job-listing .job-meta {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.job-listing .job-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 100px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.job-listing:hover .job-meta span {
    border-color: rgba(var(--accent-rgb), 0.2);
    color: var(--text);
}

.job-apply {
    font-size: 0.78rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 600;
    padding: 10px 20px;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: var(--radius-sm);
    background: var(--accent-muted);
}

.job-apply:hover {
    background: rgba(var(--accent-rgb), 0.15);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.1);
    gap: 12px;
}

.job-apply::after               { content: '→'; transition: transform 0.3s ease; }
.job-apply:hover::after         { transform: translateX(4px); }

/* ===== CTA BANNER ===== */
.cta-banner {
    background: var(--bg-dark);
    padding: 100px 40px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(var(--accent-rgb), 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.cta-banner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(
        ellipse at center,
        rgba(var(--accent-rgb), 0.07) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.cta-banner-inner {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.cta-banner h2 em {
    font-style: normal;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-banner p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta-banner .cta-btn {
    background: var(--gradient-primary);
    color: var(--bg);
    border: none;
    padding: 16px 40px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.cta-banner .cta-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.5s ease;
}

.cta-banner .cta-btn:hover::before { left: 100%; }

.cta-banner .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(var(--accent-rgb), 0.35);
}

/* ===== INNER PAGE RESPONSIVE — TABLET ===== */
@media (max-width: 1024px) {
    .two-col,
    .two-col-offset,
    .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .values-grid,
    .info-boxes {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

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

    .team-detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .team-detail-img {
        max-width: 280px;
    }

    .page-hero-content::before {
        display: none;
    }
}

/* ===== INNER PAGE RESPONSIVE — MOBILE ===== */
@media (max-width: 768px) {
    .page-hero {
        min-height: 340px;
    }

    .page-hero-content {
        padding: 0 24px 40px;
    }

    .page-hero-content h1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        letter-spacing: -0.5px;
    }

    .breadcrumbs {
        padding: 12px 24px;
    }

    .breadcrumbs-inner {
        font-size: 0.68rem;
    }

    .page-content,
    .page-content-narrow {
        padding: 64px 24px;
    }

    .values-grid,
    .info-boxes {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 1px;
    }

    .stats-row .stat-box {
        padding: 28px 20px;
    }

    .stats-row .stat-box .stat-val {
        font-size: 1.8rem;
    }

    .job-listing {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px 0;
    }

    .job-listing:hover {
        padding-left: 8px;
    }

    .job-apply {
        align-self: flex-start;
    }

    .team-detail-info .team-meta {
        flex-direction: column;
        gap: 20px;
    }

    .team-detail-img {
        max-width: 240px;
    }

    .cta-banner {
        padding: 64px 24px;
    }

    .map-container {
        height: 300px;
    }

    .timeline {
        padding-left: 36px;
    }

    .image-banner img {
        height: 260px;
    }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    .team-detail-grid {
        gap: 24px;
    }

    .contact-page-grid {
        gap: 40px;
    }

    .values-grid {
        gap: 16px;
    }

    .value-card {
        padding: 24px 20px;
    }
}