/* =========================================================
   Theme + typography
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Instrument+Sans:wght@500;600;700&display=swap");

:root {
    --bg: #050816;
    --bg-alt: #0b1020;
    --accent: #4f46e5;
    --accent-soft: #6366f1;
    --accent-dim: rgba(99, 102, 241, 0.12);
    --text: #f9fafb;
    --muted: #9ca3af;
    --card-bg: #111827;
    --border: #1f2933;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --header-h: 4rem;
    --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Instrument Sans", var(--font-sans);
}

/* =========================================================
   🧱 BASE RESET & GLOBALS (Original)
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 0.25rem;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* =========================================================
   🦸 HERO + NAV (Original)
   ========================================================= */
.hero {
    padding: 1.5rem 0 4rem;
}

/* Home: only the nav bar is sticky; headline scrolls away (not inside sticky header). */
.hero--home {
    padding-top: 0.5rem;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.03em;
    font-size: 1.05rem;
}

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

.logo a:hover {
    color: var(--accent-soft);
}

.nav-cta {
    color: var(--accent-soft);
    text-decoration: none;
    font-weight: 500;
}

.hero-content {
    max-width: 640px;
    padding-top: 2rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.hero p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* =========================================================
   🎛 BUTTONS (Original)
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: #fff;
}

.btn.secondary {
    background: transparent;
    color: var(--text);
    border-color: #374151;
}

/* =========================================================
   📦 SECTIONS (Original)
   ========================================================= */
.section {
    padding: 3rem 0;
}

.section.alt {
    background: rgba(15, 23, 42, 0.7);
}

.section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* =========================================================
   🧩 CARDS (Original)
   ========================================================= */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background: var(--card-bg);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.card.highlight {
    border-color: var(--accent-soft);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.card p {
    margin: 0.4rem 0;
    color: var(--muted);
}

.price {
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--accent-soft);
}

/* =========================================================
   📝 FORMS (Original)
   ========================================================= */
.list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.list li {
    margin-bottom: 0.4rem;
    color: var(--muted);
}

.form {
    max-width: 520px;
    margin-top: 1.5rem;
}

.form-row {
    margin-bottom: 1rem;
}

.form label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.form input,
.form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #374151;
    background: #020617;
    color: var(--text);
    font-size: 0.95rem;
}

.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--accent-soft);
}

.form-status {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--muted);
}

/* =========================================================
   🦶 FOOTER (Original)
   ========================================================= */
.footer {
    padding: 1.5rem 0 2rem;
    border-top: 1px solid #111827;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* =========================================================
   📱 RESPONSIVE (Original)
   ========================================================= */
@media (max-width: 640px) {
    .hero {
        padding-bottom: 3rem;
    }
}

/* =========================================================
   🎖 CERTIFICATIONS (Original)
   ========================================================= */
.cert-section {
    text-align: center;
    padding: 3rem 1.5rem;
}

.cert-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* =========================================================
   🌗 DARK / LIGHT MODE SUPPORT
   ========================================================= */
body.light-mode {
    --bg: #ffffff;
    --bg-alt: #f3f4f6;
    --text: #111827;
    --muted: #4b5563;
    --card-bg: #ffffff;
    --border: #e5e7eb;
    --accent-dim: rgba(79, 70, 229, 0.08);
    background: #fafafa;
    color: var(--text);
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    cursor: pointer;
    color: var(--text);
    transition: 0.2s ease;
}

.theme-toggle:hover {
    background: var(--accent-soft);
    color: #fff;
}

/* =========================================================
   📌 STICKY HEADER
   ========================================================= */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(5, 8, 22, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.sticky-header:not(.hero) {
    padding: 0.5rem 0;
}

header.sticky-header:not(.hero) .nav {
    margin-bottom: 0;
}

body.light-mode .sticky-header {
    background: rgba(255, 255, 255, 0.7);
}

/* =========================================================
   🎬 ANIMATED HERO
   ========================================================= */
.animated-hero {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1s ease forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   🧭 HOW IT WORKS (3‑STEP FLOW)
   ========================================================= */
.how-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 2rem;
}

.how-step {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
}

.step-number {
    display: inline-block;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #fff;
    font-weight: 700;
    line-height: 42px;
    margin-bottom: 0.75rem;
}

/* =========================================================
   🖼 MODULE PREVIEW SECTION
   ========================================================= */
.preview-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 2rem;
}

.preview-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
}

.preview-card img {
    width: 100%;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

/* =========================================================
   🎥 VIDEO DEMO SECTION
   ========================================================= */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-top: 1.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--border);
}

.video-wrapper iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
}

/* =========================================================
   💬 TESTIMONIALS CAROUSEL
   ========================================================= */
.carousel {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.4s ease;
}

