/* =========================================================
   PacketBastion
   Computer • Network • Security
   ========================================================= */

:root {
    --navy-950: #03172a;
    --navy-900: #052546;
    --navy-800: #093058;
    --blue-600: #0b6fd3;
    --blue-500: #1286e6;
    --blue-100: #eaf4ff;
    --ink: #121f30;
    --muted: #607083;
    --line: #dce6f0;
    --paper: #ffffff;
    --soft: #f6f9fc;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(5, 37, 70, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
                 BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(1180px, 90%);
    margin-inline: auto;
}

/* ------------------------------
   Header / Navigation
------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(220, 230, 240, 0.95);
    backdrop-filter: blur(14px);
}

.nav-container {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.brand {
    display: block;
    text-decoration: none;
    line-height: 0;
}

.brand img {
    width: min(350px, 46vw);
    max-height: 72px;
    object-fit: contain;
    object-position: left center;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.primary-nav a {
    color: var(--navy-900);
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 750;
    padding: 13px 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s ease;
}

.primary-nav a:hover {
    color: var(--blue-600);
    border-color: var(--blue-600);
}

.primary-nav .nav-button {
    padding: 10px 16px;
    border: 1px solid var(--blue-600);
    border-radius: 8px;
}

.primary-nav .nav-button:hover {
    color: white;
    background: var(--blue-600);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 42px;
    padding: 9px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 4px 0;
    border-radius: 999px;
    background: var(--navy-900);
}

/* ------------------------------
   Typography / shared UI
------------------------------ */

.eyebrow,
.mini-label {
    margin: 0 0 12px;
    color: var(--blue-600);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--navy-900);
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(2.15rem, 4vw, 3.45rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.button {
    display: inline-block;
    min-width: 174px;
    padding: 13px 23px;
    border: 2px solid var(--blue-600);
    border-radius: 9px;
    text-decoration: none;
    text-align: center;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    transition: transform 0.18s ease,
                box-shadow 0.18s ease,
                background 0.18s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary {
    color: white;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    box-shadow: 0 12px 28px rgba(11, 111, 211, 0.22);
}

.button.primary:hover {
    box-shadow: 0 16px 32px rgba(11, 111, 211, 0.3);
}

.button.secondary {
    color: var(--navy-900);
    background: white;
}

.text-link {
    color: var(--blue-600);
    font-weight: 850;
    text-decoration: none;
}

/* ------------------------------
   Home hero
------------------------------ */

.hero {
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 40%, rgba(18, 134, 230, 0.10), transparent 25%),
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.hero-layout {
    min-height: 615px;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 50px;
    padding-block: 55px;
}

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

.hero h1 {
    max-width: 760px;
    margin: 8px 0 25px;
    font-size: clamp(3.25rem, 5.6vw, 5.75rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero h1 span {
    display: block;
    color: var(--blue-600);
}

.hero-text {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.14rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 36px;
}

.trust-row span {
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--navy-800);
    background: var(--soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-visual {
    min-height: 480px;
    position: relative;
    display: grid;
    place-items: center;
}

.logo-platform {
    width: min(440px, 88%);
    aspect-ratio: 1;
    position: relative;
    display: grid;
    place-items: center;
    z-index: 2;
}

.logo-platform::before {
    content: "";
    position: absolute;
    left: 16%;
    right: 16%;
    bottom: 2%;
    height: 15%;
    border: 2px solid rgba(18, 134, 230, 0.34);
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(18,134,230,.18), rgba(18,134,230,0) 72%);
    box-shadow:
        0 0 40px rgba(18,134,230,.22),
        inset 0 0 25px rgba(18,134,230,.14);
}

.logo-platform img {
    width: 88%;
    position: relative;
    z-index: 2;
    mix-blend-mode: multiply;
    filter: contrast(1.05);
}

.circuit-lines {
    position: absolute;
    inset: 12%;
    opacity: 0.3;
    background:
        linear-gradient(90deg, transparent 48%, rgba(11,111,211,.35) 49%, rgba(11,111,211,.35) 50%, transparent 51%),
        linear-gradient(0deg, transparent 48%, rgba(11,111,211,.18) 49%, rgba(11,111,211,.18) 50%, transparent 51%);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle, black 0 48%, transparent 72%);
}

/* ------------------------------
   Sections and service cards
------------------------------ */

.section {
    padding: 90px 0;
}

.section-heading {
    max-width: 750px;
    margin-bottom: 42px;
}

.section-heading > p:last-child,
.page-header p,
.identity-grid > div:last-child > p,
.cta-box p {
    color: var(--muted);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 20px;
}

.home-grid {
    grid-template-columns: repeat(4, 1fr);
}

.service-card {
    min-height: 280px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, white, #fbfdff);
    box-shadow: 0 10px 28px rgba(5, 37, 70, 0.055);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(11, 111, 211, 0.35);
    box-shadow: var(--shadow);
}

.service-card h3 {
    margin: 4px 0 10px;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--muted);
}

.service-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--blue-100);
    color: var(--blue-600);
    font-size: 0.9rem;
    font-weight: 950;
    letter-spacing: 0.03em;
}

