:root {
    --brand-primary: #173358;
    --brand-accent: #00aeef;
    --brand-off-white: #e8e6e0;
    --brand-dark-gray: #2b2b2b;
    --success: #00b26b;
    --warning: #f79009;
    --error: #ed1a3b;

    --bg: #0d1d32;
    --surface: #132a49;
    --card: #173358;

    --text: #f5f7fa;
    --muted: #b7c4d4;

    --border: #2b4b72;

    --cyan: var(--brand-accent);
    --green: var(--success);
    --accent: var(--brand-accent);

    --shadow: rgba(0, 0, 0, 0.28);
    --header-bg: rgba(13, 29, 50, .94);
    --section-wash: linear-gradient(180deg, rgba(23, 51, 88, .16), rgba(23, 51, 88, .035));
    --card-highlight: rgba(255, 255, 255, .055);
    --topic-bg: rgba(23, 51, 88, .75);
    --body-glow-cyan: rgba(0, 174, 239, .08);
    --body-glow-green: rgba(0, 178, 107, .055);
    --diagram-bg: linear-gradient(145deg, rgba(23, 51, 88, .92), rgba(8, 23, 41, .9)), radial-gradient(circle at top right, rgba(0, 174, 239, .18), transparent 48%);
    --diagram-border: rgba(0, 174, 239, .28);
    --diagram-box-bg: rgba(255, 255, 255, .045);
    --diagram-box-border: rgba(255, 255, 255, .10);
    --diagram-heading: #ffffff;
    --diagram-copy: #b7c4d4;
    --diagram-shadow: 0 34px 90px rgba(0, 0, 0, .34);
    --hero-mark-bg: radial-gradient(circle, rgba(0, 174, 239, .24) 0 8%, transparent 9% 24%, rgba(0, 174, 239, .14) 25% 26%, transparent 27% 43%, rgba(0, 178, 107, .13) 44% 45%, transparent 46%), linear-gradient(145deg, rgba(23, 51, 88, .92), rgba(8, 23, 41, .96));
    --hero-mark-border: rgba(0, 174, 239, .35);
    --hero-mark-shadow: 0 28px 80px rgba(0, 174, 239, .18);

    --max-width: 1180px;

    --base-font-size: 16px;

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 24px;

    --transition: .25s ease;
}

body.light,
:where(html[data-theme="light"]) body {

    --bg: var(--brand-off-white);
    --surface: #ffffff;
    --card: #ffffff;

    --text: var(--brand-dark-gray);
    --muted: #5b5b5b;

    --border: #d3d0c8;

    --shadow: rgba(23, 51, 88, .10);
    --header-bg: rgba(255, 255, 255, .94);
    --section-wash: linear-gradient(180deg, rgba(23, 51, 88, .065), rgba(23, 51, 88, .018));
    --card-highlight: rgba(23, 51, 88, .025);
    --topic-bg: #ffffff;
    --body-glow-cyan: rgba(0, 174, 239, .07);
    --body-glow-green: rgba(0, 178, 107, .045);
    --diagram-bg: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(237, 244, 247, .96)), radial-gradient(circle at top right, rgba(0, 174, 239, .12), transparent 48%);
    --diagram-border: rgba(23, 51, 88, .16);
    --diagram-box-bg: rgba(23, 51, 88, .045);
    --diagram-box-border: rgba(23, 51, 88, .12);
    --diagram-heading: #1b2b40;
    --diagram-copy: #52657a;
    --diagram-shadow: 0 28px 72px rgba(23, 51, 88, .14);
    --hero-mark-bg: radial-gradient(circle, rgba(0, 174, 239, .22) 0 8%, transparent 9% 24%, rgba(0, 174, 239, .16) 25% 26%, transparent 27% 43%, rgba(0, 178, 107, .14) 44% 45%, transparent 46%), linear-gradient(145deg, #ffffff, #eaf2f5);
    --hero-mark-border: rgba(23, 51, 88, .16);
    --hero-mark-shadow: 0 24px 64px rgba(23, 51, 88, .14);
}

body.high-contrast {

    --bg: #000;
    --surface: #000;
    --card: #000;

    --text: #fff;
    --muted: #fff;

    --border: #fff;

    --cyan: #00ffff;
    --green: #00ff80;
    --diagram-bg: #000000;
    --diagram-border: #ffffff;
    --diagram-box-bg: #000000;
    --diagram-box-border: #ffffff;
    --diagram-heading: #ffffff;
    --diagram-copy: #ffffff;
    --hero-mark-bg: #000000;
    --hero-mark-border: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--base-font-size);
    overflow-x: clip;
}