.testimonial {
    min-width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    font-style: italic;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-soft);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn.prev {
    left: -10px;
}

.carousel-btn.next {
    right: -10px;
}

.carousel-btn:hover {
    background: var(--accent);
}

/* =========================================================
   🤝 TRUSTED BY ENGINEERS
   ========================================================= */
.trusted-logos {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

.logo-placeholder {
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    font-weight: 600;
    color: var(--muted);
}

/* =========================================================
   🌗 DARK/LIGHT MODE TRANSITIONS
   ========================================================= */
body,
.card,
.section,
.preview-card,
.how-step,
.testimonial {
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* =========================================================
   Site navigation (all pages)
   ========================================================= */
.nav-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    flex-wrap: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    flex: 1 1 auto;
    min-width: 0;
}

@media (min-width: 901px) {
    .nav-links {
        flex: 1 1 0;
    }
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.45rem 0.75rem;
    border-radius: 0.5rem;
    transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
    color: var(--text);
    background: var(--accent-dim);
}

.nav-link[aria-current="page"] {
    color: var(--accent-soft);
    background: var(--accent-dim);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.nav-toggle:hover {
    background: var(--accent-dim);
}

.nav-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle-icon span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-inner {
        flex-wrap: nowrap;
    }

    .logo {
        flex: 1;
        min-width: 0;
    }

    .nav-actions {
        flex-shrink: 0;
    }

    .nav-links {
        display: none;
        order: 4;
        flex: 1 1 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 1.25rem 1rem;
        margin-top: 0;
        background: inherit;
        border-bottom: 1px solid var(--border);
        backdrop-filter: blur(12px);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-link {
        padding: 0.65rem 0.75rem;
    }

    .sticky-header .container {
        position: relative;
    }
}

/* =========================================================
   Inner pages — hero + prose
   ========================================================= */
.page-hero {
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--accent-dim) 0%, transparent 100%);
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.page-hero .lead {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 42rem;
    margin: 0;
}

.breadcrumb {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--accent-soft);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.prose {
    max-width: 42rem;
}

.prose p {
    margin: 0 0 1rem;
    color: var(--muted);
}

.prose p:last-child {
    margin-bottom: 0;
}

.prose h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text);
    margin: 2rem 0 0.75rem;
}

.prose ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    color: var(--muted);
}

.prose li {
    margin-bottom: 0.35rem;
}

.prose strong {
    color: var(--text);
    font-weight: 600;
}

.prose a {
    color: var(--accent-soft);
    text-decoration: none;
    font-weight: 500;
}

.prose a:hover {
    text-decoration: underline;
}

p code {
    font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
    font-size: 0.88em;
    padding: 0.15rem 0.4rem;
    border-radius: 0.35rem;
    background: var(--accent-dim);
    color: var(--text);
}

/* =========================================================
   Home — pillar + explore cards
   ========================================================= */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.pillar-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover {
    border-color: var(--accent-soft);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.pillar-icon {
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.pillar-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.pillar-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.explore-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.explore-card:hover {
    border-color: var(--accent-soft);
    transform: translateY(-2px);
}

.explore-card h3 {
    font-family: var(--font-display);
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    color: var(--text);
}

.explore-card p {
    margin: 0 0 1rem;
    flex-grow: 1;
    font-size: 0.95rem;
    color: var(--muted);
}

.explore-card .link-arrow {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-soft);
}

/* =========================================================
   Product preview placeholders (no image assets required)
   ========================================================= */
.preview-thumb {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
}

.preview-thumb--vpc {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
}

.preview-thumb--alb {
    background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
}

.preview-thumb--bundle {
    background: linear-gradient(135deg, #14532d 0%, #052e16 100%);
}

/* =========================================================
   Footer — extended
   ========================================================= */
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.footer-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-nav a:hover {
    color: var(--accent-soft);
}

.footer-copy {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

@media (max-width: 640px) {
    .footer-inner {
        flex-direction: column;
    }
}

/* =========================================================
   Certifications page — badge strip
   ========================================================= */
.cert-page-intro {
    margin-bottom: 2rem;
}

.cert-badge-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
}

.cert-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.cert-detail-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
}

.cert-detail-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-family: var(--font-display);
}

.cert-detail-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.meta-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin-bottom: 0.35rem;
}

/* Cart + checkout */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.cart-table th,
.cart-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.cart-table th {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--muted);
}

.cart-table tr:last-child td {
    border-bottom: none;
}

.cart-qty {
    width: 4rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.35rem;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent-soft);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    padding: 0;
}

.btn-text:hover {
    color: var(--accent);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0.35rem 0 0;
}

.nav-cta.cart-link .cart-count {
    display: inline-block;
    min-width: 1.1rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.15rem;
}

.nav-cta.cart-link.cart-has-items {
    color: var(--accent-soft);
}
