/*
=========================================
Kvitka CRM SaaS Landing Page Stylesheet
=========================================
*/

:root {
    --bg-light: #f6fbf7;
    --panel-light: rgba(255, 255, 255, 0.85);
    --border-light: #dcebe1;
    --text-light: #17352a;
    --muted-light: #526b60;
    --brand: #6bbf8e;
    --brand-hover: #5aa67c;
    --brand2-light: #dff5e7;
    --danger: #b42318;
    --white: #ffffff;
    --accent: #2e6f40;

    /* Active colors defaults */
    --bg: var(--bg-light);
    --panel: var(--panel-light);
    --border: var(--border-light);
    --text: var(--text-light);
    --muted: var(--muted-light);
    --brand2: var(--brand2-light);
    --card-shadow: 0 10px 30px rgba(23, 53, 42, 0.05), 0 1px 3px rgba(23, 53, 42, 0.02);
    --modal-backdrop: rgba(10, 19, 14, 0.4);
    --header-bg: rgba(246, 251, 247, 0.8);
    --scrollbar-track: #f1f7f3;
    --scrollbar-thumb: #b8dfc8;
    --scrollbar-thumb-hover: var(--brand-hover);
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html.dark-theme {
    --bg: #0c1a2b;
    --panel: rgba(28, 44, 63, 0.90);
    --border: #324b66;
    --text: #edf2f7;
    --muted: #a8b6c7;
    --brand: #6dc7b2;
    --brand-hover: #7ed7c2;
    --brand2: #24485a;
    --danger: #ef5350;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    --modal-backdrop: rgba(0, 0, 0, 0.6);
    --header-bg: rgba(12, 26, 43, 0.8);
    --scrollbar-track: #0d1e33;
    --scrollbar-thumb: #324b66;
    --scrollbar-thumb-hover: var(--brand);
}

html.dark-theme body {
    background: linear-gradient(145deg, #0c1a2b, #14263d);
}

html.dark-theme .save-badge {
    background-color: #16382f;
    color: #8cf5d7;
}

html.dark-theme .badge-pos {
    color: var(--brand);
}

html.dark-theme .problems-header {
    color: var(--brand);
}

html.dark-theme .benefit-icon {
    color: var(--brand);
}





/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Custom Scrollbars */
html, body, .modal, .modal-content, .mobile-nav, .table-wrap {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.modal::-webkit-scrollbar,
.modal-content::-webkit-scrollbar,
.mobile-nav::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.modal::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track,
.mobile-nav::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.modal::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb,
.mobile-nav::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.modal::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover,
.mobile-nav::-webkit-scrollbar-thumb:hover,
.table-wrap::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    padding-top: 80px; /* space for fixed header */
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Elements */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
    transition: background-color 0.3s, border-color 0.3s;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo-dark {
    display: none !important;
}

.logo-light {
    display: block !important;
}

html.dark-theme .logo-dark {
    display: block !important;
}

html.dark-theme .logo-light {
    display: none !important;
}

.nav-menu {
    display: none; /* hidden on mobile */
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--brand);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Button UI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    flex-shrink: 0;
}

.btn-text-node {
    display: inline-flex;
    align-items: center;
}

.btn-primary {
    background-color: var(--brand);
    color: #0b2216;
}

.btn-primary:hover {
    background-color: var(--brand-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 191, 142, 0.25);
}

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

.btn-secondary:hover {
    background-color: var(--border);
    transform: translateY(-1px);
}

.btn-text {
    background: transparent;
    padding: 10px 14px;
    color: var(--text);
}

.btn-text:hover {
    color: var(--brand);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

/* Theme & Locale Toggles */
.toggle-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: border-color 0.2s, background-color 0.2s;
}

.toggle-btn:hover {
    background-color: var(--brand2);
    border-color: var(--brand);
}

.toggle-btn svg {
    width: 18px;
    height: 18px;
}

.locale-btn {
    background-color: transparent;
    color: var(--text);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.05em;
    padding: 0 10px;
    border-radius: 8px;
    height: 38px;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.locale-btn:hover {
    background-color: var(--brand2);
    border-color: var(--brand);
    color: var(--text);
}

/* Hero Section */
.hero {
    padding: 80px 0 100px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(107, 191, 142, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.badge-pos {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--brand2);
    border: 1px solid var(--border);
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 99px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 40px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--muted);
    max-width: 650px;
    margin: 0 auto 36px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 64px;
}

.hero-actions .btn {
    width: 100%;
    max-width: 300px;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }

    .hero-actions .btn {
        width: auto;
        max-width: none;
    }
}

/* Interactive Dashboard Mockup Card */
.hero-mockup-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 16px;
    padding: 8px;
    background: linear-gradient(135deg, var(--border) 0%, rgba(107, 191, 142, 0.2) 100%);
    box-shadow: 0 30px 80px rgba(10, 20, 15, 0.12);
}

.hero-mockup {
    border-radius: 12px;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--border);
    aspect-ratio: 1800/1029;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Fallback CSS Mockup layout */
.css-mockup {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    font-size: 11px;
}

.mockup-top {
    height: 40px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.05);
}

