/* BRIEFANTEC IT SERVICE / V29 — dark technical product presentation */
:root {
    --color-bg: #050b13;
    --color-bg-deep: #03070d;
    --color-surface: #081726;
    --color-surface-2: #0b1b2c;
    --color-line: rgba(99, 174, 222, .19);
    --color-accent: #43dbff;
    --color-accent-2: #287eff;
    --color-muted: #aabac9;
    --max-width: 1320px;
    --header-height: 86px;
}

html { scroll-padding-top: 100px; }
body {
    background: #040912;
    color: #f2f7fc;
    font-family: Inter, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}
body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse 42vw 32vw at 93% 12%, rgba(20, 111, 221, .13), transparent 75%);
}
::selection { color: #031018; background: #8be9ff; }
.container { width: min(calc(100% - 64px), var(--max-width)); }

/* Navigation */
.site-header {
    background: rgba(3, 9, 17, .84);
    border-bottom: 1px solid rgba(141, 194, 229, .14);
    backdrop-filter: blur(22px) saturate(120%);
}
.site-header.is-scrolled { background: rgba(3, 9, 17, .96); }
.header-inner { gap: 26px; }
.brand-picture, .brand-logo { width: 206px; }
.main-nav ul { gap: clamp(12px, 1.55vw, 25px); }
.main-nav a { font-weight: 590; font-size: .87rem; color: #aebfcd; }
.main-nav a:hover, .main-nav a.is-active { color: white; }
.main-nav ul a::after { bottom: -15px; height: 1px; }
.language-switch { font-size: .75rem; }
.menu-toggle { cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid #79eaff; outline-offset: 4px; }

/* Type and spacing */
.eyebrow {
    color: #7fe8ff; letter-spacing: .19em; font-weight: 770;
    font-size: .7rem;
}
.eyebrow::after { background: rgba(121, 232, 255, .38); }
.section { padding: clamp(76px, 8vw, 124px) 0; }
.section-heading { margin-bottom: 42px; }
.section-heading h2, .intro-heading h2, .history-copy h2, .two-column h2, .closing-panel h2 {
    letter-spacing: -.05em; font-weight: 760; line-height: 1.08;
}
.section-heading-split { align-items: center; gap: 72px; }
.section-heading-split > p { max-width: 490px; color: #99afc0; }

/* Hero and live topology */
.hero, .subhero {
    background: #040b14;
    border-bottom: 1px solid rgba(98, 185, 225, .16);
    isolation: isolate;
}
.hero { min-height: 760px; }
.hero-media, .subhero-media {
    background: radial-gradient(circle at 77% 42%, rgba(19, 121, 224, .24), transparent 32%),
                radial-gradient(circle at 32% 10%, rgba(30, 104, 172, .10), transparent 45%);
    filter: none;
}
.hero-vignette, .subhero-vignette {
    background: linear-gradient(90deg, rgba(3, 9, 17, .92), rgba(3, 9, 17, .22) 78%),
                linear-gradient(0deg, rgba(3, 9, 17, .6), transparent 58%);
}
.hero-technical-grid {
    position: absolute; inset: 0; z-index: -2; opacity: .26; pointer-events: none;
    background-image: linear-gradient(rgba(117, 185, 225, .12) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(117, 185, 225, .12) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(90deg, transparent, black 27%, black 90%, transparent);
    animation: grid-drift 25s linear infinite;
}
.hero-shell {
    grid-template-columns: minmax(0, .98fr) minmax(440px, 1.02fr);
    gap: clamp(36px, 5vw, 80px); min-height: 760px;
    padding-top: calc(var(--header-height) + 70px); padding-bottom: 95px;
}
.hero-copy { max-width: 730px; }
.hero-overline { padding: 8px 13px 8px 11px; border: 1px solid rgba(87, 202, 244, .26); border-radius: 50px; background: rgba(19, 82, 120, .12); }
.hero-overline::after { display: none; }
.signal-dot { display: inline-block; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: #7effd5; box-shadow: 0 0 0 4px rgba(126, 255, 213, .09), 0 0 14px rgba(126, 255, 213, .6); }
.hero h1 {
    max-width: 800px; margin-top: 18px;
    font-size: clamp(3.35rem, 5.7vw, 6.3rem);
    line-height: .99; letter-spacing: -.07em; font-weight: 780;
}
.hero h1 span {
    color: #7ce8ff;
    background: linear-gradient(105deg, #8ff4ff, #3bc9f2 58%, #559aff);
    background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: none;
}
.hero-lead { margin-top: 30px; max-width: 615px; font-size: 1.05rem; color: #a5b8c8; }
.hero-actions { margin-top: 35px; gap: 26px; }
.primary-button {
    border: 1px solid #71dcff; padding: 16px 24px; border-radius: 11px;
    background: linear-gradient(115deg, #79e4ff, #36b8eb);
    color: #032236; box-shadow: 0 9px 38px rgba(28, 168, 233, .22);
}
.primary-button:hover { box-shadow: 0 12px 42px rgba(28, 168, 233, .34); }
.quiet-link {
    display: inline-flex; align-items: center; gap: 12px; color: #d7e9f3;
    text-decoration: none; font-size: .91rem; font-weight: 700;
}
.quiet-link svg { width: 17px; fill: none; stroke: #67dffa; stroke-width: 1.8; transition: transform .2s ease; }
.quiet-link:hover svg { transform: translateX(5px); }
.hero-proof { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 55px; color: #809bad; font-size: .78rem; }
.hero-proof em { font-style: normal; color: #4ac4eb; margin: 0 5px; }
.hero-since { width: auto; font-size: inherit; color: inherit; }
.hero-divider { width: 1px; height: 22px; background: rgba(135, 202, 231, .23); }
.hero-bottom-line { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(57, 202, 248, .7), transparent); }
.hero-bottom-line span { position: absolute; width: 25%; height: 2px; background: #9df3ff; filter: blur(2px); animation: line-travel 9s ease-in-out infinite; }

.system-panel {
    position: relative; min-width: 0; align-self: center; aspect-ratio: 1.09;
    border: 1px solid rgba(99, 189, 236, .23); border-radius: 25px; overflow: hidden;
    background: radial-gradient(circle at 50% 45%, rgba(19, 101, 164, .27), transparent 42%),
                linear-gradient(145deg, rgba(12, 34, 55, .85), rgba(3, 12, 23, .94));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 42px 110px rgba(1, 11, 32, .66), 0 0 70px rgba(28, 119, 221, .09);
}
.system-panel::before { content: ""; position: absolute; inset: 0; opacity: .2; background-image: radial-gradient(#72a9d8 .8px, transparent .8px); background-size: 22px 22px; }
.system-panel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border-top: 1px solid rgba(157, 241, 255, .38); pointer-events: none; }
.system-panel-top, .system-panel-bottom {
    position: absolute; z-index: 3; left: 25px; right: 25px; display: flex; align-items: center; justify-content: space-between;
    font-size: .62rem; font-weight: 780; letter-spacing: .15em; color: #87a8bc;
}
.system-panel-top { top: 23px; }
.system-panel-top > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.system-panel-bottom { bottom: 24px; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(97, 178, 220, .15); font-size: .55rem; }
.system-orbit { position: absolute; inset: 12% 9%; display: grid; place-items: center; }
.orbit { position: absolute; display: block; border: 1px solid rgba(79, 193, 248, .18); border-radius: 50%; }
.orbit-a { width: 78%; aspect-ratio: 1; animation: orbit-turn 34s linear infinite; border-style: dashed; }
.orbit-b { width: 58%; aspect-ratio: 1; border-color: rgba(75, 175, 240, .31); box-shadow: 0 0 35px rgba(16, 142, 231, .06); }
.orbit-c { width: 95%; aspect-ratio: 1; border-color: rgba(95, 172, 224, .11); }
.orbit-axis { position: absolute; background: linear-gradient(90deg, transparent, rgba(110, 193, 232, .19), transparent); }
.axis-x { height: 1px; width: 100%; } .axis-y { height: 1px; width: 100%; transform: rotate(90deg); }
.system-core {
    position: relative; z-index: 2; width: 57%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 13%; border: 1px solid rgba(98, 205, 250, .35); border-radius: 50%;
    background: radial-gradient(circle, rgba(24, 112, 171, .26), rgba(3, 15, 30, .98) 72%);
    box-shadow: 0 0 0 12px rgba(48, 151, 222, .035), inset 0 0 36px rgba(33, 117, 190, .1), 0 0 70px rgba(31, 147, 245, .12);
}
.system-core img { width: 100%; max-height: 90px; object-fit: contain; }
.system-core small { margin-top: 10px; color: #6d9bb5; font-size: clamp(.35rem, .45vw, .52rem); text-align: center; white-space: nowrap; letter-spacing: .07em; }
.orbit-node { position: absolute; z-index: 2; width: 10px; height: 10px; border-radius: 50%; background: #86edff; border: 2px solid #06283b; box-shadow: 0 0 0 6px rgba(90, 204, 255, .09), 0 0 24px rgba(72, 204, 249, .75); }
.node-one { top: 11%; right: 32%; } .node-two { left: 8%; top: 56%; } .node-three { right: 14%; bottom: 21%; }

/* Distinct product cards */
.services-stage { background: linear-gradient(180deg, #06111e, #060e19); }
.service-card { border-radius: 16px; background: linear-gradient(140deg, rgba(12, 31, 49, .84), rgba(5, 15, 26, .94)); }
.service-card:hover { transform: translateY(-6px); }
.product-stage, .solution-overview-stage { background: radial-gradient(circle at 90% 0%, rgba(18, 110, 199, .13), transparent 36%), #040a12; }
.product-stage .solution-grid, .solution-overview-stage .solution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product-card {
    min-height: 390px; display: flex; flex-direction: column; align-items: flex-start; position: relative;
    padding: 34px; border-radius: 20px; border: 1px solid rgba(90, 170, 222, .25);
    background: linear-gradient(153deg, rgba(15, 42, 65, .77), rgba(4, 14, 26, .94) 74%);
    box-shadow: inset 0 1px 0 rgba(181, 235, 255, .04);
    overflow: hidden; isolation: isolate;
}
.product-card::before {
    content: ""; position: absolute; z-index: -1; inset: -45% -25%; opacity: .13;
    background: radial-gradient(circle at 85% 35%, #2d9cff, transparent 38%);
    transition: opacity .35s ease, transform .6s ease;
}
.product-card::after {
    content: ""; position: absolute; right: -55px; top: -55px; width: 230px; height: 230px; border: 1px solid rgba(122, 203, 247, .11);
    border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 55px rgba(61, 160, 222, .025), 0 0 0 110px rgba(61,160,222,.018);
}
.product-card:hover { transform: translateY(-8px); border-color: rgba(95, 214, 255, .5); }
.product-card:hover::before { opacity: .32; transform: scale(1.1); }
.product-card-number { align-self: flex-end; font-size: .69rem; font-weight: 740; letter-spacing: .15em; color: #65849b; margin-bottom: 18px; }
.product-card .solution-card-top { gap: 13px; }
.product-card .solution-icon { width: 60px; height: 60px; background: rgba(32, 122, 182, .13); border-radius: 16px; }
.product-card .solution-icon svg { width: 30px; height: 30px; }
.product-card .solution-kicker { letter-spacing: .14em; font-size: .67rem; }
.product-card h2, .product-card h3 { margin: 28px 0 12px; font-size: clamp(1.75rem, 2.7vw, 2.45rem); letter-spacing: -.045em; }
.product-card p { line-height: 1.66; max-width: 450px; }
.product-card .solution-link { margin-top: auto; position: static; padding-top: 36px; color: #7de9ff; }
.product-card .solution-link svg { transition: transform .2s ease; }
.product-card:hover .solution-link svg { transform: translateX(6px); }
.product-card--betriebsportal::before { background: radial-gradient(circle at 85% 35%, #47d6c0, transparent 38%); }
.product-card--applock::before { background: radial-gradient(circle at 85% 35%, #778aff, transparent 38%); }
.products-all-link { display: inline-flex; margin-top: 32px; }

/* Detailed views and shared panels */
.subhero { overflow: hidden; }
.subhero-shell { padding-top: calc(var(--header-height) + 70px); padding-bottom: 74px; }
.subhero h1 { max-width: 770px; letter-spacing: -.06em; }
.subhero-visual {
    border: 1px solid rgba(95, 190, 239, .25); border-radius: 23px;
    background: radial-gradient(circle at 50% 35%, rgba(34, 128, 203, .18), transparent 55%), #081725;
    box-shadow: 0 28px 65px rgba(0,0,0,.23);
}
.subhero-visual::after { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(97, 170, 220, .09); border-radius: 14px; pointer-events: none; }
.subhero-icon { border-radius: 25px; box-shadow: 0 18px 45px rgba(7, 77, 135, .16); }
.detail-stage { background: #06101b; }
.detail-card {
    border-radius: 18px; border-color: rgba(100, 171, 219, .18);
    background: linear-gradient(145deg, rgba(14, 35, 52, .79), rgba(6, 17, 29, .88));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.detail-index { margin-bottom: 36px; }
.detail-card h2 { font-weight: 730; letter-spacing: -.03em; }
.detail-card li::before { background: #5fdcff; }
.closing-panel, .intro-panel, .history-panel, .about-story-panel {
    border: 1px solid rgba(98, 177, 226, .16);
    box-shadow: 0 20px 60px rgba(0,0,0,.14);
}
.site-footer { border-top: 1px solid rgba(123, 179, 217, .14); background: #030911; }
.footer-main { padding-top: 62px; padding-bottom: 44px; }
.footer-meta small { color: #8195a6; }
.footer-products { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px 21px; max-width: 550px; }
.footer-products a { color: #8db3c8; text-decoration: none; font-size: .8rem; }
.footer-products a:hover { color: #82e9ff; }

/* Progressive enhancement: content is visible when JS is unavailable. */
.motion-ready [data-reveal] {
    opacity: 0; transform: translateY(24px);
    transition: opacity .75s cubic-bezier(.2,.75,.25,1), transform .75s cubic-bezier(.2,.75,.25,1);
}
.motion-ready [data-reveal].is-visible { opacity: 1; transform: none; }
@keyframes orbit-turn { to { transform: rotate(360deg); } }
@keyframes grid-drift { to { background-position: 64px 64px; } }
@keyframes line-travel { 0%, 100% { transform: translateX(0); opacity: .1; } 50% { transform: translateX(300%); opacity: .85; } }

@media (max-width: 1170px) {
    .main-nav ul { gap: 12px; }
    .brand-picture, .brand-logo { width: 176px; }
    .hero-shell { grid-template-columns: 1fr 440px; gap: 34px; }
    .hero h1 { font-size: clamp(3rem, 5.5vw, 4.9rem); }
}
@media (min-width: 981px) and (max-width: 1120px) {
    .menu-toggle { display: block; }
    .main-nav {
        position: fixed; top: var(--header-height); left: 24px; right: 24px;
        margin: 0; padding: 18px; display: none; align-items: stretch;
        border: 1px solid var(--color-line); border-radius: 16px;
        background: rgba(3, 11, 18, .98); backdrop-filter: blur(18px);
        box-shadow: 0 24px 50px rgba(0,0,0,.4);
        max-height: calc(100dvh - var(--header-height) - 24px); overflow-y: auto;
    }
    .main-nav.is-open { display: grid; gap: 16px; }
    .main-nav ul { display: grid; gap: 0; }
    .main-nav li a { display: block; padding: 12px 8px; font-size: .96rem; }
    .main-nav ul a::after { bottom: 5px; }
    .language-switch { padding: 14px 8px 0; border-left: 0; border-top: 1px solid var(--color-line); }
}
@media (max-width: 980px) {
    :root { --header-height: 76px; }
    .container { width: min(calc(100% - 38px), var(--max-width)); }
    .main-nav { max-height: calc(100dvh - var(--header-height) - 24px); overflow-y: auto; }
    .main-nav ul { gap: 0; }
    .main-nav a { font-size: .96rem; }
    .hero { min-height: 0; }
    .hero-shell { grid-template-columns: 1fr; min-height: 0; gap: 36px; padding-top: calc(var(--header-height) + 64px); padding-bottom: 70px; }
    .hero-copy { max-width: 690px; }
    .hero h1 { font-size: clamp(3rem, 7vw, 5.2rem); }
    .hero-proof { margin-top: 32px; }
    .system-panel { width: min(100%, 650px); aspect-ratio: 1.35; }
    .system-orbit { inset: 8% 19%; }
    .section-heading-split { gap: 20px; }
    .subhero-shell { padding-top: calc(var(--header-height) + 60px); }
    .footer-products { justify-content: flex-start; }
}
@media (max-width: 720px) {
    :root { --header-height: 70px; }
    .container { width: min(calc(100% - 30px), var(--max-width)); }
    .brand-picture, .brand-logo { width: 168px; max-width: 52vw; }
    .hero-shell { gap: 28px; padding-top: calc(var(--header-height) + 35px); padding-bottom: 48px; }
    .hero h1 { margin-top: 14px; font-size: clamp(2.75rem, 11vw, 4.3rem); }
    .hero-lead { margin-top: 22px; font-size: .97rem; }
    .hero-actions { display: flex; gap: 20px; }
    .primary-button { width: auto; min-width: 0; justify-content: center; }
    .hero-proof { gap: 13px; font-size: .72rem; margin-top: 32px; }
    .hero-divider { display: none; }
    .system-panel { aspect-ratio: 1.12; border-radius: 18px; }
    .system-orbit { inset: 12% 10%; }
    .system-panel-top, .system-panel-bottom { left: 18px; right: 18px; }
    .system-panel-bottom { font-size: .47rem; }
    .system-core small { white-space: normal; font-size: .43rem; }
    .section { padding: 72px 0; }
    .product-stage .solution-grid, .solution-overview-stage .solution-grid { grid-template-columns: 1fr; gap: 15px; }
    .product-card { min-height: 345px; padding: 26px; }
    .product-card h2, .product-card h3 { font-size: 1.86rem; }
    .subhero-shell { padding-top: calc(var(--header-height) + 40px); }
}
@media (max-width: 430px) {
    .container { width: min(calc(100% - 26px), var(--max-width)); }
    .hero h1 { font-size: clamp(2.45rem, 11vw, 3.15rem); }
    .hero-actions { display: grid; align-items: start; gap: 18px; }
    .primary-button { width: max-content; max-width: 100%; }
    .hero-proof { display: grid; }
    .system-panel-top { font-size: .5rem; }
    .system-panel-bottom { gap: 5px; font-size: .42rem; }
    .orbit-node { width: 7px; height: 7px; }
    .product-card { min-height: 330px; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-technical-grid, .orbit-a, .hero-bottom-line span { animation: none !important; }
    .motion-ready [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .product-card:hover, .service-card:hover { transform: none; }
}
