/* ==========================================================================
   NoctisLedger Marketing Site — shared stylesheet
   Extends the existing brand identity (deep navy + cyan grid-glow, shield mark)
   across a full multi-page site instead of a single splash screen.
   ========================================================================== */

:root {
    --bg-base: #030b14;
    --bg-panel: #0a1826;
    --bg-panel-raised: #0e2233;
    --cyan: #00f2fe;
    --cyan-dim: rgba(0, 242, 254, 0.35);
    --text-muted: #a4b3c6;
    --text-heading: #ffffff;
    --amber: #ffb454;
    --border-subtle: rgba(0, 242, 254, 0.12);

    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-base);
    background-image:
        linear-gradient(rgba(0, 242, 254, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 254, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
    font-family: var(--font-body);
    color: var(--text-muted);
    line-height: 1.6;
    min-height: 100vh;
}

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

h1, h2, h3, .brand-name {
    font-family: var(--font-display);
    color: var(--text-heading);
    letter-spacing: 0.5px;
    line-height: 1.15;
}

code, .mono, .addr {
    font-family: var(--font-mono);
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Nav ---------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(3, 11, 20, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
}

.site-nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-heading);
}

.nav-brand .mark { color: var(--cyan); text-shadow: 0 0 12px var(--cyan-dim); font-size: 1.4rem; }
.nav-brand span { color: var(--cyan); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a {
    color: var(--text-muted);
    transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--cyan); }

.nav-cta {
    padding: 10px 20px;
    border: 1px solid var(--cyan);
    border-radius: 4px;
    color: var(--cyan) !important;
    font-weight: 600;
}
.nav-cta:hover { background: var(--cyan); color: var(--bg-base) !important; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-heading);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 120px;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0; left: -50%; width: 200%; height: 50%;
    background-image:
        linear-gradient(rgba(0, 242, 254, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 254, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: rotateX(60deg);
    transform-origin: top center;
    opacity: 0.5;
    pointer-events: none;
}

.hero .wrap { position: relative; z-index: 2; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cyan);
    border: 1px solid var(--cyan-dim);
    border-radius: 999px;
    padding: 6px 16px;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: 3.4rem;
    font-weight: 700;
    max-width: 780px;
    margin: 0 auto 20px;
}

.hero h1 .accent { color: var(--cyan); }

.hero p.lede {
    max-width: 560px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 80px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--cyan);
    color: var(--bg-base);
    box-shadow: 0 0 24px var(--cyan-dim);
}
.btn-primary:hover { box-shadow: 0 0 32px rgba(0, 242, 254, 0.55); }

.btn-ghost {
    border-color: var(--border-subtle);
    color: var(--text-heading);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-amber {
    background: var(--amber);
    color: #2b1a00;
    box-shadow: 0 0 24px rgba(255, 180, 84, 0.3);
}
.btn-amber:hover { box-shadow: 0 0 32px rgba(255, 180, 84, 0.5); }

/* ---------- Trace line signature ---------- */
.trace {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    height: 90px;
}

.trace svg { width: 100%; height: 100%; overflow: visible; }

.trace-path {
    fill: none;
    stroke: var(--cyan-dim);
    stroke-width: 1.5;
    stroke-dasharray: 6 6;
}

.trace-pulse {
    fill: none;
    stroke: var(--cyan);
    stroke-width: 2;
    stroke-dasharray: 14 900;
    filter: drop-shadow(0 0 6px var(--cyan));
    animation: trace-run 3.5s linear infinite;
}

@keyframes trace-run {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -914; }
}

.trace-node {
    fill: var(--bg-panel);
    stroke: var(--cyan);
    stroke-width: 2;
}

.trace-label {
    font-family: var(--font-mono);
    font-size: 11px;
    fill: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
    .trace-pulse { animation: none; stroke-dasharray: none; }
}

/* ---------- Sections ---------- */
section { padding: 90px 0; }

.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 56px;
}

