/* =========================================================
   HCK IT & NOC SUPPORT PORTAL
   Main Stylesheet
========================================================= */


/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {
    --ink-950: #05070A;
    --ink-900: #0A0F0C;
    --ink-850: #0E1512;
    --ink-800: #131C16;

    --line: #1C2A1F;

    --teal: #2ECC71;
    --teal-dim: #1E8449;

    --amber: #F5A623;
    --red: #F0654A;

    --primary: var(--teal);
    --on-primary: #05170C;

    --mist-100: #E6EDE8;
    --fog-400: #8FA396;
    --fog-500: #6B7D70;

    --radius: 14px;

    /* Formerly light beige/paper for "light" sections.
       Now dark + translucent so the body background image bleeds through. */
    --paper: rgba(8, 13, 10, 0.86);
    --paper-card: #0C1310;

    --ink-on-light: #E6EDE8;
    --muted-on-light: #8FA396;

    --line-light: #1E2B20;

    --bright: #7CFC8A;

    --display: 'Poppins', sans-serif;
    --body: 'Inter', sans-serif;
    --mono: 'IBM Plex Mono', monospace;
}


/* =========================================================
   LIGHT THEME
   Activated via <html data-theme="light">, toggled by the
   theme button. Same variable names, different values -
   the rest of the stylesheet doesn't need to know.
========================================================= */

html[data-theme="light"] {
    --ink-950: #F5F0DC;
    --ink-900: #FAF8EE;
    --ink-850: #FAF8EE;
    --ink-800: #F0E4C4;

    --line: #E3D9BC;

    --teal: #5B9A4C;
    --teal-dim: #497A3D;

    --amber: #B98A3A;
    --red: #B23A40;

    --primary: #B23A40;
    --on-primary: #FFFFFF;

    --mist-100: #292929;
    --fog-400: #5C5C5C;
    --fog-500: #6E6E6E;

    --paper: #F5F0DC;
    --paper-card: #FAF8EE;

    --ink-on-light: #292929;
    --muted-on-light: #5C5C5C;

    --line-light: #E3D9BC;

    --bright: #5B9A4C;
}


/* =========================================================
   RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ink-950);
    color: var(--mist-100);

    font-family: var(--body);
    font-size: 16px;
    line-height: 1.65;

    -webkit-font-smoothing: antialiased;

    overflow-x: hidden;
}

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

::selection {
    background: var(--teal);
    color: var(--ink-950);
}


/* =========================================================
   GRAIN
========================================================= */

.grain {
    position: fixed;
    inset: 0;

    pointer-events: none;
    z-index: 1;

    opacity: 0.035;

    background-image: url(
        "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"
    );
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}


/* =========================================================
   BRAND BANNER
========================================================= */

.brand-banner {
    position: relative;
    padding: 44px 0 64px;
    text-align: center;
    overflow: hidden;
    border-bottom: none;
}

/* Curved bottom edge */
.brand-banner::after {
    content: "";
    position: absolute;
    left: -5%;
    bottom: -35px;
    width: 110%;
    height: 55px;

    background: var(--ink-900);

    border-radius: 50% 50% 0 0 / 100% 100% 0 0;

    z-index: 3;
}

.banner-glow {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            ellipse 60% 100% at 30% 0%,
            rgba(46, 204, 113, 0.10),
            transparent 60%
        ),
        radial-gradient(
            ellipse 50% 80% at 80% 20%,
            rgba(46, 204, 113, 0.08),
            transparent 60%
        );

    pointer-events: none;
}

.banner-in {
    position: relative;
    z-index: 4;
}

.brand-lockup {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

@keyframes floatLogo {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.brand-mark {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 265px;
    height: 82px;

    padding: 10px 18px;

    background: rgba(20, 34, 49, 0.75);
    border: 1px solid rgba(100, 130, 160, 0.25);
    border-radius: 20px;

    box-sizing: border-box;
    /* Logo floating animation */
    animation: floatLogo 4s ease-in-out infinite;
}

.herald-logo {
    width: 100%;
    height: 100%;

    object-fit: contain;
    display: block;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    padding: 88px 0 70px;

    border-bottom: 1px solid var(--line);

    overflow: hidden;
    background: #0a0f0c;
}

.hero-grid {
    display: grid;

    grid-template-columns: 1.05fr 0.95fr;

    gap: 40px;

    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-family: var(--mono);
    font-size: 13px;

    color: var(--teal);

    border: 1px solid rgba(46, 204, 113, 0.3);

    background: rgba(46, 204, 113, 0.06);

    padding: 6px 12px;

    border-radius: 100px;

    margin-bottom: 22px;

    letter-spacing: 0.04em;
}

.eyebrow .dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--teal);
}

