/* ============================================
   XuMing — Computer Systems Design
   Unique Color Palette:
   --bg-deep:    #0D0E14
   --bg-panel:   #151721
   --bg-card:    #1C1E2A
   --accent:     #FF6B45
   --accent-2:   #00D4AA
   --text:       #F1F3F9
   --text-2:     #9CA3B8
   --text-3:     #6B7280
   --border:     #272A36
   ============================================ */

/* ——— RESET ——— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    background-color: #0D0E14;
    color: #F1F3F9;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ——— NAVBAR (.site-navbar class selector ONLY) ——— */
.site-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(13, 14, 20, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid #272A36;
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
}
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #F1F3F9;
    transition: color 0.2s;
}
.navbar-brand:hover { color: #FF6B45; }
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #F1F3F9;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}
.navbar-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #9CA3B8;
    transition: color 0.2s;
}
.nav-link:hover { color: #FF6B45; }
.nav-link-legal { color: #6B7280; font-size: 0.8rem; }

/* Mobile nav */
@media (max-width: 768px) {
    .navbar-toggle { display: flex; }
    .navbar-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background-color: #151721;
        border-bottom: 1px solid #272A36;
        padding: 20px 24px;
        gap: 16px;
    }
    .navbar-links.active { display: flex; }
}

/* ——— HERO ——— */
.hero-block {
    padding: 140px 0 100px;
}
.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}
.hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #00D4AA;
    margin-bottom: 16px;
    padding: 6px 14px;
    background: rgba(0, 212, 170, 0.08);
    border-radius: 4px;
}
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #F1F3F9;
    margin-bottom: 20px;
}
.hero-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #9CA3B8;
    margin-bottom: 32px;
    max-width: 540px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.hero-card-frame {
    background-color: #1C1E2A;
    border: 1px solid #272A36;
    border-radius: 12px;
    padding: 28px;
    transition: border-color 0.3s;
}
.hero-card-frame:hover { border-color: #FF6B45; }
.hero-card-offset { margin-left: 32px; }
.hero-card-icon {
    font-size: 2rem;
    color: #FF6B45;
    margin-bottom: 12px;
}
.hero-card-label {
    font-size: 1rem;
    font-weight: 600;
    color: #F1F3F9;
    margin-bottom: 8px;
}
.hero-card-detail {
    font-size: 0.875rem;
    color: #9CA3B8;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-block { padding: 120px 0 60px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 2rem; }
    .hero-card-offset { margin-left: 0; }
}

/* ——— BUTTONS ——— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
}
.btn-primary {
    background-color: #FF6B45;
    color: #0D0E14;
}
.btn-primary:hover {
    background-color: #e65a38;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 107, 69, 0.3);
}
.btn-ghost {
    background-color: transparent;
    color: #F1F3F9;
    border: 1px solid #272A36;
}
.btn-ghost:hover { border-color: #FF6B45; color: #FF6B45; }
.btn-full { width: 100%; }

/* ——— METRICS STRIP ——— */
.metrics-strip {
    padding: 50px 0;
    background-color: #151721;
    border-top: 1px solid #272A36;
    border-bottom: 1px solid #272A36;
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.metric-item { padding: 16px 0; }
.metric-number {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #FF6B45;
    line-height: 1;
}
.metric-suffix {
    font-size: 2rem;
    font-weight: 800;
    color: #FF6B45;
    line-height: 1;
}
.metric-label {
    font-size: 0.85rem;
    color: #9CA3B8;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .metric-number { font-size: 2rem; }
}

/* ——— SECTION HEADERS ——— */
.section-header { margin-bottom: 48px; }
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #00D4AA;
    margin-bottom: 12px;
}
.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #F1F3F9;
    margin-bottom: 16px;
}
.text-accent { color: #FF6B45; }
.section-subtitle {
    font-size: 1.05rem;
    color: #9CA3B8;
    max-width: 600px;
}

@media (max-width: 768px) {
    .section-title { font-size: 1.8rem; }
}

/* ——— SOLUTIONS BENTO ——— */
.solutions-section {
    padding: 90px 0;
    background-color: #0D0E14;
}
.solutions-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.bento-card {
    background-color: #1C1E2A;
    border: 1px solid #272A36;
    border-radius: 12px;
    padding: 32px;
    transition: border-color 0.3s, transform 0.3s;
}
.bento-card:hover {
    border-color: #FF6B45;
    transform: translateY(-4px);
}
.bento-large { grid-row: span 2; }
.bento-wide { grid-column: span 2; }
.bento-icon {
    font-size: 1.8rem;
    color: #FF6B45;
    margin-bottom: 16px;
}
.bento-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #F1F3F9;
    margin-bottom: 12px;
}
.bento-desc {
    font-size: 0.9rem;
    color: #9CA3B8;
    line-height: 1.65;
    margin-bottom: 16px;
}
.bento-points { padding-left: 0; }
.bento-points li {
    font-size: 0.85rem;
    color: #9CA3B8;
    padding: 6px 0;
    padding-left: 18px;
    position: relative;
}
.bento-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background-color: #00D4AA;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .solutions-section { padding: 60px 0; }
    .solutions-bento { grid-template-columns: 1fr; }
    .bento-large, .bento-wide { grid-column: span 1; grid-row: span 1; }
}

