/* Minimalistic, Compact, Conservative Design for wish.oc.lv
   Extended with premium analytics landing layout for data.oc.lv */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #020617;
    --secondary-color: #64748b;
    --accent-color: #22c55e;
    --bg-light: #020617;
    --bg-surface: #020617;
    --text-color: #e5e7eb;
    --text-muted: #9ca3af;
    --border-color: #1e293b;
    --font-family-base: 'Inter', system-ui, -apple-system, sans-serif;
    --header-height: 70px;
}

[data-theme="dark"] {
    --primary-color: #f9fafb;
    --secondary-color: #94a3b8;
    --accent-color: #22c55e;
    --bg-light: #020617;
    --bg-surface: #020617;
    --text-color: #e5e7eb;
    --text-muted: #9ca3af;
    --border-color: #1e293b;
    --control-surface: rgba(255, 255, 255, 0.06);
    --control-surface-strong: rgba(255, 255, 255, 0.12);
    --control-border: rgba(148, 163, 184, 0.24);
    --control-glow: rgba(96, 165, 250, 0.18);
}

body {
    background-color: var(--bg-light);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ------------ Global Layout for Landing Page ------------ */

.section {
    padding: 72px 0;
}

.section-muted {
    padding: 72px 0;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.06), transparent 55%),
                radial-gradient(circle at bottom right, rgba(147, 51, 234, 0.06), transparent 55%);
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.section-intro {
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 2rem;
}

.section-header {
    margin-bottom: 2.5rem;
}

.cards-grid {
    display: grid;
    gap: 1.5rem;
}

.cards-grid--two {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.cards-grid--three {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .cards-grid--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cards-grid--three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.card-glass {
    position: relative;
    border-radius: 18px;
    padding: 1.5rem 1.6rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.98));
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .card-glass {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.98));
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.9);
}

.card-glass:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.18);
}