/* HERO H1 */
.hero h1 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--mist-100);
    margin-bottom: 24px;
}
/* BRAND HEADER TITLE */
.brand-banner .banner-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.06;
    color: var(--mist-100);
    margin-bottom: 8px;
}
.brand-banner .banner-sub {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--teal);
}

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

.hero p.lead {
    font-size: 18px;
    line-height: 1.65;

    color: var(--mist-100);

    max-width: 520px;

    margin-bottom: 34px;
}

.hero-actions {
    display: flex;

    gap: 14px;

    flex-wrap: wrap;

    margin-bottom: 38px;
}

.btn {
    font-family: var(--body);

    font-weight: 600;
    font-size: 15.5px;

    padding: 14px 24px;

    border-radius: 9px;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    transition: all 0.2s ease;

    cursor: pointer;

    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);

    color: var(--on-primary);
}

.btn-primary:hover {
    background: #0f1a2e;
    color: whitesmoke;
    transform: translateY(-1px);
}

html[data-theme="light"] .btn-primary:hover {
    background: #952F35;
    color: var(--on-primary);
}

.btn-ghost {
    border: 1px solid var(--line);

    color: var(--mist-100);
}

.btn-ghost:hover {
    border-color: var(--fog-500);

    background: var(--ink-850);
}

.hero-meta {
    display: flex;

    gap: 28px;

    font-family: var(--mono);

    font-size: 12px;

    color: var(--fog-500);

    flex-wrap: wrap;
}

.hero-meta strong {
    color: var(--mist-100);

    font-weight: 500;
}


/* =========================================================
   TOPOLOGY
========================================================= */

.topo-wrap {
    position: relative;

    background: var(--ink-900);

    border: 1px solid var(--line);

    border-radius: 18px;

    padding: 22px;

    box-shadow:
        0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

.topo-head {
    display: flex;

    justify-content: space-between;

    align-items: center;

    font-family: var(--mono);

    font-size: 11px;

    color: var(--fog-500);

    margin-bottom: 8px;

    padding: 0 4px;
}

.topo-head .live {
    color: var(--teal);

    display: flex;

    align-items: center;

    gap: 6px;
}

.topo-head .live::before {
    content: '';

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--teal);

    animation: pulseDot 2s infinite;
}

svg.topo {
    width: 100%;
    height: auto;

    display: block;
}

.topo-line {
    stroke: var(--line);

    stroke-width: 1.6;

    fill: none;
}

.topo-line.live {
    stroke: var(--teal-dim);

    stroke-dasharray: 5 6;

    animation: flow 2.4s linear infinite;
}

@keyframes flow {
    to {
        stroke-dashoffset: -22;
    }
}

.node-box {
    fill: var(--ink-850);

    stroke: var(--line);

    stroke-width: 1.2;
}

.node-label {
    font-family: var(--mono);

    font-size: 9.5px;

    fill: var(--mist-100);
}

.node-sub {
    font-family: var(--mono);

    font-size: 8px;

    fill: var(--fog-500);
}

.status-ok {
    fill: var(--teal);
}

.status-warn {
    fill: var(--amber);
}

.status-ok,
.status-warn {
    animation: blink 2.6s ease-in-out infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }
}


/* =========================================================
   STATUS BAR
========================================================= */

.status-bar {
    border-bottom: 1px solid var(--line);

    background: var(--ink-900);
}

.status-row {
    display: flex;

    align-items: center;

    gap: 0;

    padding: 16px 0;

    flex-wrap: wrap;
}

.status-label {
    font-family: var(--mono);

    font-size: 11.5px;

    color: var(--fog-500);

    margin-right: 26px;

    letter-spacing: 0.03em;
}

.chip {
    display: flex;

    align-items: center;

    gap: 8px;

    font-family: var(--mono);

    font-size: 12.5px;

    color: var(--mist-100);

    padding: 7px 14px 7px 10px;

    border-radius: 100px;

    border: 1px solid var(--line);

    margin-right: 10px;

    margin-bottom: 6px;
}

.chip .led {
    width: 7px;
    height: 7px;

    border-radius: 50%;
}

.led.ok {
    background: var(--teal);

    box-shadow:
        0 0 8px rgba(46, 204, 113, 0.7);
}

.led.warn {
    background: var(--amber);

    box-shadow:
        0 0 8px rgba(245, 166, 35, 0.6);
}


/* =========================================================
   SHARED SECTION
========================================================= */

section {
    padding: 84px 0;
}

.section-head {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    margin-bottom: 44px;

    gap: 20px;

    flex-wrap: wrap;
}

.section-tag {
    font-family: var(--mono);

    font-size: 13px;

    color: var(--teal);

    letter-spacing: 0.08em;

    margin-bottom: 10px;

    display: block;
}

h2 {
    font-family: var(--display);

    font-weight: 600;

    font-size: clamp(27px, 3.4vw, 38px);

    color: var(--mist-100);

    letter-spacing: -0.01em;
}