.detailed-grid .service-card {
    min-height: 250px;
}

/* ------------------------------
   Identity / dark brand section
------------------------------ */

.identity-section {
    padding: 90px 0;
    background:
        radial-gradient(circle at 18% 50%, rgba(18, 134, 230, 0.20), transparent 27%),
        linear-gradient(135deg, var(--navy-900), var(--navy-950));
}

.identity-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
    align-items: center;
}

.identity-mark {
    display: grid;
    place-items: center;
}

.identity-mark img {
    width: min(330px, 80%);
    border-radius: 24px;
    mix-blend-mode: screen;
}

.identity-grid h2 {
    color: white;
}

.identity-grid > div:last-child > p {
    color: #c7d7e7;
    font-size: 1.08rem;
}

.identity-grid .text-link {
    color: #6bb8ff;
}

/* ------------------------------
   Page headers
------------------------------ */

.page-header {
    padding: 90px 0 70px;
    background:
        radial-gradient(circle at 85% 30%, rgba(18, 134, 230, 0.16), transparent 24%),
        linear-gradient(135deg, #f9fcff, #ffffff);
    border-bottom: 1px solid var(--line);
}

.page-header h1 {
    max-width: 900px;
    margin: 8px 0 20px;
    font-size: clamp(2.7rem, 5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.page-header p {
    max-width: 720px;
    font-size: 1.08rem;
}

/* ------------------------------
   CTA
------------------------------ */

.cta-section {
    padding: 30px 0 90px;
}

.cta-box {
    padding: 42px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
    border: 1px solid #173e64;
    border-radius: var(--radius);
    color: white;
    background:
        radial-gradient(circle at 92% 30%, rgba(18,134,230,.24), transparent 28%),
        linear-gradient(135deg, var(--navy-900), var(--navy-950));
    box-shadow: var(--shadow);
}

.cta-box h2 {
    margin: 5px 0 10px;
    color: white;
    font-size: clamp(1.9rem, 3.4vw, 3rem);
}

.cta-box p {
    max-width: 680px;
    margin-bottom: 0;
    color: #c5d5e5;
}

/* ------------------------------
   Forms
------------------------------ */

.form-container {
    max-width: 900px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-section {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 10px 30px rgba(5, 37, 70, 0.05);
}

.form-section-heading {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.form-section-heading > span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: white;
    background: var(--blue-600);
    font-size: 0.82rem;
    font-weight: 900;
}

.form-section-heading h2 {
    margin: 0;
    font-size: 1.45rem;
}

.form-section-heading .mini-label {
    margin: 0 0 2px;
    font-size: 0.62rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.form-group:last-child {
    margin-bottom: 0;
}

label {
    margin-bottom: 7px;
    color: var(--navy-900);
    font-size: 0.9rem;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #bdcddd;
    border-radius: 7px;
    color: var(--ink);
    background: #fbfdff;
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(11, 111, 211, 0.11);
}

textarea {
    resize: vertical;
}

.security-notice {
    display: flex;
    gap: 16px;
    padding: 20px;
    border: 1px solid #c9def3;
    border-left: 5px solid var(--blue-600);
    border-radius: 10px;
    color: #42576b;
    background: #f2f8fe;
}

.security-notice strong {
    color: var(--navy-900);
}

.security-notice p {
    margin-bottom: 0;
}

.security-symbol {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: white;
    background: var(--blue-600);
    font-weight: 950;
}

.submit-button {
    align-self: flex-start;
}

.form-note {
    color: #78899a;
    font-size: 0.86rem;
}

/* ------------------------------
   Footer
------------------------------ */

footer {
    border-top: 1px solid #153653;
    color: white;
    background: var(--navy-950);
    padding: 35px 0 18px;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand img {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 8px;
    mix-blend-mode: screen;
}

.footer-brand strong {
    font-size: 1.1rem;
}

.footer-brand p {
    margin: 2px 0 0;
    color: #9eb4c8;
    font-size: 0.85rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: right;
}

.footer-contact a {
    color: #bdcede;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #6bb8ff;
}

.copyright {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(156, 184, 210, 0.14);
    color: #718da5;
    font-size: 0.78rem;
}

/* ------------------------------
   Mobile
------------------------------ */

@media (max-width: 900px) {
    .nav-container {
        min-height: 78px;
    }

    .brand img {
        width: min(310px, 68vw);
        max-height: 62px;
    }

    .nav-toggle {
        display: block;
    }

    .primary-nav {
        display: none;
        position: absolute;
        top: 78px;
        right: 5%;
        width: min(310px, 90vw);
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: white;
        box-shadow: var(--shadow);
    }

    .primary-nav.open {
        display: flex;
    }

    .primary-nav a,
    .primary-nav .nav-button {
        padding: 12px 15px;
        border: 0;
        border-radius: 7px;
    }

    .primary-nav a:hover {
        background: var(--soft);
    }

    .hero-layout {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-block: 52px;
    }

    .hero-visual {
        min-height: 360px;
        order: -1;
    }

    .logo-platform {
        width: min(360px, 78vw);
    }

    .home-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .identity-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width: 700px) {
    .section,
    .identity-section {
        padding: 68px 0;
    }

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

    .hero h1 {
        font-size: clamp(2.75rem, 13vw, 4.25rem);
    }

    .hero-visual {
        min-height: 290px;
    }

    .cta-box,
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-contact {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(92%, 1180px);
    }

    .brand img {
        width: min(245px, 66vw);
    }

    .hero-buttons .button,
    .submit-button {
        width: 100%;
    }

    .form-section {
        padding: 22px;
    }

    .cta-box {
        padding: 28px;
    }
}


/* ------------------------------
   Work-order form status
------------------------------ */

.form-success {
    padding: 16px 18px;
    border: 1px solid #a8d5b5;
    border-radius: 9px;
    color: #155b2e;
    background: #eefaf1;
}

.form-error {
    padding: 16px 18px;
    border: 1px solid #efb7b7;
    border-radius: 9px;
    color: #8a1f1f;
    background: #fff2f2;
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}


/* ============================================================
   Phase 6 customer portal
   ============================================================ */

.ticket-status-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 800;
}

.portal-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(34, 123, 205, .11), transparent 34rem),
        #f5f8fb;
    color: #17263b;
}

.portal-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    box-sizing: border-box;
}

.portal-card {
    border: 1px solid #dbe4ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 45px rgba(21, 48, 76, .07);
    padding: 26px;
}

.portal-access-card {
    width: min(620px, 100%);
    text-align: center;
}

.portal-logo {
    width: min(340px, 82%);
    height: auto;
    margin-bottom: 24px;
}

.portal-kicker {
    margin: 0 0 7px;
    color: #187bd1;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.portal-copy {
    color: #627186;
    line-height: 1.7;
}

.portal-error {
    color: #a9323f;
    font-weight: 700;
}

.portal-loader {
    width: 32px;
    height: 32px;
    margin: 24px auto 0;
    border: 3px solid #dbe7f0;
    border-top-color: #187bd1;
    border-radius: 50%;
    animation: portal-spin .8s linear infinite;
}

@keyframes portal-spin {
    to { transform: rotate(360deg); }
}

.portal-header {
    border-bottom: 1px solid #dbe4ec;
    background: rgba(255, 255, 255, .92);
}

.portal-header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.portal-header-logo {
    width: 210px;
    max-width: 55vw;
}

.portal-header-inner > span {
    color: #6e7d8e;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .1em;
}

.portal-ticket {
    padding-top: 42px;
    padding-bottom: 58px;
}

.portal-ticket-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 24px;
}

.portal-ticket-hero h1 {
    margin: 3px 0 7px;
    font-size: clamp(2rem, 5vw, 3.4rem);
}

.portal-ticket-hero > div:first-child > p:last-child {
    color: #718096;
}

.portal-status {
    padding: 9px 13px;
    border: 1px solid #b9cad8;
    border-radius: 999px;
    background: #fff;
    font-size: .76rem;
    font-weight: 900;
    white-space: nowrap;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.portal-card h2 {
    margin-top: 0;
}

.portal-data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 0;
}

.portal-data div {
    padding-top: 11px;
    border-top: 1px solid #e5ebf0;
}

.portal-data dt {
    color: #758397;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-data dd {
    margin: 4px 0 0;
    font-weight: 700;
}

.portal-long-text {
    white-space: pre-wrap;
    line-height: 1.75;
}

.portal-long-text.secondary {
    color: #5f6d80;
}

.portal-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.portal-section-heading > span {
    color: #718096;
    font-size: .8rem;
}

.portal-update-stack {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.portal-update {
    padding: 17px;
    border: 1px solid #e1e8ee;
    border-radius: 11px;
    background: #f9fbfd;
}

.portal-update-meta {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #68788b;
    font-size: .76rem;
}

.portal-update-meta strong {
    color: #1b334f;
}

.portal-update p {
    margin-bottom: 0;
    white-space: pre-wrap;
    line-height: 1.7;
}

.portal-empty {
    padding: 18px;
    border: 1px dashed #cad5df;
    border-radius: 10px;
    color: #748397;
}

.portal-security-note {
    margin-top: 20px;
    padding: 18px 20px;
    border-left: 4px solid #187bd1;
    background: #edf6fd;
}

.portal-security-note p {
    margin-bottom: 0;
    color: #586a7e;
}

.portal-forget-form {
    margin-top: 22px;
}

.portal-footer {
    padding: 24px 0;
    border-top: 1px solid #dbe4ec;
    color: #748397;
    background: #fff;
    font-size: .82rem;
}

@media (max-width: 760px) {
    .portal-ticket-hero,
    .portal-section-heading {
        flex-direction: column;
    }

    .portal-grid,
    .portal-data {
        grid-template-columns: 1fr;
    }

    .portal-header-inner > span {
        display: none;
    }
}