.card-outline {
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    padding: 1.6rem 1.8rem;
    background: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .card-outline {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(148, 163, 184, 0.5);
}

.card-simple {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 1.3rem 1.4rem;
    background: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] .card-simple {
    background: rgba(15, 23, 42, 0.9);
}

.card-title {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.card-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 0.6rem;
}

.card-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.card-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-list {
    padding-left: 1rem;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.card-list li + li {
    margin-top: 0.25rem;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

/* Ad Placeholders */
.ad-slot {
    background-color: var(--bg-surface);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ad-slot:hover {
    border-color: var(--secondary-color);
}

/* Dark Mode Card Overrides */
.card-minimal,
.poem-card,
.site-header,
.site-footer,
.sidebar-nav-link:hover,
.mobile-bottom-nav {
    background-color: var(--bg-surface) !important;
    border-color: var(--border-color) !important;
}

.offcanvas-mobile-menu {
    background-color: var(--bg-surface);
}

.sidebar-nav-link,
.nav-link,
.site-logo {
    color: var(--text-color) !important;
}

.mobile-nav-item {
    color: var(--text-muted);
}

/* Mobile Menu Overrides for Outstanding UI */
.offcanvas-mobile-menu {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.offcanvas-header .btn-close {
    opacity: 0.8;
}

.mobile-menu-link {
    display: block;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.2s;
}

.mobile-menu-link:hover {
    background-color: rgba(0, 0, 0, 0.02);
    padding-left: 25px;
    /* Subtle slide effect */
    color: var(--accent-color);
    text-decoration: none;
}

.mobile-menu-link i {
    width: 24px;
    text-align: center;
    margin-right: 10px;
    color: var(--secondary-color);
}

/* Navbar adjustments */
.navbar-mobile-toggle {
    border: none;
    background: transparent;
    font-size: 24px;
    color: var(--primary-color);
    padding: 5px 10px;
}

@media (max-width: 991px) {
    .site-header .container {
        display: flex;
        align-items: center;
        justify-content: center;
        /* Logo centered */
        position: relative;
    }

    .navbar-mobile-toggle-wrapper {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .user-actions-wrapper {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .logo-section {
        padding: 20px 0;
    }

    .site-logo {
        font-size: 24px;
    }
}

body {
    font-family: var(--font-family-base);
    font-size: 15px;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Typography Tweaks */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--primary-color);
}

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

/* Layout Containers */
.container-limited {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Section */
.site-header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .site-header {
    background: rgba(15, 23, 42, 0.94);
}

.logo-section {
    padding: 40px 0 30px;
    /* Large space for logo */
    text-align: center;
}

.site-logo {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid transparent;
}

.site-logo:hover {
    color: #000;
    text-decoration: none;
}

/* Navigation - Mega Menu */
.navbar-custom {
    padding: 0;
    justify-content: center;
    border-top: 1px solid var(--border-color);
}

.navbar-nav .nav-link {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 15px 20px !important;
    color: var(--text-color);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #e5e7eb;
    background-color: rgba(148, 163, 184, 0.12);
}

/* Mega Menu Dropdown */
.dropdown-menu.mega-menu {
    border: none;
    border-radius: 0;
    margin-top: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 30px;
    display: block;
    /* Controlled via opacity/visibility for animation */
    opacity: 0;
    visibility: hidden;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
    background: #fff;
}

.nav-item.dropdown:hover .dropdown-menu.mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
    /* Ensure it takes space/renders */
}

/* Mega Menu Content */
.mega-menu-title {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.mega-menu-list a {
    color: var(--text-color);
    font-size: 13px;
    display: block;
    padding: 2px 0;
}

.mega-menu-list a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

/* Main Content */
.main-content {
    min-height: 60vh;
    padding: 0;
}

/* Footer */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    font-size: 12px;
    color: var(--secondary-color);
    text-align: center;
}

[data-theme="dark"] .site-footer {
    background: #020617;
}

/* Components */
.btn-compact {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 2px;
    /* Slight roundness, almost square */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.form-control-compact {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 2px;
}

[data-theme="dark"] .form-control {
    color: var(--text-color);
    background-color: var(--bg-light);
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

[data-theme="dark"] .form-control:-webkit-autofill,
[data-theme="dark"] .form-control:-webkit-autofill:hover,
[data-theme="dark"] .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-color);
    -webkit-box-shadow: 0 0 0 1000px var(--bg-light) inset;
}

/* Cards */
.card-minimal {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #fff;
    transition: all 0.3s ease;
}

.card-minimal:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Mobile Sticky Menu */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    padding-bottom: env(safe-area-inset-bottom, 15px);
    /* iOS Safe Area */
    z-index: 1030;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.03);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    width: 16%;
    transition: all 0.2s ease;
}

.mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Sidebar Navigation (Desktop) */
.sidebar-nav-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-color);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
    transition: all 0.2s;
}

.sidebar-nav-link:hover,
.sidebar-nav-link.active {
    background-color: #fff;
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    text-decoration: none;
}

.sidebar-nav-link i {
    width: 24px;
    color: var(--secondary-color);
    font-size: 16px;
}

.sidebar-nav-link.active i {
    color: var(--accent-color);
}

/* Poem Cards - Outstanding UI */
.poem-card {
    background: #fff;
    border: none;
    /* No border for cleaner look */
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.poem-grid {
    column-count: 1;
    column-gap: 1.25rem;
}

.poem-grid__item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin: 0 0 1.25rem;
    vertical-align: top;
}

.poem-grid__item--ad .ad-slot {
    width: 100%;
}

.ad-slot {
    min-height: 90px;
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.5);
    background: linear-gradient(180deg, rgba(248,250,252,0.95), rgba(241,245,249,0.95));
    display: grid;
    place-items: center;
}

.ad-slot__hint {
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}

.poem-feed-sentinel {
    height: 1px;
    width: 100%;
}

@media (min-width: 768px) {
    .poem-grid {
        column-count: 2;
    }
}

@media (min-width: 1200px) {
    .poem-grid {
        column-count: 3;
    }
}

.poem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.poem-category-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    padding: 4px 2px 8px;
}

.poem-category-chip {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 112px;
    padding: 12px 10px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #ffffff;
    color: #344054;
    text-decoration: none;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    transition: transform .22s ease, box-shadow .22s ease, border-color .2s ease, color .2s ease, background .2s ease;
}

