/* ==========================================================
   WeldTrack by FacTrack — Landing page styles
   Accent: #3b82f6 (brand blue)
   Pages: index.html · platform.html · deployment.html
   ========================================================== */

:root {
    --bg-deep: #050a14;
    --bg-panel: #0a1224;
    --accent-blue: #3b82f6;
    --accent-blue-strong: #2563eb;
    --accent-blue-soft: rgba(59, 130, 246, 0.15);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.45);
    --glass-border: rgba(59, 130, 246, 0.15);
    --radius: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    overflow-wrap: break-word;
}

img, canvas {
    max-width: 100%;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ------------------------------------------------------------
   Ambient background canvas
   ------------------------------------------------------------ */
#network-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at top right, #0a1224 0%, #050a14 100%);
}

/* ------------------------------------------------------------
   Typography helpers
   ------------------------------------------------------------ */
.text-glow {
    color: var(--accent-blue);
    text-shadow: 0 0 25px rgba(59, 130, 246, 0.45);
}

.eyebrow {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 0.75rem;
}

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 5%;
    background: rgba(5, 10, 20, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-main);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo span {
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 1.75rem;
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--accent-blue);
}

/* Hamburger (hidden on desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.4px;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #04101f;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    background-color: var(--accent-blue-strong);
    color: #eaf2ff;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.btn-secondary:hover {
    background-color: var(--accent-blue-soft);
    border-color: var(--accent-blue);
}

.btn-small {
    padding: 0.5rem 1.1rem;
    background-color: transparent;
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 5px;
}

.btn-small:hover {
    background-color: var(--accent-blue-soft);
}

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */
.container {
    padding: 4.5rem 5% 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.page-section {
    padding-top: 3.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 2.5rem;
}

.align-center {
    align-items: center;
}

/* ------------------------------------------------------------
   Hero (home) & page hero (subpages)
   ------------------------------------------------------------ */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7rem 5% 4rem;
}

.page-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 9.5rem 5% 3rem;
}

.hero-content {
    max-width: 940px;
}

.hero-eyebrow {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.hero h1,
.page-hero h1 {
    font-size: clamp(2.1rem, 6vw, 4.3rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    margin: 0 auto 2.25rem;
    max-width: 760px;
    font-weight: 400;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-urgency {
    margin-top: 1.5rem;
    color: var(--accent-blue);
    font-size: 0.92rem;
    font-weight: 500;
}

.hero-proof {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem 2rem;
    margin-top: 2.25rem;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 500;
}

.hero-proof li {
    position: relative;
    padding-left: 1.1rem;
}

.hero-proof li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-blue);
}

/* ------------------------------------------------------------
   Section headers & panels
   ------------------------------------------------------------ */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    margin-bottom: 0.75rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto;
}

.section-footer-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.summary-panel,
.compliance-panel,
.roadmap-panel {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.06) 0%, rgba(10, 18, 36, 0.5) 100%);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.summary-panel h2,
.compliance-panel h2,
.roadmap-panel h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    margin-bottom: 1.25rem;
}

.summary-panel p,
.compliance-panel p,
.roadmap-panel p {
    color: var(--text-muted);
    font-size: 1.02rem;
    max-width: 820px;
    margin: 0 auto;
}

.compliance-panel p {
    color: var(--text-main);
}

/* ------------------------------------------------------------
   Pillar overview (home page)
   ------------------------------------------------------------ */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 1.5rem;
}

.pillar-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 1.9rem;
}

.pillar-card h3 {
    font-size: 1.18rem;
}

.pillar-card p {
    color: var(--text-muted);
    font-size: 0.93rem;
    margin-bottom: 1.25rem;
}

.pillar-link {
    margin-top: auto;
    color: var(--accent-blue);
    font-size: 0.88rem;
    font-weight: 600;
}

/* ------------------------------------------------------------
   Feature detail (platform page)
   ------------------------------------------------------------ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2.25rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.45);
}

.glass-card h3 {
    font-size: 1.28rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.feature-block {
    position: relative;
    scroll-margin-top: 6rem;
}

.feature-index {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 4px;
    padding: 0.15rem 0.55rem;
    margin-bottom: 1rem;
}

.feature-lead {
    color: var(--text-muted);
    font-size: 0.97rem;
    margin-bottom: 1.5rem;
}

/* ------------------------------------------------------------
   Feature lists (glow-dot bullets)
   ------------------------------------------------------------ */
