/* ==========================================================================
   PrimeKernel — web štýl
   Tmavý „blueprint" motív nadväzujúci na branding produktov:
   navy pozadie s hairline mriežkou, jantárový akcent (Prime),
   cyan akcent (Kernel). Zámerne jednotémový (blueprint = jeden vizuálny svet).
   ========================================================================== */

:root {
    --bg:        #0a1826;
    --bg-2:      #0d1f30;
    --panel:     #0f2336;
    --panel-2:   #123049;
    --line:      rgba(126, 178, 219, 0.10);
    --line-strong: rgba(126, 178, 219, 0.20);

    --ink:       #e6eef6;
    --ink-soft:  #b7c8da;
    --muted:     #8ea6bd;

    --amber:     #f2a83a;   /* Prime Rail Control */
    --cyan:      #37c6f0;   /* RailKernel */
    --track:     #3e7fa6;   /* schematické koľaje */

    --radius:    14px;
    --wrap:      1120px;
    --ff-sans:   "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --ff-mono:   ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

    --shadow:    0 18px 50px -24px rgba(0, 0, 0, 0.75);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--ff-sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Blueprint pozadie: navy gradient + hairline mriežka + schéma koľají (SVG). */
.blueprint {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, #0b1a2b 0%, #081422 55%, #0a1826 100%);
}
.blueprint::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 45%, transparent 100%);
}
.blueprint::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/blueprint.svg") center top / cover no-repeat;
    opacity: 0.5;
    mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 100;
    background: var(--amber); color: #0a1826; padding: 8px 14px; border-radius: 8px;
    font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 12px; }

/* ── Hlavička ────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 40;
    backdrop-filter: blur(10px);
    background: rgba(9, 20, 33, 0.72);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark { display: inline-flex; gap: 5px; }
.brand-mark .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-amber { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.dot-cyan  { background: var(--cyan);  box-shadow: 0 0 10px var(--cyan); }
.brand-name { font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em; }
.brand-kernel { color: var(--cyan); }

.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.site-nav a {
    color: var(--ink-soft); text-decoration: none; font-size: 0.95rem;
    padding: 6px 0; position: relative; transition: color 0.15s;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.active { color: #fff; }
.site-nav a.active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
    background: linear-gradient(90deg, var(--amber), var(--cyan));
    border-radius: 2px;
}

.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ff-mono); font-size: 0.82rem; }
.lang-switch a { color: var(--muted); padding: 0; }
.lang-switch a.on { color: var(--ink); font-weight: 700; }
.lang-switch .sep { color: var(--line-strong); }

/* Mobilné menu (čistý CSS cez checkbox) */
.nav-toggle { display: none; }
.nav-burger { display: none; }

/* ── Sekcie ─────────────────────────────────────────────────────────────── */
section { padding: 82px 0; }
.section-tight { padding: 56px 0; }

.kicker {
    font-family: var(--ff-mono);
    font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--cyan); margin: 0 0 14px;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 700; }
