:root {
    --primary-default: #6366F1;
    --primary-hover: #4F46E5;
    --primary-light: #EEF2FF;
    --primary-surface: #F5F7FF;
    --secondary-default: #EC4899;
    --secondary-hover: #DB2777;
    --secondary-light: #FDF2F8;
    --accent-default: #06B6D4;
    --accent-hover: #0891B2;
    --accent-light: #ECFEFF;
    --bg-main: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-surface-alt: #F1F5F9;
    --bg-tinted: #F3F4FD;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --border-subtle: #E2E8F0;
    --border-soft: #CBD5E1;
    --border-highlight: rgba(99, 102, 241, 0.2);
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: clip;
}
html {
    overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.text-muted {
    color: #94A3B8 !important;
}

.font-heading {
    font-family: var(--font-heading);
}

.font-mono {
    font-family: var(--font-mono);
}

.transition-default {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== header ===== */
.site-main-header {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #FFFFFF;
}

.site-main-header .header-nav-link {
    position: relative;
}

.site-main-header .header-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366F1, #EC4899);
    border-radius: 2px;
    transition: width 0.2s ease-in-out;
}

.site-main-header .header-nav-link:hover::after {
    width: 100%;
}

.site-main-header .js-mobile-navigation {
    transition: all 0.25s ease-in-out;
}

/* ===== hero_section ===== */
.hero-blamder-block {
    background-color: #F8FAFC;
    position: relative;
    width: 100%
}

.hero-blamder-block .hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%
}

.hero-blamder-block .hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.hero-blamder-block .hero-overlay {
    backdrop-filter: blur(2px)
}

.hero-blamder-block a {
    text-decoration: none
}

/* ===== with_what_we_work ===== */
.blamder-tools-section .active-tab {
    background-color: #6366F1;
    color: #FFFFFF;
    border-color: #6366F1;
}

.blamder-tools-section .js-tool-card {
    will-change: transform, opacity;
}

.blamder-tools-section .js-tool-card.is-hidden {
    display: none;
}

/* ===== case_with_numbers ===== */
.case-block {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.case-block * {
    box-sizing: border-box;
}

.case-block .js-stat-counter {
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
}

/* ===== who_will_work ===== */
.specialists-section {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.specialists-section .specialist-card {
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
}

.specialists-section .specialist-card:hover {
    box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
}

/* ===== dictionary_for_beginners ===== */
#dictionary-glossary .dict-term-card {
    transform: translateY(0);
}

#dictionary-glossary .dict-term-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -10px rgba(99, 102, 241, 0.12), 0 4px 10px -4px rgba(15, 23, 42, 0.04);
    border-color: #CBD5E1;
}

#dictionary-glossary .js-dict-card.is-hidden {
    display: none;
}

/* ===== features_grid ===== */
.features-grid-section {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.features-grid-section p,
.features-grid-section span,
.features-grid-section a {
    font-family: 'Inter', sans-serif;
}

.features-grid-section .features-grid-card {
    min-height: 100%;
}

/* ===== solutions_grid ===== */
.solutions-grid-section .js-filter-btn.active-filter {
    background: #6366F1;
    color: #FFFFFF;
    border-color: #6366F1;
    box-shadow: 0 4px 14px -2px rgba(99, 102, 241, 0.4);
}

.solutions-grid-section .js-filter-btn:not(.active-filter) {
    background: #FFFFFF;
    color: #475569;
    border-color: #E2E8F0;
}

.solutions-grid-section .js-filter-btn:not(.active-filter):hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: #0F172A;
}

.solutions-grid-section .js-solution-card.is-hidden {
    display: none;
}

/* ===== training_grid ===== */
.training-grid-section {
    font-family: 'Inter', sans-serif;
}

.training-grid-section h2,
.training-grid-section h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.training-grid-section .training-card {
    transform: translateZ(0);
}

