/* ── Variables – SAP Fiori Horizon tokens ───────────────────── */
:root {
    --navy:       #05132d;              /* hero / dark sections   */
    --navy-mid:   #0b1f47;
    --sap-blue:   #0070f2;              /* --sapBrandColor        */
    --sap-blue-d: #0064d9;             /* --sapHighlightColor    */
    --teal:       #0070f2;              /* accent → SAP Blue      */
    --teal-dark:  #0064d9;
    --footer:     #101d2a;
    --white:      #ffffff;              /* --sapBaseColor         */
    --light:      #f5f6f7;             /* --sapBackgroundColor   */
    --gray:       #556b82;             /* --sapContent_LabelColor*/
    --border:     #bcc3ca;             /* --sapField_BorderColor */
    --font:       "72","72full",Arial,Helvetica,sans-serif;
    --nav-h:      72px;
    --radius:     .75rem;              /* --sapGroup_BorderCornerRadius */
    --shadow:     0 0 .125rem 0 rgba(34,53,72,.18),
                  0 .125rem .375rem 0 rgba(34,53,72,.16);
    --shadow-md:  0 0 0 .0625rem rgba(34,53,72,.10),
                  0 .25rem .75rem 0 rgba(34,53,72,.18);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font);
    font-size: 1rem;                /* sapFontSize: 16px */
    line-height: 1.8;
    color: #131e29;                 /* sapTextColor      */
    background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}
.section-light { background: var(--light); overflow-x: hidden; }
.section-dark  { background: var(--navy); color: var(--white); }

.section-title {
    text-align: center;
    font-size: clamp(1.4rem, 2.5vw, 1.875rem);  /* Fiori Heading H2 ~30px */
    font-weight: 700;
    margin-bottom: 3rem;
    color: inherit;
    letter-spacing: -.01em;
    position: relative;
    padding-bottom: 1.25rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--sap-blue), #64aeff);
}

/* ── Buttons – Fiori Horizon style ──────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    padding: .625rem 1.5rem;        /* Fiori compact button sizing */
    border-radius: .5rem;           /* sapButton_BorderCornerRadius */
    font-family: var(--font);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer;
    border: .0625rem solid transparent;
    transition: background .15s, box-shadow .15s, border-color .15s;
    text-decoration: none;
}

.btn-primary {
    background: var(--sap-blue);    /* sapButton_Emphasized_Background */
    color: var(--white);
    border-color: var(--sap-blue);
    box-shadow: 0 0 0 .0625rem transparent;
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.22), transparent);
    transform: skewX(-20deg);
    transition: left .55s ease;
}
.btn-primary:hover::after { left: 135%; }
.btn-primary:hover {
    background: var(--sap-blue-d);
    border-color: var(--sap-blue-d);
    text-decoration: none;
    color: var(--white);
    box-shadow: 0 0 0 .0625rem var(--sap-blue-d);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.65);
}
.btn-outline:hover {
    background: rgba(255,255,255,.10);
    border-color: var(--white);
    color: var(--white);
    text-decoration: none;
}

.btn-full { width: 100%; justify-content: center; }

/* ── Navigation ─────────────────────────────────────────────── */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(5,19,45,0.72);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img { height: 40px; width: auto; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: rgba(255,255,255,.8);
    font-size: .95rem;
    font-weight: 500;
    transition: color .15s;
}
.nav-link:hover, .nav-link.active {
    color: var(--white);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .25rem;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all .25s;
}

/* ── Hero ───────────────────────────────────────────────────── */
@keyframes orb-drift {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(30px, -40px) scale(1.08); }
    66%  { transform: translate(-20px, 20px) scale(0.94); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes orb-drift-b {
    0%   { transform: translate(0, 0) scale(1); }
    40%  { transform: translate(-35px, 25px) scale(1.06); }
    75%  { transform: translate(18px, -30px) scale(0.97); }
    100% { transform: translate(0, 0) scale(1); }
}

.hero {
    background: var(--navy);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-h);
    position: relative;
    overflow: hidden;
}

/* Animated gradient orbs */
.hero-bg-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.hero-bg-orbs span {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
    opacity: .45;
}
.hero-bg-orbs span:nth-child(1) {
    width: 520px; height: 520px;
    background: radial-gradient(circle, #0070f2 0%, transparent 70%);
    top: -120px; left: -80px;
    animation: orb-drift 14s ease-in-out infinite;
}
.hero-bg-orbs span:nth-child(2) {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #0854a0 0%, transparent 70%);
    bottom: -100px; right: 15%;
    animation: orb-drift-b 18s ease-in-out infinite;
    opacity: .35;
}
.hero-bg-orbs span:nth-child(3) {
    width: 280px; height: 280px;
    background: radial-gradient(circle, #00a8ab 0%, transparent 70%);
    top: 40%; right: 8%;
    animation: orb-drift 22s ease-in-out infinite reverse;
    opacity: .25;
}
/* Hero straight divider */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--sap-blue), #64aeff, var(--sap-blue), transparent);
    pointer-events: none;
}
/* dark-bg sections (about) have a dark wave */
#about.hero-wave-dark::after { background: var(--navy); }

