/* ================================================================
   IDSOL 2026 — Shared Stylesheet
   Covers: CSS variables, nav, footer, background canvas, utilities
   ================================================================ */

:root {
    --bg-darker: #01030a;
    --node-bright: #9ce9ff;
    --node-blue: #4a7dff;
    --footer-grey: #888;
    --glass-frost: rgba(10, 25, 50, 0.82);
    --glass-deep: rgba(10, 25, 50, 0.82);
    --border-bright: rgba(156, 233, 255, 0.3);
    --border-muted: rgba(156, 233, 255, 0.15);
    --font-main: 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
    --header-blue: #4a7dff;
    --nav-height: 68px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background-color: #0f172a;
    font-family: var(--font-main);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ── Background Canvas ── */
#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #131c32 0%, #08163b 100%);
    opacity: 0;
    transition: opacity 1.5s ease-in;
}
#bg-canvas.active { opacity: 1; }

/* ================================================================
   NAV
   ================================================================ */
nav#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: #08163b;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-bright);
    display: flex;
    align-items: center;
    padding: 0 32px;
    gap: 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 30px;
}
.nav-logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(156, 233, 255, 0.4));
}
.nav-logo-text {
    font-size: 1.0rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: auto;
    flex: 0 1 auto;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a,
.nav-links > li > .nav-parent {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    text-decoration: none;
    color: #CBD5E1;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
    background: none;
    border: none;
    font-family: var(--font-main);
}

.nav-links > li > a:hover,
.nav-links > li > .nav-parent:hover,
.nav-links > li > a.active,
.nav-links > li.active > .nav-parent {
    color: #fff;
    background: rgba(156, 233, 255, 0.1);
}

.nav-links > li > a.active {
    color: var(--node-bright);
    border-bottom: 2px solid var(--node-bright);
}

.nav-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.nav-links > li.open > .nav-parent .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: rgba(6, 14, 40, 0.97);
    border: 1px solid var(--border-bright);
    border-radius: 6px;
    padding: 8px 0;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    backdrop-filter: blur(20px);
    list-style: none;
    margin: 0;
    z-index: 100;
}

.nav-links > li.open > .nav-dropdown {
    display: block;
}

.nav-dropdown li a {
    display: block;
    padding: 10px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #CBD5E1;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.2s ease;
}

.nav-dropdown li a:hover,
.nav-dropdown li a.active {
    color: #fff;
    background: rgba(156, 233, 255, 0.1);
    padding-left: 24px;
}

.nav-register {
    margin-left: 14px;
}

.nav-register a {
    display: inline-flex;
    align-items: center;
    padding: 9px 22px;
    background: var(--node-bright);
    color: var(--bg-darker) !important;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(156, 233, 255, 0.25);
}

.nav-register a:hover {
    background: #fff;
    box-shadow: 0 6px 20px rgba(156, 233, 255, 0.4);
    transform: translateY(-2px);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
    background: none;
    border: none;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-drawer {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(6, 14, 40, 0.98);
    border-bottom: 1px solid var(--border-bright);
    z-index: 999;
    padding: 16px 20px 24px;
    backdrop-filter: blur(20px);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
}

.nav-mobile-drawer.open { display: block; }

.nav-mobile-drawer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-mobile-drawer > ul > li {
    border-bottom: 1px solid rgba(156, 233, 255, 0.12);
}

.nav-mobile-drawer > ul > li > a,
.nav-mobile-drawer > ul > li > .nav-mobile-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-main);
}

.nav-mobile-sub {
    display: none;
    padding-bottom: 10px;
}

.nav-mobile-sub.open { display: block; }

.nav-mobile-sub a {
    display: block;
    padding: 10px 16px;
    color: #CBD5E1;
    font-size: 0.82rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.2s ease;
}

.nav-mobile-sub a:hover { color: var(--node-bright); }

.nav-mobile-register {
    margin-top: 18px;
}

.nav-mobile-register a {
    display: block;
    text-align: center;
    padding: 14px;
    background: var(--node-bright);
    color: var(--bg-darker);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    position: relative;
    z-index: 100;
    width: 100%;
    margin-top: auto;
    isolation: isolate;
}