.feature-list {
    list-style: none;
    color: var(--text-muted);
}

.feature-list li {
    margin-bottom: 1.1rem;
    position: relative;
    padding-left: 1.6rem;
    font-size: 0.93rem;
}

.feature-list li:last-child {
    margin-bottom: 0;
}

.feature-list li strong {
    color: var(--text-main);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 7px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-blue);
}

/* ------------------------------------------------------------
   Security (FacGuard) section
   ------------------------------------------------------------ */
.dark-panel {
    background: var(--bg-panel);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: var(--radius);
    padding: 3.5rem 3rem;
}

.security-intro {
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.security-intro strong {
    color: var(--text-main);
}

.graphic-placeholder {
    position: relative;
    width: min(280px, 65vw);
    aspect-ratio: 1;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pulse-core {
    width: 80px;
    height: 80px;
    background-color: var(--bg-deep);
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.5), 0 0 20px rgba(59, 130, 246, 0.3);
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 50%;
    animation: ripple 4.5s linear infinite;
}

.pulse-ring.delay-1 { animation-delay: 1.5s; }
.pulse-ring.delay-2 { animation-delay: 3s; }

@keyframes ripple {
    0%   { transform: scale(0.3); opacity: 1; }
    100% { transform: scale(1);   opacity: 0; }
}

/* ------------------------------------------------------------
   CTA band (urgency)
   ------------------------------------------------------------ */
.cta-band {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.12) 0%, rgba(10, 18, 36, 0.6) 100%);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: var(--radius);
    padding: 3.25rem 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cta-band h2 {
    font-size: clamp(1.6rem, 3.8vw, 2.3rem);
    margin-bottom: 1.1rem;
}

.cta-band p {
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto 2rem;
    font-size: 1.02rem;
}

/* ------------------------------------------------------------
   Deployment page
   ------------------------------------------------------------ */
.deploy-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.deploy-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: var(--accent-blue);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
    background: rgba(59, 130, 246, 0.08);
}

.deploy-guarantees {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.deploy-grid {
    gap: 2.5rem;
}

.deploy-guarantees h3 {
    color: var(--accent-blue);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.deploy-guarantees p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.deploy-cta {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.deploy-note {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
footer {
    background-color: #03070d;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4.5rem 5% 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.footer-content > p {
    color: var(--text-muted);
}

.footer-cta-text {
    color: var(--text-main) !important;
    font-weight: 600;
    margin: 1.5rem 0;
}

.leadership-section {
    max-width: 800px;
    margin: 3rem auto;
    display: flex;
    justify-content: center;
    gap: 5rem;
    text-align: left;
}

.leader-profile strong {
    color: var(--text-main);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.leader-profile .title {
    color: var(--accent-blue);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.leader-profile .credential {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    margin-top: 2rem;
}

.copyright a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.copyright a:hover {
    color: var(--accent-blue);
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

/* Hamburger kicks in early enough that links never crowd the bar */
@media (max-width: 1000px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(5, 10, 20, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(59, 130, 246, 0.2);
        padding: 0.75rem 5% 1.25rem;
        display: none;
    }

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

    .nav-links a {
        margin: 0;
        padding: 0.9rem 0.25rem;
        font-size: 1rem;
        white-space: normal;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links a.btn-small {
        margin-top: 1rem;
        text-align: center;
        border-bottom: none;
        border: 1px solid rgba(59, 130, 246, 0.4);
    }
}

@media (max-width: 900px) {
    .dark-panel {
        padding: 2.5rem 1.75rem;
    }

    .leadership-section {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 3.5rem 5% 1.25rem;
    }

    .hero {
        padding-top: 6.5rem;
    }

    .page-hero {
        padding: 8rem 5% 2rem;
    }

    .cta-group .btn {
        width: 100%;
        max-width: 360px;
    }

    .glass-card {
        padding: 1.75rem 1.4rem;
    }

    .pillar-card {
        padding: 1.6rem 1.4rem;
    }

    .summary-panel,
    .compliance-panel,
    .roadmap-panel,
    .cta-band {
        padding: 2.25rem 1.4rem;
    }

    .leadership-section {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }
}

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