body {
    margin: 0;
    overflow-x: clip;

    background: var(--bg);
    color: var(--text);

    font-family: "Myriad Pro", "Segoe UI", Arial, sans-serif;

    line-height: 1.65;

    transition: background var(--transition),
    color var(--transition);
}

h1,
h2,
h3 {
    font-family: inherit;
}

html[data-theme="dark"] {
    color-scheme: dark;
}

html[data-theme="light"] {
    color-scheme: light;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.brand-icon {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    flex: 0 0 auto;
    border: 2px solid var(--cyan);
    border-radius: 3px;
    transform: rotate(45deg);
}

html,
body,
input,
select,
textarea,
button {
    font-family: "Myriad Pro", "Segoe UI", Arial, sans-serif;
}

body.no-motion *,
body.no-motion {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {

    outline: 3px solid var(--cyan);
    outline-offset: 3px;
}

.container {
    width: min(
            calc(100% - 32px),
            var(--max-width)
    );

    margin-inline: auto;
}

.skip-link {

    position: absolute;

    left: -9999px;
    top: 12px;

    background: var(--cyan);
    color: #031018;

    padding: 10px 16px;

    border-radius: var(--radius-sm);

    font-weight: 700;

    z-index: 9999;
}

.skip-link:focus {
    left: 12px;
}

/* ===========================
   HEADER
=========================== */

.site-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    backdrop-filter: blur(14px);

    background: var(--header-bg);

    border-bottom: 1px solid var(--border);
}

.nav {

    min-height: 78px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 24px;
}

.logo {

    display: flex;

    align-items: center;

    gap: 12px;

    font-weight: 800;

    letter-spacing: .02em;
}

.logo img {

    width: 44px;
    height: 44px;

    border-radius: 12px;

    object-fit: contain;
}

.nav-links {

    display: flex;

    align-items: center;

    gap: 24px;

    color: var(--muted);

    font-size: .95rem;
}

.nav-links a:hover {
    color: var(--cyan);
}

.nav-tools {

    display: flex;

    align-items: center;

    gap: 8px;
}

.icon-btn {

    width: 42px;
    height: 42px;

    border-radius: 12px;

    border: 1px solid var(--border);

    background: var(--surface);

    color: var(--text);

    cursor: pointer;

    display: inline-flex;

    align-items: center;
    justify-content: center;
}

.icon-btn:hover {

    border-color: var(--cyan);

    color: var(--cyan);
}

.mobile-toggle {
    display: none;
}

/* ===========================
   HERO
=========================== */

.hero {

    padding: 120px 0 90px;

    background: radial-gradient(
            circle at 20% 20%,
            rgba(0, 194, 209, .16),
            transparent 32%
    ),
    radial-gradient(
            circle at 80% 10%,
            rgba(61, 220, 151, .10),
            transparent 28%
    );
}

.hero-grid {

    display: grid;

    grid-template-columns:
            1.1fr
            .9fr;

    gap: 50px;

    align-items: center;
}

.eyebrow {

    color: var(--green);

    font-size: .85rem;

    letter-spacing: .15em;

    text-transform: uppercase;

    margin-bottom: 18px;

    font-weight: 700;
}

.hero h1 {

    font-size: clamp(
            2.8rem,
            6vw,
            4.8rem
    );

    line-height: 1.05;

    margin-bottom: 22px;
}

.hero-text {

    color: var(--muted);

    font-size: 1.2rem;

    max-width: 700px;

    margin-bottom: 34px;
}

.actions {

    display: flex;

    flex-wrap: wrap;

    gap: 14px;
}

.btn {

    min-height: 48px;

    padding: 12px 22px;

    border-radius: var(--radius-sm);

    border: 1px solid var(--border);

    display: inline-flex;

    align-items: center;
    justify-content: center;

    font-weight: 700;
}

.btn-primary {

    background: var(--cyan);

    color: #031018;

    border-color: var(--cyan);
}

.btn-secondary {

    background: transparent;

    color: var(--text);
}

/* ===========================
   CONTENT
=========================== */

section {
    padding: 90px 0;
}

.section-head {

    max-width: 820px;

    margin-bottom: 40px;
}

.section-head h2 {

    font-size: clamp(
            2rem,
            4vw,
            3rem
    );

    margin-bottom: 12px;
}

.section-head p {

    color: var(--muted);

    font-size: 1.05rem;
}

.grid-3 {

    display: grid;

    grid-template-columns:
            repeat(
                    3,
                    1fr
            );

    gap: 20px;
}

.grid-4 {

    display: grid;

    grid-template-columns:
            repeat(
                    4,
                    1fr
            );

    gap: 20px;
}

.card {

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    padding: 24px;

    box-shadow: 0 12px 34px var(--shadow);

    transition: transform .2s ease,
    border-color .2s ease;
}

.card:hover {

    transform: translateY(-4px);

    border-color: var(--cyan);
}

.card h3 {

    margin-bottom: 10px;

    font-size: 1.2rem;
}

.card p {
    color: var(--muted);
}

.featured {

    background: var(--surface);

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);
}