.mockup-window-controls {
    display: flex;
    gap: 6px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border);
}

.mockup-dot.red { background-color: #ff5f56; }
.mockup-dot.yellow { background-color: #ffbd2e; }
.mockup-dot.green { background-color: #27c93f; }

.mockup-title {
    font-weight: 700;
    color: var(--muted);
}

.mockup-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.mockup-sidebar {
    width: 180px;
    border-right: 1px solid var(--border);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.mockup-sidebar-item {
    height: 28px;
    border-radius: 6px;
    background: var(--border);
    opacity: 0.6;
}

.mockup-sidebar-item.active {
    background: var(--brand2);
    opacity: 1;
}

.mockup-main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.mockup-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    background: var(--panel);
}

.mockup-card-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    margin-top: 4px;
}

.mockup-chart-placeholder {
    height: 140px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, var(--border) 10px, var(--border) 11px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 600;
}

/* Sections Global Styling */
.section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 16px;
    color: var(--muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}

/* Why Us & Problems Grid */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.benefit-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
}

.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: var(--brand2);
    color: var(--accent);
    margin-bottom: 20px;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
}

.benefit-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.benefit-card-header .benefit-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.benefit-card-header .benefit-title {
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.benefit-text {
    font-size: 14px;
    color: var(--muted);
}

/* Business Problems & Solution Alert */
.problems-block {
    margin-top: 80px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--panel);
}

.problems-header {
    background: var(--brand2);
    padding: 20px 24px;
    font-weight: 700;
    font-size: 18px;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.problems-grid {
    display: grid;
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 16px;
}

.problem-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}

.problem-item svg {
    width: 18px;
    height: 18px;
    color: var(--danger);
    flex-shrink: 0;
    margin-top: 3px;
}

.solution-badge-row {
    padding: 20px 24px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    border-top: 1px solid var(--border);
    background: rgba(107, 191, 142, 0.05);
}

/* "Who is it for" section styling */
.who-is-it-for {
    margin-top: 80px;
}

.who-is-it-for-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.who-item {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.who-item svg {
    color: var(--brand);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
}

.who-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.who-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.who-desc {
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
    margin: 0;
    line-height: 1.4;
}

.who-is-it-for-sub {
    margin-top: 32px;
    font-size: 14px;
    color: var(--muted);
    text-align: center;
    line-height: 1.6;
}

/* Features Block */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.feature-box {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--card-shadow);
}

.feature-box-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.feature-box-title svg {
    width: 24px;
    height: 24px;
    color: var(--brand);
    flex-shrink: 0;
}

.feature-list {
    display: grid;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}

.feature-item svg {
    color: var(--brand);
    width: 16px;
    height: 16px;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Integrations Block */
.integrations-wrapper {
    display: grid;
    gap: 40px;
}

.integration-section-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.integrations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.integration-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
}

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

.integration-logo-wrap {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    flex-shrink: 0;
}

.integration-logo-wrap img {
    max-height: 100%;
    object-fit: contain;
}

.integration-info {
    flex: 1;
}

.integration-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.integration-name {
    font-weight: 700;
    font-size: 16px;
}

.integration-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 99px;
    font-weight: 700;
}

.integration-badge.available {
    background-color: var(--brand2-light);
    color: #2e6f40;
}

.integration-badge.coming-soon {
    background-color: #f1f3f5;
    color: #495057;
}

html.dark-theme .integration-badge.coming-soon {
    background-color: #212529;
    color: #adb5bd;
}

.integration-desc {
    font-size: 13px;
    color: var(--muted);
}

.integration-card.coming-soon-card {
    opacity: 0.8;
}

.integrations-footer {
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    max-width: 600px;
    margin: 40px auto 0;
}

/* Screenshot Gallery */
.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.gallery-menu::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.gallery-menu-btn {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    color: var(--text);
    transition: all 0.2s;
    flex-shrink: 0;
}

.gallery-menu-btn:hover {
    background-color: var(--brand2);
    border-color: var(--brand);
}

.gallery-menu-btn.active {
    background-color: var(--brand);
    color: #0b2216;
    border-color: var(--brand);
}

.gallery-view-wrapper {
    position: relative;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    color: #17352a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.gallery-nav-btn svg {
    width: 20px;
    height: 20px;
}

.gallery-nav-btn.prev {
    left: -20px;
}

.gallery-nav-btn.next {
    right: -20px;
}