.hero-code-bg {
    position: absolute;
    top: 50%; right: 0;
    transform: translateY(-50%);
    width: 48%; height: auto;
    opacity: .28;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.6) 25%, rgba(0,0,0,.9) 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.6) 25%, rgba(0,0,0,.9) 100%);
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: .75rem;
    font-weight: 600;
    color: #64aeff;                 /* SAP Blue light variant on dark bg */
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: .75rem;
}

.hero-headline {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, #fff 40%, #64aeff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.75);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-height: 520px;
    object-fit: cover;
    width: 100%;
    opacity: .55;
    border-radius: 0;
    box-shadow: none;
    mask-image: radial-gradient(ellipse 80% 80% at 55% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 55% 50%, black 30%, transparent 100%);
}

/* ── Services ───────────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    background-image: radial-gradient(circle, rgba(0,112,242,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    border-radius: var(--radius);
    padding: 2rem;
    margin-left: -2rem;
    margin-right: -2rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    border: .0625rem solid var(--border);   /* Fiori card border */
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: box-shadow .18s, border-color .18s;
    position: relative;
    overflow: hidden;
}
/* Fiori card top accent line */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: .25rem;
    background: var(--sap-blue);
    border-radius: var(--radius) var(--radius) 0 0;
    opacity: 0;
    transition: opacity .18s;
}
.service-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0,112,242,.30);
}
.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(0,112,242,.08);       /* SAP Blue tint */
    border-radius: .75rem;                 /* Fiori uses rounded rect, not circle */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    border: .0625rem solid rgba(0,112,242,.15);
}
.service-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--sap-blue);
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #131e29;                        /* sapTextColor */
    margin-bottom: .75rem;
}
.service-card p {
    font-size: .875rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ── Tech Network Canvas ─────────────────────────────────────── */
.tech-network-wrap {
    margin-top: 3rem;
    margin-bottom: 1rem;
    margin-left:  calc(-50vw + 50% + 210px);
    margin-right: calc(-50vw + 50% + 210px);
    width: calc(100vw - 420px);
    height: 780px;
    position: relative;
}
.tech-network-wrap canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    -webkit-mask-image: radial-gradient(ellipse 95% 90% at 50% 50%, black 60%, transparent 100%);
    mask-image:         radial-gradient(ellipse 95% 90% at 50% 50%, black 60%, transparent 100%);
}

/* ── Tech Tags (legacy, kept for tag-sm) ────────────────────── */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    padding-top: 1rem;
}

.tag {
    background: rgba(0,112,242,.06);    /* Fiori token background */
    color: var(--sap-blue);
    border: .0625rem solid rgba(0,112,242,.35);
    border-radius: .375rem;             /* sapButton_TokenBorderCornerRadius */
    padding: .25rem .75rem;
    font-size: .75rem;
    font-weight: 500;
}

/* ── Tech Mobile Grid (shown only on mobile) ────────────────── */
.tech-mobile-grid {
    display: none;
}

@media (max-width: 900px) {
    .tech-network-wrap   { display: none; }
    .tech-mobile-grid {
        display: flex;
        flex-wrap: wrap;
        gap: .75rem;
        justify-content: center;
        padding: 1.5rem 0 2rem;
    }
    .tech-mobile-item {
        display: flex;
        align-items: center;
        gap: .5rem;
        background: var(--white);
        border: .0625rem solid var(--border);
        border-radius: .625rem;
        box-shadow: var(--shadow);
        font-weight: 600;
        color: #131e29;
        position: relative;
        flex-direction: column;
        text-align: center;
        padding: .875rem 1.25rem;
        transition: box-shadow .18s, border-color .18s;
    }
    .tech-mobile-item:hover {
        box-shadow: var(--shadow-md);
        border-color: rgba(0,112,242,.30);
    }
    .tech-mobile-item small {
        font-size: .72rem;
        font-weight: 400;
        color: var(--gray);
        display: block;
        margin-top: .1rem;
    }
    .tech-mobile-dot {
        display: block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--sap-blue);
        margin: 0 auto .35rem;
        opacity: .7;
    }
    /* Size variants */
    .tech-mobile-lg {
        font-size: 1rem;
        min-width: 140px;
        border-color: rgba(0,112,242,.25);
        border-width: .125rem;
    }
    .tech-mobile-lg .tech-mobile-dot {
        width: 10px; height: 10px;
        opacity: 1;
    }
    .tech-mobile-md {
        font-size: .9375rem;
        min-width: 120px;
    }
    .tech-mobile-sm {
        font-size: .875rem;
        min-width: 100px;
        color: var(--gray);
    }
    .tech-mobile-sm .tech-mobile-dot {
        background: var(--gray);
        width: 6px; height: 6px;
    }
}

