:root {
    --bg: #1c1c1c;
    --bg-alt: #171717;
    --surface: #262626;
    --surface-high: #323232;
    --border: #3e3e3e;
    --accent: #0078d4;
    --accent-hover: #1c87dc;
    --accent-soft: rgba(0, 120, 212, 0.15);
    --success: #369950;
    --error: #c42b1c;
    --warning: #c88c00;
    --text: #f0f0f0;
    --text-sub: #a8a8a8;
    --text-hint: #707070;
    --radius: 12px;
    --radius-sm: 8px;
    --max-width: 1120px;
    --font: "Segoe UI", "Segoe UI Emoji", Roboto, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}

img, svg {
    max-width: 100%;
}

/* Header */

header.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(23, 23, 23, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header .inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
}

.brand-mark {
    display: inline-block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.site-header nav a {
    color: var(--text-sub);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.site-header nav a:hover {
    color: var(--text);
}

.lang-switch {
    display: flex;
    gap: 4px;
    margin-left: 4px;
    border-left: 1px solid var(--border);
    padding-left: 16px;
}

.lang-switch a {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text-hint);
}

.lang-switch a.active {
    background: var(--accent-soft);
    color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    margin: 0 7px;
    border-radius: 2px;
}

/* Hero */

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

.hero {
    position: relative;
    text-align: center;
    padding: 88px 24px 60px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 720px;
    height: 420px;
    background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-hover);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    margin: 0 0 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero p.lead {
    font-size: 1.15rem;
    color: var(--text-sub);
    max-width: 640px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.98rem;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
}

.hero-frame {
    max-width: 640px;
    margin: 0 auto;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.hero-frame-bar {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.hero-frame-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--surface-high);
}

.hero-frame-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    background:
        radial-gradient(circle at 30% 20%, var(--accent-soft), transparent 45%),
        var(--bg-alt);
}

.hero-frame-icon {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px var(--accent-soft));
}

/* Sections */

.section {
    padding: 72px 0;
    border-top: 1px solid var(--border);
}

.section-alt {
    background: var(--bg-alt);
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
    border-radius: 0;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    text-align: center;
    margin: 0 0 8px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.section-title-sm {
    font-size: 1.3rem;
    margin: 0 0 8px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-sub);
    max-width: 560px;
    margin: 0 auto 40px;
}

/* Features */

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

.feature-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

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

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--accent-soft);
    font-size: 1.9rem;
    line-height: 1;
    margin-bottom: 18px;
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 1.08rem;
    line-height: 1.35;
}

.feature-card p {
    margin: 0;
    color: var(--text-sub);
    font-size: 0.94rem;
    line-height: 1.6;
}

/* Steps */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step {
    position: relative;
    padding: 26px 22px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    margin-bottom: 16px;
}

.step h3 {
    margin: 0 0 8px;
    font-size: 1.04rem;
    line-height: 1.35;
}

.step p {
    margin: 0;
    color: var(--text-sub);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Pricing */

.pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

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

.pricing-featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, var(--accent-soft), var(--surface) 60%);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    right: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.9rem;
}

.pricing-name {
    margin: 0 0 4px;
    font-size: 1.3rem;
    font-weight: 800;
}

.pricing-tagline {
    margin: 0 0 24px;
    color: var(--text-sub);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
    flex-grow: 1;
}

.pricing-features li {
    padding-left: 26px;
    position: relative;
    margin-bottom: 12px;
    color: var(--text-sub);
    font-size: 0.92rem;
    line-height: 1.5;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success);
    font-weight: 700;
}

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

.pricing-note {
    text-align: center;
    color: var(--text-hint);
    font-size: 0.85rem;
    margin: 32px auto 0;
    max-width: 560px;
}

/* Download / platform tabs */

.platform-switcher {
    max-width: 760px;
    margin: 0 auto;
}

.platform-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.platform-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-sub);
    font-weight: 600;
    font-size: 0.94rem;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.platform-tab:hover {
    color: var(--text);
    border-color: var(--accent);
}

.platform-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.platform-panel {
    display: none;
}

.platform-panel.active {
    display: block;
}

.platform-panel-inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: linear-gradient(135deg, var(--surface), var(--bg-alt));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    text-align: left;
}

.platform-panel-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--accent-soft);
    font-size: 2rem;
}

.platform-panel-inner h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.platform-panel-inner .download-meta {
    justify-content: flex-start;
    margin: 0 0 16px;
}

