/* ============================================================
   TS2KSeF — Tranquil Glass Theme (based on Gamma export)
   Fonts: Petrona (headings), Inter (body)
   Accent: #007EBD
   ============================================================ */

:root {
    --accent: #007EBD;
    --accent-light: #3da8e0;
    --accent-dark: #005f8f;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.45);
    --glass-shadow: 0 8px 32px rgba(0, 60, 120, 0.10);
    --heading-color: #1a2332;
    --body-color: #3a4555;
    --muted-color: #6b7a8d;
    --bg-page: #e8f0f8;
    --card-radius: 1.25rem;
    --section-gap: 2.5rem;
    --max-width: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--body-color);
    line-height: 1.65;
    background-color: var(--bg-page);
    background-image: url('https://images.unsplash.com/photo-1464618663641-bbdd760ae84a?auto=format&fit=crop&w=1920&q=60');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    min-height: 100vh;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Petrona', serif;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.25;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ---- Layout ---- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cards-stack {
    display: flex;
    flex-direction: column;
    gap: var(--section-gap);
    padding: 2rem 1rem;
    max-width: 1140px;
    margin: 0 auto;
}

/* ---- Glass Card ---- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: var(--glass-shadow);
    padding: 3rem 3.5rem;
    position: relative;
    overflow: hidden;
}

/* ---- Navbar ---- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: 'Petrona', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--accent);
    text-decoration: none;
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--body-color);
    text-decoration: none;
    transition: color .2s;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background .2s;
}
.nav-cta:hover { background: var(--accent-dark); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--body-color);
}

/* ---- Section Label (pill badge) ---- */
.label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.label-solid {
    background: var(--accent);
    color: #fff;
}
.label-outline {
    border: 1.5px solid var(--accent);
    color: var(--accent);
}

/* ---- Hero Section (behind layout) ---- */
.hero-card {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,30,60,0.45) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 3.5rem;
    max-width: 700px;
    color: #fff;
}
.hero-content h1 {
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}
.hero-content p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ---- Buttons ---- */
.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.8rem;
    border-radius: 0.6rem;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
    border: 2px solid transparent;
    text-align: center;
}
.btn-solid {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-solid:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    text-decoration: none;
}
.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    text-decoration: none;
}
.btn-outline-dark {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}
.btn-outline-dark:hover {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}

/* ---- Manifest section ---- */
.manifest-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-top: 1.5rem;
}
.manifest-quote {
    background: rgba(0, 126, 189, 0.08);
    border-left: 4px solid var(--accent);
    border-radius: 0.5rem;
    padding: 1.8rem 2rem;
}
.manifest-quote p {
    margin-bottom: 1rem;
    line-height: 1.75;
}
.manifest-quote p:last-child { margin-bottom: 0; }
.manifest-image img {
    border-radius: 0.75rem;
    width: 100%;
    object-fit: cover;
}

/* ---- Problem cards ("behind" layout) ---- */
.problem-card {
    position: relative;
    overflow: hidden;
    padding: 0;
}
.problem-bg {
    position: absolute;
    inset: 0;
}
.problem-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.problem-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.60) 0%, rgba(0,20,50,0.50) 100%);
}
.problem-content {
    position: relative;
    z-index: 2;
    padding: 3.5rem;
    color: #fff;
}
.problem-content h1 { color: #fff; margin-bottom: 0.8rem; }
.problem-content > p { color: rgba(255,255,255,.85); margin-bottom: 2rem; }

.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.pain-item {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    padding: 1.5rem;
}
.pain-item h4 { color: #fff; margin-bottom: 0.5rem; }
.pain-item p { color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; }

/* ---- Steps section ---- */
.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.step-item {
    text-align: center;
    position: relative;
}
.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: rgba(0, 126, 189, 0.10);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}
.step-item h4 { margin-bottom: 0.5rem; }
.step-item p { font-size: 0.92rem; color: var(--muted-color); }
.step-arrow {
    position: absolute;
    right: -1rem;
    top: 32px;
    font-size: 1.5rem;
    color: var(--accent);
}

/* screenshots gallery in steps */
.screenshots-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}
.screenshots-row img {
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: transform .2s;
    width: 100%;
}
.screenshots-row img:hover { transform: scale(1.03); }

/* ---- Security section ---- */
.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 1.5rem;
}
.security-bullets { list-style: none; }
.security-bullets li {
    padding: 0.6rem 0;
    padding-left: 1.8rem;
    position: relative;
    font-size: 0.95rem;
}
.security-bullets li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}
.security-image img {
    border-radius: 0.75rem;
    width: 100%;
}

/* Comparison table */
.comparison-table {
    width: 100%;
    margin-top: 2rem;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(0, 126, 189, 0.2);
    border-radius: 0.75rem;
    overflow: hidden;
    font-size: 0.92rem;
}
.comparison-table thead {
    background: rgba(0, 126, 189, 0.08);
}
.comparison-table th, .comparison-table td {
    padding: 0.85rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 126, 189, 0.10);
}
.comparison-table th {
    font-weight: 700;
    color: var(--heading-color);
}
.comparison-table tbody tr:last-child td { border-bottom: none; }

/* ---- Audience section ---- */
.audience-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.audience-item img {
    border-radius: 0.75rem;
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
    margin-bottom: 1rem;
}
.audience-item h4 { margin-bottom: 0.5rem; }
.audience-item p { font-size: 0.92rem; color: var(--muted-color); }

