/* asdqwe Kft. — site styles (shared by hu/ and en/) */

:root {
    --bg: #0c0f0d;
    --surface: #131815;
    --line: #232a25;
    --line-2: #323b35;
    --text: #e2e7e3;
    --muted: #97a19a;
    --faint: #6c766f;
    --accent: #51ea1e;
    --accent-ink: #0c0f0d;
    --signal: #f58220;
    --paper: #eceeea;

    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --wrap: 1120px;
    --gutter: 16px;
    --nav-h: 60px;
}

@media (min-width: 720px) {
    :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 17px/1.6 var(--sans);
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

.i {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100;
    padding: 8px 14px;
    background: var(--accent);
    color: var(--accent-ink);
}
.skip:focus { left: 8px; }

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

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-h);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.nav .wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.nav-brand img { height: 28px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    font-size: 15px;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.lang { display: flex; gap: 6px; color: var(--faint); }
.lang a[aria-current] { color: var(--text); font-weight: 600; }

.nav-toggle {
    display: none;
    padding: 6px 12px;
    background: none;
    border: 1px solid var(--line-2);
    border-radius: 3px;
    color: var(--text);
    font: 500 14px var(--sans);
    cursor: pointer;
}

@media (max-width: 859px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 4px var(--gutter) 16px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
    }
    .nav.is-open .nav-links { display: flex; }
    .nav-links > li > a { display: block; padding: 11px 0; font-size: 17px; }
    .nav-links .lang { padding-top: 10px; font-size: 17px; }
}

/* ---------- Shared bits ---------- */