.tag {

    display: inline-block;

    margin-bottom: 12px;

    color: var(--green);

    text-transform: uppercase;

    font-size: .8rem;

    font-weight: 700;

    letter-spacing: .08em;
}

/* ===========================
   CTA
=========================== */

.cta {

    text-align: center;

    background: linear-gradient(
            135deg,
            rgba(0, 194, 209, .12),
            rgba(61, 220, 151, .08)
    );
}

.center {
    margin-inline: auto;
}

.center-actions {
    justify-content: center;
}

/* ===========================
   FOOTER
=========================== */

footer {

    border-top: 1px solid var(--border);

    padding: 28px 0;

    color: var(--muted);

    font-size: .86rem;
}

.footer-row {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    flex-wrap: wrap;
}

/* ===========================
   ACCESSIBILITY
=========================== */

.accessibility-panel {

    position: fixed;

    right: 18px;
    bottom: 18px;

    z-index: 1000;
}

.accessibility-menu {

    display: none;

    width: 240px;

    margin-bottom: 10px;

    padding: 12px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    box-shadow: 0 20px 50px var(--shadow);
}

.accessibility-menu.open {

    display: grid;

    gap: 8px;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 992px) {

    .hero-grid,
    .grid-3,
    .grid-4 {

        grid-template-columns: 1fr;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .nav {

        position: relative;
    }

    .nav-links {

        position: absolute;

        top: 78px;

        left: 0;
        right: 0;

        display: none;

        flex-direction: column;

        align-items: flex-start;

        padding: 18px;

        background: var(--surface);

        border: 1px solid var(--border);

        border-radius: var(--radius-md);
    }

    .nav-links.open {
        display: flex;
    }

    section {
        padding: 70px 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    html {

        scroll-behavior: auto !important;

        animation: none !important;

        transition: none !important;
    }
}

/* Contact Page */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.contact-form {
    padding: 32px;
}

.section-head.compact {
    margin-bottom: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(120, 170, 210, 0.28);
    background: rgba(4, 16, 30, 0.72);
    color: var(--text);
    border-radius: 10px;
    padding: 13px 14px;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 194, 214, 0.14);
    background: rgba(6, 22, 40, 0.92);
}

.contact-form .full {
    margin-top: 20px;
}

.contact-form button {
    margin-top: 22px;
}

.contact-side {
    display: grid;
    gap: 20px;
}

.contact-card,
.map-card {
    padding: 28px;
}

.contact-item {
    display: grid;
    gap: 4px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(120, 170, 210, 0.14);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item span:first-child {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.contact-item a,
.contact-item p,
.contact-item span:last-child {
    color: var(--text);
    text-decoration: none;
    margin: 0;
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-hero-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-mini-card {
    padding: 20px;
    border: 1px solid rgba(120, 170, 210, 0.2);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(14, 40, 66, 0.9), rgba(7, 20, 36, 0.82));
    box-shadow: var(--shadow);
}

.contact-mini-card span {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.contact-mini-card strong {
    color: var(--text);
    font-size: 1rem;
    word-break: break-word;
}

.map-placeholder {
    min-height: 280px;
    border-radius: 18px;
    border: 1px dashed rgba(0, 194, 214, 0.45);
    background: radial-gradient(circle at 30% 20%, rgba(0, 194, 214, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(6, 23, 41, 0.95), rgba(5, 15, 28, 0.95));
    display: grid;
    place-items: center;
    text-align: center;
    padding: 28px;
}

.map-pin {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 194, 214, 0.14);
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 10px;
}

.map-placeholder strong {
    color: var(--text);
    font-size: 1.15rem;
}

.map-placeholder p {
    color: var(--muted);
    max-width: 320px;
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-list details {
    padding: 20px 24px;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--text);
}

.faq-list p {
    margin-top: 12px;
    color: var(--muted);
}

@media (max-width: 980px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-hero-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form,
    .contact-card,
    .map-card {
        padding: 22px;
    }
}

/* ===========================
   BRAND VISUAL SYSTEM
=========================== */

body {
    background-image: radial-gradient(circle at 8% 8%, var(--body-glow-cyan), transparent 24rem),
    radial-gradient(circle at 92% 36%, var(--body-glow-green), transparent 26rem);
    background-attachment: fixed;
}

.site-header {
    box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
}

.logo picture {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(0, 174, 239, .36);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 174, 239, .14);
}

.logo img {
    width: 48px;
    height: 48px;
    border-radius: 0;
}

.logo-wordmark {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 1.12rem;
    letter-spacing: .01em;
    color: var(--text);
}

.logo-wordmark strong {
    font-weight: 800;
}

.logo-wordmark span {
    color: var(--cyan);
    font-weight: 600;
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 660px;
    display: grid;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 36rem;
    height: 36rem;
    right: -10rem;
    top: -15rem;
    border: 1px solid rgba(0, 174, 239, .20);
    border-radius: 50%;
    box-shadow: 0 0 0 5rem rgba(0, 174, 239, .025), 0 0 0 10rem rgba(23, 51, 88, .08);
}

.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .16;
    background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.hero h1 {
    max-width: 850px;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.hero-text, .section-head p {
    text-wrap: pretty;
}

.hero-grid > *, .hero-small .container > * {
    min-width: 0;
}

.diagram {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 28px;
    border: 1px solid var(--diagram-border);
    border-radius: 28px;
    background: var(--diagram-bg);
    box-shadow: var(--diagram-shadow);
    counter-reset: diagram-step;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.diagram::before {
    content: "SECURE ARCHITECTURE";
    color: var(--cyan);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .18em;
    margin-bottom: 2px;
}

.diagram-box {
    position: relative;
    padding: 22px 22px 22px 68px;
    border: 1px solid var(--diagram-box-border);
    border-radius: 17px;
    background: var(--diagram-box-bg);
    backdrop-filter: blur(8px);
    counter-increment: diagram-step;
}

.diagram-box::before {
    content: "0" counter(diagram-step);
    position: absolute;
    left: 18px;
    top: 20px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: #031018;
    background: var(--cyan);
    font-size: .72rem;
    font-weight: 900;
}

.diagram-box:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 34px;
    bottom: -17px;
    width: 1px;
    height: 17px;
    background: var(--cyan);
}

.diagram-box strong {
    display: block;
    margin-bottom: 4px;
    color: var(--diagram-heading);
    font-size: 1.03rem;
}

.diagram-box p {
    margin: 0;
    color: var(--diagram-copy);
    font-size: .91rem;
}

.hero-small {
    min-height: 470px;
}

.hero-small .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    gap: 60px;
}

.hero-small .container::after {
    content: "";
    width: 250px;
    aspect-ratio: 1;
    justify-self: end;
    border-radius: 32px;
    background: var(--hero-mark-bg);
    border: 1px solid var(--hero-mark-border);
    box-shadow: var(--hero-mark-shadow);
    transform: rotate(4deg);
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.card-actions .btn {
    padding-inline: 15px;
    font-size: .86rem;
}

.hero-small .section-head {
    margin-bottom: 0;
}

main > section:not(.hero):nth-of-type(odd) {
    background: var(--section-wash);
    border-block: 1px solid rgba(120, 170, 210, .08);
}

.section-head::before {
    content: "";
    display: block;
    width: 54px;
    height: 4px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), var(--green));
}

.section-head.center::before {
    margin-inline: auto;
}

.grid-3, .grid-4 {
    align-items: stretch;
}

.card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 210px;
    background: linear-gradient(145deg, var(--card-highlight), transparent 55%), var(--card);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .20);
}