/* ---- Features grid ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.feature-item {
    text-align: center;
    padding: 1.5rem;
}
.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.feature-item h4 { margin-bottom: 0.5rem; }
.feature-item p { font-size: 0.9rem; color: var(--muted-color); }

/* ---- Pricing section ---- */
.pricing-center { text-align: center; }
.pricing-center h1 {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
}
.pricing-center > p {
    max-width: 650px;
    margin: 0 auto 2rem;
}
.pricing-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-bottom: 2rem;
}
.pricing-box {
    border: 1.5px solid rgba(0, 126, 189, 0.25);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: left;
}
.pricing-box h4 { margin-bottom: 0.5rem; }
.pricing-box p { font-size: 0.9rem; color: var(--muted-color); }

/* ---- FAQ section ---- */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.faq-column { display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
    border-left: 3px solid var(--accent);
    padding: 1.2rem 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
    background: rgba(0, 126, 189, 0.04);
}
.faq-item h4 { margin-bottom: 0.5rem; font-size: 1rem; }
.faq-item p { font-size: 0.9rem; color: var(--muted-color); }

/* ---- CTA Section (behind layout) ---- */
.cta-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
}
.cta-content {
    position: relative;
    z-index: 2;
    padding: 4rem 3.5rem;
    color: #fff;
    text-align: center;
}
.cta-content h1 { color: #fff; margin-bottom: 1rem; }
.cta-content > p {
    color: rgba(255, 255, 255, 0.88);
    max-width: 650px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}
.cta-content .btn-group { justify-content: center; }
.cta-content .btn-solid {
    background: #fff;
    color: var(--accent-dark);
    border-color: #fff;
}
.cta-content .btn-solid:hover {
    background: rgba(255,255,255,0.9);
}

/* Footer boxes in CTA */
.footer-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}
.footer-box {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.6rem;
    padding: 1.2rem;
    text-align: center;
}
.footer-box h4 { color: #fff; margin-bottom: 0.3rem; font-size: 1rem; }
.footer-box p { color: rgba(255,255,255,0.8); font-size: 0.85rem; }
.footer-box a { color: rgba(255,255,255,0.9); }
.footer-box a:hover { color: #fff; }

/* ---- Footer bar ---- */
.footer-bar {
    text-align: center;
    padding: 1.5rem;
    color: var(--muted-color);
    font-size: 0.8rem;
}
.footer-bar a { color: var(--accent); }

/* ---- Cookie Banner ---- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 126, 189, 0.15);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.cookie-banner.hidden { display: none; }
.cookie-banner p { margin: 0; color: var(--body-color); }
.cookie-banner a { color: var(--accent); font-weight: 500; }
.cookie-btn {
    padding: 0.4rem 1rem;
    border-radius: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--accent);
    transition: all .2s;
}
.cookie-btn-accept {
    background: var(--accent);
    color: #fff;
}
.cookie-btn-accept:hover { background: var(--accent-dark); }
.cookie-btn-reject {
    background: transparent;
    color: var(--accent);
}
.cookie-btn-reject:hover { background: rgba(0,126,189,0.06); }

/* ---- Contact form ---- */
.contact-form {
    max-width: 550px;
    margin-top: 2rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: var(--heading-color);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid rgba(0, 126, 189, 0.2);
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.6);
    transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-status { margin-top: 0.8rem; font-size: 0.9rem; }
.form-status.success { color: #2e8b57; }
.form-status.error { color: #c43; }

/* ---- Lightbox ---- */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* ---- Responsive ---- */

/* ---- Legal pages ---- */
.legal-page {
    padding: 2rem 0;
}
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: var(--glass-shadow);
    padding: 3rem 3.5rem;
}
.legal-content h1 { margin-bottom: 0.5rem; }
.legal-content h2 { margin-top: 2rem; margin-bottom: 0.8rem; font-size: 1.3rem; }
.legal-content h3 { margin-top: 1.5rem; margin-bottom: 0.6rem; font-size: 1.1rem; }
.legal-content p, .legal-content li { margin-bottom: 0.7rem; }
.legal-content ul, .legal-content ol { padding-left: 1.5rem; }
.legal-date { color: var(--muted-color); font-size: 0.85rem; margin-bottom: 1.5rem; }
.legal-footer { text-align: center; margin-top: 2rem; padding: 1.5rem; color: var(--muted-color); font-size: 0.85rem; }
.legal-footer a { color: var(--accent); }

@media (max-width: 900px) {
    .legal-content { padding: 2rem 1.5rem; }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .glass-card { padding: 2rem 1.5rem; }
    .hero-content { padding: 3rem 2rem; }
    .hero-content h1 { font-size: 2rem; }
    .problem-content { padding: 2.5rem 1.5rem; }
    .manifest-grid { grid-template-columns: 1fr; }
    .pain-grid { grid-template-columns: 1fr; }
    .steps-row { grid-template-columns: 1fr; }
    .step-arrow { display: none; }
    .screenshots-row { grid-template-columns: 1fr 1fr; }
    .security-grid { grid-template-columns: 1fr; }
    .audience-row { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .pricing-boxes { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .footer-boxes { grid-template-columns: 1fr; }
    .cta-content { padding: 3rem 1.5rem; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(14px);
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        gap: 0.8rem;
    }
}

@media (max-width: 600px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    .hero-content h1 { font-size: 1.6rem; }
    .pricing-center h1 { font-size: 2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .screenshots-row { grid-template-columns: 1fr; }
}