.section-desc {
    color: var(--mist-100);

    font-size: 16px;
    line-height: 1.6;

    max-width: 440px;
}


/* =========================================================
   GUIDES
========================================================= */

.guides {
    background: var(--paper);

    border-bottom: 1px solid var(--line-light);

    padding-top: 84px;

    padding-bottom: 84px;
}

.guides .section-tag {
    color: var(--teal);
}

.guides h2 {
    color: var(--ink-on-light);
}

.guides .section-desc {
    color: var(--muted-on-light);
}

.guide-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}

.guide-card {
    display: block;

    background: var(--paper-card);

    border: 1px solid var(--line-light);

    border-radius: var(--radius);

    padding: 32px;

    transition: all 0.25s ease;

    position: relative;

    overflow: hidden;

    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.35);
}

.guide-card:hover {
    border-color: var(--teal);

    transform: translateY(-3px);

    box-shadow:
        0 20px 40px -18px rgba(46, 204, 113, 0.25);
}

.guide-card .icn {
    width: 56px;
    height: 56px;

    border-radius: 12px;

    background: var(--ink-800);

    border: 1px solid var(--line-light);

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 20px;

    color: var(--teal);
}

.guide-card .icn svg {
    width: 28px;
    height: 28px;
}

.guide-card h3 {
    font-family: var(--display);

    font-size: 19px;

    font-weight: 600;

    color: var(--ink-on-light);

    margin-bottom: 10px;
}

.guide-card p {
    font-size: 15px;
    line-height: 1.6;

    color: var(--mist-100);

    margin-bottom: 20px;
}

.guide-card .tag {
    font-family: var(--mono);

    font-size: 12px;

    color: var(--muted-on-light);

    display: flex;

    align-items: center;

    gap: 6px;
}

.guide-card .tag::after {
    content: '→';

    margin-left: auto;

    color: var(--teal);

    transition: transform 0.2s ease;
}

.guide-card:hover .tag::after {
    transform: translateX(3px);
}


/* =========================================================
   HELP CENTER
========================================================= */

.kb-wrap {

    grid-template-columns: 0.9fr 1.1fr;

    gap: 60px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    width: 100%;
}

.form-card {
    display: block;

    background: var(--ink-900);

    border: 1px solid var(--line);

    border-radius: var(--radius);

    padding: 34px;

    min-height: 270px;

    transition: all 0.25s ease;
}

.form-card:hover {
    border-color: var(--teal-dim);

    transform: translateY(-3px);

    box-shadow:
        0 20px 40px -18px rgba(46, 204, 113, 0.15);
}

.form-card .icn {
    width: 50px;
    height: 50px;

    border-radius: 10px;

    background: var(--ink-850);

    border: 1px solid var(--line);

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 22px;

    color: var(--teal);

    font-size: 19px;
}

.form-card h3 {
    font-family: var(--display);

    font-size: 19px;

    font-weight: 600;

    color: var(--mist-100);

    margin-bottom: 12px;
}

.form-card p {
    font-size: 15px;

    line-height: 1.65;

    color: var(--mist-100);

    margin-bottom: 22px;
}

.form-card .tag {
    font-family: var(--mono);

    font-size: 11.5px;

    color: var(--fog-500);

    display: flex;

    align-items: center;

    gap: 6px;

    margin-top: auto;
}

.form-card .tag::after {
    content: '→';

    margin-left: auto;

    color: var(--teal);
}




/* =========================================================
   FOOTER
========================================================= */

footer {
    border-top: 1px solid var(--line);

    padding: 30px 0;
}

.foot-row {
    display: flex;

    justify-content: space-between;

    align-items: center;

    font-family: var(--mono);

    font-size: 12.5px;
    font-weight: 700;

    color: var(--mist-100);

    flex-wrap: wrap;

    gap: 12px;
}


/* =========================================================
   THEME TOGGLE
========================================================= */

.theme-toggle {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 500;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    border: 1px solid var(--line);
    background: var(--ink-900);
    color: var(--teal);

    cursor: pointer;

    transition: border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--teal-dim);
    transform: translateY(-1px);
}

.theme-toggle .icon-moon {
    display: none;
}

html[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
}

html[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}

@media (max-width: 640px) {
    .theme-toggle {
        top: 12px;
        right: 14px;

        width: 38px;
        height: 38px;
    }
}



/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .topo-wrap {
        order: -1;
    }

    .guide-grid {
        grid-template-columns: 1fr 1fr;
    }

    .kb-wrap {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .contact-cards-wide {
        grid-template-columns: 1fr 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 640px) {

    .container {
        padding: 0 20px;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 56px 0 40px;
    }

    section {
        padding: 56px 0;
    }

    .contact-cards-wide {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    * {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}