.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--line); }
@media (max-width: 719px) { .section { padding: 56px 0; } }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -0.015em; }
.section-head p { margin-top: 10px; color: var(--muted); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    border-radius: 3px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
    font: 600 15px var(--sans);
    cursor: pointer;
}
.btn:hover { text-decoration: none; background: #6ff043; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: transparent; border-color: var(--muted); }
.btn svg { width: 16px; height: 16px; }

.kind { font-size: 14px; color: var(--faint); }
.kind b { font-weight: 500; color: var(--accent); }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 88px; }
.hero .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.hero h1 {
    font-family: var(--mono);
    font-weight: 700;
    font-size: clamp(36px, 5.2vw, 58px);
    letter-spacing: -0.03em;
    line-height: 1.08;
}
.hero h1 span { color: var(--accent); }
.hero-lead { margin-top: 22px; max-width: 500px; color: var(--muted); font-size: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* Terminal window, GNOME-style title bar with bash default prompt colours */
.term {
    border: 1px solid #3a3f3c;
    border-radius: 6px 6px 3px 3px;
    background: #121212;
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .9);
    font: 400 14px/1.7 var(--mono);
    overflow: hidden;
}
.term-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 7px 10px;
    background: #2b2b2b;
    border-bottom: 1px solid #1b1b1b;
    color: #cfcfcf;
    font: 600 13px var(--sans);
}
.term-bar span { grid-column: 2; }
.term-buttons { display: flex; justify-content: flex-end; gap: 6px; }
.term-buttons i {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3d3d3d;
}
.term-buttons svg { width: 9px; height: 9px; stroke: #cfcfcf; stroke-width: 2.4; fill: none; }
.term-body { padding: 14px 16px 18px; color: #d0d0d0; }
.term .user { color: #8ae234; font-weight: 700; }
.term .path { color: #729fcf; font-weight: 700; }
.term .out { display: grid; grid-template-columns: 6ch 1fr; }
.term .key { color: var(--signal); }
.term .caret {
    display: inline-block;
    width: .6em;
    height: 1.15em;
    background: #d0d0d0;
    vertical-align: text-bottom;
    animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 479px) {
    .term { font-size: 12.5px; }
    .term-body { padding: 12px; }
}

@media (max-width: 859px) {
    .hero { padding: 40px 0 56px; }
    .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Services ---------- */

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
    border: 1px solid var(--line-2);
    border-radius: 3px;
    background: var(--surface);
}
.services li { padding: 30px 30px 34px; border-top: 2px solid transparent; }
.services li + li { border-left: 1px solid var(--line-2); }
.services li:hover { border-top-color: var(--accent); }
.services .i { width: 28px; height: 28px; margin-bottom: 20px; color: var(--accent); stroke-width: 1.6; }
.services h3 { font-size: 19px; }
.services p { margin-top: 10px; color: var(--muted); font-size: 16px; }
@media (max-width: 859px) {
    .services { grid-template-columns: 1fr; }
    .services li { padding: 24px 20px 26px; }
    .services li + li { border-left: 0; border-top: 1px solid var(--line-2); }
    .services li:hover { border-top-color: var(--line-2); }
    .services li:first-child:hover { border-top-color: transparent; }
}

/* ---------- Projects ---------- */

.featured {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    border: 1px solid var(--line-2);
    border-radius: 3px;
    background: var(--surface);
}
.featured-body { padding: 36px; }
.featured-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.featured-client img { height: 36px; width: auto; }
.featured h3 { margin-top: 22px; font-size: clamp(24px, 2.8vw, 30px); letter-spacing: -0.01em; }
.featured-lead { margin-top: 12px; color: var(--muted); }

.spec { margin: 26px 0 0; font-size: 15.5px; line-height: 1.5; }
.spec div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}
.spec dt { color: var(--faint); }
.spec dd { margin: 0; }

.featured-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 32px 28px;
    border-left: 1px solid var(--line-2);
    background: radial-gradient(circle at 50% 50%, rgba(81, 234, 30, .06), transparent 65%), var(--bg);
}
.featured-visual svg { width: 100%; max-width: 440px; margin: 0 auto; }
.featured-visual figcaption {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 22px;
    margin-top: 18px;
    font-size: 14px;
    color: var(--muted);
}
.legend-power::before,
.legend-signal::before {
    content: "";
    display: inline-block;
    width: 18px;
    margin-right: 8px;
    vertical-align: middle;
    border-top: 2px solid var(--accent);
}
.legend-signal::before { border-top: 2px dashed var(--signal); }

.wire { fill: none; stroke: rgba(81, 234, 30, .35); stroke-width: 1.5; }
.wire-flow { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 3 13; stroke-linecap: round; animation: flow 2.8s linear infinite; }
.wire-flow.rev { animation-direction: reverse; }
.wire-signal { fill: none; stroke: var(--signal); stroke-width: 1.5; stroke-dasharray: 4 5; animation: flow 4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.joint circle { fill: var(--accent); }
.joint-signal { fill: var(--signal); }
.node rect { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
.node-ext rect { stroke-dasharray: 4 3; }
.node .ico { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.node-ext .ico { stroke: var(--signal); }
.node .t { fill: var(--text); font: 600 15px var(--sans); }
.node .s { fill: var(--muted); font: 400 13px var(--sans); }
.hub rect { fill: #142012; stroke: var(--accent); stroke-width: 1.5; }
.hub .hub-halo { fill: none; stroke: rgba(81, 234, 30, .18); stroke-width: 4; }
.hub .t { fill: var(--accent); font: 700 22px var(--mono); }
.hub .s { fill: var(--muted); font: 400 13px var(--sans); }

@media (max-width: 959px) {
    .featured { grid-template-columns: 1fr; }
    .featured-visual { border-left: 0; border-top: 1px solid var(--line-2); padding: 24px 16px; }
}
@media (max-width: 599px) {
    .featured-body { padding: 24px 18px 22px; }
    .spec div { grid-template-columns: 1fr; gap: 0; }
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px 28px;
    margin-top: 56px;
}
@media (max-width: 379px) { .project-grid { grid-template-columns: 1fr; } }

.card {
    display: block;
    width: 100%;
    padding: 0;
    text-align: left;
    color: inherit;
    font: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}
.card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 14px;
}
.card h3 { margin-top: 4px; font-size: 19px; }
.card p { margin-top: 6px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.card:hover h3 { color: var(--accent); }

a.card:hover { text-decoration: none; }
.featured-more { margin-top: 24px; }
.card-ph {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    margin-bottom: 14px;
    border-radius: 3px;
    background: radial-gradient(circle at 50% 50%, rgba(81, 234, 30, .08), transparent 70%), var(--surface);
}
.card-ph svg { width: 60%; }
.card-static { cursor: default; }
.card-static:hover h3 { color: inherit; }
.ph-pass { fill: var(--accent); font: 700 9px var(--mono); }
.ph-hub { fill: #142012; stroke: var(--accent); stroke-width: 1.2; }
.ph-node { fill: var(--bg); stroke: var(--line-2); stroke-width: 1.2; }
.card-ph .wire { stroke: var(--accent); stroke-width: 1.2; }
.card-ph .wire-signal { stroke-width: 1.2; animation: none; }

/* ---------- Project pages ---------- */

.page { padding: 40px 0 88px; }
.crumbs { font-size: 14px; color: var(--faint); }
.crumbs a { color: var(--muted); }
.page-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 32px;
    margin-top: 32px;
}
.page-head h1 { margin-top: 6px; font-size: clamp(32px, 4.6vw, 48px); letter-spacing: -0.02em; }
.page-lead { margin-top: 14px; max-width: 720px; color: var(--muted); font-size: 19px; }
.page-client {
    display: grid;
    place-items: center;
    height: 72px;
    padding: 10px 20px;
    background: #fff;
    border-radius: 3px;
}
.page-client img { height: 48px; width: auto; }
.page-client-dark { padding: 0; background: none; }
.page-client-dark img { height: 56px; }
.page-visual { margin-top: 40px; }
.page-img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 3px; }
.diagram {
    margin: 0;
    padding: 36px 24px;
    border: 1px solid var(--line-2);
    border-radius: 3px;
    background: radial-gradient(circle at 50% 50%, rgba(81, 234, 30, .06), transparent 65%), var(--bg);
}
.diagram svg { width: 100%; max-width: 520px; margin: 0 auto; }
.diagram figcaption {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 22px;
    margin-top: 18px;
    font-size: 14px;
    color: var(--muted);
}
.prose { max-width: 760px; margin-top: 48px; }
.prose > p { margin-top: 16px; }
.prose > p:first-child { margin-top: 0; }
.prose h2 { margin-top: 44px; font-size: 24px; letter-spacing: -0.01em; }
.prose ul { margin-top: 12px; padding-left: 20px; }
.prose li { margin-top: 6px; }
.prose li::marker { color: var(--faint); }
.prose .spec { margin-top: 14px; }
.prose .spec div { grid-template-columns: 170px 1fr; }
.cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 64px;
    padding: 30px 32px;
    border: 1px solid var(--line-2);
    border-radius: 3px;
    background: var(--surface);
}
.cta h2 { font-size: 22px; }
.cta p { margin-top: 6px; color: var(--muted); }
.cta .contact-actions { margin-top: 0; }
.more { margin-top: 80px; }
.more h2 { font-size: 24px; }
.more .project-grid { margin-top: 24px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 20px; }
.more .card h3 { font-size: 17px; }
@media (max-width: 719px) {
    .page { padding: 24px 0 56px; }
    .page-head { grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
    .page-client { justify-self: start; height: 60px; }
    .page-client img { height: 40px; }
    .page-lead { font-size: 17px; }
    .prose { margin-top: 36px; }
    .prose .spec div { grid-template-columns: 1fr; }
    .cta { padding: 22px 18px; }
    .more { margin-top: 56px; }
    .more .project-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
}

/* ---------- Partners ---------- */

.partners { padding: 56px 0 64px; background: var(--paper); color: #1d241f; }
.partners h2 { font-size: 22px; }
.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    list-style: none;
}
.logo-grid li { flex: 0 1 calc((100% - 4 * 10px) / 5); }
.logo-grid a {
    display: grid;
    place-items: center;
    height: 92px;
    padding: 16px 22px;
    background: #fff;
    border: 1px solid #d9ddd8;
    border-radius: 3px;
}
.logo-grid a:hover { border-color: #9da59f; }
.logo-grid img { max-height: 56px; width: auto; object-fit: contain; }
@media (max-width: 859px) {
    .logo-grid li { flex-basis: calc((100% - 2 * 10px) / 3); }
}
@media (max-width: 479px) {
    .logo-grid li { flex-basis: calc((100% - 10px) / 2); }
    .logo-grid a { height: 78px; padding: 12px; }
    .logo-grid img { max-height: 44px; }
}

/* ---------- Career ---------- */

.job {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 28px 30px;
    border: 1px solid var(--line-2);
    border-radius: 3px;
    background: var(--surface);
}
.job h3 { margin-top: 6px; font-size: 22px; }
.job p { margin-top: 8px; color: var(--muted); max-width: 640px; }
@media (max-width: 719px) {
    .job { grid-template-columns: 1fr; padding: 22px 18px; }
    .job .btn { justify-self: start; }
}

/* ---------- Team ---------- */

.team {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    list-style: none;
}
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.member-ph {
    aspect-ratio: 1;
    border: 1px solid var(--line-2);
    border-radius: 3px;
    background: var(--surface);
    overflow: hidden;
}
.member-ph svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--faint);
    stroke-width: 2;
}
.member-info { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-top: 12px; }
.member h3 { font-size: 18px; }
.member p { margin-top: 2px; font-size: 15px; color: var(--muted); }
.member-link { flex: none; padding: 4px; color: var(--faint); }
.member-link:hover { color: var(--accent); }
.member-link svg { width: 18px; height: 18px; }
@media (max-width: 999px) { .team { grid-template-columns: repeat(3, 1fr); gap: 24px 16px; } }
@media (max-width: 599px) { .team { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Contact ---------- */

.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
.contact h2 { font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -0.015em; }
.contact-lead { margin-top: 12px; color: var(--muted); max-width: 440px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.company h3 { font-size: 18px; }
.company dl { margin: 12px 0 0; font-size: 15.5px; }
.company dl div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.company dt { color: var(--faint); }
.company dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 859px) { .contact { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 479px) { .company dl div { grid-template-columns: 1fr; gap: 0; } }

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

.footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer img { height: 20px; width: auto; }

/* ---------- Dialogs ---------- */

.modal {
    width: min(740px, calc(100% - 24px));
    max-height: calc(100% - 48px);
    padding: 0;
    border: 1px solid var(--line-2);
    border-radius: 4px;
    background: var(--surface);
    color: var(--text);
    overflow: auto;
    overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(0, 0, 0, .75); }
.modal-media { aspect-ratio: 16 / 9; background: var(--bg); }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 26px 30px 30px; }
.modal-body h2 { margin-top: 6px; font-size: clamp(24px, 3.2vw, 28px); }
.modal-intro { margin-top: 6px; color: var(--muted); }
.modal-body > p:not(.modal-intro):not(.kind) { margin-top: 16px; }
.modal-body h3 { margin-top: 24px; font-size: 16px; }
.modal-body ul { margin-top: 8px; padding-left: 20px; }
.modal-body li { margin-top: 4px; }
.modal-body li::marker { color: var(--faint); }
.modal-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.modal-client {
    display: grid;
    place-items: center;
    height: 56px;
    padding: 8px 16px;
    background: #fff;
    border-radius: 3px;
}
.modal-client img { max-height: 40px; width: auto; }
.modal-close {
    position: sticky;
    top: 10px;
    float: right;
    z-index: 2;
    margin: 10px 10px -48px 0;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-2);
    border-radius: 3px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}
.modal-close:hover { border-color: var(--muted); }
.modal-close:focus:not(:focus-visible) { outline: none; }
.modal-close svg { width: 16px; height: 16px; }
@media (max-width: 599px) { .modal-body { padding: 22px 18px 24px; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .term .caret, .wire-flow, .wire-signal { animation: none; }
}
