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

:root {
    --bg: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --text: #e8e8e8;
    --text-secondary: #888;
    --teal: #09556D;
    --teal-light: #4A9BB5;
    --teal-glow: rgba(9, 85, 109, 0.15);
    --green: #5B9A6B;
    --accent: #4A9BB5;
    --border: #222;
    --mono: 'JetBrains Mono', monospace;
    --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

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

/* LANG SWITCH — hide only the inactive language, so elements of the active one
   keep whatever display their own rules give them (flex, inline-block, block…).
   The class sits on <html> so app.js can set it before first paint. */
html:not(.lang-pl) [data-lang="pl"],
html.lang-pl [data-lang="en"] { display: none !important; }

/* NAV */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 20px;
    color: var(--teal-light);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.lang-toggle {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: transparent;
    transition: all 0.2s;
}

.lang-toggle:hover {
    border-color: var(--teal-light);
    color: var(--teal-light);
}

/* HAMBURGER */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: all 0.3s;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero.compact { min-height: auto; padding: 160px 24px 60px; }

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 760px;
}

.hero-label {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--teal-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(34px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero h1 span { color: var(--teal-light); }

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-note {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 32px;
    letter-spacing: 0.5px;
}

.btn {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 14px 28px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
    display: inline-block;
}

.btn-primary {
    background: var(--teal);
    color: #fff;
    border: 1px solid var(--teal);
}

.btn-primary:hover {
    background: var(--teal-light);
    border-color: var(--teal-light);
}

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

.btn-outline:hover {
    border-color: var(--teal-light);
    color: var(--teal-light);
}

.btn-small {
    padding: 10px 18px;
    font-size: 12px;
}

/* SECTIONS */
section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 24px;
}

.section-label {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--teal-light);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 620px;
    margin-bottom: 48px;
}

/* SERVICES / REPLACEMENT CARDS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px 24px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--teal);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: #333;
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    font-size: 28px;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.replaces {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.replaces strong {
    color: var(--teal-light);
    font-weight: 500;
}

.card-link {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--teal-light);
    text-decoration: none;
    margin-top: 14px;
    transition: color 0.2s;
}

.card-link:hover { color: var(--text); }

/* MODELS / PRODUCT CARDS */
.models-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.models-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.model-card {
    border: 1px solid var(--border);
    padding: 40px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.model-card.featured {
    border-color: var(--teal);
    background: linear-gradient(135deg, rgba(9,85,109,0.08) 0%, transparent 60%);
}

.model-badge {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--teal-light);
    margin-bottom: 16px;
    display: block;
}

.model-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.model-card > p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.model-features {
    list-style: none;
    margin-bottom: 28px;
}

.model-features li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.model-features li::before {
    content: '→';
    color: var(--teal-light);
    font-family: var(--mono);
    font-size: 12px;
    flex-shrink: 0;
}

.price-tag {
    font-family: var(--mono);
    font-size: 24px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 24px;
}

.price-tag small {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

.card-actions { margin-top: auto; }

/* WHY — feature columns */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.why-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.why-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.why-icon { font-size: 22px; }

/* ECO NOTE */
.eco-note {
    margin-top: 32px;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-left: 2px solid var(--green);
    background: rgba(91, 154, 107, 0.05);
    font-size: 14px;
    color: var(--text-secondary);
}

/* PRICING */
.pricing-table {
    border: 1px solid var(--border);
    border-bottom: none;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.pricing-row:hover { background: var(--bg-card); }

.pricing-row .name { font-size: 15px; }

.pricing-row .name small {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.pricing-row .price {
    font-family: var(--mono);
    font-size: 15px;
    color: var(--teal-light);
    white-space: nowrap;
}

.pricing-cta {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pricing-cta .note {
    font-size: 13px;
    color: var(--text-secondary);
}

/* STEPS */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: step;
}

.step {
    border-top: 2px solid var(--border);
    padding-top: 20px;
    transition: border-color 0.3s;
}

.step:hover { border-top-color: var(--teal); }

.step-num {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--teal-light);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* DEMO BANNER */
.demo-banner {
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(9,85,109,0.12) 0%, transparent 70%);
    padding: 48px 40px;
    text-align: center;
}

.demo-banner h2 {
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 700;
    margin-bottom: 14px;
}

.demo-banner p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 28px;
}

.demo-link {
    font-family: var(--mono);
    font-size: 15px;
    color: var(--teal-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.demo-link:hover { border-bottom-color: var(--teal-light); }

/* TECH */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    padding: 10px 18px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.tech-tag:hover {
    border-color: var(--teal-light);
    color: var(--teal-light);
}

/* CONTACT */
.cta-section {
    text-align: center;
    padding: 100px 24px;
    border-top: 1px solid var(--border);
}

.cta-section h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section > p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 8px;
}

.contact-form {
    max-width: 480px;
    margin: 40px auto 0;
    text-align: left;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.contact-form select { cursor: pointer; }
.contact-form textarea { resize: vertical; margin-bottom: 16px; }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--teal-light); }

.contact-form button { width: 100%; text-align: center; }

.form-status {
    margin-top: 16px;
    font-size: 14px;
    color: var(--teal-light);
    display: none;
}

.form-status.error { color: #e55; }

.contact-direct {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 28px;
}

.contact-direct a {
    color: var(--teal-light);
    text-decoration: none;
}

.contact-direct a:hover { color: var(--text); }

/* FOOTER */
footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--teal-light); }

/* RESPONSIVE — mobile first fallbacks */
@media (max-width: 900px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; gap: 28px; }
    .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.97);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open { display: flex; }

    section { padding: 72px 20px; }

    .hero { padding: 110px 20px 70px; }
    .hero.compact { padding: 120px 20px 40px; }
    .hero h1 { letter-spacing: -0.5px; }
    .hero p { font-size: 16px; }
    .hero-cta .btn { width: 100%; text-align: center; }

    .services-grid { grid-template-columns: 1fr; }
    .models-grid, .models-grid.cols-3 { grid-template-columns: 1fr; }

    .model-card { padding: 32px 24px; }
    .demo-banner { padding: 36px 24px; }

    .pricing-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 16px 18px;
    }

    footer { justify-content: center; text-align: center; }
    .footer-links { justify-content: center; }
}
