/* HackerTraining.Pro — minimal light theme */

:root {
    --bg: #f7f6f3;
    --surface: #f7f6f3;
    --text: #171717;
    --muted: #6b6b6b;
    --faint: #9a9a9a;
    --border: #e6e4df;
    --accent: #171717;
}

html {
    scroll-behavior: smooth;
    background: #f7f6f3;
}

body {
    font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    background: #f7f6f3;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Keep every surface on the same cream — Tailwind loads after this file */
.bg-white,
.bg-neutral-50,
.site-header,
.modal-content,
.modal-header {
    background-color: #f7f6f3 !important;
}

h1, h2, h3, h4 {
    letter-spacing: -0.03em;
    font-weight: 600;
}

a {
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

img {
    max-width: 100%;
}

.site-header {
    background-color: #f7f6f3;
    border-bottom: 1px solid var(--border);
}

.nav-menu.open .nav-dropdown,
.nav-menu:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#mobile-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}

#mobile-menu-toggle:checked ~ #mobile-menu {
    max-height: 36rem;
    opacity: 1;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
    #mobile-menu,
    #mobile-menu-toggle:checked ~ #mobile-menu {
        max-height: 0 !important;
        opacity: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        overflow: hidden !important;
        border-top-color: transparent !important;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(23, 23, 23, 0.45);
}

.modal-content {
    background: #f7f6f3;
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 88%;
    max-width: 860px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(23, 23, 23, 0.12);
}

.modal-header {
    padding: 20px 24px;
    background: #f7f6f3;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
    color: var(--text);
    line-height: 1.8;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 4px;
}

.close {
    color: var(--muted);
    font-size: 28px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: var(--text);
}

.hacker-divider {
    display: none;
}

/* —— Company about page —— */
.company-about {
    padding-bottom: 2rem;
}

.company-about-eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 0.75rem;
}

.company-about-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.company-about-lead {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--muted);
    max-width: 32rem;
}

.company-about-hero {
    padding: 3rem 0 2.5rem;
}

.company-about-hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .company-about-hero-grid {
        grid-template-columns: 1fr 1.05fr;
        gap: 3.5rem;
    }
}

.company-about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.75rem;
    padding: 0;
    list-style: none;
}

.company-about-tags li {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.35);
}

.company-about-figure {
    margin: 0;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 24px 48px rgba(23, 23, 23, 0.06);
}

.company-about-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #ebe8e2;
}

.service-figure {
    margin: 1.75rem 0 0;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
}

.service-photo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #fff;
}

.company-about-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
}

.company-about-strip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.5rem;
}

@media (min-width: 768px) {
    .company-about-strip-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.company-about-strip-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.company-about-strip-num {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--faint);
}

.company-about-strip-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}

.company-about-body {
    padding: 3.5rem 0 1rem;
}

.company-about-intro {
    max-width: 40rem;
    margin-bottom: 3rem;
}

.company-about-h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.company-about-intro p {
    color: var(--muted);
    line-height: 1.85;
    font-size: 0.9375rem;
}

.company-about-intro p + p {
    margin-top: 1rem;
}

.company-about-intro strong {
    color: var(--text);
    font-weight: 600;
}

.company-about-cards {
    display: grid;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
    .company-about-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.company-about-card {
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem 1.375rem;
    background: rgba(255, 255, 255, 0.25);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.company-about-card:hover {
    border-color: #d8d5cf;
    box-shadow: 0 12px 32px rgba(23, 23, 23, 0.05);
}

.company-about-card-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text);
}

.company-about-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.company-about-card-text {
    font-size: 0.8125rem;
    line-height: 1.75;
    color: var(--muted);
}

.company-about-card-text strong {
    color: var(--text);
    font-weight: 600;
}

.company-about-split {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .company-about-split {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 1.5rem;
        align-items: start;
    }
}

.company-about-panel {
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
}

.company-about-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.company-about-steps li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.company-about-step-index {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
}

.company-about-steps strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.company-about-steps p {
    font-size: 0.8125rem;
    line-height: 1.65;
    color: var(--muted);
    margin: 0;
}

.company-about-aside {
    background: rgba(255, 255, 255, 0.35);
}

.company-about-aside-text {
    font-size: 0.8125rem;
    line-height: 1.75;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.company-about-aside-text strong {
    color: var(--text);
    font-weight: 600;
}

.company-about-meta {
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.company-about-meta dt {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--faint);
    margin-bottom: 0.35rem;
}

.company-about-meta dd {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.65;
    color: var(--muted);
}

.company-about-meta a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.company-about-meta a:hover {
    color: var(--muted);
}

.company-about-map-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--text);
    padding-bottom: 2px;
}

.company-about-map-link:hover {
    color: var(--muted);
    border-color: var(--muted);
}

.bounty-login-illustration {
    padding: 0.5rem 0 0;
}

.bounty-login-illustration svg {
    display: block;
    color: var(--text);
}
