@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/cinzel-v26-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/cinzel-v26-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/cinzel-v26-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/fonts/plus-jakarta-sans-v12-latin-300.woff2') format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/plus-jakarta-sans-v12-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/plus-jakarta-sans-v12-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/plus-jakarta-sans-v12-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/plus-jakarta-sans-v12-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/fonts/space-grotesk-v22-latin-300.woff2') format('woff2');
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/space-grotesk-v22-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/space-grotesk-v22-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/space-grotesk-v22-latin-600.woff2') format('woff2');
}

:root {
    --bg-base: #03060c;
    --bg-card: rgba(10, 16, 28, 0.7);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(212, 175, 55, 0.4);
    --gold-primary: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.18);
    --cyan-accent: #38bdf8;
    --cyan-glow: rgba(56, 189, 248, 0.2);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

canvas#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.ambient-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(300px, 80vw, 800px);
    height: 450px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(56, 189, 248, 0.03) 50%, transparent 80%);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

nav {
    padding: clamp(1.2rem, 3vw, 2rem) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    gap: 1rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 16px);
    text-decoration: none;
}

.brand-logo-svg {
    width: clamp(32px, 5vw, 40px);
    height: clamp(32px, 5vw, 40px);
    transition: transform 0.4s ease;
    flex-shrink: 0;
}

.brand:hover .brand-logo-svg {
    transform: rotate(30deg) scale(1.05);
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.brand-text-main {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    letter-spacing: clamp(0.12em, 0.3vw, 0.22em);
    color: #ffffff;
    line-height: 1.1;
    white-space: nowrap;
}

.brand-text-sub {
    font-family: 'Space Grotesk', monospace;
    font-size: clamp(0.55rem, 1.2vw, 0.65rem);
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--gold-primary);
    text-transform: uppercase;
    margin-top: 3px;
    white-space: nowrap;
}

.nav-node-btn {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 100px;
    padding: 6px clamp(10px, 2vw, 16px);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', monospace;
    font-size: clamp(0.68rem, 1.4vw, 0.75rem);
    color: #10b981;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.nav-node-btn:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
}

.status-dot {
    width: 7px;
    height: 7px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulseDot 2.2s infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.hero {
    padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px clamp(12px, 3vw, 18px);
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 100px;
    font-family: 'Space Grotesk', monospace;
    font-size: clamp(0.65rem, 1.4vw, 0.75rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 1.8rem;
    max-width: 100%;
}

h1 {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: clamp(1.85rem, 4.6vw, 3.8rem);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #ffffff 40%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.8;
    max-width: 760px;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    padding: 0 0.5rem;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.95rem clamp(1.8rem, 4vw, 2.4rem);
    background: linear-gradient(135deg, #dfc26a 0%, #a88422 100%);
    color: #03060c;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 25px rgba(212, 175, 55, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: auto;
    min-width: 220px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
    filter: brightness(1.1);
}

.grid-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(260px, 100%, 340px), 1fr));
    gap: clamp(1.2rem, 2.5vw, 2rem);
    margin: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 7rem);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: clamp(1.8rem, 3.5vw, 2.5rem) clamp(1.4rem, 2.5vw, 2rem);
    backdrop-filter: blur(16px);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8);
}

.card:hover::before {
    opacity: 1;
}

.card-tag {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.72rem;
    color: var(--gold-primary);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.card h2 {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: clamp(1.2rem, 2.2vw, 1.35rem);
    margin-bottom: 0.9rem;
    color: #ffffff;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.card p {
    font-size: clamp(0.88rem, 1.5vw, 0.95rem);
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
}

.contact-box {
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.06), transparent 70%), var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.2rem, 3vw, 3rem);
    text-align: center;
    margin-bottom: clamp(3rem, 5vw, 5rem);
}

.contact-box h2 {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

.contact-box p {
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto clamp(1.8rem, 3vw, 2.5rem);
    font-size: clamp(0.88rem, 1.5vw, 1rem);
}

.channel-actions {
    display: flex;
    justify-content: center;
    gap: clamp(0.8rem, 2vw, 1.5rem);
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.direct-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.95rem clamp(1.2rem, 3vw, 2rem);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Space Grotesk', monospace;
    font-size: clamp(0.88rem, 1.8vw, 1.05rem);
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    width: auto;
    max-width: 100%;
}

.direct-email:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px var(--gold-glow);
    color: var(--gold-primary);
}

.signal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.95rem clamp(1.2rem, 3vw, 2rem);
    border-radius: 6px;
    color: var(--cyan-accent);
    text-decoration: none;
    font-family: 'Space Grotesk', monospace;
    font-size: clamp(0.85rem, 1.8vw, 1.02rem);
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    cursor: pointer;
    width: auto;
}