/* ——— METHODOLOGY ——— */
.methodology-section {
    padding: 90px 0;
    background-color: #151721;
    border-top: 1px solid #272A36;
    border-bottom: 1px solid #272A36;
}
.method-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.method-card {
    background-color: #0D0E14;
    border: 1px solid #272A36;
    border-radius: 12px;
    padding: 36px;
    position: relative;
    transition: border-color 0.3s;
}
.method-card:hover { border-color: #FF6B45; }
.method-step {
    font-size: 3rem;
    font-weight: 800;
    color: #2A191A;
    position: absolute;
    top: 16px;
    right: 24px;
    line-height: 1;
}
.method-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #F1F3F9;
    margin-bottom: 12px;
}
.method-desc {
    font-size: 0.925rem;
    color: #9CA3B8;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .methodology-section { padding: 60px 0; }
    .method-grid { grid-template-columns: 1fr; }
}

/* ——— EXPERTISE ——— */
.expertise-section {
    padding: 90px 0;
    background-color: #0D0E14;
}
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.expertise-card {
    background-color: #1C1E2A;
    border: 1px solid #272A36;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}
.expertise-card:hover {
    border-color: #FF6B45;
    transform: translateY(-4px);
}
.expertise-icon-wrap {
    width: 64px;
    height: 64px;
    background: rgba(255, 107, 69, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.expertise-icon {
    font-size: 1rem;
    font-weight: 800;
    color: #FF6B45;
    letter-spacing: 0.05em;
}
.expertise-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #F1F3F9;
    margin-bottom: 10px;
}
.expertise-desc {
    font-size: 0.85rem;
    color: #9CA3B8;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .expertise-section { padding: 60px 0; }
    .expertise-grid { grid-template-columns: 1fr 1fr; }
}

/* ——— INSIGHTS ——— */
.insights-section {
    padding: 90px 0;
    background-color: #151721;
    border-top: 1px solid #272A36;
    border-bottom: 1px solid #272A36;
}
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.insight-card {
    background-color: #0D0E14;
    border: 1px solid #272A36;
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.3s;
}
.insight-card:hover { border-color: #00D4AA; }
.insight-quote {
    font-size: 0.95rem;
    color: #9CA3B8;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}
.insight-author { border-top: 1px solid #272A36; padding-top: 16px; }
.insight-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #F1F3F9;
}
.insight-role {
    display: block;
    font-size: 0.8rem;
    color: #6B7280;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .insights-section { padding: 60px 0; }
    .insights-grid { grid-template-columns: 1fr; }
}

/* ——— CONNECT SECTION ——— */
.connect-section {
    padding: 90px 0;
    background-color: #0D0E14;
}
.connect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.connect-info { padding-top: 0; }
.connect-desc {
    font-size: 1rem;
    color: #9CA3B8;
    line-height: 1.65;
    margin-bottom: 28px;
}
.connect-details { display: flex; flex-direction: column; gap: 14px; }
.connect-detail-item { display: flex; flex-direction: column; }
.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #00D4AA;
    margin-bottom: 4px;
}
.detail-value {
    font-size: 0.95rem;
    color: #F1F3F9;
    line-height: 1.5;
}
a.detail-value:hover { color: #FF6B45; }

.connect-form-wrap {
    background-color: #151721;
    border: 1px solid #272A36;
    border-radius: 12px;
    padding: 36px;
}
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #9CA3B8;
    margin-bottom: 6px;
}
.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.925rem;
    background-color: #0D0E14;
    border: 1px solid #272A36;
    border-radius: 8px;
    color: #F1F3F9;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-input:focus {
    outline: none;
    border-color: #FF6B45;
    box-shadow: 0 0 0 3px rgba(255, 107, 69, 0.12);
}
.form-input::placeholder { color: #6B7280; }
.form-textarea { resize: vertical; min-height: 120px; }

@media (max-width: 768px) {
    .connect-section { padding: 60px 0; }
    .connect-grid { grid-template-columns: 1fr; gap: 32px; }
    .connect-form-wrap { padding: 24px; }
}

/* ——— FOOTER ——— */
.site-footer {
    background-color: #151721;
    border-top: 1px solid #272A36;
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 36px;
    margin-bottom: 40px;
}
.footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #F1F3F9;
    display: inline-block;
    margin-bottom: 8px;
}
.footer-logo:hover { color: #FF6B45; }
.footer-tagline {
    font-size: 0.85rem;
    color: #9CA3B8;
    line-height: 1.5;
    margin-bottom: 4px;
}
.footer-company {
    font-size: 0.8rem;
    color: #6B7280;
}
.footer-heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #F1F3F9;
    margin-bottom: 16px;
}
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-link {
    font-size: 0.875rem;
    color: #9CA3B8;
    transition: color 0.2s;
    line-height: 1.5;
}
.footer-link:hover { color: #FF6B45; }
.footer-address { cursor: default; }
.footer-address:hover { color: #9CA3B8; }
.footer-bottom {
    border-top: 1px solid #272A36;
    padding-top: 20px;
    font-size: 0.825rem;
    color: #6B7280;
    text-align: center;
}

@media (max-width: 768px) {
    .site-footer { padding: 40px 0 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ——— FADE-UP / SCROLL REVEAL ——— */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ——— LEGAL PAGE GLOBAL STYLES (shared in style.css for header+footer) ——— */
.legal-header {
    padding: 100px 0 48px;
    background: linear-gradient(135deg, #151721 0%, #0D0E14 100%);
    border-bottom: 1px solid #272A36;
}
.legal-home-link {
    display: inline-block;
    font-size: 0.875rem;
    color: #FF6B45;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.2s;
}
.legal-home-link:hover { color: #00D4AA; }
.legal-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #F1F3F9;
}
.legal-date {
    font-size: 0.9rem;
    color: #6B7280;
    margin-top: 8px;
}
.legal-footer {
    background-color: #151721;
    border-top: 1px solid #272A36;
    padding: 24px 0;
    text-align: center;
}
.legal-footer .container p {
    font-size: 0.85rem;
    color: #9CA3B8;
    line-height: 1.8;
}
.legal-footer a {
    color: #FF6B45;
    transition: color 0.2s;
}
.legal-footer a:hover { color: #00D4AA; }

@media (max-width: 768px) {
    .legal-header { padding: 80px 0 36px; }
    .legal-title { font-size: 2rem; }
}