/* ==========================================================================
   ThreatNova Security — minimal theme on top of Bootstrap 5.3
   ========================================================================== */

:root {
    --ink: #0b0f19;
    --ink-2: #111827;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #ffffff;
    --bg-alt: #f7f8fa;
    --accent: #4f46e5;
    --accent-2: #06b6d4;
    --accent-soft: rgba(79, 70, 229, .08);
    --radius: 16px;
    --nav-h: 72px;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-head: "Space Grotesk", var(--font-body);
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -12px rgba(16, 24, 40, .12);
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--ink); letter-spacing: -.02em; font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
::selection { background: var(--accent); color: #fff; }

.text-muted-2 { color: var(--muted) !important; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }

/* Buttons ------------------------------------------------------------ */
.btn { border-radius: 999px; font-weight: 500; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn-accent { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn-accent:hover, .btn-accent:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px -10px var(--accent); }
.btn-ghost { border: 1px solid rgba(255,255,255,.25); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.link-arrow { font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow i { transition: transform .2s ease; }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover i { transform: translateX(4px); }

/* Navbar ------------------------------------------------------------- */
.site-nav { height: var(--nav-h); transition: background .3s ease, box-shadow .3s ease, height .3s ease; }
.site-nav .navbar-brand, .site-footer .navbar-brand { font-family: var(--font-head); font-size: 1.25rem; color: #fff; font-weight: 500; }
.site-nav .navbar-brand strong { font-weight: 700; }

/* Animated logo ------------------------------------------------------ */
.brand { display: inline-flex; align-items: center; gap: 2px; padding: 0; margin: 0; --logo-h: 46px; }
.site-nav.scrolled .brand { --logo-h: 40px; }
.brand img { display: block; height: var(--logo-h); width: auto; transition: height .3s ease; }
.brand-mark, .brand-word { position: relative; display: block; }

/* Shield: flips in, breathes a blue glow, tilts on hover */
.brand-mark { perspective: 400px; }
.brand-mark img {
    transform-origin: 50% 60%;
    animation: shieldIn 1s cubic-bezier(.34, 1.56, .64, 1) backwards, shieldGlow 3.6s 1s ease-in-out infinite;
    transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), height .3s ease;
}
.brand:hover .brand-mark img { transform: rotate(-10deg) scale(1.1); }
@keyframes shieldIn { from { opacity: 0; transform: rotateY(-120deg) scale(.4); } }
@keyframes shieldGlow {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(37, 99, 235, 0)); }
    50%      { filter: drop-shadow(0 0 7px rgba(59, 130, 246, .85)); }
}

/* Padlock heartbeat */
.lock-pulse {
    position: absolute; left: 51%; top: 57%; width: 34%; aspect-ratio: 1; border-radius: 50%;
    transform: translate(-50%, -50%) scale(.4); pointer-events: none;
    border: 2px solid rgba(96, 165, 250, .9); opacity: 0;
    animation: lockPulse 2.4s 1.2s ease-out infinite;
}
@keyframes lockPulse {
    0%   { opacity: .9; transform: translate(-50%, -50%) scale(.4); }
    70%  { opacity: 0;  transform: translate(-50%, -50%) scale(2.2); }
    100% { opacity: 0;  transform: translate(-50%, -50%) scale(2.2); }
}

/* Wordmark: wipes in from the shield */
.brand-word img { animation: wordIn .9s .35s cubic-bezier(.77, 0, .18, 1) backwards; }
@keyframes wordIn { from { clip-path: inset(0 100% 0 0); opacity: .3; transform: translateX(-10px); } }

/* Light glint that sweeps across the actual logo shapes (masked by the logo image) */
.brand-mark::after, .brand-word::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .95) 50%, rgba(125, 211, 252, .8) 53%, transparent 62%) no-repeat;
    background-size: 300% 100%; background-position: 150% 0;
    -webkit-mask: var(--logo-mask) center / contain no-repeat; mask: var(--logo-mask) center / contain no-repeat;
    animation: logoGlint 6s 1.4s ease-in-out infinite;
}
.brand-mark::after { --logo-mask: url("../img/threatnova-mark-light.png"); }
.brand-word::after { --logo-mask: url("../img/threatnova-wordmark-light.png"); animation-delay: 1.65s; }
.brand:hover .brand-mark::after, .brand:hover .brand-word::after { animation-duration: 1.4s; animation-delay: 0s; }
@keyframes logoGlint {
    0%   { background-position: 150% 0; }
    25%  { background-position: -50% 0; }
    100% { background-position: -50% 0; }
}
.site-nav .nav-link { color: rgba(255,255,255,.75); font-size: .95rem; padding: .5rem .85rem !important; border-radius: 999px; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: #fff; }
.site-nav .nav-link.active { background: rgba(255,255,255,.08); }
.site-nav .navbar-toggler { color: #fff; }
.site-nav .btn-accent { background: #fff; color: var(--ink); border-color: #fff; }
.site-nav .btn-accent:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.site-nav.scrolled { background: rgba(11, 15, 25, .85); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); height: 62px; }

@media (max-width: 991.98px) {
    .site-nav { height: auto; min-height: var(--nav-h); }
    .site-nav .navbar-collapse { background: var(--ink); margin: 0 -12px; padding: 1rem 1.25rem 1.5rem; border-radius: 0 0 var(--radius) var(--radius); }
    .site-nav.scrolled { height: auto; }
}

/* Hero --------------------------------------------------------------- */
.hero, .page-hero { position: relative; background: var(--ink); color: #cbd5e1; overflow: hidden; }
.hero { padding: calc(var(--nav-h) + 6rem) 0 6rem; }
.hero::after, .page-hero::after {
    content: ""; position: absolute; inset: auto -20% -60% auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
    background: radial-gradient(circle, rgba(79,70,229,.35), rgba(6,182,212,.12) 40%, transparent 70%); pointer-events: none;
}
.hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
}
.hero .container, .page-hero .container { position: relative; z-index: 1; }
.display-title { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05; color: #fff; margin: 1.25rem 0; font-weight: 700; }
.hero-lead { color: #94a3b8; max-width: 38rem; margin-bottom: 2.25rem; }
.text-gradient { background: linear-gradient(90deg, #818cf8, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.hero .eyebrow, .page-hero .eyebrow { color: #a5b4fc; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: .4rem .85rem; border-radius: 999px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.page-hero { padding: calc(var(--nav-h) + 4.5rem) 0 4.5rem; margin-bottom: 4.5rem; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; margin: 1rem 0; max-width: 46rem; }
.page-hero .lead { color: #94a3b8; max-width: 40rem; }
.page-hero .lead strong { color: #fff; }

/* Console card */
.console-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); backdrop-filter: blur(8px); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.console-head { display: flex; align-items: center; gap: 6px; padding: .85rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.console-head span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.console-head small { margin-left: auto; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; color: #64748b; font-size: .75rem; }
.console-body { padding: .5rem 0; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .85rem; }
.console-body li { display: flex; align-items: center; gap: .7rem; padding: .7rem 1.1rem; color: #e2e8f0; animation: slideIn .5s ease both; }
.console-body li + li { border-top: 1px dashed rgba(255,255,255,.06); }
.console-body time { margin-left: auto; color: #64748b; font-size: .75rem; }
.text-ok { color: #22c55e; } .text-warn { color: #f59e0b; } .text-info-2 { color: var(--accent-2); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Stats -------------------------------------------------------------- */
.stats-strip { padding: 3.5rem 0; border-bottom: 1px solid var(--line); }
.stat-num { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; color: var(--ink); letter-spacing: -.03em; }
.stat-label { color: var(--muted); font-size: .9rem; }

/* Sections ----------------------------------------------------------- */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 3.5rem; }
.section-head h2 { margin: .75rem 0 1rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Cards -------------------------------------------------------------- */
.feature-card, .course-card, .value-card, .team-card, .office-card, .form-card, .mini-feature {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover, .course-card:hover, .team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card h3, .course-card h3 { font-size: 1.2rem; margin: 1.25rem 0 .5rem; }
.feature-card p, .course-card p, .value-card p, .mini-feature p { color: var(--muted); margin-bottom: 0; font-size: .95rem; }
.icon-box { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 1.35rem; transition: background .25s, color .25s; }
.feature-card:hover .icon-box { background: var(--ink); color: #fff; }
.card-index { font-family: var(--font-head); color: #d1d5db; font-weight: 600; }

.mini-feature { background: transparent; border: 0; padding: 0; }
.mini-feature i { font-size: 1.6rem; color: var(--accent); }
.mini-feature h4 { font-size: 1.15rem; margin: .75rem 0 .4rem; }

/* Check list + process */
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.check-list li { display: flex; gap: .75rem; padding: .45rem 0; color: var(--text); }
.check-list i { color: var(--accent); font-size: 1.2rem; }
.process { display: grid; gap: 1rem; }
.process-step { display: flex; gap: 1.25rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.process-step h4 { font-size: 1.05rem; margin: 0 0 .2rem; }
.process-step p { margin: 0; color: var(--muted); font-size: .92rem; }
.step-num { font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: .95rem; padding-top: .1rem; }

/* Courses */
.course-card { display: flex; flex-direction: column; }
.course-card h3 { margin-top: 0; }
.level-pill { font-size: .75rem; font-weight: 600; color: var(--ink); background: var(--bg-alt); border: 1px solid var(--line); padding: .25rem .7rem; border-radius: 999px; }
.badge-soft { font-size: .72rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: .25rem .65rem; border-radius: 999px; }
.topic-list { list-style: none; padding: 0; margin: 1.25rem 0; font-size: .9rem; flex-grow: 1; }
.topic-list li { padding: .3rem 0 .3rem 1.4rem; position: relative; color: var(--text); }
.topic-list li::before { content: ""; position: absolute; left: 0; top: .85em; width: 8px; height: 2px; background: var(--accent); }
.course-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.price { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.price s { font-family: var(--font-body); font-weight: 400; font-size: .85rem; color: var(--muted); margin-left: .35rem; }
.price-muted { font-size: .85rem; color: var(--muted); }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.filter-btn { background: transparent; color: #cbd5e1; border: 1px solid rgba(255,255,255,.15); padding: .45rem 1rem; border-radius: 999px; font-size: .9rem; transition: all .2s; }
.filter-btn:hover { color: #fff; border-color: rgba(255,255,255,.35); }
.filter-btn.active { background: #fff; color: var(--ink); border-color: #fff; }
.course-col.is-hidden { display: none; }

/* About */
.value-card { height: 100%; padding: 1.5rem; }
.value-card i { font-size: 1.4rem; color: var(--accent); }
.value-card h4 { font-size: 1.05rem; margin: .75rem 0 .35rem; }
.team-card { text-align: center; padding: 2.5rem 1.5rem; }
.team-card .avatar { width: 84px; height: 84px; margin: 0 auto 1.25rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.team-card h4 { font-size: 1.15rem; margin-bottom: .25rem; }
.team-card p { color: var(--muted); margin: 0; }
.office-card { padding: 2.5rem; }
.office-card h3 { margin: .75rem 0 0; font-size: 1.5rem; }

/* Contact & verify */
.form-card { padding: 2.25rem; box-shadow: var(--shadow); border-color: transparent; }
.form-label { font-weight: 500; font-size: .9rem; color: var(--ink); }
.form-control, .form-select { border-radius: 10px; border-color: var(--line); padding: .7rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-info { display: grid; gap: 1.75rem; padding-top: .5rem; }
.info-row { display: flex; gap: 1rem; }
.info-row > i { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 1.15rem; }
.info-row h4 { font-size: 1rem; margin: 0 0 .15rem; }
.info-row p { margin: 0; color: var(--muted); }

.verify-form { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .4rem .4rem 1.25rem; box-shadow: var(--shadow); }
.verify-form > i { color: var(--accent); font-size: 1.2rem; }
.verify-form .form-control { border: 0; box-shadow: none; padding-left: .25rem; text-transform: uppercase; }
.verify-result { margin-top: 2rem; padding: 1.5rem 1.75rem; border-radius: var(--radius); border: 1px solid; }
.verify-result.ok { border-color: #bbf7d0; background: #f0fdf4; }
.verify-result.ok i { color: #16a34a; font-size: 1.3rem; }
.verify-result.bad { border-color: #fecaca; background: #fef2f2; }
.verify-result.bad i { color: #dc2626; font-size: 1.3rem; }
.verify-result dt { font-weight: 500; color: var(--muted); }

/* CTA + footer ------------------------------------------------------- */
.cta-band { padding: 0 0 5rem; }
main:has(> .section-alt:last-child) + .cta-band { padding-top: 5rem; background: var(--bg-alt); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; background: linear-gradient(120deg, var(--ink), #1e1b4b); color: #cbd5e1; border-radius: 24px; padding: 3rem; }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-inner .btn-light { color: var(--ink); }

.site-footer { background: var(--ink); color: #94a3b8; padding: 5rem 0 2rem; font-size: .95rem; }
.site-footer h6 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #fff; }
.site-footer .text-muted-2 { color: #64748b !important; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; color: #64748b; }

/* Reveal on scroll --------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 575.98px) {
    .brand { --logo-h: 38px; }
    .container { padding-left: 16px; padding-right: 16px; }
    .section { padding: 4.5rem 0; }
    .cta-inner { padding: 2rem 1.5rem; }
    .form-card { padding: 1.5rem; }
    .verify-form { border-radius: 16px; flex-wrap: wrap; padding: .75rem; }
    .verify-form > i { display: none; }
    .verify-form .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}