.signal-btn:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: var(--cyan-accent);
    box-shadow: 0 0 20px var(--cyan-glow);
    color: #ffffff;
}

.pgp-interactive-trigger {
    font-family: 'Space Grotesk', monospace;
    font-size: clamp(0.68rem, 1.2vw, 0.75rem);
    color: var(--text-muted);
    letter-spacing: 0.08em;
    line-height: 1.5;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-block;
}

.pgp-interactive-trigger:hover {
    color: var(--gold-primary);
    text-decoration: underline;
}

.telemetry-matrix-section {
    margin-bottom: clamp(3rem, 5vw, 5rem);
}

.matrix-box {
    background: linear-gradient(135deg, rgba(8, 13, 26, 0.9) 0%, rgba(13, 20, 36, 0.9) 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    padding: clamp(1.5rem, 3.5vw, 2.2rem);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.08);
    position: relative;
    overflow: hidden;
}

.matrix-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 1.2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.matrix-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.matrix-header-title h3 {
    font-family: 'Space Grotesk', monospace;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: #ffffff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.matrix-zero-clock {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    color: var(--cyan-accent);
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
}

.matrix-audit-surface {
    background: rgba(0, 0, 0, 0.5);
    border: 1px dashed rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 1.4rem 1.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.audit-info h4 {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.9rem;
    color: var(--gold-primary);
    margin-bottom: 0.25rem;
}

.audit-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-family: 'Space Grotesk', monospace;
}

.audit-run-btn {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.audit-run-btn:hover {
    background: var(--gold-primary);
    color: #03060c;
    box-shadow: 0 0 20px var(--gold-glow);
}

.security-strip {
    background: linear-gradient(90deg, rgba(10, 16, 28, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 8px;
    padding: clamp(1.2rem, 2.5vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: clamp(3.5rem, 6vw, 6rem);
    flex-wrap: wrap;
    gap: 1.2rem;
}

.security-strip-text h3 {
    font-family: 'Space Grotesk', monospace;
    font-size: clamp(0.92rem, 1.8vw, 1.05rem);
    color: var(--cyan-accent);
    margin-bottom: 0.3rem;
    letter-spacing: 0.05em;
}

.security-strip-text p {
    font-size: clamp(0.82rem, 1.4vw, 0.9rem);
    color: var(--text-secondary);
}

.security-badge {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.72rem;
    color: #94a3b8;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
}

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: clamp(0.72rem, 1.2vw, 0.8rem);
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1.2rem;
}

.footer-center-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.footer-hub-footprint {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    color: var(--gold-primary);
    letter-spacing: 0.16em;
}

.footer-secure-tag {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.footer-legal-links a:hover {
    color: var(--text-primary);
}

.hud-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 6, 12, 0.88);
    backdrop-filter: blur(14px);
    z-index: 1000;
    display: none;
    place-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.hud-overlay.active {
    display: grid;
    opacity: 1;
}

.hud-window {
    background: #080d1a;
    border: 1px solid var(--border-highlight);
    border-radius: 12px;
    width: 100%;
    max-width: 620px;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 0 30px var(--gold-glow);
    position: relative;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.hud-header {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

.hud-header-title {
    font-family: 'Space Grotesk', monospace;
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    color: var(--cyan-accent);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hud-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem;
    transition: color 0.2s ease;
}

.hud-close-btn:hover {
    color: #ffffff;
}

.hud-body {
    padding: clamp(1.2rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    overflow-y: auto;
}

.hud-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    gap: 0.8rem;
    flex-wrap: wrap;
}

.hud-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hud-item-meta {
    flex: 1;
    min-width: 200px;
}

.hud-item-meta h4 {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.88rem;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.hud-item-meta p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.hud-tag {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.68rem;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.hud-tag-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.hud-tag-gold {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
    border: 1px solid rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hud-tag-gold:hover {
    background: rgba(212, 175, 55, 0.2);
    color: #ffffff;
}

.hud-tag-cyan {
    background: rgba(56, 189, 248, 0.1);
    color: var(--cyan-accent);
    border: 1px solid rgba(56, 189, 248, 0.3);
    transition: all 0.2s ease;
}

.hud-tag-cyan:hover {
    background: rgba(56, 189, 248, 0.2);
    color: #ffffff;
}

.pgp-key-container {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 1rem;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.72rem;
    color: #94a3b8;
    overflow-x: auto;
    max-height: 150px;
    user-select: all;
    line-height: 1.4;
}

.hud-footer {
    padding: 0.9rem 1.4rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 680px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-node-btn {
        align-self: flex-start;
    }
    .channel-actions {
        flex-direction: column;
    }
    .direct-email, .signal-btn, .btn-primary {
        width: 100%;
    }
    footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .footer-center-block {
        align-items: flex-start;
        text-align: left;
    }
}