p  { color: var(--ink-soft); }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--muted); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding: clamp(90px, 15vh, 160px) 0 96px; }
.hero .kicker { color: var(--amber); }
.hero h1 { margin-bottom: 0.35em; }
.hero .brand-hero .k { color: var(--cyan); }
.hero-lead { margin-bottom: 34px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 24px; border-radius: 11px; font-weight: 650; font-size: 0.98rem;
    text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 0.12s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, #ffc063, var(--amber)); color: #23160a; box-shadow: 0 10px 26px -12px var(--amber); }
.btn-primary:hover { box-shadow: 0 14px 32px -12px var(--amber); }
.btn-cyan { background: linear-gradient(180deg, #67d7f7, var(--cyan)); color: #04212c; box-shadow: 0 10px 26px -12px var(--cyan); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--cyan); color: #fff; }
.btn[disabled], .btn.is-disabled { opacity: 0.55; pointer-events: none; }

/* ── Karty produktov ────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
    position: relative;
    background: linear-gradient(180deg, var(--panel), var(--bg-2));
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--accent, var(--amber));
}
.card.prc  { --accent: var(--amber); }
.card.rk   { --accent: var(--cyan); }
.card .tag {
    font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.14em;
    color: var(--accent, var(--amber)); text-transform: uppercase;
}
.card h3 { margin-top: 10px; }
.card .prc-name .k { color: var(--amber); }
.card .rk-name .k  { color: var(--cyan); }
.card p { margin-bottom: 22px; }
.card .card-cta { color: var(--accent, var(--amber)); text-decoration: none; font-weight: 650; }
.card .card-cta::after { content: " →"; }
.card .card-cta:hover { text-decoration: underline; }

/* ── Feature grid (prečo / vlastnosti) ──────────────────────────────────── */
.feature { padding: 26px; background: rgba(255,255,255,0.015); border: 1px solid var(--line); border-radius: 12px; }
.feature h3 { font-size: 1.08rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.feature .fnum {
    font-family: var(--ff-mono); font-size: 0.8rem; color: var(--cyan);
    display: block; margin-bottom: 12px; letter-spacing: 0.1em;
}

.section-head { max-width: 62ch; margin-bottom: 40px; }

/* ── Product hero (podstránky) ──────────────────────────────────────────── */
.page-hero { padding: clamp(70px, 12vh, 120px) 0 40px; }
.page-hero.prc .kicker { color: var(--amber); }
.page-hero.rk .kicker  { color: var(--cyan); }
.page-hero .accent-amber { color: var(--amber); }
.page-hero .accent-cyan  { color: var(--cyan); }

/* ── Kontakt ────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
form.contact { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.86rem; color: var(--ink-soft); font-weight: 600; }
.field input, .field textarea {
    font-family: inherit; font-size: 1rem; color: var(--ink);
    background: rgba(255,255,255,0.03); border: 1px solid var(--line-strong);
    border-radius: 10px; padding: 12px 14px; transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(55,198,240,0.15);
}
.field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }   /* honeypot */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.alert { border-radius: 10px; padding: 14px 16px; font-size: 0.95rem; border: 1px solid; }
.alert-ok  { background: rgba(55,198,240,0.10); border-color: rgba(55,198,240,0.4); color: #cdefff; }
.alert-err { background: rgba(242,120,90,0.10); border-color: rgba(242,120,90,0.45); color: #ffd8cd; }

.contact-aside { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 28px; }
.contact-aside .mono { font-family: var(--ff-mono); color: var(--cyan); }
.contact-aside a { color: var(--cyan); text-decoration: none; }
.contact-aside a:hover { text-decoration: underline; }

/* ── Pätička ────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 46px 0 30px; background: rgba(6,14,23,0.6); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.foot-tag { color: var(--muted); font-size: 0.9rem; margin: 8px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; }
.foot-links a:hover { color: var(--cyan); }
.foot-legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }

/* ── Responzívne ────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .grid-2, .grid-3, .contact-grid, .form-row { grid-template-columns: 1fr; }

    .nav-burger {
        display: flex; flex-direction: column; gap: 5px; margin-left: auto;
        width: 42px; height: 42px; align-items: center; justify-content: center;
        border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer;
    }
    .nav-burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.2s; }
    .site-nav {
        position: fixed; inset: 68px 0 auto 0; margin: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: rgba(8,18,29,0.98); border-bottom: 1px solid var(--line-strong);
        max-height: 0; overflow: hidden; transition: max-height 0.28s ease;
    }
    .nav-toggle:checked ~ .site-nav { max-height: 420px; }
    .site-nav a { padding: 15px 24px; border-top: 1px solid var(--line); }
    .site-nav a.active::after { display: none; }
    .lang-switch { padding: 15px 24px; border-top: 1px solid var(--line); }
    section { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}
