@import url("../shared/theme-ndtechhub.css");

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 0% 0%, #132f5f 0%, transparent 33%),
        radial-gradient(circle at 90% 10%, #0e2b58 0%, transparent 28%),
        var(--bg);
    line-height: 1.6;
}

h1, h2, h3 {
    margin-top: 0;
    font-family: "Merriweather", "Georgia", serif;
    line-height: 1.2;
}

p {
    margin: 0 0 1rem;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.section {
    padding: 4rem 0;
}

.section-title {
    font-size: clamp(1.7rem, 2.5vw, 2.4rem);
    margin-bottom: 0.8rem;
}

.section-subtitle {
    color: var(--muted);
    max-width: 64ch;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(8px);
    background: rgba(8, 24, 52, 0.92);
    color: var(--text);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text);
}

.brand-mark {
    color: var(--brand);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    margin: 4px auto;
}

.site-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav a {
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    font-size: 0.94rem;
    color: var(--text);
}

.site-nav a:hover,
.site-nav a.active {
    background: rgba(0, 184, 255, 0.15);
    color: #8fe5ff;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 0.72rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--brand);
    color: #032246;
    box-shadow: 0 8px 20px rgba(0, 184, 255, 0.3);
}

.button-primary:hover {
    background: var(--brand-dark);
}

.button-outline {
    color: #9eeaff;
    border: 1px solid var(--brand);
    background: rgba(0, 184, 255, 0.1);
}

.button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.grid {
    display: grid;
    gap: 1.25rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: var(--shadow);
}

.card h3 {
    font-size: 1.15rem;
}

.split {
    display: grid;
    gap: 1.4rem;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pill {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.86rem;
    color: var(--muted);
}

.site-footer {
    margin-top: 3rem;
    background: #040d1f;
    color: #e8f1ff;
    padding: 2.2rem 0;
}

.footer-grid {
    display: grid;
    gap: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.footer-links a {
    color: #e8f1ff;
    opacity: 0.86;
}

.footer-links a:hover {
    opacity: 1;
}

.muted {
    color: var(--muted);
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 360ms ease, transform 360ms ease;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .grid.cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid.cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .split {
        grid-template-columns: 1.2fr 1fr;
        align-items: center;
    }
}

@media (max-width: 920px) {
    .header-inner {
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.7rem 0;
    }

    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        display: none;
        padding: 0.5rem 0 0.25rem;
        gap: 0.5rem;
        width: 100%;
        justify-content: flex-start;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 0.4rem 0.65rem;
    }
}