.site-footer__backdrop {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background-color: var(--glass-frost);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-bright);
    z-index: -1;
}

.site-footer .footer-inner {
    position: relative;
    z-index: 1;
}

.footer-line {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--node-blue) 20%, var(--node-blue) 80%, transparent);
    opacity: 0.45;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 20px 28px;
    text-align: center;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    margin-bottom: 36px;
}

.footer-col h4 {
    color: var(--node-blue);
    font-size: 0.95rem;
    margin: 0 0 14px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 700;
    transition: color 0.3s;
}

.footer-col h4:hover { color: var(--node-bright); }

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 28px;
}

.footer-icons a {
    color: #749cff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-icons a:hover {
    color: var(--node-bright);
    filter: drop-shadow(0 0 8px rgba(156,233,255,0.5));
    transform: scale(1.12);
}

.footer-copyright {
    color: var(--footer-grey);
    font-size: 0.82rem;
    margin: 0;
}

/* ================================================================
   COMMON UTILITIES
   ================================================================ */

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Divider */
.divider {
    height: 1px;
    width: 100%;
    max-width: 600px;
    margin: 80px auto;
    background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
    position: relative;
}
.divider::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 6px; height: 6px;
    background: var(--node-bright);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--node-bright);
}

/* Section header */
.section-header { text-align: center; margin: 80px 0 50px; }
.section-header h1,
.section-header h2 {
    font-size: clamp(1.8rem, 6vw, 2.7rem);
    text-transform: uppercase;
    letter-spacing: clamp(4px, 2vw, 10px);
    color: var(--node-bright);
    margin: 0;
    display: inline-block;
    background: linear-gradient(90deg, transparent, var(--node-blue), transparent);
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: bottom;
    padding-bottom: 15px;
}
.section-header p {
    font-size: 0.8rem;
    color: var(--node-blue);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 10px;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 38px;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    font-size: 0.88rem;
    transition: all 0.3s ease;
    text-align: center;
}
.btn-primary {
    background: var(--node-bright);
    color: var(--bg-darker);
    border: 1px solid var(--node-bright);
    box-shadow: 0 10px 30px rgba(156, 233, 255, 0.2);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(156, 233, 255, 0.4); background: white; }
.btn-outline {
    background: transparent;
    color: var(--node-bright);
    border: 1px solid var(--node-bright);
}
.btn-outline:hover { transform: translateY(-3px); box-shadow: 0 5px 20px rgba(156, 233, 255, 0.2); }

.sub-text { font-size: 0.92rem; color: #d1d1d1; line-height: 1.8; }

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}
.faq-item {
    background: var(--glass-frost);
    border: 1px solid var(--border-bright);
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item:hover { border-color: rgba(156, 233, 255, 0.5); }
.faq-item.active {
    border-color: var(--node-blue);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    background: transparent;
    border: none;
    color: var(--node-bright);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    line-height: 1.4;
}
.faq-trigger:hover { color: #fff; }
.faq-chevron {
    flex-shrink: 0;
    color: var(--node-blue);
    transition: transform 0.35s ease;
}
.faq-item.active .faq-chevron { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    color: #CBD5E1;
    font-size: 0.95rem;
    line-height: 1.65;
    transition: max-height 0.45s cubic-bezier(0.2, 1, 0.3, 1), padding 0.45s ease;
}
.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 24px 22px;
}
.faq-answer a {
    color: var(--node-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.faq-answer a:hover { color: var(--node-bright); }

/* Page body offset for fixed nav */
.page-content {
    padding-top: var(--nav-height);
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 100px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* ================================================================
   RESPONSIVE NAV
   ================================================================ */
@media (max-width: 900px) {
    .nav-links, .nav-register { display: none; }
    .nav-hamburger { display: flex; }
}

@media (max-width: 600px) {
    .container { padding: 30px 15px 80px; }
    .section-header { margin: 60px 0 35px; }
}