.platform-requirements-label {
    margin: 0 0 8px;
    color: var(--text-hint);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.platform-requirements {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.platform-requirements li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    color: var(--text-sub);
    font-size: 0.92rem;
    line-height: 1.5;
}

.platform-requirements li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.download-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.92rem;
}

.download-meta div {
    background: var(--surface-high);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 18px;
}

.download-meta .label {
    color: var(--text-hint);
    margin-right: 6px;
}

.download-note {
    color: var(--text-sub);
    font-size: 0.88rem;
    margin: 0 0 18px;
}

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

.download-contact {
    margin-top: 28px;
    text-align: center;
    color: var(--text-sub);
    font-size: 0.9rem;
}

/* Pricing comparison table */

.pricing-compare {
    max-width: 760px;
    margin: 36px auto 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 4px 20px;
}

.pricing-compare summary {
    cursor: pointer;
    padding: 16px 4px;
    font-weight: 600;
    color: var(--text);
    list-style: none;
}

.pricing-compare summary::-webkit-details-marker {
    display: none;
}

.pricing-compare summary::before {
    content: "▸";
    display: inline-block;
    margin-right: 8px;
    color: var(--accent);
    transition: transform 0.15s ease;
}

.pricing-compare[open] summary::before {
    transform: rotate(90deg);
}

.pricing-compare-scroll {
    overflow-x: auto;
    padding-bottom: 16px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.compare-table th:not(:first-child),
.compare-cell {
    text-align: center;
}

.compare-table thead th {
    color: var(--text-hint);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.compare-icon.yes {
    color: var(--success);
    font-weight: 700;
}

.compare-icon.no {
    color: var(--text-hint);
}

/* Preview grid (guide/license) */

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

.preview-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.preview-list {
    padding-left: 20px;
    color: var(--text-sub);
    margin-bottom: 20px;
}

.preview-list li {
    margin-bottom: 8px;
}

/* Content pages (vadovas / licencija) */

.content-page {
    padding: 56px 0 80px;
    max-width: 760px;
    margin: 0 auto;
}

.content-page h1 {
    font-size: 2.1rem;
    margin: 6px 0 16px;
    font-weight: 800;
}

.lead-sm {
    color: var(--text-sub);
    font-size: 1.02rem;
    margin-bottom: 8px;
}

.content-page section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.content-page h2 {
    font-size: 1.2rem;
    margin: 0 0 14px;
}

.content-page p {
    margin: 0 0 14px;
    line-height: 1.7;
}

.content-page ol,
.content-page ul {
    margin: 0 0 14px;
    padding-left: 22px;
    line-height: 1.7;
}

.content-page ol li,
.content-page ul li {
    margin-bottom: 8px;
}

.content-page code {
    background: var(--surface-high);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
}

table.field-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

table.field-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    font-size: 0.92rem;
}

table.field-table td:first-child {
    white-space: nowrap;
    width: 1%;
}

/* Footer */

footer.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
    margin-top: 40px;
}

.site-footer .inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 24px;
}

.footer-brand p {
    color: var(--text-sub);
    font-size: 0.9rem;
    max-width: 260px;
    margin-top: 12px;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-hint);
    margin: 0 0 12px;
}

.footer-col a {
    display: block;
    color: var(--text-sub);
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    text-align: center;
    padding: 20px 24px 28px;
    color: var(--text-hint);
    font-size: 0.85rem;
}

/* Responsive */

@media (max-width: 980px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 860px) {
    .site-footer .inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: flex;
    }

    .site-header nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding-top: 14px;
    }

    .site-header nav.open {
        display: flex;
    }

    .lang-switch {
        border-left: none;
        padding-left: 0;
    }

    .site-header .inner {
        flex-wrap: wrap;
    }

    .section {
        padding: 52px 0;
    }

    .platform-panel-inner {
        flex-direction: column;
        padding: 24px;
        text-align: center;
    }

    .platform-panel-icon {
        margin: 0 auto;
    }

    .platform-panel-inner .download-meta {
        justify-content: center;
    }

    .platform-requirements li {
        text-align: left;
    }

    .platform-tabs {
        gap: 8px;
    }

    .platform-tab {
        padding: 8px 14px;
        font-size: 0.88rem;
    }

    .download-actions {
        flex-direction: column;
    }

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

    .site-footer .inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand .brand {
        justify-content: center;
    }

    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 560px) {
    .features {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }
}