.gallery-nav-btn:hover {
    background-color: var(--brand);
    color: #0b2216;
    border-color: var(--brand);
    transform: translateY(-50%) scale(1.08);
}

@media (max-width: 1080px) {
    .gallery-nav-btn.prev {
        left: 10px;
    }

    .gallery-nav-btn.next {
        right: 10px;
    }
}

html.dark-theme .gallery-nav-btn {
    background-color: rgba(20, 36, 56, 0.9);
    color: var(--text);
    border-color: var(--border);
}

html.dark-theme .gallery-nav-btn:hover {
    background-color: var(--brand);
    color: #0b2216;
    border-color: var(--brand);
}

.gallery-view {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    background: var(--panel);
    aspect-ratio: 1800/1025;
    width: 100%;
}

.gallery-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.gallery-slide.active {
    display: block;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--panel);
}

/* Pricing Grid */
.pricing-header-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 48px;
}

.pricing-switch-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 6px;
    border-radius: 99px;
    position: relative;
}

.pricing-switch-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    border-radius: 99px;
    transition: color 0.2s;
    position: relative;
    z-index: 2;
}

.pricing-switch-btn.active {
    color: #0b2216;
}

.pricing-switch-slider {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: calc(50% - 6px);
    background-color: var(--brand);
    border-radius: 99px;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-switch-wrap.yearly-active .pricing-switch-slider {
    transform: translateX(100%);
}

.pricing-switch-wrap.three-state .pricing-switch-slider {
    width: calc(33.333% - 6px);
}

.pricing-switch-wrap.three-state.currency-usd-active .pricing-switch-slider {
    transform: translateX(0);
}

.pricing-switch-wrap.three-state.currency-uah-active .pricing-switch-slider {
    transform: translateX(100%);
}

.pricing-switch-wrap.three-state.currency-eur-active .pricing-switch-slider {
    transform: translateX(200%);
}

.save-badge {
    font-size: 11px;
    background-color: #ecfdf5;
    color: #15803d;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 700;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card.popular-card {
    border-color: var(--brand);
    background: linear-gradient(to bottom, var(--panel), rgba(107, 191, 142, 0.03));
}

.pricing-card.popular-card::before {
    content: attr(data-popular-label);
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--brand);
    color: #0b2216;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 99px;
    letter-spacing: 0.05em;
}

.pricing-plan-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-plan-price-row {
    margin-bottom: 16px;
}

.price-val {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.price-period {
    font-size: 14px;
    color: var(--muted);
}

.pricing-yearly-subtext {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
    font-weight: 500;
}

.pricing-plan-users {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
}

.pricing-plan-features {
    list-style: none;
    margin-bottom: 32px;
    display: grid;
    gap: 12px;
    flex: 1;
}

.pricing-plan-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
}

.pricing-plan-feature svg {
    color: var(--brand);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.pricing-additional-notes {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: var(--muted);
}

/* Comparison Table */
.comparison-wrapper {
    margin-top: 64px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel);
    box-shadow: var(--card-shadow);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 700px;
}

.comparison-table th, .comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.02);
    font-weight: 700;
    color: var(--text);
}

.comparison-table td.check-col, .comparison-table th.check-col {
    text-align: center;
}

.comparison-table td svg.check-icon {
    color: var(--brand);
    width: 18px;
    height: 18px;
}

.comparison-table td svg.x-icon {
    color: var(--danger);
    opacity: 0.3;
    width: 16px;
    height: 16px;
}

/* Roadmap */
.roadmap-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.roadmap-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.roadmap-card svg {
    color: var(--brand);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.roadmap-text {
    font-weight: 600;
    font-size: 15px;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.faq-item {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.01);
}

.faq-answer-content {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--muted);
}

/* CTA Footer Block */
.cta-block {
    background: linear-gradient(135deg, var(--brand2) 0%, rgba(107, 191, 142, 0.1) 100%);
    border-radius: 20px;
    padding: 64px 32px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    margin-bottom: 80px;
}

.cta-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-desc {
    font-size: 15px;
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto 32px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cta-actions .btn {
    width: 100%;
    max-width: 300px;
}

@media (min-width: 640px) {
    .cta-actions {
        flex-direction: row;
        justify-content: center;
    }

    .cta-actions .btn {
        width: auto;
        max-width: none;
    }
}

/* Footer Section */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 60px;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 380px;
    text-align: left;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    text-align: left;
}

.footer-col-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-links a {
    color: var(--muted);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-size: 13px;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-bottom-link {
    color: var(--muted);
}

.footer-bottom-link:hover {
    color: var(--brand);
}

.footer-bottom .divider {
    color: var(--border);
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: var(--modal-backdrop);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-container {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    position: relative;
    z-index: 2;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modal-enter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modal-enter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 24px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

/* Forms Elements */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 12px;
    background-color: var(--panel);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand);
}

textarea.form-control {
    height: 100px;
    padding: 10px 12px;
    resize: vertical;
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
    cursor: pointer;
    margin-top: 10px;
    user-select: none;
}

.form-checkbox-label input {
    margin-top: 3px;
}

.form-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
    display: none;
}

