/* ============================================
   National Technology — Styles
   Palette: Deep Navy / Slate / Emerald Accent
   ============================================ */

:root {
    --bg-primary: #142847;
    --bg-secondary: #1a3155;
    --bg-card: #213b63;
    --bg-card-hover: #29456f;
    --border: #35527b;
    --border-light: #48668f;
    --text-primary: #e8ecf4;
    --text-secondary: #a7b3c6;
    --text-dim: #72809a;
    --accent: #9ab0c6;
    --accent-dim: #6f89a3;
    --accent-glow: rgba(154, 176, 198, 0.16);
    --white: #ffffff;
    --font-sans: 'IBM Plex Sans', -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* CONTAINER */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- NAV ---- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(20, 40, 71, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}
.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    color: inherit;
    border-radius: 0;
    padding: 0;
}
.logo-mark-img {
    display: block;
    width: 28px;
    height: 28px;
}
.logo-text {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    transition: color 0.2s;
    position: relative;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: 0.2s;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}
.btn-primary:hover {
    background: #aec0d3;
    box-shadow: 0 0 24px var(--accent-glow);
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.btn-full { width: 100%; }

/* ---- HERO (Home) ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 64px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 50%, rgba(127, 155, 179, 0.06), transparent),
        radial-gradient(ellipse 50% 60% at 80% 30%, rgba(127, 155, 179, 0.04), transparent);
}
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.15;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-kicker {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}
.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 540px;
}
.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---- PAGE HERO (subpages) ---- */
.page-hero {
    padding: 140px 0 60px;
    border-bottom: 1px solid var(--border);
}
.page-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.4px;
    margin-bottom: 12px;
}
.page-hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ---- SECTIONS ---- */
.section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border);
}
.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-heading {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.3px;
    margin-bottom: 48px;
}

/* ---- LEGACY ---- */
.legacy-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: start;
}
.legacy-body p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 20px;
}
.legacy-stats {
    display: flex;
    gap: 48px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}
.stat-label {
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ---- SERVICES GRID (Home preview) ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 36px 28px;
    transition: all 0.25s;
}
.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-2px);
}
.service-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 16px;
    display: block;
}
.service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}
.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.services-cta {
    text-align: center;
}

/* ---- STATEMENT (History) ---- */
.statement-grid {
    max-width: 760px;
}
.statement-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    border-left: 3px solid var(--accent);
    padding-left: 28px;
    font-style: normal;
}

/* ---- TIMELINE (History) ---- */
.timeline {
    position: relative;
    margin-top: 48px;
    padding-left: 40px;
}
.timeline-line {
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-light);
}
.timeline-item {
    position: relative;
    padding-bottom: 56px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
    position: absolute;
    left: -40px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
    z-index: 2;
}
.timeline-range {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 1px;
}
.timeline-content {
    margin-top: 12px;
}
.timeline-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 560px;
}

/* ---- SERVICES DETAIL (Services page) ---- */
.services-detail { padding-top: 80px; }
.service-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 48px;
    margin-bottom: 32px;
    transition: border-color 0.25s;
}
.service-detail-card:hover {
    border-color: var(--border-light);
}
.service-detail-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}
.service-detail-head .service-num {
    margin-bottom: 0;
    font-size: 14px;
}
.service-detail-head h2 {
    font-size: 1.5rem;
    font-weight: 700;
}
.service-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 640px;
}
.service-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
.service-point h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 8px;
}
.service-point p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ---- CONTACT ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: start;
}
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b95a8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-dim);
    text-align: center;
}
.contact-info {
    padding-top: 8px;
}
.contact-info-block {
    margin-bottom: 40px;
}
.contact-info-block h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.contact-info-block p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ---- CLIENT ENVIRONMENTS (History) ---- */
.environments-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 48px;
    line-height: 1.7;
}
.env-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.env-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px 24px;
    transition: all 0.25s;
}
.env-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}
.env-icon {
    display: inline-block;
    color: var(--accent);
    font-size: 10px;
    margin-bottom: 14px;
}
.env-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}
.env-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.contact-phone {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-primary);
    transition: color 0.2s;
}
.contact-phone:hover { color: var(--accent); }
.contact-email {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: color 0.2s;
}
.contact-email:hover { color: var(--accent); }

/* ---- FOOTER ---- */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-brand .logo-mark {
    width: 28px; height: 28px;
}
.footer-brand .logo-text {
    font-size: 14px;
}
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    font-size: 13px;
    color: var(--text-dim);
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-copy {
    font-size: 12px;
    color: var(--text-dim);
}
.footer-phone {
    font-size: 13px;
}
.footer-phone a {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    transition: color 0.2s;
}
.footer-phone a:hover { color: var(--accent); }
.footer-updated {
    font-size: 11px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-kicker { animation: fadeUp 0.6s ease both; }
.hero-title { animation: fadeUp 0.6s ease 0.1s both; }
.hero-sub { animation: fadeUp 0.6s ease 0.2s both; }
.hero-ctas { animation: fadeUp 0.6s ease 0.3s both; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0; right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        display: none;
    }
    .nav-links.open { display: flex; }
    .legacy-grid { grid-template-columns: 1fr; gap: 32px; }
    .services-grid { grid-template-columns: 1fr; }
    .env-grid { grid-template-columns: 1fr; }
    .service-points { grid-template-columns: 1fr; }
    .service-detail-card { padding: 28px 20px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .legacy-stats { gap: 32px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .hero { min-height: 85vh; }
}