.poem-category-chip:hover {
    border-color: rgba(99, 102, 241, 0.45);
    color: #1d4ed8;
    background: #f7f9ff;
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(31, 41, 55, 0.12);
}

.poem-category-chip.is-active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 26px rgba(79, 70, 229, 0.28);
}

.poem-category-chip__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(79, 70, 229, 0.12);
    color: #4f46e5;
    font-size: 1rem;
    line-height: 1;
}

.poem-category-chip.is-active .poem-category-chip__icon {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.poem-category-chip__label {
    display: block;
    width: 100%;
    max-width: 100%;
    line-height: 1.2;
    font-size: 11px;
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.poem-category-chip__count {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.poem-category-chip.is-active .poem-category-chip__count {
    background: rgba(255, 255, 255, 0.2);
}

.poem-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 700;
}

.poem-content {
    font-size: 10px;
    /* Smaller font as requested */
    line-height: 0.8;
    color: #4a5568;
    font-family: 'Inter', sans-serif;
    /* Clean font */
    position: relative;
    padding: 25px;
    text-align: left;
    white-space: pre-line;
    /* Keep line breaks, collapse extra leading spaces */
}

@media (max-width: 768px) {
    .poem-category-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        margin-inline: -8px;
        padding: 2px 8px 10px;
        scrollbar-width: none;
    }

    .poem-category-nav::-webkit-scrollbar {
        display: none;
    }

    .poem-category-chip {
        flex: 0 0 106px;
        min-height: 106px;
        padding: 10px 8px;
        scroll-snap-align: start;
        scroll-margin-inline: 14px;
        border-radius: 16px;
    }

    .poem-category-chip__icon {
        width: 34px;
        height: 34px;
        font-size: 0.92rem;
    }

    .poem-category-chip__label {
        font-size: 10px;
        line-height: 1.15;
    }

    .poem-category-chip__count {
        top: 7px;
        right: 7px;
    }
}

@media (max-width: 767.98px) {
    .site-header .container {
        height: var(--header-height) !important;
        min-height: var(--header-height);
        display: flex !important;
        flex-wrap: nowrap;
        align-items: center !important;
        justify-content: space-between !important;
        padding-top: 0;
        padding-bottom: 0;
        row-gap: 0;
    }

    .site-header .container > .d-lg-none {
        order: 1;
        flex: 0 0 auto;
        position: static !important;
    }

    .site-header .container > .user-actions-wrapper {
        order: 2;
        flex: 0 0 auto;
        margin-left: auto;
        position: static !important;
        transform: none !important;
        right: auto !important;
        top: auto !important;
        gap: 10px !important;
    }

    .site-header .container > .logo-section {
        order: 1;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        padding: 0 !important;
        text-align: center !important;
    }

    .site-header .container > .logo-section .site-logo {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 4px;
        font-size: 16px !important;
        line-height: 1.1;
        padding: 0 !important;
        max-width: 100%;
        white-space: nowrap;
    }

    .site-header .container > .logo-section .site-logo .tracking-wider {
        letter-spacing: 0.03em !important;
        font-size: 0.92em;
    }

    .navbar-mobile-toggle {
        padding: 4px 8px;
        font-size: 20px;
    }
}

/* Interaction Actions */
.interaction-bar {
    padding: 10px 20px;
    background: #fcfcfc;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.action-btn {
    border: none;
    background: transparent;
    color: #cbd5e0;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
}

.action-btn span {
    font-size: 11px;
    font-weight: 600;
}

.action-btn:hover {
    color: var(--primary-color);
}

.action-btn.active.like-btn {
    color: #e53e3e;
    /* Red for like */
}

.action-btn.active.fav-btn {
    color: #ecc94b;
    /* Yellow/Gold for favorite */
}

.action-btn i.bi-heart-fill,
.action-btn i.bi-star-fill {
    transform: scale(1.1);
}

.site-footer {
    padding-bottom: 30px;
}

@media (min-width: 768px) {
    [data-theme="dark"] .user-actions-wrapper > .btn,
    [data-theme="dark"] .user-actions-wrapper > .btn-link,
    [data-theme="dark"] .user-actions-wrapper > .dropdown > a,
    [data-theme="dark"] .user-actions-wrapper > .dropdown > button,
    [data-theme="dark"] .d-flex.align-items-center.justify-content-between .dropdown-toggle.btn-outline-secondary {
        color: #e6edf7 !important;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
        border: 1px solid var(--control-border);
        border-radius: 14px;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(14px);
        transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
    }

    [data-theme="dark"] .user-actions-wrapper > .btn-link,
    [data-theme="dark"] .user-actions-wrapper > .dropdown > a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 42px;
        min-height: 42px;
        padding: 0 14px !important;
        text-decoration: none;
    }

    [data-theme="dark"] .user-actions-wrapper > .btn-link:hover,
    [data-theme="dark"] .user-actions-wrapper > .btn-link:focus-visible,
    [data-theme="dark"] .user-actions-wrapper > .dropdown > a:hover,
    [data-theme="dark"] .user-actions-wrapper > .dropdown > a:focus-visible,
    [data-theme="dark"] .user-actions-wrapper > .dropdown > button:hover,
    [data-theme="dark"] .user-actions-wrapper > .dropdown > button:focus-visible,
    [data-theme="dark"] .d-flex.align-items-center.justify-content-between .dropdown-toggle.btn-outline-secondary:hover,
    [data-theme="dark"] .d-flex.align-items-center.justify-content-between .dropdown-toggle.btn-outline-secondary:focus-visible {
        color: #ffffff !important;
        background: linear-gradient(180deg, rgba(96, 165, 250, 0.22), rgba(59, 130, 246, 0.12));
        border-color: rgba(125, 211, 252, 0.45);
        box-shadow: 0 16px 38px rgba(2, 6, 23, 0.4), 0 0 0 4px var(--control-glow);
        transform: translateY(-1px);
    }

    [data-theme="dark"] .user-actions-wrapper .bi,
    [data-theme="dark"] .d-flex.align-items-center.justify-content-between .dropdown-toggle.btn-outline-secondary::after {
        color: inherit;
        opacity: 0.96;
    }

    [data-theme="dark"] .d-flex.align-items-center.justify-content-between .dropdown-toggle.btn-outline-secondary {
        padding: 0.7rem 1rem;
        font-size: 0.74rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    [data-theme="dark"] .dropdown-menu {
        background-color: #161b22;
        border: 1px solid rgba(148, 163, 184, 0.16) !important;
        box-shadow: 0 20px 40px rgba(2, 6, 23, 0.45);
    }

    [data-theme="dark"] .dropdown-item {
        color: #d7dee8;
    }

    [data-theme="dark"] .dropdown-item:hover,
    [data-theme="dark"] .dropdown-item:focus {
        color: #ffffff;
        background: rgba(96, 165, 250, 0.12);
    }
}

/* ------------ Hero Section for data.oc.lv ------------ */

.section-hero {
    position: relative;
    overflow: hidden;
    padding-top: 88px;
    padding-bottom: 72px;
}

.hero-gradient {
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.32), transparent 60%),
        radial-gradient(circle at bottom right, rgba(147, 51, 234, 0.35), transparent 60%);
    opacity: 0.75;
    z-index: -2;
}