/* ── About ───────────────────────────────────────────────────── */
.about-section {
    position: relative;
    overflow: hidden;
}
.about-section::before,
.about-section::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--sap-blue), #64aeff, var(--sap-blue), transparent);
    pointer-events: none;
    z-index: 2;
}
.about-section::before { top: 0; }
.about-section::after  { bottom: 0; }

/* Subtle background orbs (teal/indigo tones, different from hero) */
.about-bg-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.about-bg-orbs span {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    will-change: transform;
}
.about-bg-orbs span:nth-child(1) {
    width: 420px; height: 420px;
    background: radial-gradient(circle, #0854a0 0%, transparent 70%);
    top: -80px; right: -60px;
    opacity: .4;
    animation: orb-drift-b 20s ease-in-out infinite;
}
.about-bg-orbs span:nth-child(2) {
    width: 320px; height: 320px;
    background: radial-gradient(circle, #00a8ab 0%, transparent 70%);
    bottom: -60px; left: 10%;
    opacity: .22;
    animation: orb-drift 26s ease-in-out infinite reverse;
}

.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Photo with gradient ring */
.about-photo { text-align: center; }

.about-photo-ring {
    display: inline-block;
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sap-blue), #64aeff, #00a8ab);
    box-shadow: 0 0 40px rgba(0,112,242,.35);
    margin-bottom: 1.5rem;
}
.about-photo-ring img {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: contrast(1.12) brightness(1.06) saturate(1.1);
    border: 3px solid var(--navy);
}

/* Stats below photo */
.about-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.about-stat {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: .75rem 1.25rem;
    text-align: center;
}
.about-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #fff 40%, #64aeff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.about-stat span {
    font-size: .78rem;
    color: rgba(255,255,255,.55);
    white-space: nowrap;
}

/* Glassmorphism text card */
.about-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 2.5rem;
}
.about-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: .75rem;
    color: var(--white);
}

.about-tagline {
    font-size: 1.05rem;
    font-style: italic;
    color: #64aeff;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.about-card p {
    color: rgba(255,255,255,.80);
    margin-bottom: 1rem;
    font-size: .9375rem;
}

/* Tech badges */
.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1.25rem 0 1.75rem;
}
.about-badge {
    background: rgba(0,112,242,.18);
    color: #64aeff;
    border: 1px solid rgba(0,112,242,.35);
    border-radius: .375rem;
    padding: .25rem .75rem;
    font-size: .8rem;
    font-weight: 500;
}

/* ── Contact ─────────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.contact-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    stroke: var(--teal);
    margin-top: .2rem;
}
.contact-item div {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.contact-item strong {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray);
}
.contact-item a, .contact-item span {
    color: #131e29;
    font-size: .875rem;
}
.contact-item a:hover { color: var(--sap-blue); }

/* Contact Form – Fiori Horizon input style */
.contact-form {
    background: var(--white);
    border-radius: var(--radius);
    border: .0625rem solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: .75rem;              /* sapFontSmallSize */
    font-weight: 600;
    color: var(--gray);             /* sapContent_LabelColor */
    text-transform: uppercase;
    letter-spacing: .04em;
}

.form-group input,
.form-group textarea {
    padding: .625rem .75rem;
    border: .0625rem solid var(--border);   /* sapField_BorderColor */
    border-radius: .5rem;                   /* Fiori input radius */
    font-family: var(--font);
    font-size: .875rem;
    color: #131e29;                         /* sapTextColor */
    transition: border-color .12s, box-shadow .12s;
    outline: none;
    background: var(--white);
}
.form-group input:hover,
.form-group textarea:hover {
    border-color: #8da0b3;                  /* sapField_Hover_BorderColor */
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--sap-blue);          /* sapField_Focus_BorderColor */
    box-shadow: 0 0 0 .125rem rgba(0,112,242,.20);  /* Fiori focus ring */
}

.form-group textarea { resize: vertical; min-height: 120px; }

.char-count {
    font-size: .75rem;
    color: var(--gray);
    text-align: right;
    margin-top: .15rem;
}

.form-check {
    flex-direction: row;
    align-items: flex-start;
    gap: .6rem;
}
.form-check input[type="checkbox"] {
    margin-top: .2rem;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--sap-blue);
}
.form-check label {
    font-size: .8rem;
    color: var(--gray);
    font-weight: 400;
    cursor: pointer;
}

