/* XiTech additions — load AFTER styles.css */

/* Light blue theme (overrides colours in styles.css) */
:root {
    --primary: #3b9cf0;
    --primary-dark: #1d7ad6;
    --secondary: #1f6fd1;
    --accent: #7dd3fc;
    --dark: #0f2a52;
    --navy: #1d4f91;
}
.hero, .hero-services { background: linear-gradient(135deg, var(--dark) 0%, var(--navy) 100%); }
.services, .content-section.alt { background: linear-gradient(180deg, var(--dark), var(--navy)) !important; }
.navbar { background: rgba(15, 42, 82, 0.92); }
.cta-button, .submit-button, .featured-card .cta-button {
    background-image: linear-gradient(135deg, #5ab8ff, #2a7de1);
}
.nav-brand { background: linear-gradient(135deg, #a5d8ff, #4fa8f5); -webkit-background-clip: text; background-clip: text; }
.hero-title { background: linear-gradient(135deg, #ffffff, #bae6fd, #60b4f8); -webkit-background-clip: text; background-clip: text; }
.section-title { background: linear-gradient(135deg, #ffffff, #8fcbff); -webkit-background-clip: text; background-clip: text; }
.service-number { background: linear-gradient(135deg, #7cc4ff, #3b9cf0); -webkit-background-clip: text; background-clip: text; opacity: 0.45; }
.about-card { background: linear-gradient(135deg, rgba(59,156,240,0.16), rgba(125,211,252,0.08)); }
.service-item { background: rgba(255,255,255,0.05); }
.service-item::before { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.cta-button:hover { box-shadow: 0 20px 40px rgba(59, 156, 240, 0.45); }
.submit-button:hover { box-shadow: 0 15px 30px rgba(59, 156, 240, 0.45); }
.form-group input:focus, .form-group textarea:focus { box-shadow: 0 0 20px rgba(59, 156, 240, 0.3); }
.shape-1 { background: #3b9cf0; }
.shape-2 { background: #1f6fd1; }
.shape-3 { background: #7dd3fc; opacity: 0.35; }
.hero-subtitle { color: #c3d9f0; }
.service-item p, .about-card p, .footer p, .footer-links a { color: #a9c1dc; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #8aa5c4; }

a { color: inherit; }

.nav-brand a { text-decoration: none; color: inherit; -webkit-text-fill-color: transparent; }
.nav-links a.active { color: var(--primary); }

.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-lead {
    max-width: 760px;
    margin: -2.5rem auto 3.5rem;
    text-align: center;
    color: #b4c8e0;
    font-size: 1.15rem;
}

.cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: border-color 0.3s ease, background 0.3s ease;
    animation: fadeInUp 1s ease-out 0.5s both;
}
.cta-secondary:hover { border-color: var(--primary); background: rgba(59,156,240,0.1); }

.hero-services { padding-top: 140px; padding-bottom: 60px; }

/* Featured product (homepage) */
.featured { padding: 8rem 5%; background: var(--dark); }
.featured-card {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(135deg, rgba(59,156,240,0.12), rgba(125,211,252,0.06));
}
.featured-card h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; line-height: 1.2; }
.featured-card p { color: #b4c8e0; margin-bottom: 1.5rem; }
.featured-card ul { list-style: none; margin-bottom: 2rem; }
.featured-card li { padding-left: 1.6rem; position: relative; margin-bottom: 0.6rem; color: #cbd5e1; }
.featured-card li::before {
    content: ''; position: absolute; left: 0; top: 0.6em;
    width: 0.6rem; height: 0.6rem; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}
.featured-card .cta-button { animation: none; }

/* Signal-flow diagram */
.flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}
.flow-node {
    text-align: center;
    padding: 1.8rem 1.2rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
}
.flow-node.core {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(59,156,240,0.25), rgba(125,211,252,0.12));
    box-shadow: 0 20px 50px rgba(59,156,240,0.2);
}
.flow-node .tag { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.flow-node h3 { font-size: 1.3rem; margin: 0.4rem 0; }
.flow-node p { color: #b4c8e0; font-size: 0.95rem; }
.flow-arrow { text-align: center; color: var(--primary); font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.flow-arrow span { display: block; font-size: 1.8rem; line-height: 1; }
.featured-card .flow { grid-template-columns: 1fr; gap: 0.5rem; }
.featured-card .flow-arrow span { transform: rotate(90deg); }
.featured-card .flow-node { padding: 1.1rem; }

/* Generic content sections */
.content-section { padding: 6rem 5%; }
.content-section.alt { background: linear-gradient(180deg, var(--dark), #1e1b4b); }
.content-section.plain { background: var(--dark); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-grid .service-item h3 { font-size: 1.25rem; margin: 0.4rem 0 0.6rem; }
.feature-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    position: relative; z-index: 1;
    font-weight: 800; font-size: 0.95rem;
}

/* Spec table */
.spec-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}
.spec-table th, .spec-table td { padding: 1rem 1.4rem; text-align: left; vertical-align: top; }
.spec-table th { width: 38%; color: #cbd5e1; font-weight: 600; background: rgba(255,255,255,0.04); }
.spec-table td { color: #b4c8e0; }
.spec-table tr + tr th, .spec-table tr + tr td { border-top: 1px solid rgba(255,255,255,0.08); }
.spec-table code { color: var(--accent); font-family: Consolas, 'Courier New', monospace; }

/* Steps */
.steps { max-width: 900px; margin: 0 auto; counter-reset: step; list-style: none; }
.steps li {
    counter-increment: step;
    position: relative;
    padding: 0 0 2rem 4rem;
    color: #b4c8e0;
}
.steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute; left: 0; top: -0.2rem;
    font-size: 1.8rem; font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.steps li strong { display: block; color: var(--light); font-size: 1.15rem; margin-bottom: 0.25rem; }

.cta-band {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 3.5rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(135deg, rgba(59,156,240,0.18), rgba(125,211,252,0.08));
}
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 0.8rem; }
.cta-band p { color: #b4c8e0; margin-bottom: 2rem; }
.cta-band .cta-button { animation: none; }

.contact-intro { text-align: center; color: #b4c8e0; margin: -2.5rem auto 2.5rem; max-width: 600px; }

.footer-links { margin-top: 0.5rem; }
.footer-links a { color: var(--gray); text-decoration: none; margin: 0 0.75rem; }
.footer-links a:hover { color: var(--primary); }

@media (max-width: 900px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-card { grid-template-columns: 1fr; padding: 2rem; }
    .flow { grid-template-columns: 1fr; }
    .flow-arrow span { transform: rotate(90deg); }
}
@media (max-width: 768px) {
    .feature-grid { grid-template-columns: 1fr; }
    .hero-services { padding-top: 200px; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .content-section, .featured { padding: 4.5rem 5%; }
    .spec-table th, .spec-table td { display: block; width: 100%; }
    .spec-table tr + tr th { border-top: 1px solid rgba(255,255,255,0.08); }
    .spec-table td { border-top: none !important; padding-top: 0.25rem; }
    .steps li { padding-left: 3.2rem; }
    .shape-1 { width: 260px; height: 260px; }
}
