/* =========================================================
   Beryllium – shared site styles
   ========================================================= */

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #1f2937; }
::-webkit-scrollbar-thumb { background: #4b5563; }
::-webkit-scrollbar-thumb:hover { background: #6b7280; }

/* Section heading accent */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    background: #3d5a8a;
    border-radius: 2px;
}
/* Left-aligned variant */
.section-title[style*="text-align:left"]::after,
.section-title.text-left::after {
    left: 0;
    transform: none;
}

/* Feature cards */
.feature-card {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: #3d5a8a;
    box-shadow: 0 6px 24px rgba(61, 90, 138, 0.25);
}

/* Device list items */
.device-item {
    border-radius: 0.5rem;
    transition: background 0.15s ease;
}
.device-item:hover {
    background: rgba(61, 90, 138, 0.15);
}

/* Device spec cards */
.device-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid #374151;
}
.device-card:hover {
    transform: translateY(-3px);
    border-color: #3d5a8a;
    box-shadow: 0 6px 20px rgba(61, 90, 138, 0.2);
}

/* Project cards */
.project-card {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.project-card:hover {
    box-shadow: 0 0 0 1px #3d5a8a, 0 8px 30px rgba(61, 90, 138, 0.2);
}

/* About roadmap */
.beryllium-roadmap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    position: relative;
}
.beryllium-roadmap::before {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    top: 34px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #22d3ee, #a3e635, #f59e0b, transparent);
    opacity: 0.8;
}
.roadmap-step {
    position: relative;
    min-height: 236px;
    padding: 68px 24px 24px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(24, 35, 51, 0.86)),
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.22), transparent 34%);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
    overflow: hidden;
}
.roadmap-step::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 24px;
    width: 18px;
    height: 18px;
    border: 3px solid #111827;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28), 0 0 22px rgba(34, 211, 238, 0.58);
    z-index: 1;
}
.roadmap-step:nth-child(2)::before,
.roadmap-step:nth-child(5)::before {
    background: #a3e635;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28), 0 0 22px rgba(163, 230, 53, 0.42);
}
.roadmap-step:nth-child(3)::before,
.roadmap-step:nth-child(6)::before {
    background: #f59e0b;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28), 0 0 22px rgba(245, 158, 11, 0.44);
}
.roadmap-step-current {
    border-color: rgba(245, 158, 11, 0.58);
    background:
        linear-gradient(145deg, rgba(32, 24, 12, 0.94), rgba(17, 24, 39, 0.9)),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.2), transparent 38%);
}
.roadmap-date {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.74);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.roadmap-step h3 {
    margin: 18px 0 10px;
    color: #f8fafc;
    font-size: 1.2rem;
    font-weight: 800;
}
.roadmap-step p {
    margin: 0;
    color: rgba(229, 231, 235, 0.78);
    line-height: 1.65;
}

/* About team members */
.team-member-group-heading {
    margin-bottom: 1.25rem;
    text-align: center;
}
.team-member-group-heading h3 {
    color: #f8fafc;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}
.team-member-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.team-member-card {
    align-items: center;
    background: rgba(31, 41, 55, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 1.5rem;
    text-align: center;
}
.team-member-grid-retired .team-member-card {
    opacity: 0.78;
}
.team-member-photo {
    border: 3px solid rgba(61, 90, 138, 0.6);
    border-radius: 999px;
    height: 130px;
    object-fit: cover;
    width: 130px;
}
.team-member-meta {
    margin: 1rem 0 0.5rem;
}
.team-member-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 0.4rem 0.65rem;
    text-transform: uppercase;
}
.team-member-status-active {
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.34);
    color: #86efac;
}
.team-member-status-retired {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #cbd5e1;
}
.team-member-card h3 {
    color: #8ab4f8;
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
}
.team-member-role {
    color: #d1d5db;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0.65rem 0 0;
}
.team-member-details {
    color: #9ca3af;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0.5rem 0 0;
}
.team-member-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    list-style: none;
    margin: auto 0 0;
    padding: 1rem 0 0;
}
.team-member-links a {
    align-items: center;
    color: #d1d5db;
    display: inline-flex;
    gap: 0.35rem;
    text-decoration: none;
}
.team-member-links a:hover {
    color: #fff;
}
.team-empty-state {
    background: rgba(31, 41, 55, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    color: #d1d5db;
    grid-column: 1 / -1;
    padding: 1.25rem;
    text-align: center;
}

/* About sponsors */
.sponsor-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sponsor-card {
    align-items: center;
    background: rgba(31, 41, 55, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 1.25rem;
    text-align: center;
    text-decoration: none;
}
.sponsor-card-link {
    transition: border-color 0.2s ease, transform 0.1s ease;
}
.sponsor-card-link:hover {
    border-color: rgba(138, 180, 248, 0.54);
    color: inherit;
    transform: translateY(-1px);
}
.sponsor-logo-frame {
    align-items: center;
    display: flex;
    height: 150px;
    justify-content: center;
    margin-bottom: 1.1rem;
    width: 100%;
}
.sponsor-logo {
    max-height: 140px;
    max-width: 100%;
    object-fit: contain;
}
.sponsor-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 0.65rem;
}
.sponsor-card p {
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}
@media (max-width: 900px) {
    .beryllium-roadmap {
        grid-template-columns: 1fr;
    }
    .team-member-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sponsor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .beryllium-roadmap::before {
        top: 0;
        bottom: 0;
        left: 32px;
        right: auto;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg, transparent, #22d3ee, #a3e635, #f59e0b, transparent);
    }
    .roadmap-step {
        min-height: auto;
        padding: 28px 22px 24px 68px;
    }
    .roadmap-step::before {
        left: 23px;
        top: 32px;
    }
}
@media (max-width: 560px) {
    .team-member-grid {
        grid-template-columns: 1fr;
    }
    .sponsor-grid {
        grid-template-columns: 1fr;
    }
}

/* Button micro-interactions */
.btn-primary {
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.btn-primary:hover { transform: translateY(-1px); }

.btn-outline {
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}
.btn-outline:hover { transform: translateY(-1px); }