.hero-noise {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.08) 1px, transparent 0);
    background-size: 18px 18px;
    opacity: 0.18;
    z-index: -1;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 991.98px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 0.5rem;
    }
}

.hero-main {
    max-width: 640px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.03);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #0f172a;
    margin-bottom: 0.9rem;
}

[data-theme="dark"] .hero-kicker {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(148, 163, 184, 0.55);
    color: #e5e7eb;
}

.hero-title {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    line-height: 1.1;
    margin-bottom: 0.9rem;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 36rem;
    margin-bottom: 1.4rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.6rem;
}

.btn-hero-primary,
.btn-hero-secondary {
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #f9fafb;
    border: none;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.btn-hero-primary:hover {
    color: #f9fafb;
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.55);
    transform: translateY(-1px);
}

.btn-hero-secondary {
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a;
}

[data-theme="dark"] .btn-hero-secondary {
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
}

.btn-compact-wide {
    min-width: 180px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    font-size: 0.8rem;
}

.hero-stat {
    min-width: 90px;
}

.hero-stat-value {
    font-size: 1.3rem;
    font-weight: 600;
}

.hero-stat-label {
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-orbit {
    position: relative;
    width: 260px;
    height: 260px;
}

.hero-orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 1px dashed rgba(148, 163, 184, 0.7);
}

