/* KonsoleSSH bemutatkozó oldal — KDE Konsole ihlette sötét téma */

:root {
    --bg: #1b1d1e;
    --bg-alt: #232628;
    --bg-elev: #2b2f31;
    --fg: #e6e6e6;
    --fg-muted: #9aa0a3;
    --fg-dim: #6e7479;
    --accent: #f08a3c;
    --accent-hover: #ff9a4d;
    --accent-dim: #b86a2c;
    --green: #4ec27a;
    --border: #34383b;
    --border-soft: #2a2d30;
    --code-bg: #15171a;
    --kbd-bg: #2f3336;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    --max-width: 1100px;
    --radius: 10px;
    --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", "Source Code Pro", "Menlo", "Consolas", monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover,
a:focus-visible {
    color: var(--accent-hover);
    text-decoration: underline;
}

h1, h2, h3 {
    font-family: var(--font-sans);
    color: var(--fg);
    line-height: 1.2;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    margin-bottom: 12px;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 600;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent);
}

p {
    margin: 0 0 14px;
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--code-bg);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-soft);
}

kbd {
    font-family: var(--font-mono);
    font-size: 0.82em;
    background: var(--kbd-bg);
    color: var(--fg);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 0 var(--border-soft);
    white-space: nowrap;
}

/* === Site header (sticky nav) =========================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(27, 29, 30, 0.88);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 24px;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--fg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    transition: color 0.15s ease;
}

.brand:hover,
.brand:focus-visible {
    color: var(--accent);
    text-decoration: none;
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-menu {
    position: relative;
}

/* === Nyelvválasztó (zászló-dropdown) =================================== */

.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-elev);
    color: var(--fg);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.lang-toggle::-webkit-details-marker { display: none; }
.lang-toggle::marker { content: ""; }

.lang-toggle:hover,
.lang-toggle:focus-visible {
    border-color: var(--accent);
    outline: none;
}

.lang-menu[open] .lang-toggle {
    border-color: var(--accent);
}

.flag {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
        "Twemoji Mozilla", "Android Emoji", "EmojiOne Color", sans-serif;
    font-size: 1.2rem;
    line-height: 1;
    display: inline-block;
}

.lang-list {
    list-style: none;
    margin: 0;
    padding: 6px;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 100;
    animation: menu-fade-in 0.15s ease-out;
}

.lang-list li {
    margin: 0;
    padding: 0;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--fg-muted);
    text-decoration: none;
}

.lang-item .flag {
    font-size: 1.3rem;
}

.lang-active {
    color: var(--fg);
    font-weight: 600;
    background: var(--bg);
    cursor: default;
}

.lang-soon {
    opacity: 0.55;
    cursor: not-allowed;
}

.lang-soon em {
    margin-left: auto;
    font-style: normal;
    font-size: 0.78rem;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    order: -1;
}

.site-nav a {
    color: var(--fg-muted);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.93rem;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--fg);
    background: var(--bg-elev);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-elev);
    color: var(--fg);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    border-color: var(--accent);
    outline: none;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--fg);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

.section,
.hero {
    scroll-margin-top: 72px;
}