.required { color: #aa0808; }           /* sapNegativeColor */

/* ── Subpages (Impressum / Datenschutz) ─────────────────────── */
.subpage-hero {
    background: var(--navy);
    padding: calc(var(--nav-h) + 2.5rem) 0 2.5rem;
    color: var(--white);
}
.subpage-hero h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
}
.prose {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}
.prose h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #131e29;
    margin: 2rem 0 .5rem;
}
.prose p,
.prose address {
    font-style: normal;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: .75rem;
}
.prose a { color: var(--sap-blue); }

/* ── Footer ──────────────────────────────────────────────────── */
#footer {
    background: var(--footer);
    color: rgba(255,255,255,.7);
    padding: 2rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo img {
    filter: brightness(0) invert(1);
    opacity: .8;
}

.footer-deco {
    width: 44px !important;
    height: 44px !important;
    border-radius: 8px;
    object-fit: cover;
    opacity: .70;
    filter: none !important;
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}
.footer-links a {
    color: rgba(255,255,255,.65);
    font-size: .85rem;
    transition: color .15s;
}
.footer-links a:hover {
    color: var(--white);
    text-decoration: none;
}

.footer-group-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 500;
    color: rgba(255,255,255,.5);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 99px;
    padding: .3rem .85rem;
    text-decoration: none;
    letter-spacing: .02em;
    transition: color .2s, border-color .2s, background .2s;
}
.footer-group-link:hover {
    color: #fff;
    border-color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.06);
    text-decoration: none;
}

.footer-copy {
    font-size: .8rem;
    color: rgba(255,255,255,.45);
}

/* ── Success / Error – Fiori MessageStrip colors ─────────────── */
.form-alert {
    padding: .75rem 1rem;
    border-radius: var(--radius);
    font-size: .875rem;
    margin-bottom: 1rem;
    border-left: .25rem solid;
}
.form-alert-success { background: #f1fdf6; color: #256f3a; border-color: #256f3a; }
.form-alert-error   { background: #fdf1f1; color: #aa0808; border-color: #aa0808; }

/* ── Network ─────────────────────────────────────────────────── */
.section-intro {
    text-align: center;
    max-width: 680px;
    margin: -1.5rem auto 3rem;
    color: rgba(255,255,255,.75);
    font-size: .95rem;
    line-height: 1.8;
}

.network-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.75rem;
    align-items: start;
}

.network-canvas-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(19,103,138,.35);
    background: rgba(5,19,45,.6);
}

#networkCanvas {
    display: block;
    width: 100%;
}

.network-detail {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--radius);
    padding: 1.75rem;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.network-hint {
    color: rgba(255,255,255,.35);
    font-size: .875rem;
    text-align: center;
    line-height: 1.7;
}

/* Detail panel content */
.nd-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.nd-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    font-weight: 700;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nd-name {
    font-size: .95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: .15rem;
}

.nd-sub {
    font-size: .8rem;
    color: rgba(255,255,255,.5);
}

.nd-link {
    display: inline-block;
    font-size: .78rem;
    color: #7dd3f0;
    margin-top: .2rem;
}
.nd-link:hover { color: #a5e5f8; text-decoration: none; }

.nd-bio {
    font-size: .85rem;
    color: rgba(255,255,255,.72);
    line-height: 1.75;
    margin-bottom: 1.1rem;
}

.nd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.tag-sm {
    font-size: .72rem;
    padding: .2rem .65rem;
    background: rgba(19,103,138,.35);
    color: #7dd3f0;
    border-color: rgba(19,103,138,.6);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-code-bg        { display: none; }
    .hero-bg-orbs        { display: none; }
    .hero-content        { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-image      { order: -1; }
    .hero-image img  { max-height: 320px; }
    .services-grid   { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; padding: 1rem; }
    .about-bg-orbs   { display: none; }
    .about-grid      { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .about-photo-ring img { width: 180px; height: 180px; }
    .about-card      { padding: 1.75rem; }
    .contact-grid    { grid-template-columns: 1fr; gap: 2.5rem; }
    .network-layout  { grid-template-columns: 1fr; }
    .network-detail  { min-height: auto; }
}

@media (max-width: 640px) {
    :root { --nav-h: 60px; }
    .nav-menu {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: var(--navy);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 8px 24px rgba(0,0,0,.3);
    }
    .nav-menu.open   { display: flex; }
    .nav-menu li     { width: 100%; }
    .nav-link        { display: block; padding: .75rem 1.5rem; }
    .nav-toggle      { display: flex; }

    .form-row        { grid-template-columns: 1fr; }
    .hero-sub        { max-width: 100%; }
    .section         { padding: 3.5rem 0; }
    .footer-inner    { flex-direction: column; align-items: flex-start; }
}