.form-error.active {
    display: block;
}

.form-submit-row {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

.form-submit-row .btn {
    flex: 1;
}

.success-state {
    display: none;
    text-align: center;
    padding: 32px 16px;
}

.success-state.active {
    display: block;
}

.success-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--brand2);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.success-icon-wrap svg {
    width: 32px;
    height: 32px;
}

.success-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.success-text {
    font-size: 14px;
    color: var(--muted);
}

/* Spinner Loader */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    display: none;
}

.btn-primary.loading .btn-text-node {
    display: none;
}

.btn-primary.loading .spinner {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Dedicated Form Page Styles */
.form-page-layout {
    max-width: 600px;
    margin: 40px auto 80px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 32px;
}

.form-page-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-page-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.form-page-subtitle {
    font-size: 14px;
    color: var(--muted);
}

/* CSS Mockup Fallback inside gallery */
.gallery-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background: var(--brand2);
    border: 2px dashed var(--brand);
    color: var(--accent);
    padding: 24px;
    text-align: center;
}

.gallery-fallback-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.gallery-fallback-subtitle {
    font-size: 12px;
    color: var(--muted);
    max-width: 280px;
}

/* =========================================
Responsive Queries (Tablet and Desktop)
========================================= */

@media (min-width: 640px) {
    .who-is-it-for-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    body {
        padding-top: 80px;
    }

    .nav-menu {
        display: flex;
    }

    .hero-title {
        font-size: 54px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

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

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

    .who-is-it-for-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99;
    background-color: var(--brand);
    color: #0b2216;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s, background-color 0.2s;
}

.back-to-top-btn:hover {
    background-color: var(--brand-hover);
    transform: translateY(-2px);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn svg {
    width: 20px;
    height: 20px;
}

/* =========================================
   Mobile Navigation Menu & Hamburger
   ========================================= */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: transparent;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background-color: var(--brand2);
    border-color: var(--brand);
}

.mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
}

/* Mobile Nav Drawer Panel */
.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 98;
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    gap: 32px;
    border-top: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

html.dark-theme .mobile-nav-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:hover {
    color: var(--brand);
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
}

.mobile-btn-full {
    width: 100%;
    height: 48px;
    font-size: 16px;
}

/* Hide desktop navbar buttons and show hamburger on mobile */
@media (max-width: 899px) {
    .nav-action-btn {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }
}

/* Legal/Terms Document Page Styles */
.legal-page-layout {
    max-width: 850px;
    margin: 40px auto 80px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 48px;
    color: var(--text);
}

.legal-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.legal-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.25;
}

.legal-date {
    font-size: 14px;
    color: var(--muted);
}

.legal-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--brand);
}

.legal-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-content li {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.legal-divider {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: 32px 0;
}

@media (max-width: 600px) {
    .legal-page-layout {
        padding: 24px;
        margin: 20px 16px 60px;
    }
    
    .legal-title {
        font-size: 22px;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: -350px;
    left: 24px;
    right: 24px;
    max-width: 500px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    padding: 24px;
    z-index: 10000;
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    opacity: 0;
    backdrop-filter: blur(12px);
}

.cookie-banner.show {
    bottom: 24px;
    opacity: 1;
}

@media (min-width: 768px) {
    .cookie-banner {
        right: auto;
    }
}

.cookie-banner-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.cookie-banner-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    margin-bottom: 16px;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cookie-banner-btn {
    flex: 1;
    min-width: 100px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.cookie-banner-btn-accept {
    background: var(--brand);
    color: #0c1a2b;
    border: 1px solid var(--brand);
}

.cookie-banner-btn-accept:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
}

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

.cookie-banner-btn-essential:hover {
    background: var(--brand2);
    border-color: var(--brand);
}

.cookie-banner-btn-customize {
    background: transparent;
    color: var(--muted);
    border: 1px solid transparent;
}

.cookie-banner-btn-customize:hover {
    color: var(--text);
}

/* Preferences panel */
.cookie-banner-preferences {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.cookie-banner-preferences.active {
    display: block;
}

.cookie-pref-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cookie-pref-label {
    display: flex;
    flex-direction: column;
}

.cookie-pref-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.cookie-pref-desc {
    font-size: 11px;
    color: var(--muted);
}

.cookie-pref-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.cookie-pref-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: .4s;
    border-radius: 20px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: var(--brand);
}

input:checked + .cookie-slider:before {
    transform: translateX(16px);
    background-color: #0c1a2b;
}

input:disabled + .cookie-slider {
    opacity: 0.6;
    cursor: not-allowed;
}
