:root {
    --text-light: #ffffff;
    --text-muted: rgba(255,255,255,0.7);
    --accent-blue: #4a90e2;
    --accent-cyan: #00d4ff;
    --accent-gold: #c9a84c;
    --border: rgba(255,255,255,0.1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:80px; }

body {
    background: linear-gradient(135deg, #071529 0%, #15325c 50%, #204b86 100%);
    background-attachment: fixed;
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

::selection { background:var(--accent-blue); color:#fff; }
::-webkit-scrollbar { width:8px; }
::-webkit-scrollbar-track { background:#071529; }
::-webkit-scrollbar-thumb { background:var(--accent-blue); border-radius:4px; }

/* ===== CANVAS ===== */
#particleCanvas {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1; pointer-events: none;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 2rem 5%; background: transparent; transition: all .4s ease;
}
.navbar.scrolled {
    background: rgba(7,21,41,0.85); backdrop-filter: blur(20px);
    padding: 1rem 5%;
}
.logo { font-size: 1.5rem; font-weight: 500; letter-spacing: 2px; color: #fff; }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a {
    color: rgba(255,255,255,0.7); text-decoration: none;
    font-size: 0.9rem; font-weight: 400; letter-spacing: 1px; transition: color 0.3s;
}
.nav-links a:hover { color: #fff; }
.btn-outline {
    border: 1px solid rgba(255,255,255,0.3) !important;
    padding: 0.6rem 1.5rem !important; border-radius: 30px; transition: all 0.3s !important;
}
.btn-outline:hover { background: rgba(255,255,255,0.1) !important; border-color: #fff !important; }
.mobile-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.mobile-toggle span { width: 24px; height: 2px; background: #fff; transition: all .3s; display: block; }

/* ===== HERO ===== */
.hero {
    position: relative; z-index: 5;
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh;
}
.hero-content {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; margin-top: -5vh;
}
.wing-graphic { width: 100%; max-width: 700px; margin-bottom: 2rem; }
.wing-svg { width: 100%; height: auto; filter: drop-shadow(0 0 15px rgba(74,144,226,0.08)); }

.airfoil-stroke {
    fill: none; stroke: rgba(255,255,255,0.55); stroke-width: 0.8;
    stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 1600; stroke-dashoffset: 1600;
    animation: brushDraw 2.5s cubic-bezier(0.4,0,0.2,1) forwards, shimmer 8s 3s infinite linear alternate;
}
@keyframes brushDraw { to { stroke-dashoffset: 0; } }
@keyframes shimmer { 0% { stroke: rgba(255,255,255,0.3); } 50% { stroke: rgba(255,255,255,0.55); } 100% { stroke: rgba(255,255,255,0.3); } }

.slogan {
    font-size: clamp(0.65rem,0.9vw,0.85rem); font-weight: 300;
    letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,0.8);
    text-shadow: 0 0 20px rgba(255,255,255,0.3); margin-bottom: 2.5rem;
    white-space: nowrap; opacity: 0;
    animation: fadeUp 1s 2.5s ease forwards, textBreathe 8s 3.5s ease-in-out infinite alternate;
}
@keyframes textBreathe {
    0% { filter: brightness(0.85); text-shadow: 0 0 10px rgba(255,255,255,0.1); }
    100% { filter: brightness(1.15); text-shadow: 0 0 25px rgba(255,255,255,0.4); }
}
.btn-login {
    display: inline-block; padding: 0.8rem 3rem; font-size: 1rem;
    font-family: 'Montserrat',sans-serif; font-weight: 400; color: #fff;
    letter-spacing: 3px; text-transform: uppercase; text-decoration: none;
    border-radius: 50px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.4); backdrop-filter: blur(5px);
    transition: all 0.3s; cursor: pointer; opacity: 0;
    animation: fadeUp 1s 2.9s ease forwards;
}
.btn-login:hover { border-color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.1); box-shadow: 0 0 30px rgba(255,255,255,0.1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== SECTIONS ===== */
.section { position: relative; z-index: 5; padding: 8rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
    display: inline-block; font-size: .7rem; font-weight: 600;
    letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.5);
    margin-bottom: 1.5rem;
}
.section-title { font-size: clamp(2rem,4vw,3.2rem); font-weight: 300; margin-bottom: 1.25rem; line-height: 1.2; color: #fff; }
.section-sub { font-size: 1.05rem; font-weight: 300; color: var(--text-muted); max-width: 700px; margin: 0 auto; line-height: 1.7; }
.sub-heading { font-size: 1.6rem; font-weight: 300; text-align: center; margin-bottom: 1rem; color: #fff; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== THE PROBLEM ===== */
.problem-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem 3rem; margin-bottom: 3rem; }
.problem-card { padding: 0; }
.problem-icon { width: 32px; height: 32px; color: rgba(255,255,255,0.4); margin-bottom: 1rem; }
.problem-icon svg { width: 100%; height: 100%; }
.problem-card h4 { font-size: .95rem; font-weight: 500; margin-bottom: .5rem; color: #fff; }
.problem-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }
.problem-conclusion {
    text-align: center; font-size: 1.1rem; font-weight: 300;
    color: var(--text-muted); max-width: 700px; margin: 0 auto; line-height: 1.7;
}
.problem-conclusion strong { color: #fff; }

/* ===== DOCUMENT OBJECT ===== */
.doc-object { padding: 0; margin-bottom: 5rem; }
.doc-object-header { text-align: center; margin-bottom: 2.5rem; }
.doc-object-header h3 { font-size: 1.6rem; font-weight: 300; margin-bottom: .75rem; color: #fff; }
.doc-object-header p { font-size: .95rem; color: var(--text-muted); }
.doc-facets { display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem 3rem; }
.doc-facet h4 { font-size: .8rem; font-weight: 600; letter-spacing: 1.5px; color: rgba(255,255,255,0.4); margin-bottom: .75rem; text-transform: uppercase; }
.doc-facet ul { list-style: none; }
.doc-facet li { font-size: .85rem; color: var(--text-muted); padding: .2rem 0; }

/* ===== CAPABILITIES ===== */
.capabilities { display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem 3rem; margin-bottom: 5rem; }
.cap-card { padding: 0; }
.cap-number { font-size: 1.8rem; font-weight: 200; color: rgba(255,255,255,0.2); margin-bottom: .5rem; line-height: 1; }
.cap-card h4 { font-size: .95rem; font-weight: 500; margin-bottom: .75rem; color: #fff; }
.cap-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.7; }

/* ===== NOT SECTION ===== */
.not-section { padding: 0; text-align: center; }
.not-section h3 { font-size: 1.6rem; font-weight: 300; margin-bottom: .5rem; color: #fff; }
.not-sub { font-size: .95rem; color: var(--text-muted); margin-bottom: 2rem; }
.not-grid { display: flex; flex-direction: column; gap: .5rem; max-width: 700px; margin: 0 auto 2rem; text-align: left; }
.not-item { display: flex; gap: .75rem; align-items: center; font-size: .9rem; color: var(--text-muted); padding: .4rem 0; }
.not-x { color: rgba(255,255,255,0.3); font-size: 1.2rem; font-weight: 700; flex-shrink: 0; width: 20px; text-align: center; }
.not-conclusion { font-size: 1rem; font-weight: 400; color: #fff; font-style: italic; }

/* ===== ENCRYPTION MODEL ===== */
.encrypt-model { margin-bottom: 5rem; text-align: center; }
.encrypt-sub { font-size: .95rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.encrypt-layers { display: flex; flex-direction: column; gap: 1.5rem; max-width: 700px; margin: 0 auto; }
.encrypt-layer {
    display: flex; align-items: flex-start; gap: 1.5rem;
    padding: 0; text-align: left;
}
.encrypt-layer-num {
    font-size: 1.5rem; font-weight: 200; color: rgba(255,255,255,0.25);
    min-width: 30px; line-height: 1;
}
.encrypt-layer-content h4 { font-size: .9rem; font-weight: 500; margin-bottom: .3rem; color: #fff; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.encrypt-layer-content p { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }

/* ===== ACCESS TABLE ===== */
.zt-flow { margin-bottom: 5rem; }
.zt-sub { font-size: .95rem; color: var(--text-muted); text-align: center; margin-bottom: 2rem; }
.access-table-wrap { overflow-x: auto; margin-bottom: 2rem; }
.access-table {
    width: 100%; border-collapse: collapse; font-size: .85rem;
}
.access-table th {
    color: rgba(255,255,255,0.4);
    font-weight: 600; font-size: .75rem; letter-spacing: 1px; text-transform: uppercase;
    padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid var(--border);
}
.access-table td {
    padding: .75rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.06); color: var(--text-muted);
}
.access-table tr:hover td { color: #fff; }
.access-table td:first-child { color: #fff; font-weight: 500; }

.attr-overrides { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.attr-tag { font-size: .85rem; color: var(--text-muted); padding: .5rem 0; }
.attr-label {
    display: inline-block; font-size: .6rem; font-weight: 700; letter-spacing: 1px;
    color: rgba(255,255,255,0.4); margin-right: .5rem; text-transform: uppercase;
}

/* ===== SECURITY SECTIONS ===== */
.sec-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 3rem; }
.sec-card { padding: 0; }
.sec-card-head { display: flex; align-items: center; gap: 1rem; padding: 0 0 .75rem; }
.sec-icon { width: 40px; height: 40px; color: rgba(255,255,255,0.3); flex-shrink: 0; }
.sec-icon svg { width: 100%; height: 100%; }
.sec-card-head h3 { font-size: 1.1rem; font-weight: 500; color: #fff; }
.sec-list { list-style: none; padding: 0; }
.sec-list li {
    font-size: .85rem; color: var(--text-muted); padding: .5rem 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    display: flex; gap: .75rem; align-items: flex-start;
}
.sec-list li:last-child { border-bottom: none; }
.sec-badge {
    font-size: .6rem; font-weight: 700; letter-spacing: 1px;
    color: rgba(255,255,255,0.35);
    white-space: nowrap; flex-shrink: 0; margin-top: 2px;
}
.sec-visual { padding: 1rem 0 0; }
.audit-feed { display: flex; flex-direction: column; gap: .3rem; }
.audit-row {
    display: flex; gap: .75rem; font-family: 'JetBrains Mono',monospace;
    font-size: .68rem; padding: .2rem 0; color: rgba(255,255,255,0.4);
}
.audit-ts { color: rgba(255,255,255,0.3); }
.audit-ev { color: rgba(255,255,255,0.5); }
.audit-detail { color: rgba(255,255,255,0.3); }
.audit-usr { color: rgba(255,255,255,0.5); margin-left: auto; }
.region-tags { display: flex; flex-wrap: wrap; gap: .75rem; }
.region-tag {
    font-size: .65rem; font-weight: 600; letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
}

/* ===== SHIELD ===== */
.shield-visual { text-align: center; margin-bottom: 4rem; }
.shield-container {
    position: relative; display: inline-flex;
    align-items: center; justify-content: center;
    width: 140px; height: 160px;
}
.shield-svg { width: 100px; height: auto; color: rgba(255,255,255,0.5); filter: drop-shadow(0 0 20px rgba(255,255,255,.15)); }
.shield-body { animation: shieldPulse 3s ease-in-out infinite; }
.shield-check { color: rgba(255,255,255,0.6); stroke-dasharray: 60; stroke-dashoffset: 60; animation: drawCheck 1.5s .5s forwards; }
.shield-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); animation: ringExpand 3s ease-out infinite; }
.ring-1 { width: 120px; height: 120px; animation-delay: 0s; }
.ring-2 { width: 160px; height: 160px; animation-delay: 1s; }
.ring-3 { width: 200px; height: 200px; animation-delay: 2s; }

/* ===== DATA MODEL ===== */
.data-model { max-width: 700px; margin: 0 auto 3rem; }
.code-block { overflow: hidden; }
.code-header {
    display: flex; align-items: center; gap: .5rem; padding: .75rem 0;
    border-bottom: 1px solid var(--border);
}
.code-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.15); }
.code-dot:first-child { background: rgba(255,100,100,.4); }
.code-dot:nth-child(2) { background: rgba(255,200,50,.4); }
.code-dot:nth-child(3) { background: rgba(50,200,80,.4); }
.code-title { font-family: 'JetBrains Mono',monospace; font-size: .7rem; color: rgba(255,255,255,0.3); margin-left: .5rem; }
.code-block pre { padding: 1.5rem 0; overflow-x: auto; margin: 0; }
.code-block code { font-family: 'JetBrains Mono',monospace; font-size: .8rem; line-height: 1.8; color: var(--text-muted); }
.ck { color: #fff; }
.cv { color: rgba(255,255,255,0.5); }
.cm { color: rgba(255,255,255,.25); }

.truth-line { text-align: center; }
.truth-line p {
    font-size: 1.2rem; font-weight: 300; font-style: italic;
    color: #fff; letter-spacing: 1px;
    text-shadow: 0 0 30px rgba(255,255,255,.15);
}

/* ===== CTA ===== */
.cta-section { }
.cta-content { text-align: center; max-width: 700px; margin: 0 auto; }
.cta-content h2 { font-size: clamp(2rem,4vw,3rem); font-weight: 300; margin-bottom: 1.25rem; line-height: 1.2; color: #fff; }
.cta-content p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 2.5rem; line-height: 1.7; }
.cta-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
button, .btn-primary, .btn-secondary {
    cursor: pointer; font-family: 'Montserrat',sans-serif;
    font-size: 0.9rem; font-weight: 500; letter-spacing: 1px;
    padding: 1rem 2.5rem; border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.165,0.84,0.44,1);
    text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.btn-primary {
    background: transparent; color: #fff;
    border: 1px solid rgba(255,255,255,0.4); position: relative; overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.15); z-index: -1; transform: scaleX(0); transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.165,0.84,0.44,1);
}
.btn-primary:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-primary:hover { border-color: rgba(255,255,255,0.8); }
.btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.btn-secondary:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

/* ===== FOOTER ===== */
.footer { position: relative; z-index: 5; border-top: 1px solid var(--border); padding-top: 4rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; padding-bottom: 3rem; }
.footer-brand { max-width: 300px; }
.footer-logo { font-size: 1.2rem; font-weight: 500; letter-spacing: 2px; display: block; margin-bottom: .5rem; color: #fff; }
.footer-brand p { font-size: .82rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer-links div { display: flex; flex-direction: column; gap: .5rem; }
.footer-links h5 { font-size: .75rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; margin-bottom: .25rem; }
.footer-links a { font-size: .82rem; color: var(--text-muted); text-decoration: none; transition: color .3s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.5rem 5%; text-align: center; }
.footer-bottom p { font-size: .75rem; color: rgba(255,255,255,0.4); }

/* ===== LOGIN MODAL ===== */
.login-overlay {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: rgba(5, 11, 20, 0.85); backdrop-filter: blur(12px);
    align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s ease;
}
.login-overlay.active { display: flex; opacity: 1; }
.login-modal {
    width: 100%; max-width: 400px; margin: 1rem;
    padding: 2.5rem 2rem 2rem;
    border: 1px solid rgba(74, 144, 226, 0.15);
    border-radius: 12px;
    background: rgba(10, 22, 40, 0.9);
    box-shadow: 0 8px 60px rgba(0,0,0,0.5), 0 0 80px rgba(74,144,226,0.05);
    position: relative;
    animation: modalIn .35s ease;
}
@keyframes modalIn { from { opacity:0; transform:translateY(16px) scale(.97); } to { opacity:1; transform:translateY(0) scale(1); } }
.login-close {
    position: absolute; top: 1rem; right: 1.2rem;
    background: none; border: none; color: rgba(255,255,255,0.35);
    font-size: 1.6rem; cursor: pointer; transition: color .2s; line-height: 1;
}
.login-close:hover { color: #fff; }
.login-header { text-align: center; margin-bottom: 2rem; }
.login-logo {
    font-size: 1.3rem; font-weight: 500; letter-spacing: 3px; color: #fff;
    display: block; margin-bottom: .35rem;
}
.login-subtitle { font-size: .75rem; color: rgba(255,255,255,0.35); letter-spacing: 2px; text-transform: uppercase; }
.login-field { margin-bottom: 1.25rem; }
.login-field label {
    display: block; font-size: .72rem; font-weight: 500;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: rgba(180, 200, 230, 0.6); margin-bottom: .5rem;
}
.login-field input {
    width: 100%; padding: .8rem 1rem;
    font-family: 'Montserrat', sans-serif; font-size: .95rem;
    color: #e0e8f0; background: rgba(5, 11, 20, 0.5);
    border: 1px solid rgba(74, 144, 226, 0.2); border-radius: 8px;
    outline: none; transition: border-color .3s, box-shadow .3s;
}
.login-field input:focus {
    border-color: rgba(74, 144, 226, 0.5);
    box-shadow: 0 0 12px rgba(74, 144, 226, 0.1);
}
.login-field input::placeholder { color: rgba(130,150,180,0.3); }
.login-error {
    font-size: .82rem; color: #e85454; text-align: center;
    min-height: 1.2em; margin-bottom: .75rem;
}
.login-submit {
    width: 100%; padding: .85rem;
    font-family: 'Montserrat', sans-serif; font-size: .85rem; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase; color: #fff;
    background: linear-gradient(135deg, rgba(74,144,226,0.25), rgba(74,144,226,0.1));
    border: 1px solid rgba(74,144,226,0.35); border-radius: 8px;
    cursor: pointer; transition: all .3s;
}
.login-submit:hover {
    background: linear-gradient(135deg, rgba(74,144,226,0.4), rgba(74,144,226,0.2));
    border-color: rgba(130,180,255,0.5);
    box-shadow: 0 0 20px rgba(74,144,226,0.15);
}
.login-submit:disabled { opacity: .5; cursor: not-allowed; }
.login-footer-text {
    text-align: center; font-size: .68rem; color: rgba(255,255,255,0.2);
    margin-top: 1.5rem; letter-spacing: .5px;
}

/* ===== KEYFRAMES ===== */
@keyframes pulse {
    0%,100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
    50% { opacity: .5; transform: translate(-50%,-50%) scale(1.5); }
}
@keyframes shieldPulse {
    0%,100% { filter: drop-shadow(0 0 10px rgba(255,255,255,.1)); }
    50% { filter: drop-shadow(0 0 25px rgba(255,255,255,.2)); }
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
@keyframes ringExpand { 0% { opacity: .3; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.2); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .sec-grid { grid-template-columns: 1fr; }
    .doc-facets { grid-template-columns: repeat(2,1fr); }
    .capabilities { grid-template-columns: repeat(2,1fr); }
    .attr-overrides { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links {
        display: none; flex-direction: column; position: fixed;
        top: 0; right: 0; height: 100vh; width: 280px;
        background: rgba(7,21,41,.98); backdrop-filter: blur(20px);
        padding: 5rem 2rem 2rem; gap: 1.5rem; border-left: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .mobile-toggle { display: flex; }
    .slogan { white-space: normal; letter-spacing: 3px; padding: 0 1rem; }
    .wing-graphic { max-width: 90vw; }
    .problem-grid { grid-template-columns: repeat(2,1fr); }
    .capabilities { grid-template-columns: 1fr; }
    .doc-facets { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .problem-grid { grid-template-columns: 1fr; }
    .footer-links { gap: 2rem; }
}