.section-head h2 { font-size: 2.2rem; margin-bottom: 14px; }

/* ---------- Features ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 32px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature-card:hover { border-color: var(--cyan-dim); transform: translateY(-3px); }

.feature-icon {
    font-size: 1.6rem;
    color: var(--cyan);
    margin-bottom: 18px;
}

.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.95rem; }

/* ---------- Pricing ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.price-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
}

.price-card.featured {
    border-color: var(--amber);
    background: var(--bg-panel-raised);
    box-shadow: 0 0 40px rgba(255, 180, 84, 0.08);
    position: relative;
}

.price-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--amber);
    color: #2b1a00;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 999px;
}

.price-card h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }

.price-amount {
    font-family: var(--font-mono);
    font-size: 2.4rem;
    color: var(--text-heading);
    margin: 16px 0 4px;
}
.price-amount span { font-size: 0.95rem; color: var(--text-muted); font-family: var(--font-body); }

.price-note { font-size: 0.85rem; margin-bottom: 24px; color: var(--text-muted); }

.price-features {
    list-style: none;
    margin: 0 0 28px;
    flex-grow: 1;
}
.price-features li {
    font-size: 0.9rem;
    padding: 9px 0;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    gap: 10px;
}
.price-features li::before { content: '✓'; color: var(--cyan); font-weight: 700; }
.price-card.featured .price-features li::before { color: var(--amber); }

.price-card .btn { text-align: center; }

/* ---------- Blog ---------- */
.blog-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.blog-card {
    display: block;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 28px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.blog-card:hover { border-color: var(--cyan-dim); transform: translateY(-3px); }

.blog-card-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--cyan);
    margin-bottom: 10px;
}

.blog-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.blog-card p { font-size: 0.95rem; margin-bottom: 16px; }

.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.blog-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 3px 10px;
}

.blog-post {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.blog-post h2 { font-size: 1.7rem; margin: 40px 0 16px; }
.blog-post h3 { font-size: 1.3rem; margin: 32px 0 14px; }
.blog-post p { margin-bottom: 20px; }
.blog-post ul, .blog-post ol { margin: 0 0 20px 24px; }
.blog-post li { margin-bottom: 8px; }
.blog-post a { color: var(--cyan); text-decoration: underline; }
.blog-post code {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.9em;
    color: var(--cyan);
}
.blog-post pre {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin-bottom: 24px;
}
.blog-post pre code { background: none; border: none; padding: 0; color: var(--text-muted); }
.blog-post blockquote {
    border-left: 3px solid var(--cyan);
    padding-left: 20px;
    margin: 0 0 20px;
    color: var(--text-heading);
}

@media (max-width: 900px) {
    .blog-list { grid-template-columns: 1fr; }
}

/* ---------- Contact form ---------- */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form .form-row {
    margin-bottom: 20px;
    text-align: left;
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 12px 14px;
    color: var(--text-heading);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--cyan);
}

.contact-form textarea { resize: vertical; }

.feature-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (max-width: 560px) {
    .feature-checkboxes { grid-template-columns: 1fr; }
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-heading);
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.checkbox-label:hover { border-color: var(--cyan-dim); }

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--cyan);
    flex-shrink: 0;
}

/* ---------- Login bridge page ---------- */
.login-bridge {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
}

.login-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 56px 48px;
    max-width: 420px;
}

.login-panel .shield-mini {
    font-size: 2.5rem;
    color: var(--cyan);
    text-shadow: 0 0 15px var(--cyan-dim);
    margin-bottom: 20px;
}

.login-panel h1 { font-size: 1.6rem; margin-bottom: 10px; }
.login-panel p { font-size: 0.95rem; margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 48px 0;
    font-size: 0.85rem;
}

.site-footer .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--cyan); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.4rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .hero { padding: 70px 0 90px; }
    .hero h1 { font-size: 2rem; }
    .site-footer .wrap { flex-direction: column; text-align: center; }
}

/* Keyboard focus visibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}
