/* ===========================================
   ConnectSoft Marketing Site - Main Stylesheet
   Version: 1.0.0
   
   Base Tailwind CSS is loaded from Flowbite CDN.
   Design tokens are defined in design-tokens.css.
   Component styles are in components.css.
   =========================================== */

/* ===========================================
   BASE TYPOGRAPHY
   =========================================== */

html {
    font-family: var(--font-family-sans);
}

/* Hebrew/RTL Typography */
[lang="he"],
[dir="rtl"] {
    font-family: var(--font-family-hebrew);
}

/* ===========================================
   RTL (Right-to-Left) Support
   =========================================== */

[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

/* RTL margin utilities - Using logical properties where possible */
[dir="rtl"] .ml-1 { margin-right: var(--spacing-1); margin-left: 0; }
[dir="rtl"] .ml-2 { margin-right: var(--spacing-2); margin-left: 0; }
[dir="rtl"] .ml-3 { margin-right: var(--spacing-3); margin-left: 0; }
[dir="rtl"] .ml-4 { margin-right: var(--spacing-4); margin-left: 0; }
[dir="rtl"] .ml-5 { margin-right: var(--spacing-5); margin-left: 0; }
[dir="rtl"] .ml-6 { margin-right: var(--spacing-6); margin-left: 0; }
[dir="rtl"] .ml-8 { margin-right: var(--spacing-8); margin-left: 0; }
[dir="rtl"] .mr-1 { margin-left: var(--spacing-1); margin-right: 0; }
[dir="rtl"] .mr-2 { margin-left: var(--spacing-2); margin-right: 0; }
[dir="rtl"] .mr-3 { margin-left: var(--spacing-3); margin-right: 0; }
[dir="rtl"] .mr-4 { margin-left: var(--spacing-4); margin-right: 0; }
[dir="rtl"] .mr-5 { margin-left: var(--spacing-5); margin-right: 0; }
[dir="rtl"] .mr-6 { margin-left: var(--spacing-6); margin-right: 0; }
[dir="rtl"] .mr-8 { margin-left: var(--spacing-8); margin-right: 0; }

/* RTL padding utilities */
[dir="rtl"] .pl-1 { padding-right: var(--spacing-1); padding-left: 0; }
[dir="rtl"] .pl-2 { padding-right: var(--spacing-2); padding-left: 0; }
[dir="rtl"] .pl-3 { padding-right: var(--spacing-3); padding-left: 0; }
[dir="rtl"] .pl-4 { padding-right: var(--spacing-4); padding-left: 0; }
[dir="rtl"] .pl-5 { padding-right: var(--spacing-5); padding-left: 0; }
[dir="rtl"] .pl-6 { padding-right: var(--spacing-6); padding-left: 0; }
[dir="rtl"] .pl-8 { padding-right: var(--spacing-8); padding-left: 0; }
[dir="rtl"] .pr-1 { padding-left: var(--spacing-1); padding-right: 0; }
[dir="rtl"] .pr-2 { padding-left: var(--spacing-2); padding-right: 0; }
[dir="rtl"] .pr-3 { padding-left: var(--spacing-3); padding-right: 0; }
[dir="rtl"] .pr-4 { padding-left: var(--spacing-4); padding-right: 0; }
[dir="rtl"] .pr-5 { padding-left: var(--spacing-5); padding-right: 0; }
[dir="rtl"] .pr-6 { padding-left: var(--spacing-6); padding-right: 0; }
[dir="rtl"] .pr-8 { padding-left: var(--spacing-8); padding-right: 0; }

/* RTL positioning */
[dir="rtl"] .left-0 { right: 0; left: auto; }
[dir="rtl"] .left-1 { right: var(--spacing-1); left: auto; }
[dir="rtl"] .left-2 { right: var(--spacing-2); left: auto; }
[dir="rtl"] .left-4 { right: var(--spacing-4); left: auto; }
[dir="rtl"] .right-0 { left: 0; right: auto; }
[dir="rtl"] .right-1 { left: var(--spacing-1); right: auto; }
[dir="rtl"] .right-2 { left: var(--spacing-2); right: auto; }
[dir="rtl"] .right-4 { left: var(--spacing-4); right: auto; }

/* RTL text alignment */
[dir="rtl"] .text-left { text-align: right; }
[dir="rtl"] .text-right { text-align: left; }

/* RTL flex utilities */
[dir="rtl"] .flex-row { flex-direction: row-reverse; }
[dir="rtl"] .flex-row-reverse { flex-direction: row; }
[dir="rtl"] .justify-start { justify-content: flex-end; }
[dir="rtl"] .justify-end { justify-content: flex-start; }

/* Keep original direction when explicitly set */
[dir="rtl"] .ltr\:flex-row { flex-direction: row; }
[dir="rtl"] .ltr\:text-left { text-align: left; }
[dir="rtl"] .rtl\:flex-row-reverse { flex-direction: row-reverse; }
[dir="rtl"] .rtl\:text-right { text-align: right; }

/* RTL transform for icons that should mirror */
[dir="rtl"] .rtl-mirror {
    transform: scaleX(-1);
}

/* RTL border radius */
[dir="rtl"] .rounded-l { border-radius: 0 var(--radius-default) var(--radius-default) 0; }
[dir="rtl"] .rounded-r { border-radius: var(--radius-default) 0 0 var(--radius-default); }
[dir="rtl"] .rounded-l-lg { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
[dir="rtl"] .rounded-r-lg { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
[dir="rtl"] .rounded-l-xl { border-radius: 0 var(--radius-xl) var(--radius-xl) 0; }
[dir="rtl"] .rounded-r-xl { border-radius: var(--radius-xl) 0 0 var(--radius-xl); }

/* RTL border */
[dir="rtl"] .border-l { border-left: 0; border-right-width: 1px; }
[dir="rtl"] .border-r { border-right: 0; border-left-width: 1px; }
[dir="rtl"] .border-l-2 { border-left: 0; border-right-width: 2px; }
[dir="rtl"] .border-r-2 { border-right: 0; border-left-width: 2px; }
[dir="rtl"] .border-l-4 { border-left: 0; border-right-width: 4px; }
[dir="rtl"] .border-r-4 { border-right: 0; border-left-width: 4px; }

/* RTL dropdown origin */
[dir="rtl"] .origin-top-right { transform-origin: top left; }
[dir="rtl"] .origin-top-left { transform-origin: top right; }
[dir="rtl"] .origin-bottom-right { transform-origin: bottom left; }
[dir="rtl"] .origin-bottom-left { transform-origin: bottom right; }

/* RTL translate utilities */
[dir="rtl"] .translate-x-full { transform: translateX(-100%); }
[dir="rtl"] .-translate-x-full { transform: translateX(100%); }
[dir="rtl"] .translate-x-1\/2 { transform: translateX(-50%); }
[dir="rtl"] .-translate-x-1\/2 { transform: translateX(50%); }

/* RTL space utilities */
[dir="rtl"] .space-x-1 > * + * { margin-right: var(--spacing-1); margin-left: 0; }
[dir="rtl"] .space-x-2 > * + * { margin-right: var(--spacing-2); margin-left: 0; }
[dir="rtl"] .space-x-3 > * + * { margin-right: var(--spacing-3); margin-left: 0; }
[dir="rtl"] .space-x-4 > * + * { margin-right: var(--spacing-4); margin-left: 0; }
[dir="rtl"] .space-x-6 > * + * { margin-right: var(--spacing-6); margin-left: 0; }
[dir="rtl"] .space-x-8 > * + * { margin-right: var(--spacing-8); margin-left: 0; }

/* RTL list support */
[dir="rtl"] ul,
[dir="rtl"] ol {
    padding-right: var(--spacing-6);
    padding-left: 0;
}

[dir="rtl"] .list-inside {
    padding-right: 0;
}

/* RTL prose adjustments for Tailwind Typography */
[dir="rtl"] .prose ul,
[dir="rtl"] .prose ol {
    padding-right: 1.625em;
    padding-left: 0;
}

[dir="rtl"] .prose ul > li::marker,
[dir="rtl"] .prose ol > li::marker {
    text-align: right;
}

/* RTL checkbox/radio positioning */
[dir="rtl"] input[type="checkbox"] + label,
[dir="rtl"] input[type="radio"] + label {
    margin-right: var(--spacing-2);
    margin-left: 0;
}

/* CTA privacy checkbox: UIKit wraps input+label; gap handled in uikit-overrides */
[dir="rtl"] .cta-checkbox-scope input[type="checkbox"] + label {
    margin-right: 0;
    margin-left: 0;
}

/* RTL logical property support for inline start/end */
.timeline-line {
    inset-inline-start: 15%;
}

/* RTL support for CSS logical properties (ps, pe, ms, me) */
.ps-10 {
    padding-inline-start: 2.5rem;
}

.ps-8 {
    padding-inline-start: 2rem;
}

.pe-8 {
    padding-inline-end: 2rem;
}

.pe-6 {
    padding-inline-end: 1.5rem;
}

.ms-auto {
    margin-inline-start: auto;
}

.ms-2 {
    margin-inline-start: 0.5rem;
}

.me-2 {
    margin-inline-end: 0.5rem;
}

.start-0 {
    inset-inline-start: 0;
}

.end-0 {
    inset-inline-end: 0;
}

/* ===========================================
   ACCESSIBILITY
   =========================================== */

/* Focus visible states */
*:focus-visible {
    outline: 2px solid rgb(var(--color-primary-500));
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    *:focus-visible {
        outline-width: 3px;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: rgb(var(--color-primary-600));
    color: white;
    padding: var(--spacing-2) var(--spacing-4);
    z-index: var(--z-index-tooltip);
    transition: top var(--transition-duration-fast) var(--transition-timing-default);
}

.skip-link:focus {
    top: 0;
}

[dir="rtl"] .skip-link {
    left: auto;
    right: 0;
}

/* ===========================================
   CUSTOM BLAZOR STYLES
   =========================================== */

#blazor-error-ui {
    display: none;
}

#blazor-error-ui.show {
    display: block;
}

/* NavLink active state */
.active {
    background-color: rgb(var(--color-primary-50));
    color: rgb(var(--color-primary-600));
}

.dark .active {
    background-color: rgb(var(--color-primary-900));
    color: rgb(var(--color-primary-300));
}

/* ===========================================
   FORM VALIDATION STATES
   =========================================== */

.valid.modified:not([type=checkbox]) {
    outline: 2px solid rgb(var(--color-success-500));
}

.invalid {
    outline: 2px solid rgb(var(--color-error-500));
}

.validation-message {
    color: rgb(var(--color-error-600));
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    margin-top: var(--spacing-1);
}

.dark .validation-message {
    color: rgb(var(--color-error-400));
}

/* ===========================================
   LOADING SPINNER
   =========================================== */

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: rgb(var(--color-neutral-200));
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: rgb(var(--color-primary-500));
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.dark .loading-progress circle {
    stroke: rgb(var(--color-neutral-700));
}

.dark .loading-progress circle:last-child {
    stroke: rgb(var(--color-primary-400));
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: var(--font-weight-bold);
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    color: rgb(var(--color-text-primary-light));
}

.dark .loading-progress-text {
    color: rgb(var(--color-text-primary-dark));
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Not screen reader only (show when focused) */
.not-sr-only {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Focus-visible only */
.sr-only-focusable:not(:focus):not(:focus-within) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===========================================
   PRINT STYLES
   =========================================== */

@media print {
    /* Hide navigation and footer when printing */
    header,
    footer,
    .no-print {
        display: none !important;
    }
    
    /* Ensure good contrast */
    body {
        color: #000;
        background: #fff;
    }
    
    /* Show URLs for links */
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    /* Avoid page breaks inside cards */
    .ds-card {
        page-break-inside: avoid;
    }
}

/* ===========================================
   HEADER NAVIGATION LINKS
   =========================================== */

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem; /* 18px */
    font-weight: 400;
    transition: color 0.15s ease-in-out;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link.active {
    color: #ffffff;
}

/* ===========================================
   LANGUAGE DROPDOWN
   =========================================== */

.lang-dropdown {
    background: rgb(31, 41, 55) !important; /* bg-gray-800 */
    border: 1px solid rgb(55, 65, 81) !important; /* border-gray-700 */
}

.lang-dropdown ul {
    color: #FFFFFF;
}

.lang-dropdown li {
    font-size: 1.125rem; /* 18px */
    font-weight: 500;
    line-height: 1.3; /* 130% */
    color: #FFFFFF;
    text-align: center;
}

.lang-dropdown li:hover {
    background: rgba(55, 65, 81, 0.5); /* hover:bg-gray-700/50 */
}

.lang-icon {
    width: 40px;
    height: 40px;
    background: rgb(55, 65, 81); /* bg-gray-700 */
    border-radius: 8px; /* rounded-lg */
    flex-shrink: 0;
}

/* ===========================================
   HOME PAGE - SERVICES SECTION
   =========================================== */

.service-card {
    background: rgb(24, 24, 27); /* zinc-900 */
    border: 1px solid rgb(39, 39, 42); /* zinc-800 */
    border-radius: 20px;
    padding: 24px;
    transition: border-color 0.2s ease-in-out;
}

.service-card:hover {
    border-color: rgb(63, 63, 70); /* zinc-700 */
}

.service-icon {
    width: 48px;
    height: 48px;
    background: inherit;
    border-radius: 12px;
    margin-bottom: 24px;
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 130%;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.service-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 140%;
    color: rgba(255, 255, 255, 0.8);
}

/* Roles Section */
.roles-grid {
    /* Только внутренние разделители, без внешних границ */
}

.role-card {
    border-inline-start: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 32px;
    padding-top: 90px;
    padding-bottom: 90px;
}

/* Первая карточка в каждом ряду - без левой/правой границы */
.role-card:nth-child(3n+1) {
    border-inline-start: none;
}

/* Последний ряд - без нижней границы */
.role-card:nth-child(n+4) {
    border-bottom: none;
}

@media (max-width: 1023px) {
    /* 2 колонки */
    .role-card:nth-child(3n+1) {
        border-inline-start: 1px solid rgba(255, 255, 255, 0.2);
    }
    .role-card:nth-child(2n+1) {
        border-inline-start: none;
    }
    .role-card:nth-child(n+4) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    .role-card:nth-child(n+5) {
        border-bottom: none;
    }
}

@media (max-width: 767px) {
    .roles-grid {
        border-inline-start: none;
        border-inline-end: none;
    }
    /* 1 колонка */
    .role-card {
        border-inline-start: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    .role-card:last-child {
        border-bottom: none;
    }
}

/* Role card borders - light theme */
[data-theme="light"] .role-card {
    border-inline-start-color: rgba(0, 0, 0, 0.1);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

@media (max-width: 1023px) {
    [data-theme="light"] .role-card:nth-child(3n+1) {
        border-inline-start-color: rgba(0, 0, 0, 0.1);
    }
    [data-theme="light"] .role-card:nth-child(n+4) {
        border-bottom-color: rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 767px) {
    [data-theme="light"] .role-card {
        border-bottom-color: rgba(0, 0, 0, 0.1);
    }
}

.role-title {
    font-size: 48px;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 24px;
    line-height: 100%;
}

.role-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.role-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 500;
    line-height: 100%;
    color: rgba(255, 255, 255, 0.8);
}

/* Collaboration Section */
.collab-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: rgb(24, 24, 27); /* zinc-900 */
    border: 1px solid rgb(39, 39, 42); /* zinc-800 */
    border-radius: 20px;
    padding: 24px 32px;
    transition: border-color 0.2s ease-in-out;
    position: relative;
}

.collab-card:hover {
    border-color: rgb(63, 63, 70); /* zinc-700 */
}

.collab-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 16px;
}

.collab-content {
    flex: 1;
    padding-bottom: 24px;
}

.collab-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 130%;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.collab-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 130%;
    color: rgba(255, 255, 255, 0.8);
}

.collab-link {
    position: absolute;
    inset-inline-end: 32px;
    bottom: 24px;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 130%;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.collab-link:hover {
    color: #FFFFFF;
}

@media (max-width: 767px) {
    .collab-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .collab-link {
        align-self: flex-end;
    }
    
    [dir="rtl"] .collab-link {
        align-self: flex-start;
    }
}

/* Why ConnectSoft Section */
.why-section-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 48px;
    font-weight: 700;
    font-style: normal;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.why-section-subtitle {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    font-style: normal;
    line-height: 130%;
    letter-spacing: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    max-width: 42rem;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .why-section-title {
        font-size: 36px;
    }
}

/* Feature Cards Section */
.feature-card {
    padding: 16px;
    text-align: start;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.feature-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    font-style: normal;
    line-height: 130%;
    letter-spacing: 0;
    text-align: start;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.feature-description {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 130%;
    letter-spacing: 0;
    text-align: start;
    color: rgba(255, 255, 255, 0.8);
    max-width: 280px;
}

/* ==========================================
   LEGACY Testimonial Section (kept for compatibility)
   ========================================== */
.testimonial-quote {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 32px;
    font-weight: 400;
    font-style: normal;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 32px;
}

@media (max-width: 767px) {
    .testimonial-quote {
        font-size: 24px;
    }
}

.testimonial-avatar {
    width: 96px;
    height: 96px;
    background: rgb(212, 212, 216); /* zinc-300 */
    border-radius: 50%;
    margin: 0 auto 16px;
}

.testimonial-author {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    font-style: normal;
    line-height: 130%;
    letter-spacing: 0;
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.testimonial-role {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 130%;
    letter-spacing: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.testimonial-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

.testimonial-nav-btn:hover {
    color: #FFFFFF;
}

/* Testimonial Rating - UIKit override for dark theme (Figma: gold stars) */
.testimonial-rating svg {
    color: #FBBF24 !important;
    fill: #FBBF24 !important;
}

/* Testimonial Avatar - UIKit override for dark theme */
.testimonial-avatar-component {
    width: 96px !important;
    height: 96px !important;
}

.testimonial-avatar-component > div {
    width: 96px !important;
    height: 96px !important;
    background: rgb(212, 212, 216) !important; /* zinc-300 */
}

/* CTA Form Section */
.cta-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 48px;
    font-weight: 700;
    font-style: normal;
    line-height: 100%;
    letter-spacing: 0;
    color: #FFFFFF;
    margin-bottom: 24px;
}

@media (max-width: 767px) {
    .cta-title {
        font-size: 32px;
    }
}

.cta-description {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    font-style: normal;
    line-height: 130%;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.8);
}

.cta-input {
    width: 100%;
    background: rgb(24, 24, 27) !important; /* zinc-900 */
    border: 1px solid rgb(39, 39, 42) !important; /* zinc-800 */
    border-radius: 12px !important;
    padding: 16px 20px !important;
    color: #FFFFFF !important;
    font-size: 16px;
}

.cta-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.cta-input:focus {
    border-color: rgb(63, 63, 70) !important; /* zinc-700 */
    outline: none !important;
}

.cta-submit-btn {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    padding: 16px 32px !important;
    border: none !important;
    transition: opacity 0.2s ease-in-out !important;
}

.cta-submit-btn:hover {
    opacity: 0.9 !important;
}

/* CTA Form - Privacy Policy Checkbox */
.cta-checkbox {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Inner span inside UIKit <label for="...">; typography also on .cta-checkbox-scope label in uikit-overrides */
.cta-privacy-label {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 130%;
    letter-spacing: 0;
    vertical-align: middle;
    color: rgba(255, 255, 255, 0.8) !important;
}

.cta-privacy-link {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    line-height: 130%;
    letter-spacing: 0;
    vertical-align: middle;
    color: #FFFFFF !important;
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
}

.cta-privacy-link:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* Tech landscape listing — category rail + cards (Figma-aligned, theme-aware) */

.tech-technology-page {
    background-image: url('/images/tech-landscape/Lane.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Figma H1 Desktop — hero title (72px desktop, 110% lh, -2% ls, Text/Primary) */
.tech-landscape-hero-title {
    font-family: 'Heebo', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw + 1.25rem, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-align: center;
    color: #0a0a0a;
}

[data-theme="dark"] .tech-landscape-hero-title {
    color: #ffffff;
}

/* Figma Body large — hero subtitle (18px · 140% · Text/Secondary 80%) */
.tech-landscape-hero-subtitle {
    font-family: 'Heebo', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: center;
    color: rgba(0, 0, 0, 0.62);
}

[data-theme="dark"] .tech-landscape-hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* Tech landscape card — Figma: charcoal surface, hairline border, icon chip, accent arrow */
.tech-landscape-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    padding: 1.25rem 1.25rem 1.125rem;
    border: 1px solid #e5e5e5;
    background-color: #fafafa;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .tech-landscape-card {
    border: 1px solid #2a2a2a;
    background-color: #121212;
    box-shadow: none;
}

.tech-landscape-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
}

/* Icon chip: same dark frame in light and dark theme (Figma) */
.tech-landscape-card-icon-slot {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
    background-color: #1a1a1a;
}

.tech-landscape-card-icon {
    display: block;
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
}

.tech-landscape-card-headline {
    flex: 1 1 0;
    min-width: 0;
    text-align: start;
}

.tech-landscape-card-arrow {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.125rem;
    margin-inline-start: auto;
    align-self: flex-start;
    color: #2f61ff;
}

.tech-landscape-card-hit {
    color: inherit;
    text-decoration: none;
    border-radius: 0.5rem;
}

.tech-landscape-card-hit:hover .tech-landscape-card-title {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tech-landscape-card-hit:focus-visible {
    outline: 2px solid rgba(47, 97, 255, 0.65);
    outline-offset: 2px;
}

[data-theme="dark"] .tech-landscape-card-hit:focus-visible {
    outline-color: rgba(96, 165, 250, 0.95);
}

/* Figma H3 Desktop — card title (24px · 130% · Text/Primary) */
.tech-landscape-card-title {
    font-family: 'Heebo', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: 0;
    text-align: start;
    color: #0a0a0a;
    margin: 0;
}

[data-theme="dark"] .tech-landscape-card-title {
    color: #ffffff;
}

/* Category — medium grey on dark (#9E9E9E) */
.tech-landscape-card-category {
    font-family: 'Heebo', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: start;
    color: #757575;
    margin: 0.125rem 0 0;
}

[data-theme="dark"] .tech-landscape-card-category {
    color: #9e9e9e;
}

.tech-landscape-card-subtitle {
    font-family: 'Heebo', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    text-align: start;
    color: #757575;
    margin: 0.25rem 0 0;
}

[data-theme="dark"] .tech-landscape-card-subtitle {
    color: #9e9e9e;
}

.tech-landscape-card-icon-fallback {
    font-family: 'Heebo', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
}

/* Figma Body base — card description (16px · 140% · Text/Secondary 80%) */

/* Figma Body base: inactive sidebar — Heebo 400 · 16px · 140% lh · Text/Secondary */
.tech-landscape-category-btn {
    font-family: 'Heebo', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 0;
}

.tech-landscape-category-btn:not(.tech-landscape-category-btn--active) {
    background-color: transparent;
    color: rgba(0, 0, 0, 0.62);
}

.tech-landscape-category-btn:not(.tech-landscape-category-btn--active):hover {
    color: #0a0a0a;
}

[data-theme="dark"] .tech-landscape-category-btn:not(.tech-landscape-category-btn--active) {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .tech-landscape-category-btn:not(.tech-landscape-category-btn--active):hover {
    color: #ffffff;
}

.tech-landscape-category-btn--active {
    background-color: #171717;
    color: #ffffff;
}

[data-theme="dark"] .tech-landscape-category-btn--active {
    background-color: #ffffff;
    color: #0a0a0a;
}

.tech-landscape-card-desc {
    font-family: 'Heebo', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: start;
    margin: 1.5rem 0 0;
    color: #616161;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="dark"] .tech-landscape-card-desc {
    color: #9e9e9e;
}

/* Tech landscape — search returned zero results (Figma empty state) */
.tech-landscape-search-empty {
    max-width: 560px;
    margin-inline: auto;
    padding: 3rem 1.5rem;
    text-align: center;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fafafa;
}

/* Figma: 48×48 asset, stroke #B2B2B2 / 3px, round caps */
.tech-landscape-search-empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    color: #b2b2b2;
}

.tech-landscape-search-empty-icon svg {
    display: block;
    width: 48px;
    height: 48px;
}

/* Figma H3 desktop: Heebo 700, 24px, line-height 130%, center */
.tech-landscape-search-empty-title {
    font-family: 'Heebo', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: 0;
    margin: 0 0 0.75rem;
    color: #0a0a0a;
    text-align: center;
}

/* Figma body: Heebo 400, 16px, line-height 140%, Text/Secondary @ 80% */
.tech-landscape-search-empty-desc {
    font-family: 'Heebo', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 0;
    margin: 0 auto 1.75rem;
    max-width: 26rem;
    color: rgba(10, 10, 10, 0.8);
    text-align: center;
}

/* Figma button.secondary / layout: flex row, padding 16 24, radius 30, gap 10; big buttons: Heebo 700 16px lh 90% */
.tech-landscape-search-empty-cta {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    min-height: 46px;
    min-width: 220px;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-family: 'Heebo', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 0.9;
    letter-spacing: 0;
    background: #08090a;
    color: #ffffff;
    transition: opacity 300ms ease-out;
}

.tech-landscape-search-empty-cta:hover {
    opacity: 0.9;
}

[data-theme="dark"] .tech-landscape-search-empty {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(24, 24, 27, 0.92);
}

[data-theme="dark"] .tech-landscape-search-empty-title {
    color: #ffffff;
}

[data-theme="dark"] .tech-landscape-search-empty-desc {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .tech-landscape-search-empty-cta {
    background: #ffffff;
    color: #08090a;
}

/* Tech landscape — inline brand SVGs (React / Next.js / Docker) */
.tech-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.tech-brand-icon--card svg {
    width: 1.75rem;
    height: auto;
    max-height: 1.875rem;
}

.tech-brand-icon--hero svg {
    width: 4rem;
    height: auto;
    max-height: 4.75rem;
}

.tech-brand-icon--related svg {
    width: 2.5rem;
    height: auto;
    max-height: 2.5rem;
}

/* Logos that use currentColor for the wordmark (Next.js, AWS letters, GitHub octocat) */
.tech-brand-icon--surface-ink {
    color: #0a0a0a;
}

[data-theme="dark"] .tech-brand-icon--surface-ink {
    color: #ffffff;
}

/* Dark icon chips on detail page — wordmarks stay light on #1a1a1a in both themes */
.tech-technology-hero-icon-wrap .tech-brand-icon--surface-ink,
.tech-technology-related-icon-wrap .tech-brand-icon--surface-ink {
    color: #ffffff;
}

/* Tech landscape — technology detail (Figma: centered hero, glass cards, checklist + related) */
/* Narrower column on large screens so content is not edge-to-edge (overrides .blog-shell max-width: none from figma-redesign). */
.tech-technology-page .blog-shell {
    max-width: 68rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.tech-technology-detail {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .tech-technology-detail {
        gap: 2.5rem;
    }
}

/* Figma: Back link — Helvetica Neue 16 / 500 / 140%, Border/Action/Primary #0052FF */
.tech-technology-back {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    direction: ltr;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 0;
    color: #0052ff;
    text-decoration: none;
    margin-bottom: 0;
    align-self: flex-start;
    vertical-align: middle;
    transition: opacity 0.15s ease;
}

.tech-technology-back:hover {
    opacity: 0.88;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tech-technology-back:focus-visible {
    outline: 2px solid rgba(0, 82, 255, 0.45);
    outline-offset: 2px;
    border-radius: 2px;
}

.tech-technology-back-icon {
    flex-shrink: 0;
    display: block;
}

.tech-technology-hero {
    text-align: center;
    margin-bottom: 0;
}

.tech-technology-hero-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.5rem;
    height: 5.5rem;
    margin-bottom: 1.25rem;
    border-radius: 0.75rem;
    background-color: #1a1a1a;
}

.tech-technology-hero-icon-img {
    width: 4rem;
    height: 4rem;
}

/* Figma: H2 Desktop — title (visual H2; markup stays h1 for a11y) */
.tech-technology-hero-title {
    font-family: 'Heebo', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 1.25rem + 2.5vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0 0 0.5rem;
    color: #0a0a0a;
    text-align: center;
}

[data-theme="dark"] .tech-technology-hero-title {
    color: #ffffff;
}

/* Figma: Body base + Text/Secondary (80% white on dark) */
.tech-technology-hero-category {
    font-family: 'Heebo', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 0;
    margin: 0 0 0.75rem;
    color: rgba(10, 10, 10, 0.72);
    text-align: center;
}

[data-theme="dark"] .tech-technology-hero-category {
    color: rgba(255, 255, 255, 0.8);
}

/* Figma: Body large + Text/Secondary */
.tech-technology-hero-tagline {
    font-family: 'Heebo', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: 0;
    max-width: 40rem;
    margin: 0 auto;
    color: rgba(10, 10, 10, 0.72);
    text-align: center;
}

[data-theme="dark"] .tech-technology-hero-tagline {
    color: rgba(255, 255, 255, 0.8);
}

/* Figma: Surface/Card — #FFFFFF @ 4%, background blur, radius/Large, padding 24, gap 16 */
.tech-technology-panel {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 1rem;
    padding: 24px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background-color: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .tech-technology-panel {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}

/* Figma: H3 Desktop (24px / 130%) — panel section titles */
.tech-technology-panel-title {
    font-family: 'Heebo', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
    letter-spacing: 0;
    margin: 0;
    color: #0a0a0a;
    text-align: start;
}

[data-theme="dark"] .tech-technology-panel-title {
    color: #ffffff;
}

.tech-technology-panel .blog-article-body {
    max-width: none;
    margin: 0;
}

[data-theme="light"] .tech-technology-panel .blog-article-body {
    color: rgba(10, 10, 10, 0.72);
}

[data-theme="light"] .tech-technology-panel .blog-article-body h2,
[data-theme="light"] .tech-technology-panel .blog-article-body h3 {
    color: #0a0a0a;
}

/* Figma: Body base + Text/Secondary — overview markdown body */
.tech-technology-overview .tech-technology-body.blog-article-body {
    font-family: 'Heebo', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 0;
}

[data-theme="dark"] .tech-technology-overview .tech-technology-body.blog-article-body,
[data-theme="dark"] .tech-technology-overview .tech-technology-body.blog-article-body p {
    color: rgba(255, 255, 255, 0.8);
}

.tech-technology-split {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .tech-technology-split:not(.tech-technology-split--single) {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: stretch;
    }
}

.tech-technology-split--single {
    grid-template-columns: 1fr;
}

/* Same row height for checklist + related (Figma): both cards stretch to the taller column */
.tech-technology-split > .tech-technology-panel {
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tech-technology-checklist .tech-technology-checklist-list {
    flex: 1 1 auto;
}

.tech-technology-related nav {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.tech-technology-checklist-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-technology-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-family: 'Heebo', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: rgba(10, 10, 10, 0.88);
}

[data-theme="dark"] .tech-technology-checklist-item {
    color: rgba(255, 255, 255, 0.8);
}

.tech-technology-checklist-check {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 0.2em;
    color: #3b82f6;
}

.tech-technology-checklist-text {
    min-width: 0;
}

.tech-technology-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 0;
}

.tech-technology-related-item {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.tech-technology-related-item:last-child {
    border-bottom: none;
}

[data-theme="dark"] .tech-technology-related-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.tech-technology-related-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 3.5rem;
    padding: 1rem 0;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s ease;
}

.tech-technology-related-link:hover {
    opacity: 0.88;
}

/* Same dark frame as listing cards / Figma (light + dark theme) */
.tech-technology-related-icon-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.625rem;
    background-color: #1a1a1a;
}

.tech-technology-related-icon-img {
    width: 2.25rem;
    height: 2.25rem;
}

.tech-technology-related-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
    min-width: 0;
    text-align: start;
}

.tech-technology-related-title {
    font-family: 'Heebo', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.25;
    color: #0a0a0a;
}

[data-theme="dark"] .tech-technology-related-title {
    color: #ffffff;
}

/* Related row: category slightly smaller than title (Figma hierarchy) */
.tech-technology-related-category {
    font-family: 'Heebo', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.35;
    letter-spacing: 0;
    color: rgba(10, 10, 10, 0.65);
}

[data-theme="dark"] .tech-technology-related-category {
    color: rgba(255, 255, 255, 0.72);
}

.tech-technology-related-link:focus-visible {
    outline: 2px solid rgba(47, 97, 255, 0.65);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

[data-theme="dark"] .tech-technology-related-link:focus-visible {
    outline-color: rgba(96, 165, 250, 0.95);
}