:root {
    --background-main: #F8FAFC;
    --background-card: #FFFFFF;
    --primary-accent: #60A5FA;
    --primary-accent-hover: #3B82F6;
    --text-primary-light-bg: #0F172A;
    --text-secondary-light-bg: #64748B;
    --border-color: #E2E8F0;
    --status-success: #10B981;
    --status-info: #0EA5E9;
    --surface-muted: #F1F5F9;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-main);
    color: var(--text-primary-light-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.text-muted {
    color: #64748B !important;
}

* {
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.modern-fintech-ui {
    scroll-behavior: smooth;
}

/* ===== header ===== */
.remodel-header-block {
    font-family: 'Inter', sans-serif;
}

.remodel-header-block .nav-link {
    position: relative;
}

.remodel-header-block .js-dropdown-content {
    animation: dropdownFade 0.2s ease-out;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.remodel-header-block .js-mobile-menu.flex {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.remodel-header-block .overflow-hidden {
    overflow: hidden !important;
}

/* ===== hero ===== */
.remodel-hero {
    position: relative;
    font-family: 'Inter', sans-serif;
}

.remodel-hero__video-container {
    pointer-events: none;
}

.remodel-hero__video {
    filter: grayscale(20%) brightness(0.8);
}

.remodel-hero__overlay {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.remodel-hero__badge {
    backdrop-filter: blur(4px);
}

.remodel-hero__content h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.remodel-hero__btn-primary {
    box-shadow: 0 4px 14px 0 rgba(96, 165, 250, 0.39);
}

.remodel-hero__btn-secondary {
    backdrop-filter: blur(8px);
}

@media (max-width: 767px) {
    .remodel-hero {
        min-height: 550px;
    }

    .remodel-hero__content {
        text-align: center;
    }

    .remodel-hero__actions {
        width: 100%;
    }

    .remodel-hero__badge {
        margin-left: auto;
        margin-right: auto;
    }

    .remodel-hero__overlay {
        background: rgba(15, 23, 42, 0.75);
    }
}

/* ===== featured-case ===== */
.featured-case-block .js-option-tab.active {
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.featured-case-block .js-option-content {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.featured-case-block .constraints-list i {
    transition: transform 0.3s ease;
}

.featured-case-block li:hover i {
    transform: scale(1.15) rotate(5deg);
    color: #60A5FA;
}

.featured-case-block .image-wrapper img {
    transition: transform 0.7s ease;
}

.featured-case-block .image-wrapper:hover img {
    transform: scale(1.03);
}

/* ===== review-questions ===== */
.review-questions-block .js-accordion-item.active {
    border-color: #60A5FA;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.review-questions-block .js-accordion-item.active .js-accordion-trigger i {
    transform: rotate(180deg);
    color: #60A5FA;
}

.review-questions-block .js-accordion-trigger:hover span {
    color: #3B82F6;
}

.review-questions-block .js-accordion-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== case-collections ===== */
.case-collections-section .js-filter-btn.active {
    background-color: #60A5FA;
    color: #FFFFFF;
    border-color: #60A5FA;
}

.case-collections-section .case-card {
    display: flex;
    flex-direction: column;
}

.case-collections-section .line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-collections-section input::placeholder,
.case-collections-section textarea::placeholder {
    color: #94A3B8;
    opacity: 1;
}

@media (max-width: 768px) {
    .case-collections-section .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* ===== objections ===== */
.objections-section .objection-item.is-active {
    border-color: #60A5FA;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.1);
}

.objections-section .objection-item.is-active i {
    transform: rotate(45deg);
}

.objections-section .objection-content {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.objections-section .objection-item.is-active .objection-content {
    max-height: 400px;
}

/* ===== interactive-tour ===== */
.remodel-tour .js-tour-tab.active-tab {
    background-color: #FFFFFF;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #60A5FA;
}

.remodel-tour .js-tour-tab:not(.active-tab):hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.remodel-tour .hidden-content {
    display: none;
}

.remodel-tour .active-content {
    display: flex;
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .remodel-tour .js-tour-tab {
        padding: 12px;
    }

    .remodel-tour .js-tour-tab span {
        font-size: 12px;
    }

    .remodel-tour .js-tour-tab .w-[40px] {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
}

/* ===== contractor-questions ===== */
.contractor-questions-section .question-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.contractor-questions-section .question-card:hover {
    transform: translateY(-4px);
}

.contractor-questions-section .js-copy-checklist:hover {
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.contractor-questions-section .question-card i {
    transition: transform 0.3s ease;
}

.contractor-questions-section .question-card:hover i {
    transform: scale(1.1);
}

/* ===== payment-terms ===== */
.payment-terms-block .js-payment-card {
    position: relative;
    overflow: hidden;
}

.payment-terms-block .js-payment-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.payment-terms-block h2,
.payment-terms-block h3 {
    font-family: 'Inter', sans-serif;
}

/* ===== footer ===== */
.remodel-footer .remodel-footer__input::placeholder {
    color: #64748B;
    opacity: 1;
}

.remodel-footer .remodel-footer__input:focus::placeholder {
    color: transparent;
}

.remodel-footer .remodel-footer__link {
    position: relative;
    display: inline-block;
}

.remodel-footer .remodel-footer__grid {
    align-items: start;
}

@media (max-width: 767px) {
    .remodel-footer .remodel-footer__brand {
        text-align: center;
    }

    .remodel-footer .remodel-footer__brand a {
        margin-left: auto;
        margin-right: auto;
    }

    .remodel-footer .remodel-footer__bottom {
        text-align: center;
    }
}

/* ===== PAGE: chief-architect ===== */
.case-study-section {
  font-family: 'Inter', sans-serif;
}
.case-study-section .js-option-content {
  transition: opacity 0.3s ease-in-out;
}
.case-study-section .js-option-tab.active {
  color: #60A5FA !important;
  background-color: #F8FAFC !important;
  border-bottom-color: #60A5FA !important;
}
.case-study-section table thead th {
  border-bottom: 2px solid #E2E8F0;
}
.case-study-section .sticky {
  position: -webkit-sticky;
  position: sticky;
}
@media (max-width: 767px) {
  .case-study-section h1 {
    font-size: 18px !important;
    line-height: 1.2;
  }
  .case-study-section h2 {
    font-size: 16px !important;
  }
  .case-study-section h3 {
    font-size: 14px !important;
  }
}

/* ===== PAGE: cases ===== */
.cases-archive .js-case-card { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }.cases-archive .js-filter-btn.active { box-shadow: 0 4px 6px -1px rgba(96, 165, 250, 0.3); }.cases-archive .js-search-input:focus { box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2); }.cases-archive textarea { resize: none; }.cases-archive .container { max-width: 1280px; }

/* ===== PAGE: solutions ===== */
.solutions-grid-block .js-solution-card { backface-visibility: hidden; transform: translateZ(0); }
.solutions-grid-block .js-solution-card:hover { transform: translateY(-8px); }
.solutions-grid-block .container { max-width: 1280px; }
.solutions-grid-block .js-form-section { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02); }
.solutions-grid-block input::placeholder, .solutions-grid-block textarea::placeholder { color: #94A3B8; opacity: 1; }
.solutions-grid-block .js-search-input:focus { box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2); }

/* ===== PAGE: contacts ===== */
.contact-section .container { width: 100%; margin-left: auto; margin-right: auto; } .contact-section .info-item { transition: transform 0.3s ease; } .contact-section .info-item:hover { transform: translateY(-4px); } .contact-section input::placeholder, .contact-section textarea::placeholder { color: #64748B; opacity: 1; } .contact-section .form-container { background-image: radial-gradient(circle at top right, rgba(96, 165, 250, 0.05), transparent 200px); }

/* ===== PAGE: privacy ===== */
.privacy-content-block {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}
.privacy-content-block .js-nav-link.active {
  color: #60A5FA;
  font-weight: 700;
  padding-left: 4px;
  border-left: 2px solid #60A5FA;
}
.privacy-content-block details summary::-webkit-details-marker {
  display: none;
}
.privacy-content-block .leading-relaxed {
  line-height: 1.8;
}
@media (max-width: 768px) {
  .privacy-content-block .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ===== PAGE: terms ===== */
.terms-content-section .js-toc-link.active-link { color: #60A5FA; border-left-color: #60A5FA; font-weight: 600; padding-left: 1.25rem; } .terms-content-section .js-terms-section { scroll-margin-top: 100px; } .terms-content-section .container { position: relative; }

/* ===== PAGE: disclaimer ===== */
.disclaimer-section { font-family: 'Inter', sans-serif; }
.disclaimer-section__title { line-height: 1.2; }
.disclaimer-section__content p { margin-bottom: 1rem; }
.disclaimer-section__block h2 { line-height: 1.3; color: #0F172A; }
.disclaimer-section__wrapper { transition: box-shadow 0.3s ease; }
.disclaimer-section__wrapper:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

.comment-user-avatar {
    width: 52px;
    height: 52px;
    object-fit: cover;
}

.main-comment-container {
    transition: transform 0.2s ease-out;
}

.main-comment-container:hover {
    transform: translateY(-2px);
}

.reply-user-avatar {
    width: 38px;
    height: 38px;
    object-fit: cover;
}

.reply-comment-container {
    transition: border-color 0.3s ease;
}

.reply-comment-container:hover {
    border-left-color: #60A5FA;
}


/* ===== PAGE TEMPLATE: cases ===== */
.remodel-header-block {
    font-family: 'Inter', sans-serif;
}

.remodel-header-block .nav-link {
    position: relative;
}

.remodel-header-block .js-dropdown-content {
    animation: dropdownFade 0.2s ease-out;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.remodel-header-block .js-mobile-menu.flex {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

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

.remodel-detail-page .prose h2 {
    color: #0F172A;
}

.remodel-detail-page .prose p {
    margin-bottom: 1.5rem;
}

.remodel-detail-page .js-tab-btn.active {
    color: #60A5FA;
    border-bottom: 2px solid #60A5FA;
}

.remodel-detail-page .detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(96, 165, 250, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.remodel-footer .remodel-footer__input::placeholder {
    color: #64748B;
    opacity: 1;
}

.remodel-footer .remodel-footer__input:focus::placeholder {
    color: transparent;
}

@media (max-width: 767px) {
    .remodel-footer .remodel-footer__brand {
        text-align: center;
    }

    .remodel-footer .remodel-footer__brand a {
        margin-left: auto;
        margin-right: auto;
    }

    .remodel-footer .remodel-footer__bottom {
        text-align: center;
    }
}

/* ===== PAGE TEMPLATE: solutions ===== */
.remodel-header-block {
    font-family: 'Inter', sans-serif;
}

.remodel-header-block .nav-link {
    position: relative;
}

.remodel-header-block .js-dropdown-content {
    animation: dropdownFade 0.2s ease-out;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.remodel-header-block .js-mobile-menu.flex {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.remodel-detail-block {
    font-family: 'Inter', sans-serif;
}

.remodel-hero__overlay {
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.remodel-detail__content ul {
    list-style: none;
    padding-left: 0;
}

.remodel-footer .remodel-footer__input::placeholder {
    color: #64748B;
    opacity: 1;
}

.remodel-footer .remodel-footer__input:focus::placeholder {
    color: transparent;
}

.remodel-footer .remodel-footer__grid {
    align-items: start;
}

.comment-user-avatar,
.reply-user-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.main-comment-container,
.reply-comment-container {
    transition: all 0.3s ease;
}