/* ===== gallery_grid ===== */
.blamder-gallery-section {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.blamder-gallery-section .blamder-gallery-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blamder-gallery-section .blamder-gallery-card:hover {
    transform: translateY(-6px);
}

/* ===== footer ===== */
.site-footer-blamder {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.site-footer-blamder a {
    text-decoration: none;
}

.site-footer-blamder__nav-item a:hover {
    transform: translateX(3px);
}

/* ===== PAGE: features ===== */
.blamder-features-page { font-family: 'Inter', sans-serif; }
.blamder-features-page h1, .blamder-features-page h2, .blamder-features-page h3 { font-family: 'Plus Jakarta Sans', sans-serif; }
.blamder-features-page .blamder-search-input::placeholder { color: #94A3B8; opacity: 1; }
.blamder-features-page .blamder-search-input::-webkit-input-placeholder { color: #94A3B8; }
.blamder-features-page .blamder-search-input::-moz-placeholder { color: #94A3B8; }
.blamder-features-page .active-tab { background-color: #6366F1 !important; color: #FFFFFF !important; border-color: #6366F1 !important; box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.35) !important; }

/* ===== PAGE: solutions ===== */
.solutions-page-wrapper {
  font-family: 'Inter', sans-serif;
}
.solutions-page-wrapper h1, 
.solutions-page-wrapper h2, 
.solutions-page-wrapper h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  hyphens: auto;
}
.solutions-page-wrapper .solution-card {
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
}
.solutions-page-wrapper .solution-card:hover {
  box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
}

/* ===== PAGE: training ===== */
.training-intro-section h1 { hyphens: auto; } .training-list-section h2, .training-list-section h3 { hyphens: auto; } .training-list-section .js-training-card { min-height: 100%; } .training-list-section select, .training-list-section input, .training-list-section textarea { background-color: #FFFFFF; }

/* ===== PAGE: gallery ===== */
.gallery-page-wrapper { font-family: 'Inter', sans-serif; }
.gallery-page-wrapper h1, .gallery-page-wrapper h2, .gallery-page-wrapper h3 { font-family: 'Plus Jakarta Sans', sans-serif; hyphens: auto; }
.gallery-page-wrapper .js-filter-btn.active { background-color: #6366F1; color: #FFFFFF; border-color: #6366F1; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25); }
.gallery-page-wrapper .js-filter-btn { white-space: nowrap; flex-shrink: 0; }
.gallery-page-wrapper input::placeholder { color: #94A3B8; opacity: 1; }
.gallery-page-wrapper .line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== PAGE: privacy ===== */
.blamder-privacy-section input::placeholder { color: #94A3B8; opacity: 1; }
.blamder-privacy-section .js-toc-link.active { background-color: #EEF2FF; color: #4F46E5; font-weight: 600; }
.blamder-privacy-section nav::-webkit-scrollbar { width: 4px; }
.blamder-privacy-section nav::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }

/* ===== PAGE: terms ===== */
.terms-page-content .js-terms-link.active { background-color: #EEF2FF; color: #4F46E5; font-weight: 600; } .terms-page-content .js-terms-card { transition: border-color 0.2s ease, box-shadow 0.2s ease; } .terms-page-content .js-terms-card:hover { border-color: #CBD5E1; }

/* ===== PAGE: disclaimer ===== */
.blamder-disclaimer-section { font-family: 'Inter', sans-serif; }
.blamder-disclaimer-section h1, .blamder-disclaimer-section h2, .blamder-disclaimer-section h3 { font-family: 'Plus Jakarta Sans', sans-serif; }
.blamder-disclaimer-section .js-nav-anchor.active-nav { background-color: #FFFFFF; color: #6366F1; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05); font-weight: 600; }
.blamder-disclaimer-section a { transition: all 0.2s ease-in-out; }

.comment-card.main-comment {
    position: relative;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.comment-avatar {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    min-height: 3rem;
    object-fit: cover;
    border-radius: 1rem;
}

.comment-body {
    color: #334155;
    line-height: 1.625;
    font-size: 0.9375rem;
}

.comment-action-btn {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.comment-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

.comment-card.reply-comment {
    position: relative;
    background: #fafbff;
    border-left: 3px solid #6366f1;
    border-radius: 1rem;
}

.reply-avatar {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    min-height: 2.25rem;
    object-fit: cover;
    border-radius: 0.75rem;
}

.reply-comment .comment-body {
    color: #334155;
    line-height: 1.55;
    font-size: 0.875rem;
}


/* ===== PAGE TEMPLATE: features-list ===== */
.site-main-header {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #FFFFFF;
}

.site-main-header .header-nav-link {
    position: relative;
}

.site-main-header .header-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366F1, #EC4899);
    border-radius: 2px;
    transition: width 0.2s ease-in-out;
}

.site-main-header .header-nav-link:hover::after {
    width: 100%;
}

.site-main-header .js-mobile-navigation {
    transition: all 0.25s ease-in-out;
}

.feature-detail-page {
    font-family: 'Inter', sans-serif;
}

.feature-detail-page h1,
.feature-detail-page h2,
.feature-detail-page h3,
.feature-detail-page h4,
.feature-detail-page h5 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.feature-detail-page .feature-points-list {
    list-style: none;
    padding-left: 0;
}

.site-footer-blamder {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.site-footer-blamder a {
    text-decoration: none;
}

.site-footer-blamder__nav-item a:hover {
    transform: translateX(3px);
}

/* ===== PAGE TEMPLATE: solutions-list ===== */
.site-main-header {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #FFFFFF;
}

.site-main-header .header-nav-link {
    position: relative;
}

.site-main-header .header-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366F1, #EC4899);
    border-radius: 2px;
    transition: width 0.2s ease-in-out;
}

.site-main-header .header-nav-link:hover::after {
    width: 100%;
}

.site-main-header .js-mobile-navigation {
    transition: all 0.25s ease-in-out;
}

.site-footer-blamder {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.site-footer-blamder a {
    text-decoration: none;
}

.site-footer-blamder__nav-item a:hover {
    transform: translateX(3px);
}

.solution-detail-page h1,
.solution-detail-page h2,
.solution-detail-page h3,
.solution-detail-page h4,
.solution-detail-page h5 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.solution-detail-page .solution-feature-list {
    list-style: none;
    padding-left: 0;
}

.solution-detail-page .js-accordion-icon.active-icon {
    transform: rotate(45deg);
}

/* ===== PAGE TEMPLATE: training-list ===== */
.site-main-header {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #FFFFFF;
}

.site-main-header .header-nav-link {
    position: relative;
}

.site-main-header .header-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366F1, #EC4899);
    border-radius: 2px;
    transition: width 0.2s ease-in-out;
}

.site-main-header .header-nav-link:hover::after {
    width: 100%;
}

.site-main-header .js-mobile-navigation {
    transition: all 0.25s ease-in-out;
}

.site-footer-blamder {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.site-footer-blamder a {
    text-decoration: none;
}

.site-footer-blamder__nav-item a:hover {
    transform: translateX(3px);
}

.training-detail-page h1,
.training-detail-page h2,
.training-detail-page h3,
.training-detail-page h4,
.training-detail-page h5 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.training-detail-page .form-input-field::placeholder {
    color: #94A3B8;
    opacity: 1;
}

.training-detail-page .form-input-field:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* ===== PAGE TEMPLATE: gallery-list ===== */
.site-main-header {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #FFFFFF;
}

.site-main-header .header-nav-link {
    position: relative;
}

.site-main-header .header-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366F1, #EC4899);
    border-radius: 2px;
    transition: width 0.2s ease-in-out;
}

.site-main-header .header-nav-link:hover::after {
    width: 100%;
}

.site-main-header .js-mobile-navigation {
    transition: all 0.25s ease-in-out;
}

.gallery-detail-page {
    font-family: 'Inter', sans-serif;
}

.gallery-detail-page h1,
.gallery-detail-page h2,
.gallery-detail-page h3,
.gallery-detail-page h4,
.gallery-detail-page h5 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.gallery-detail-page .article-prose-content p {
    line-height: 1.7;
}

.gallery-detail-page .project-feature-list {
    list-style: none;
    padding-left: 0;
}

.site-footer-blamder {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.site-footer-blamder a {
    text-decoration: none;
}

.site-footer-blamder__nav-item a:hover {
    transform: translateX(3px);
}

/* Task 16: keep button text on one line and neatly aligned on mobile */
@media (max-width: 767px) {
    a[class*="inline-flex"],
    button[class*="inline-flex"] {
        white-space: nowrap;
        text-align: center;
        line-height: 1.2;
    }
    a[class*="inline-flex"] > span,
    button[class*="inline-flex"] > span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        vertical-align: middle;
    }
    a[class*="w-full"][class*="inline-flex"],
    button[class*="w-full"][class*="inline-flex"] {
        min-width: 0;
    }
    .header-cta-button {
        white-space: nowrap;
    }
    .header-cta-button > span {
        white-space: nowrap;
    }
}