.card::after {
    content: "";
    position: absolute;
    right: -44px;
    top: -44px;
    width: 110px;
    height: 110px;
    border: 1px solid rgba(0, 174, 239, .16);
    border-radius: 50%;
}

.card > .btn, .card > a:not(.resource-type) {
    align-self: flex-start;
    margin-top: auto;
}

.card-icon, .lucide-icon {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(54%) sepia(99%) saturate(2512%) hue-rotate(159deg) brightness(97%) contrast(102%);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    padding: 11px;
    border: 1px solid rgba(0, 174, 239, .30);
    border-radius: 15px;
    background: rgba(0, 174, 239, .09);
}

.btn {
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    box-shadow: 0 12px 32px rgba(0, 174, 239, .26);
}

@media (max-width: 1100px) and (min-width: 901px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr);
        gap: 32px;
    }

    .hero-grid .diagram {
        padding: 22px;
    }

    .hero-grid .diagram-box {
        padding-right: 18px;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 5.6vw, 4.25rem);
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: auto;
    }

    .hero-small .container {
        grid-template-columns: 1fr 180px;
        gap: 30px;
    }

    .hero-small .container::after {
        width: 180px;
    }
}

@media (max-width: 700px) {
    .logo-wordmark {
        display: none;
    }

    .hero-small .container {
        grid-template-columns: 1fr;
    }

    .hero-small .container::after {
        display: none;
    }

    .diagram {
        padding: 18px;
        border-radius: 22px;
    }

    .card {
        min-height: 0;
    }
}