.hero-orbit-ring--inner {
    inset: 16%;
    border-style: solid;
    border-color: rgba(59, 130, 246, 0.55);
}

.hero-orbit-node {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #22c55e);
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.5);
}

.hero-orbit-node--top-left {
    top: 10%;
    left: 4%;
}

.hero-orbit-node--top-right {
    top: 6%;
    right: 8%;
}

.hero-orbit-node--bottom-left {
    bottom: 6%;
    left: 14%;
}

.hero-orbit-node--bottom-right {
    bottom: 12%;
    right: 4%;
}

.hero-orbit-core {
    position: absolute;
    inset: 26%;
    border-radius: 24px;
    background: radial-gradient(circle at top left, #0f172a, #020617);
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    text-align: center;
    font-size: 0.9rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

.hero-orbit-core span {
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-orbit-core small {
    font-size: 0.7rem;
    color: #9ca3af;
}

.hero-mini-panel {
    position: absolute;
    bottom: -10px;
    right: 10px;
    padding: 0.75rem 0.95rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 180px;
}

.hero-mini-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.65rem;
    color: #9ca3af;
}

.hero-mini-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.24);
    font-size: 0.7rem;
}

@media (max-width: 767.98px) {
    .section {
        padding: 52px 0;
    }
    .section-muted {
        padding: 52px 0;
    }
    .section-hero {
        padding-top: 72px;
        padding-bottom: 52px;
    }
    .hero-orbit {
        width: 210px;
        height: 210px;
    }
}

/* ------------ Reveal Animations ------------ */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-hero.reveal {
    transform: translateY(16px);
}

.section-hero.reveal-visible {
    transform: translateY(0);
}

/* ------------ Industries & Stack ------------ */

.industries-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pill-card {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    gap: 0.35rem;
}

.pill-card--subtle {
    background: rgba(248, 250, 252, 0.85);
}

[data-theme="dark"] .pill-card,
[data-theme="dark"] .pill-card--subtle {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.6);
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
}

.pill-text {
    white-space: nowrap;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.2rem;
}

@media (min-width: 768px) {
    .stack-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.stack-card {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 1.3rem 1.4rem;
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .stack-card {
    background: rgba(15, 23, 42, 0.9);
}

.stack-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-color);
    margin-bottom: 0.6rem;
}

.stack-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.stack-chip {
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
    font-size: 0.7rem;
}

[data-theme="dark"] .stack-chip {
    background: rgba(15, 23, 42, 0.85);
}

/* ------------ Timeline ------------ */

.timeline {
    position: relative;
    padding-left: 1.2rem;
    border-left: 1px solid rgba(148, 163, 184, 0.6);
}

.timeline-item {
    position: relative;
    padding-left: 0.8rem;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -1.35rem;
    top: 0.15rem;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #22c55e);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
}

.timeline-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--secondary-color);
}

.timeline-title {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.timeline p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ------------ Assessment CTA ------------ */

.assessment-card {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.8rem 1.9rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f172a, #111827);
    color: #e5e7eb;
}

@media (max-width: 767.98px) {
    .assessment-card {
        grid-template-columns: minmax(0, 1fr);
    }
}

.assessment-aside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
}

.assessment-note {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* ------------ FAQ ------------ */

.faq-item {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0.6rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.faq-item .accordion-button {
    font-size: 0.9rem;
    font-weight: 500;
}

.faq-item .accordion-body {
    font-size: 0.85rem;
}

/* ------------ Contact ------------ */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
    gap: 1.7rem;
}

@media (max-width: 991.98px) {
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.contact-form-card {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 1.5rem 1.6rem;
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .contact-form-card {
    background: rgba(15, 23, 42, 0.95);
}

.contact-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.85rem;
}

.contact-aside-block h3 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.contact-small-print {
    margin-top: 0.6rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}