@media (max-width: 640px) {
    .site-header-inner {
        gap: 8px;
        padding: 10px 16px;
    }

    .brand {
        font-size: 0.95rem;
        gap: 8px;
    }

    .brand-icon {
        width: 28px;
        height: 28px;
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 16px;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 2px;
        min-width: 220px;
        padding: 6px;
        background: var(--bg-elev);
        border: 1px solid var(--border);
        border-radius: 8px;
        box-shadow: var(--shadow);
        z-index: 100;
    }

    .site-nav.is-open {
        display: flex;
        animation: menu-fade-in 0.15s ease-out;
    }

    .site-nav.is-open a {
        padding: 11px 16px;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .brand-name {
        display: none;
    }
}

@keyframes menu-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === Hero ============================================================== */

.hero {
    padding: 72px 0 56px;
    background:
        radial-gradient(circle at 20% 0%, rgba(240, 138, 60, 0.10), transparent 55%),
        radial-gradient(circle at 90% 10%, rgba(78, 194, 122, 0.06), transparent 50%),
        var(--bg);
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 56px;
    align-items: center;
}

.hero-text .eyebrow {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--fg-dim);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-text .tagline {
    font-size: 1.25rem;
    color: var(--fg);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-text .lead {
    font-size: 1.02rem;
    color: var(--fg-muted);
    max-width: 56ch;
    margin-bottom: 32px;
}

.hero-icon img {
    width: 240px;
    height: 240px;
    border-radius: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    background: var(--bg-elev);
}

.cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 12px 22px;
    font-size: 0.98rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, color 0.15s ease;
    text-decoration: none;
    line-height: 1.2;
}

.btn:hover,
.btn:focus-visible {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #1b1d1e;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--accent-hover);
    color: #1b1d1e;
}

.btn-secondary {
    background: var(--bg-elev);
    color: var(--fg);
    border-color: var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    border-color: var(--accent);
    color: var(--accent-hover);
    background: var(--bg-elev);
}

.btn-ghost {
    background: transparent;
    color: var(--fg-muted);
    border-color: var(--border-soft);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    color: var(--fg);
    border-color: var(--border);
}

/* === Sections ========================================================== */

.section {
    padding: 64px 0;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-cta {
    text-align: center;
}

.section-cta h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 16px;
}

.section-cta .cta {
    justify-content: center;
    margin-top: 24px;
}

.prose {
    max-width: 70ch;
    color: var(--fg-muted);
    font-size: 1.02rem;
}

.section-cta .prose {
    margin-left: auto;
    margin-right: auto;
}

/* === Features grid ===================================================== */

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

.feature {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-dim);
    border-radius: var(--radius);
    padding: 22px 22px 20px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature:hover {
    border-left-color: var(--accent);
    transform: translateY(-2px);
}

.feature p {
    color: var(--fg-muted);
    font-size: 0.96rem;
    margin: 0;
}

.feature code {
    font-size: 0.85em;
}

/* === Screenshots ======================================================= */

.hint {
    font-size: 0.92rem;
    color: var(--fg-dim);
    margin-top: -12px;
    margin-bottom: 24px;
}

.screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.screenshots figure {
    margin: 0;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.15s ease;
}

.screenshots figure:hover {
    transform: translateY(-3px);
    border-color: var(--accent-dim);
}

.screenshot-link {
    display: block;
    cursor: zoom-in;
    line-height: 0;
}

.screenshots img {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
    transition: opacity 0.15s ease;
}

.screenshot-link:hover img,
.screenshot-link:focus-visible img {
    opacity: 0.85;
}

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

.screenshots figcaption {
    padding: 12px 14px;
    font-size: 0.9rem;
    color: var(--fg-muted);
    text-align: center;
    border-top: 1px solid var(--border-soft);
}

/* === Lightbox (CSS-only, :target alapú) ================================ */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.94);
    cursor: zoom-out;
    padding: 24px;
    text-decoration: none;
    align-items: center;
    justify-content: center;
}

.lightbox::after {
    content: "✕";
    position: fixed;
    top: 16px;
    right: 24px;
    font-size: 28px;
    color: var(--fg);
    opacity: 0.7;
    transition: opacity 0.15s ease;
    pointer-events: none;
    line-height: 1;
}

.lightbox:hover::after,
.lightbox:focus-visible::after {
    opacity: 1;
}

.lightbox:target {
    display: flex;
    animation: lightbox-fade-in 0.18s ease-out;
}

.lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
    background: #000;
}

@keyframes lightbox-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* === Specs list ======================================================== */

.specs {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 0;
    border-top: 1px solid var(--border-soft);
}

.specs > div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
    min-width: 0;
}

.specs dd {
    overflow-wrap: anywhere;
}

.specs dt {
    color: var(--fg-dim);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.specs dd {
    margin: 0;
    color: var(--fg);
    font-size: 0.98rem;
}

.specs code {
    font-size: 0.92em;
}

/* === Footer ============================================================ */

.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 32px 0;
    color: var(--fg-muted);
    font-size: 0.92rem;
}

.footer p {
    margin: 0 0 6px;
}

.footer .muted {
    color: var(--fg-dim);
    font-size: 0.86rem;
    max-width: 80ch;
}

/* === Responsive ======================================================== */

@media (max-width: 760px) {
    .hero {
        padding: 48px 0 40px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .hero-text .lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-icon {
        order: -1;
    }

    .hero-icon img {
        width: 160px;
        height: 160px;
        border-radius: 24px;
    }

    .cta {
        justify-content: center;
    }

    .section {
        padding: 48px 0;
    }

    .specs > div {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 14px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
